public override void ExecuteCmdlet() { try { var applianceProvisiongInfo = new VirtualDeviceProvisioningInfo() { SubscriptionId = Profile.Context.Subscription.Id.ToString(), DeviceName = VirtualDeviceName, ReturnWorkflowId = true, VirtualNetworkName = VirtualNetworkName, SubNetName = SubNetName, CreateNewStorageAccount = CreateNewStorageAccount.IsPresent, StorageAccountName = StorageAccountName }; if (PersistAzureVMOnFailrue.IsPresent) { applianceProvisiongInfo.DeleteAzureCisVMOnFailure = false; } else { applianceProvisiongInfo.DeleteAzureCisVMOnFailure = true; } var deviceJobResponse = StorSimpleClient.CreateVirtualDevice(applianceProvisiongInfo); HandleDeviceJobResponse(deviceJobResponse, "create"); } catch (Exception exception) { this.HandleException(exception); } }