-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{AKS} az aks update
: Remove the error that could not create a role assignment error when the role assignment already exists
#25908
Merged
zhoxing-ms
merged 1 commit into
Azure:dev
from
FumingZhang:fuming/fix-role-existing-0321
Mar 23, 2023
Merged
{AKS} az aks update
: Remove the error that could not create a role assignment error when the role assignment already exists
#25908
zhoxing-ms
merged 1 commit into
Azure:dev
from
FumingZhang:fuming/fix-role-existing-0321
Mar 23, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FumingZhang
requested review from
zhoxing-ms,
andyliuliming,
jsntcy and
yanzhudd
as code owners
March 22, 2023 06:20
️✔️acr
️✔️acs
️✔️advisor
️✔️ams
️✔️apim
️✔️appconfig
️✔️appservice
️✔️aro
️✔️backup
️✔️batch
️✔️batchai
️✔️billing
️✔️botservice
️✔️cdn
️✔️cloud
️✔️cognitiveservices
️✔️config
️✔️configure
️✔️consumption
️✔️container
️✔️core
️✔️cosmosdb
️✔️databoxedge
️✔️dla
️✔️dls
️✔️dms
️✔️eventgrid
️✔️eventhubs
️✔️feedback
️✔️find
️✔️hdinsight
️✔️identity
️✔️iot
️✔️keyvault
️✔️kusto
️✔️lab
️✔️managedservices
️✔️maps
️✔️marketplaceordering
️✔️monitor
️✔️netappfiles
️✔️network
️✔️policyinsights
️✔️privatedns
️✔️profile
️✔️rdbms
️✔️redis
️✔️relay
️✔️resource
️✔️role
️✔️search
️✔️security
️✔️servicebus
️✔️serviceconnector
️✔️servicefabric
️✔️signalr
️✔️sql
️✔️sqlvm
️✔️storage
️✔️synapse
️✔️telemetry
️✔️util
️✔️vm
|
Hi @FumingZhang, |
ghost
assigned zhoxing-ms
Mar 22, 2023
ghost
requested a review
from yonzhan
March 22, 2023 06:20
ghost
requested a review
from jiasli
March 22, 2023 06:21
ghost
assigned jiasli
Mar 22, 2023
3 tasks
AKS |
zhoxing-ms
approved these changes
Mar 23, 2023
This was referenced Mar 24, 2023
avgale
pushed a commit
to avgale/azure-cli
that referenced
this pull request
Aug 24, 2023
…signment error when the role assignment already exists (Azure#25908)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related command
az aks update
Description
In version 2.46.0 of azure-cli, due to the update of the API used by the role assignment-related operations, when the role assignment already exists, the returned error message is changed, and the code that previously performed this type of error checking can no longer handle such error, so that the command finally raise an error similar to
Cannot create a role assignment for xxx...
.The error message of adding exiting role assignment is (sending request with API version
2022-04-01
)Previously the error message is (sending request with API version
2020-04-01-preview
)az aks update
) with an extra option--verbose
and check if the error is caused by role assignment already exists, if so, please ignore the error as cluster should have been updated successfully.This issue should only occur in version 2.46.0, and the fix will be released in 2.47.0 (available since 04/04). Having aks-preview installed or not won't mitigate the problem.
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a
: Make some customer-facing breaking change[Component Name 2]
az command b
: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.