final OperatingSystemTypes osType = vm.storageProfile().osDisk().osType();
dockerVM.networkSecurityGroupName = (nicIPConfiguration.parent().networkSecurityGroupId() != null) ? ResourceUtils.nameFromResourceId(nicIPConfiguration.parent().networkSecurityGroupId()) : null; dockerVM.vmSize = vm.size().toString(); dockerVM.osDiskName = vm.storageProfile().osDisk().name(); if (vm.storageProfile().imageReference() != null) { dockerVM.osHost = new AzureOSHost(vm.storageProfile().imageReference()); if (vm.storageProfile().osDisk().managedDisk() != null) { dockerVM.storageAccountName = vm.storageProfile().osDisk().name(); dockerVM.storageAccountType = "Managed disk"; } else { dockerVM.storageAccountName = vm.storageProfile().osDisk().vhd().uri().split("[.]")[0].split("/")[2]; dockerVM.storageAccountType = AzureDockerUtils.getStorageTypeForVMSize(dockerVM.vmSize);