Skip to content
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

Merged
merged 6 commits into from
Oct 20, 2016
Merged

Virtual machine - specialized VHD and generalized image #1216

merged 6 commits into from
Oct 20, 2016

Conversation

anuchandy
Copy link
Member

  1. Ensuring storage account of VM's vhd is same as specialized vhd or generalized image
  2. Adding a sample for generalized & specialized scenario

@martinsawicki martinsawicki merged commit 8e09054 into Azure:master Oct 20, 2016
.withPrimaryPrivateIpAddressDynamic()
.withoutPrimaryPublicIpAddress()
.withStoredLinuxImage(capturedImageUri) // Note: A URI to generalized VHD is also considered as stored image
.withRootUserName(userName)

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?

Copy link
Member Author

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.

Copy link
Member Author

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);

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";

jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this pull request Feb 27, 2017
Virtual machine - specialized VHD and generalized image
sima-zhu pushed a commit to sima-zhu/azure-sdk-for-java that referenced this pull request Mar 21, 2019
Regenerated samples using gulp regenerate:expected:samples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants