azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Disk type support for virtual machine during provisioning time.

Open gitcodeserve opened this issue 8 years ago • 2 comments

Azure portal allows us to select the os disk type (HDD/SSD) while creating virtual machine. But when I try to deploy the virtual machine using java SDK there is no support available from the API to pass the disk type.

var linuxVM1 = azure.VirtualMachines
  .Define(linuxVM1Name)
  .WithRegion(Region.USEast)
  .WithNewResourceGroup(rgName)
  .WithNewPrimaryNetwork("10.0.0.0/28")
  .WithPrimaryPrivateIpAddressDynamic()
  .WithNewPrimaryPublicIpAddress(linuxVM1Pip)
  .WithPopularLinuxImage(KnownLinuxVirtualMachineImage.UbuntuServer16_04_Lts)
  .WithRootUsername(“tirekicker”)
  .WithSsh(sshkey)
  .WithNewDataDisk(100)
  .WithSize(VirtualMachineSizeTypes.StandardD3V2)
  .Create();

Can anyone please provide me the pointer on how to set the disk type during virtual machine provisioning.

Thanks in advance

gitcodeserve avatar Jul 30 '18 06:07 gitcodeserve

Hello @gitcodeserve

I am sorry about you didn't get an answer before. Do you still need support for this? I would be happy to help you.

Note: As part of repository cleaning effort, this issue will be closed by Sep 12 if no response is received from submitter and/or not further action is required.

vhvb1989 avatar Aug 22 '19 20:08 vhvb1989

Closed as User does not need further support on this

vhvb1989 avatar Sep 12 '19 23:09 vhvb1989