-
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
Virtual machine - specialized VHD and generalized image #1216
Conversation
anuchandy
commented
Oct 20, 2016
- Ensuring storage account of VM's vhd is same as specialized vhd or generalized image
- Adding a sample for generalized & specialized scenario
.withPrimaryPrivateIpAddressDynamic() | ||
.withoutPrimaryPublicIpAddress() | ||
.withStoredLinuxImage(capturedImageUri) // Note: A URI to generalized VHD is also considered as stored image | ||
.withRootUserName(userName) |
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.
Is it mandatory to use root/admin username/password? What if we want to keep the VM as-is without any customization, including admin password?
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.
In that case, you have to use 'specialized vhd'. The wither withStored[Linux | Windows]Image
is for creating a VM from generalized image, where admin credentials are required. See the flow associated with creation of linuxVM3
below that shows how to attach specialized vhd.
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.
More more info refer my comment here Azure-Samples/compute-java-manage-vm#10
|
||
//============================================================= | ||
// Create a Linux VM using captured image | ||
String capturedImageUri = extractCapturedImageUri(capturedResultJson); |
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.
Is there an example of what the raw URI looks like? For ex, this string is not working in our test.
String capturedUriImage = "https://cek4dxxmaklzgpooltestzsa.blob.core.windows.net/system/Microsoft.Compute/Images/template/disk2012-osDisk.bf042413-3dc3-4452-a07a-70990191ce43.vhd";
Virtual machine - specialized VHD and generalized image
Regenerated samples using gulp regenerate:expected:samples