Repository navigation
[connectedvmware] Fix cross-subscription VM onboarding #10373
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
aaronngo-microsoft
wants to merge
10
commits into
Azure:main
Choose a base branch
from
aaronngo-microsoft:fix-connectedvmware-bugs
base: main
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.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f3a37a6
update script for cross subscription support
2f6beea
Add cross-subscription connectedvmware scenario
7cdd893
Revert connectedvmware scenario test changes
15f3e4e
Merge branch 'main' into fix-connectedvmware-bugs
556e073
added more assertions for integration test
418bab5
updated integration test with live records
28bd0f3
updated more tests
028c16a
Fix connectedvmware cross-subscription test playback
6587c54
Document connectedvmware cross-subscription playback setup
c056907
Merge remote-tracking branch 'origin/main' into fix-connectedvmware-bugs
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
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
1,320 changes: 1,320 additions & 0 deletions
1,320
...connectedvmware/tests/latest/recordings/test_create_from_machines_cross_subscription.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
1,386 changes: 1,386 additions & 0 deletions
1,386
...atest/recordings/test_create_from_machines_cross_subscription_with_unrelated_default.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
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.
We need to test that the subscription provided in the input parameter to the CLI command is considered in the query here
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.
tested in integration test
Uh oh!
There was an error while loading. Please reload this page.
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.
If I'm reading the logic correctly, we include the subscriptions
but what about the subscription id provided as an CLI arg https://learn.microsoft.com/en-us/azure/azure-arc/vmware-vsphere/enable-virtual-hardware#link-arc-enabled-server-machines-to-vcenter-using-azure-cli
e.g.
contoso-subThere 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.
apparently the subscription set for the list is az cli if no --subscription flag is provided. if --subscription is provided then we will use that subscription
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.
see the test: https://github.com/Azure/azure-cli-extensions/pull/10373/changes#diff-3fd3e67e2887386d763f974a595db56a16d13182eac3907c0db1f657aea977cfR85
first i login into hybrid compute sub, then i supplied the vcenter sub as well as the the subscription where i created my VM, then the result in the recording will be the subscriptions of the vm and the vcenter