{Compute} az disk-encryption-set update: Set source vault to None when --source-vault is not input#31678
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @yanzhudd, |
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates the behavior of the az disk-encryption-set update command so that when --source-vault is not provided, the source vault value in the instance's active_key is set to None.
- Adds a new method, pre_instance_update, to set instance.properties.active_key.source_vault to None if args.source_vault is not present.
- Uses the existing has_value function to check for source vault input.
|
Cannot add test for this change, since it is to fix an edge case, and requires certain permission to create resources. |
Related command
az disk-encryption-set updateDescription
Fix IcM: 638240702
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.