-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Compute} az vm identity: Migrate commands to aaz-based implementation
#32572
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
Open
william051200
wants to merge
42
commits into
Azure:dev
Choose a base branch
from
william051200:vm-identity-migration
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,971
−7,233
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
b86c5b2
[refractor] - Migrated 'az vm identity show' command
william051200 be83580
[Refractor] - Refractored show_vm_dentity function and migrated get_v…
william051200 22901c0
[Refractor] - Migrated assign_vm_identity function
william051200 d0aca8d
[Refractor] - Preserve old function to avoid breaking change, updated…
william051200 30f59be
[Refractor] - Refractored assign_identity_helper function
william051200 cd88db3
[Refractor] - Edit so the response is same as original when identity …
william051200 aeb7aab
[refractor] - Added handling to assign_vm_identity function
william051200 f4bb17e
[Refractor] - Migrated remove_vm_identity function
william051200 95b1ebe
[Refractor] - Edited function name
william051200 240fbc5
[style] - Update code styling
william051200 23714e9
[style] - Update code styling
william051200 a7791f1
[test] - fixed test_vm_explicit_msi test case
william051200 0000e4a
[style] - Update code styling
william051200 d8c4cca
[style] - Update code styling
william051200 e79f11a
[style] - Update code styling
william051200 19ca657
[test] - Added handling to vm create and vmss create command
william051200 2a18517
[Refractor] - Resolve copilot suggestion
william051200 42cd619
Add recording for test_vm_msi
ReaNAiveD 9d7c786
[Fix] - Fixed import show function
william051200 a5e9d85
[Test] - Re-record test case
william051200 ca27b82
[style] - Update code styling
william051200 67185e0
[Fix] - Fixed import patch function
william051200 db62d98
[Fix] - Added handling when assigning vm identities
william051200 c0e2e4c
[Fix] - Fixed schema output issue
william051200 d70e35b
[Test] - Fixed test case failure and re-record test case
william051200 d33499e
[Test] - Re-record test case
william051200 3077fa6
Removed unused parameter in commands.py
william051200 7055f81
Refractor assign_vm_identity in custom.py
william051200 35e49c4
Refractor code
william051200 0866581
Fix refractored code bug
william051200 ebb360c
Removed redundant lines
william051200 79e595a
Removed redundant import
william051200 a4c47ef
Reset test cases and recordings
william051200 5614d4e
Edit test recording
william051200 3ad006b
reset test recording
william051200 158134f
reset test recording
william051200 4f944c4
Updated test case
william051200 bb53ae2
Update vm/vm_utils and core/commands/arm
william051200 9119b6f
Updated test recording
william051200 8eacff2
Reset test_vm_explicit_msi test case and recording
william051200 7907d99
Updated test_vm_explicit_msi test case
william051200 98d1c6b
Remove unused import
william051200 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
13,792 changes: 6,651 additions & 7,141 deletions
13,792
...azure/cli/command_modules/sqlvm/tests/latest/recordings/test_sqlvm_aad_auth_negative.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zhoxing-ms could you please help review the changes to this file?
It simply separates the logic for calling assignments_client.create() from the assign_identity() function, since we also need to invoke assignments_client.create() in the vm module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me