-
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
mgmt, compute support withplan for VMSS #25323
mgmt, compute support withplan for VMSS #25323
Conversation
.withUnmanagedDisks() | ||
.withNewStorageAccount(generateRandomResourceName("stg", 15)) |
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.
Avoid using unmanaged disk.
.withRegion(region) | ||
.withExistingResourceGroup(resourceGroup) | ||
.withSku(VirtualMachineScaleSetSkuTypes.STANDARD_A0) | ||
.withExistingPrimaryNetworkSubnet(network, "subnet1") |
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.
Usually it is easier to call withNewNetwork
?
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.
I refer to other tests to add the network configuration part, will try withNewNetWork(). Thanks
@@ -382,6 +382,11 @@ RunCommandResult runShellScriptInVMInstance( | |||
*/ | |||
AdditionalCapabilities additionalCapabilities(); | |||
|
|||
/** | |||
* @return the plan value |
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.
Do we have a better javadoc? the plan value
is just useless as the method is already called plan()
...
@@ -127,7 +127,7 @@ public void canCreateVMSSWithPlan() { | |||
.withSpecificLinuxImageVersion(imageReference) | |||
.withRootUsername(uname) | |||
.withSsh(sshPublicKey()) | |||
.withUnmanagedDisks() | |||
.withNewDataDisk(1) | |||
.withNewStorageAccount(generateRandomResourceName("stg", 15)) |
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.
I don't think you need the storage account?
* Code change to support withplan for compute virtual machine scale set * Add test to create VMSS with plan * Add session records * Update CHANGELOG * Update test to use withNewDataDisk() instead of withUnmanagedDisks() * Remove withNewStorageAccount() in test * update javadoc * Update session-records due to network upgrade
Description
Add feature, issue link: #24301
Code Change
VirtualMachineScaleSet
andVirtualMachineScaleSetImpl
to add withPlan() interface and plan() getterIf 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