Skip to content

Conversation

@zhoxing-ms
Copy link
Contributor

@zhoxing-ms zhoxing-ms commented Jan 30, 2023

Related command

az vm/vmss identity assign

Description

Similar to #20924

As the security team raised the security concern: the permission of Contributor is too high to be used as the default role for az vm/vmss identity assign, so the default value Contributor of --role will be removed in the future.
Therefore, the first step is to prompt users that parameters --role and --scope should be passed in at the same time when assigning role to the managed identity to reduce the impact of breaking change.

The specific effects are as follows:

  • warning message
    Screenshot 2023-01-30 112649

  • help message
    Screenshot 2023-01-31 104532

  • help example
    Screenshot 2023-01-31 104625

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 feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost requested review from jiasli and yonzhan January 30, 2023 09:34
@ghost ghost added the Auto-Assign Auto assign by bot label Jan 30, 2023
@ghost ghost assigned jiasli Jan 30, 2023
@ghost ghost added this to the Feb 2023 (2023-03-07) milestone Jan 30, 2023
@ghost ghost added the RBAC az role label Jan 30, 2023
@zhoxing-ms zhoxing-ms changed the title Add warning log for removing default role [Compute] az vm/vmss identity assign: Add warning log and modify help to inform that the default value Contributor of --role will be removed Jan 30, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 30, 2023

Compute warning refinement

@zhoxing-ms zhoxing-ms changed the title [Compute] az vm/vmss identity assign: Add warning log and modify help to inform that the default value Contributor of --role will be removed [Compute] az vm/vmss identity assign: Add warning log and modify help to inform that the default value Contributor of --role will be removed Jan 31, 2023
@zhoxing-ms zhoxing-ms changed the title [Compute] az vm/vmss identity assign: Add warning log and modify help to inform that the default value Contributor of --role will be removed [Compute] az vm/vmss identity assign: Add warning log and modify help to inform that the default value Contributor of --role will be removed Jan 31, 2023
@zhoxing-ms zhoxing-ms changed the title [Compute] az vm/vmss identity assign: Add warning log and modify help to inform that the default value Contributor of --role will be removed [Compute] az vm/vmss identity assign: Add warning log and modify help to inform that the default value Contributor of --role will be removed Jan 31, 2023
@zhoxing-ms zhoxing-ms requested a review from dcaro February 23, 2023 08:24
@zhoxing-ms
Copy link
Contributor Author

@dcaro Could you please help review this PR?

@dcaro
Copy link
Contributor

dcaro commented Feb 24, 2023

@zhoxing-ms can you reuse the messages that have been discussed in #24755 ?
cc: @dbradish-microsoft

@zhoxing-ms zhoxing-ms marked this pull request as ready for review February 27, 2023 08:44
@zhoxing-ms
Copy link
Contributor Author

zhoxing-ms commented Feb 27, 2023

@dcaro Thanks for your suggestion, I have reused the description of timeline as in the breaking change release of the fall
For other parts, I have reused the previous descriptions in similar requirements #20924 for az vm/vmss create

@dbradish-microsoft
Copy link
Contributor

@dcaro, From a doc's perspective, there are 770 GitHub lines that have various combinations of az vm/vmss identity + --role and/or --scope. In March 2022, we made a pass through all docs removing any default dependency on --role and explicitly specifying both --role and --scope. When this change is pushed to production, please give me a 30-day heads-up if possible so I can make a 2nd pass and make sure both docs and auto-generated reference content are ready to go. Thank you.

@jiasli jiasli assigned zhoxing-ms and unassigned jiasli Mar 2, 2023
@jiasli jiasli modified the milestones: Feb 2023 (2023-03-07), Backlog Mar 2, 2023
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Mar 2, 2023

️✔️acr
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.10
️✔️3.9
️✔️ams
️✔️latest
️✔️3.10
️✔️3.9
️✔️apim
️✔️latest
️✔️3.10
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.10
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.10
️✔️3.9
️✔️aro
️✔️latest
️✔️3.10
️✔️3.9
️✔️backup
️✔️latest
️✔️3.10
️✔️3.9
️✔️batch
️✔️latest
️✔️3.10
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.10
️✔️3.9
️✔️billing
️✔️latest
️✔️3.10
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.10
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.10
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.10
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.10
️✔️3.9
️✔️config
️✔️latest
️✔️3.10
️✔️3.9
️✔️configure
️✔️latest
️✔️3.10
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.10
️✔️3.9
️✔️container
️✔️latest
️✔️3.10
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.10
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️dla
️✔️latest
️✔️3.10
️✔️3.9
️✔️dls
️✔️latest
️✔️3.10
️✔️3.9
️✔️dms
️✔️latest
️✔️3.10
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.10
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.10
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.10
️✔️3.9
️✔️find
️✔️latest
️✔️3.10
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.10
️✔️3.9
️✔️identity
️✔️latest
️✔️3.10
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️kusto
️✔️latest
️✔️3.10
️✔️3.9
️✔️lab
️✔️latest
️✔️3.10
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.10
️✔️3.9
️✔️maps
️✔️latest
️✔️3.10
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.10
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.10
️✔️3.9
️✔️natgateway
️✔️latest
️✔️3.10
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.10
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.10
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.10
️✔️3.9
️✔️profile
️✔️latest
️✔️3.10
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.10
️✔️3.9
️✔️redis
️✔️latest
️✔️3.10
️✔️3.9
️✔️relay
️✔️latest
️✔️3.10
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️role
️✔️latest
️✔️3.10
️✔️3.9
️✔️search
️✔️latest
️✔️3.10
️✔️3.9
️✔️security
️✔️latest
️✔️3.10
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.10
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.10
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.10
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.10
️✔️3.9
️✔️sql
️✔️latest
️✔️3.10
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.10
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.10
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️util
️✔️latest
️✔️3.10
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9

@zhoxing-ms zhoxing-ms merged commit 98d6851 into Azure:dev Mar 3, 2023
avgale pushed a commit to avgale/azure-cli that referenced this pull request Aug 24, 2023
…lp to inform that the default value Contributor of `--role` will be removed (Azure#25283)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot RBAC az role

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants