-
Notifications
You must be signed in to change notification settings - Fork 2k
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
add sample for cloning vm to new region #31912
add sample for cloning vm to new region #31912
Conversation
.../src/main/java/com/azure/resourcemanager/compute/samples/CloneVirtualMachineToNewRegion.java
Outdated
Show resolved
Hide resolved
.withNewPrimaryNetwork("10.0.0.0/28") | ||
.withPrimaryPrivateIPAddressDynamic() | ||
.withNewPrimaryPublicIPAddress(publicIpDnsLabel) | ||
.withPopularLinuxImage(KnownLinuxVirtualMachineImage.UBUNTU_SERVER_16_04_LTS) |
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 possible use a later version.
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.
Switched to use 18_04. I saw latest ubuntu version in portal is 20.04, should we added it to KnownLinuxVirtualMachineImage
?
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.
Yeah, if it can be listed, we should add it. Anyway that would be another PR.
.../src/main/java/com/azure/resourcemanager/compute/samples/CloneVirtualMachineToNewRegion.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/azure/resourcemanager/compute/samples/CloneVirtualMachineToNewRegion.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/azure/resourcemanager/compute/samples/CloneVirtualMachineToNewRegion.java
Outdated
Show resolved
Hide resolved
API change check API changes are not detected in this pull request. |
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.
LGTM.
@haolingdong-msft for review as well.
Description
fix #31805
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines