Disk type support for virtual machine during provisioning time.
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
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.
Closed as User does not need further support on this