diff --git a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj
index c21b73d9bfba..dd15312eba7b 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj
+++ b/src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj
@@ -260,11 +260,7 @@
-
-
-
-
-
+
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/ComputeAutomationBaseCmdlet.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/ComputeAutomationBaseCmdlet.cs
index 77c38a3abb7c..f3d93eb59e04 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Generated/ComputeAutomationBaseCmdlet.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/ComputeAutomationBaseCmdlet.cs
@@ -88,5 +88,13 @@ public IVirtualMachineScaleSetVMsOperations VirtualMachineScaleSetVMsClient
return ComputeClient.ComputeManagementClient.VirtualMachineScaleSetVMs;
}
}
+
+ public IVirtualMachinesOperations VirtualMachinesClient
+ {
+ get
+ {
+ return ComputeClient.ComputeManagementClient.VirtualMachines;
+ }
+ }
}
}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/InvokeAzureComputeMethodCmdlet.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/InvokeAzureComputeMethodCmdlet.cs
index c7c319fb3c43..e12c96aceffc 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Generated/InvokeAzureComputeMethodCmdlet.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/InvokeAzureComputeMethodCmdlet.cs
@@ -78,7 +78,23 @@ protected static object[] ConvertDynamicParameters(RuntimeDefinedParameterDictio
"VirtualMachineScaleSetVMPowerOff",
"VirtualMachineScaleSetVMReimage",
"VirtualMachineScaleSetVMRestart",
- "VirtualMachineScaleSetVMStart"
+ "VirtualMachineScaleSetVMStart",
+ "VirtualMachinesCapture",
+ "VirtualMachinesCreateOrUpdate",
+ "VirtualMachinesDeallocate",
+ "VirtualMachinesDelete",
+ "VirtualMachinesGeneralize",
+ "VirtualMachinesGet",
+ "VirtualMachinesList",
+ "VirtualMachinesListAll",
+ "VirtualMachinesListAllNext",
+ "VirtualMachinesListAvailableSizes",
+ "VirtualMachinesListAvailableSizesNext",
+ "VirtualMachinesListNext",
+ "VirtualMachinesPowerOff",
+ "VirtualMachinesRedeploy",
+ "VirtualMachinesRestart",
+ "VirtualMachinesStart"
)]
public virtual string MethodName { get; set; }
@@ -191,6 +207,54 @@ protected override void ProcessRecord()
case "VirtualMachineScaleSetVMStart" :
ExecuteVirtualMachineScaleSetVMStartMethod(argumentList);
break;
+ case "VirtualMachineCapture" :
+ ExecuteVirtualMachineCaptureMethod(argumentList);
+ break;
+ case "VirtualMachineCreateOrUpdate" :
+ ExecuteVirtualMachineCreateOrUpdateMethod(argumentList);
+ break;
+ case "VirtualMachineDeallocate" :
+ ExecuteVirtualMachineDeallocateMethod(argumentList);
+ break;
+ case "VirtualMachineDelete" :
+ ExecuteVirtualMachineDeleteMethod(argumentList);
+ break;
+ case "VirtualMachineGeneralize" :
+ ExecuteVirtualMachineGeneralizeMethod(argumentList);
+ break;
+ case "VirtualMachineGet" :
+ ExecuteVirtualMachineGetMethod(argumentList);
+ break;
+ case "VirtualMachineList" :
+ ExecuteVirtualMachineListMethod(argumentList);
+ break;
+ case "VirtualMachineListAll" :
+ ExecuteVirtualMachineListAllMethod(argumentList);
+ break;
+ case "VirtualMachineListAllNext" :
+ ExecuteVirtualMachineListAllNextMethod(argumentList);
+ break;
+ case "VirtualMachineListAvailableSizes" :
+ ExecuteVirtualMachineListAvailableSizesMethod(argumentList);
+ break;
+ case "VirtualMachineListAvailableSizesNext" :
+ ExecuteVirtualMachineListAvailableSizesNextMethod(argumentList);
+ break;
+ case "VirtualMachineListNext" :
+ ExecuteVirtualMachineListNextMethod(argumentList);
+ break;
+ case "VirtualMachinePowerOff" :
+ ExecuteVirtualMachinePowerOffMethod(argumentList);
+ break;
+ case "VirtualMachineRedeploy" :
+ ExecuteVirtualMachineRedeployMethod(argumentList);
+ break;
+ case "VirtualMachineRestart" :
+ ExecuteVirtualMachineRestartMethod(argumentList);
+ break;
+ case "VirtualMachineStart" :
+ ExecuteVirtualMachineStartMethod(argumentList);
+ break;
default : WriteWarning("Cannot find the method by name = '" + MethodName + "'."); break;
}
});
@@ -228,6 +292,22 @@ public virtual object GetDynamicParameters()
case "VirtualMachineScaleSetVMReimage" : return CreateVirtualMachineScaleSetVMReimageDynamicParameters();
case "VirtualMachineScaleSetVMRestart" : return CreateVirtualMachineScaleSetVMRestartDynamicParameters();
case "VirtualMachineScaleSetVMStart" : return CreateVirtualMachineScaleSetVMStartDynamicParameters();
+ case "VirtualMachineCapture" : return CreateVirtualMachineCaptureDynamicParameters();
+ case "VirtualMachineCreateOrUpdate" : return CreateVirtualMachineCreateOrUpdateDynamicParameters();
+ case "VirtualMachineDeallocate" : return CreateVirtualMachineDeallocateDynamicParameters();
+ case "VirtualMachineDelete" : return CreateVirtualMachineDeleteDynamicParameters();
+ case "VirtualMachineGeneralize" : return CreateVirtualMachineGeneralizeDynamicParameters();
+ case "VirtualMachineGet" : return CreateVirtualMachineGetDynamicParameters();
+ case "VirtualMachineList" : return CreateVirtualMachineListDynamicParameters();
+ case "VirtualMachineListAll" : return CreateVirtualMachineListAllDynamicParameters();
+ case "VirtualMachineListAllNext" : return CreateVirtualMachineListAllNextDynamicParameters();
+ case "VirtualMachineListAvailableSizes" : return CreateVirtualMachineListAvailableSizesDynamicParameters();
+ case "VirtualMachineListAvailableSizesNext" : return CreateVirtualMachineListAvailableSizesNextDynamicParameters();
+ case "VirtualMachineListNext" : return CreateVirtualMachineListNextDynamicParameters();
+ case "VirtualMachinePowerOff" : return CreateVirtualMachinePowerOffDynamicParameters();
+ case "VirtualMachineRedeploy" : return CreateVirtualMachineRedeployDynamicParameters();
+ case "VirtualMachineRestart" : return CreateVirtualMachineRestartDynamicParameters();
+ case "VirtualMachineStart" : return CreateVirtualMachineStartDynamicParameters();
default : break;
}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml b/src/ResourceManager/Compute/Commands.Compute/Generated/Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml
index 985b5e47222a..a4e516fa6dd2 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Generated/Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml
@@ -339,5 +339,113 @@
+
+ Microsoft.Azure.Management.Compute.Models.VirtualMachineCaptureResult
+
+ Microsoft.Azure.Management.Compute.Models.VirtualMachineCaptureResult
+
+
+
+
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.Output, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ Id
+
+
+
+
+
+
+
+ Microsoft.Azure.Management.Compute.Models.VirtualMachine
+
+ Microsoft.Azure.Management.Compute.Models.VirtualMachine
+
+
+
+
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.Plan, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ if ($_.Resources -eq $null) { 0 } else { $_.Resources.Count }
+
+
+
+ foreach ($item in $_.Resources) { [Newtonsoft.Json.JsonConvert]::SerializeObject($item, [Newtonsoft.Json.Formatting]::Indented) }
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.HardwareProfile, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.StorageProfile, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.OsProfile, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.NetworkProfile, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.DiagnosticsProfile, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.AvailabilitySet, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ ProvisioningState
+
+
+
+ [Newtonsoft.Json.JsonConvert]::SerializeObject($_.InstanceView, [Newtonsoft.Json.Formatting]::Indented)
+
+
+
+ LicenseType
+
+
+
+ Id
+
+
+
+ Name
+
+
+
+ Type
+
+
+
+ Location
+
+
+
+ if ($_.Tags -eq $null) { 0 } else { $_.Tags.Count }
+
+
+
+ foreach ($item in $_.Tags) { [Newtonsoft.Json.JsonConvert]::SerializeObject($item, [Newtonsoft.Json.Formatting]::Indented) }
+
+
+
+
+
+
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeArgumentListCmdlet.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeArgumentListCmdlet.cs
index 9c126b527c35..9cc0a862d732 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeArgumentListCmdlet.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeArgumentListCmdlet.cs
@@ -62,7 +62,23 @@ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCm
"VirtualMachineScaleSetVMsPowerOff",
"VirtualMachineScaleSetVMsReimage",
"VirtualMachineScaleSetVMsRestart",
- "VirtualMachineScaleSetVMsStart"
+ "VirtualMachineScaleSetVMsStart",
+ "VirtualMachinesCapture",
+ "VirtualMachinesCreateOrUpdate",
+ "VirtualMachinesDeallocate",
+ "VirtualMachinesDelete",
+ "VirtualMachinesGeneralize",
+ "VirtualMachinesGet",
+ "VirtualMachinesList",
+ "VirtualMachinesListAll",
+ "VirtualMachinesListAllNext",
+ "VirtualMachinesListAvailableSizes",
+ "VirtualMachinesListAvailableSizesNext",
+ "VirtualMachinesListNext",
+ "VirtualMachinesPowerOff",
+ "VirtualMachinesRedeploy",
+ "VirtualMachinesRestart",
+ "VirtualMachinesStart"
)]
public virtual string MethodName { get; set; }
@@ -102,6 +118,22 @@ protected override void ProcessRecord()
case "VirtualMachineScaleSetVMsReimage" : WriteObject(CreateVirtualMachineScaleSetVMReimageParameters(), true); break;
case "VirtualMachineScaleSetVMsRestart" : WriteObject(CreateVirtualMachineScaleSetVMRestartParameters(), true); break;
case "VirtualMachineScaleSetVMsStart" : WriteObject(CreateVirtualMachineScaleSetVMStartParameters(), true); break;
+ case "VirtualMachinesCapture" : WriteObject(CreateVirtualMachineCaptureParameters(), true); break;
+ case "VirtualMachinesCreateOrUpdate" : WriteObject(CreateVirtualMachineCreateOrUpdateParameters(), true); break;
+ case "VirtualMachinesDeallocate" : WriteObject(CreateVirtualMachineDeallocateParameters(), true); break;
+ case "VirtualMachinesDelete" : WriteObject(CreateVirtualMachineDeleteParameters(), true); break;
+ case "VirtualMachinesGeneralize" : WriteObject(CreateVirtualMachineGeneralizeParameters(), true); break;
+ case "VirtualMachinesGet" : WriteObject(CreateVirtualMachineGetParameters(), true); break;
+ case "VirtualMachinesList" : WriteObject(CreateVirtualMachineListParameters(), true); break;
+ case "VirtualMachinesListAll" : WriteObject(CreateVirtualMachineListAllParameters(), true); break;
+ case "VirtualMachinesListAllNext" : WriteObject(CreateVirtualMachineListAllNextParameters(), true); break;
+ case "VirtualMachinesListAvailableSizes" : WriteObject(CreateVirtualMachineListAvailableSizesParameters(), true); break;
+ case "VirtualMachinesListAvailableSizesNext" : WriteObject(CreateVirtualMachineListAvailableSizesNextParameters(), true); break;
+ case "VirtualMachinesListNext" : WriteObject(CreateVirtualMachineListNextParameters(), true); break;
+ case "VirtualMachinesPowerOff" : WriteObject(CreateVirtualMachinePowerOffParameters(), true); break;
+ case "VirtualMachinesRedeploy" : WriteObject(CreateVirtualMachineRedeployParameters(), true); break;
+ case "VirtualMachinesRestart" : WriteObject(CreateVirtualMachineRestartParameters(), true); break;
+ case "VirtualMachinesStart" : WriteObject(CreateVirtualMachineStartParameters(), true); break;
default : WriteWarning("Cannot find the method by name = '" + MethodName + "'."); break;
}
}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeParameterObjectCmdlet.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeParameterObjectCmdlet.cs
index 70ed762e3d00..c171c5cad1f0 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeParameterObjectCmdlet.cs
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/NewAzureComputeParameterObjectCmdlet.cs
@@ -36,6 +36,10 @@ public partial class NewAzureComputeParameterObjectCmdlet : ComputeAutomationBas
{
[Parameter(ParameterSetName = "CreateParameterObjectByFriendlyName", Mandatory = true, Position = 0)]
[ValidateSet(
+ "VirtualMachinesAdditionalUnattendContent",
+ "VirtualMachinesAdditionalUnattendContentList",
+ "VirtualMachinesBootDiagnostics",
+ "VirtualMachinesBootDiagnosticsInstanceView",
"VirtualMachineScaleSetsAdditionalUnattendContent",
"VirtualMachineScaleSetsAdditionalUnattendContentList",
"VirtualMachineScaleSetsImageReference",
@@ -62,21 +66,86 @@ public partial class NewAzureComputeParameterObjectCmdlet : ComputeAutomationBas
"VirtualMachineScaleSetsWindowsConfiguration",
"VirtualMachineScaleSetsWinRMConfiguration",
"VirtualMachineScaleSetsWinRMListener",
- "VirtualMachineScaleSetsWinRMListenerList"
+ "VirtualMachineScaleSetsWinRMListenerList",
+ "VirtualMachinesDataDisk",
+ "VirtualMachinesDataDiskList",
+ "VirtualMachinesDiagnosticsProfile",
+ "VirtualMachinesDiskEncryptionSettings",
+ "VirtualMachinesDiskInstanceView",
+ "VirtualMachinesDiskInstanceViewList",
+ "VirtualMachinesHardwareProfile",
+ "VirtualMachinesImageReference",
+ "VirtualMachinesInstanceViewStatus",
+ "VirtualMachinesInstanceViewStatusList",
+ "VirtualMachinesKeyVaultKeyReference",
+ "VirtualMachinesKeyVaultSecretReference",
+ "VirtualMachinesLinuxConfiguration",
+ "VirtualMachinesNetworkInterfaceReference",
+ "VirtualMachinesNetworkInterfaceReferenceList",
+ "VirtualMachinesNetworkProfile",
+ "VirtualMachinesOSDisk",
+ "VirtualMachinesOSProfile",
+ "VirtualMachinesPlan",
+ "VirtualMachinesSshConfiguration",
+ "VirtualMachinesSshPublicKey",
+ "VirtualMachinesSshPublicKeyList",
+ "VirtualMachinesStorageProfile",
+ "VirtualMachinesSubResource",
+ "VirtualMachinesVaultSecretGroup",
+ "VirtualMachinesVaultSecretGroupList",
+ "VirtualMachinesVirtualHardDisk",
+ "VirtualMachinesVirtualMachine",
+ "VirtualMachinesVirtualMachineAgentInstanceView",
+ "VirtualMachinesVirtualMachineCaptureParameters",
+ "VirtualMachinesVirtualMachineExtension",
+ "VirtualMachinesVirtualMachineExtensionHandlerInstanceView",
+ "VirtualMachinesVirtualMachineExtensionHandlerInstanceViewList",
+ "VirtualMachinesVirtualMachineExtensionInstanceView",
+ "VirtualMachinesVirtualMachineExtensionInstanceViewList",
+ "VirtualMachinesVirtualMachineExtensionList",
+ "VirtualMachinesVirtualMachineInstanceView",
+ "VirtualMachinesWindowsConfiguration",
+ "VirtualMachinesWinRMConfiguration",
+ "VirtualMachinesWinRMListener",
+ "VirtualMachinesWinRMListenerList"
)]
public string FriendlyName { get; set; }
[Parameter(ParameterSetName = "CreateParameterObjectByFullName", Mandatory = true, Position = 0)]
[ValidateSet(
"Microsoft.Azure.Management.Compute.Models.AdditionalUnattendContent",
+ "Microsoft.Azure.Management.Compute.Models.BootDiagnostics",
+ "Microsoft.Azure.Management.Compute.Models.BootDiagnosticsInstanceView",
+ "Microsoft.Azure.Management.Compute.Models.DataDisk",
+ "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile",
+ "Microsoft.Azure.Management.Compute.Models.DiskEncryptionSettings",
+ "Microsoft.Azure.Management.Compute.Models.DiskInstanceView",
+ "Microsoft.Azure.Management.Compute.Models.HardwareProfile",
"Microsoft.Azure.Management.Compute.Models.ImageReference",
+ "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus",
+ "Microsoft.Azure.Management.Compute.Models.KeyVaultKeyReference",
+ "Microsoft.Azure.Management.Compute.Models.KeyVaultSecretReference",
"Microsoft.Azure.Management.Compute.Models.LinuxConfiguration",
+ "Microsoft.Azure.Management.Compute.Models.NetworkInterfaceReference",
+ "Microsoft.Azure.Management.Compute.Models.NetworkProfile",
+ "Microsoft.Azure.Management.Compute.Models.OSDisk",
+ "Microsoft.Azure.Management.Compute.Models.OSProfile",
+ "Microsoft.Azure.Management.Compute.Models.Plan",
"Microsoft.Azure.Management.Compute.Models.Sku",
"Microsoft.Azure.Management.Compute.Models.SshConfiguration",
"Microsoft.Azure.Management.Compute.Models.SshPublicKey",
+ "Microsoft.Azure.Management.Compute.Models.StorageProfile",
+ "Microsoft.Azure.Management.Compute.Models.SubResource",
"Microsoft.Azure.Management.Compute.Models.UpgradePolicy",
"Microsoft.Azure.Management.Compute.Models.VaultSecretGroup",
"Microsoft.Azure.Management.Compute.Models.VirtualHardDisk",
+ "Microsoft.Azure.Management.Compute.Models.VirtualMachine",
+ "Microsoft.Azure.Management.Compute.Models.VirtualMachineAgentInstanceView",
+ "Microsoft.Azure.Management.Compute.Models.VirtualMachineCaptureParameters",
+ "Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension",
+ "Microsoft.Azure.Management.Compute.Models.VirtualMachineExtensionHandlerInstanceView",
+ "Microsoft.Azure.Management.Compute.Models.VirtualMachineExtensionInstanceView",
+ "Microsoft.Azure.Management.Compute.Models.VirtualMachineInstanceView",
"Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet",
"Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetExtension",
"Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetExtensionProfile",
@@ -90,8 +159,15 @@ public partial class NewAzureComputeParameterObjectCmdlet : ComputeAutomationBas
"Microsoft.Azure.Management.Compute.Models.WinRMConfiguration",
"Microsoft.Azure.Management.Compute.Models.WinRMListener",
"System.Collections.Generic.List",
+ "System.Collections.Generic.List",
+ "System.Collections.Generic.List",
+ "System.Collections.Generic.List",
+ "System.Collections.Generic.List",
"System.Collections.Generic.List",
"System.Collections.Generic.List",
+ "System.Collections.Generic.List",
+ "System.Collections.Generic.List",
+ "System.Collections.Generic.List",
"System.Collections.Generic.List",
"System.Collections.Generic.List",
"System.Collections.Generic.List"
@@ -107,6 +183,10 @@ protected override void ProcessRecord()
{
switch (FriendlyName)
{
+ case "VirtualMachinesAdditionalUnattendContent" : WriteObject(new AdditionalUnattendContent()); break;
+ case "VirtualMachinesAdditionalUnattendContentList" : WriteObject(new List()); break;
+ case "VirtualMachinesBootDiagnostics" : WriteObject(new BootDiagnostics()); break;
+ case "VirtualMachinesBootDiagnosticsInstanceView" : WriteObject(new BootDiagnosticsInstanceView()); break;
case "VirtualMachineScaleSetsAdditionalUnattendContent" : WriteObject(new AdditionalUnattendContent()); break;
case "VirtualMachineScaleSetsAdditionalUnattendContentList" : WriteObject(new List()); break;
case "VirtualMachineScaleSetsImageReference" : WriteObject(new ImageReference()); break;
@@ -134,6 +214,47 @@ protected override void ProcessRecord()
case "VirtualMachineScaleSetsWinRMConfiguration" : WriteObject(new WinRMConfiguration()); break;
case "VirtualMachineScaleSetsWinRMListener" : WriteObject(new WinRMListener()); break;
case "VirtualMachineScaleSetsWinRMListenerList" : WriteObject(new List()); break;
+ case "VirtualMachinesDataDisk" : WriteObject(new DataDisk()); break;
+ case "VirtualMachinesDataDiskList" : WriteObject(new List()); break;
+ case "VirtualMachinesDiagnosticsProfile" : WriteObject(new DiagnosticsProfile()); break;
+ case "VirtualMachinesDiskEncryptionSettings" : WriteObject(new DiskEncryptionSettings()); break;
+ case "VirtualMachinesDiskInstanceView" : WriteObject(new DiskInstanceView()); break;
+ case "VirtualMachinesDiskInstanceViewList" : WriteObject(new List()); break;
+ case "VirtualMachinesHardwareProfile" : WriteObject(new HardwareProfile()); break;
+ case "VirtualMachinesImageReference" : WriteObject(new ImageReference()); break;
+ case "VirtualMachinesInstanceViewStatus" : WriteObject(new InstanceViewStatus()); break;
+ case "VirtualMachinesInstanceViewStatusList" : WriteObject(new List()); break;
+ case "VirtualMachinesKeyVaultKeyReference" : WriteObject(new KeyVaultKeyReference()); break;
+ case "VirtualMachinesKeyVaultSecretReference" : WriteObject(new KeyVaultSecretReference()); break;
+ case "VirtualMachinesLinuxConfiguration" : WriteObject(new LinuxConfiguration()); break;
+ case "VirtualMachinesNetworkInterfaceReference" : WriteObject(new NetworkInterfaceReference()); break;
+ case "VirtualMachinesNetworkInterfaceReferenceList" : WriteObject(new List()); break;
+ case "VirtualMachinesNetworkProfile" : WriteObject(new NetworkProfile()); break;
+ case "VirtualMachinesOSDisk" : WriteObject(new OSDisk()); break;
+ case "VirtualMachinesOSProfile" : WriteObject(new OSProfile()); break;
+ case "VirtualMachinesPlan" : WriteObject(new Plan()); break;
+ case "VirtualMachinesSshConfiguration" : WriteObject(new SshConfiguration()); break;
+ case "VirtualMachinesSshPublicKey" : WriteObject(new SshPublicKey()); break;
+ case "VirtualMachinesSshPublicKeyList" : WriteObject(new List()); break;
+ case "VirtualMachinesStorageProfile" : WriteObject(new StorageProfile()); break;
+ case "VirtualMachinesSubResource" : WriteObject(new SubResource()); break;
+ case "VirtualMachinesVaultSecretGroup" : WriteObject(new VaultSecretGroup()); break;
+ case "VirtualMachinesVaultSecretGroupList" : WriteObject(new List()); break;
+ case "VirtualMachinesVirtualHardDisk" : WriteObject(new VirtualHardDisk()); break;
+ case "VirtualMachinesVirtualMachine" : WriteObject(new VirtualMachine()); break;
+ case "VirtualMachinesVirtualMachineAgentInstanceView" : WriteObject(new VirtualMachineAgentInstanceView()); break;
+ case "VirtualMachinesVirtualMachineCaptureParameters" : WriteObject(new VirtualMachineCaptureParameters()); break;
+ case "VirtualMachinesVirtualMachineExtension" : WriteObject(new VirtualMachineExtension()); break;
+ case "VirtualMachinesVirtualMachineExtensionHandlerInstanceView" : WriteObject(new VirtualMachineExtensionHandlerInstanceView()); break;
+ case "VirtualMachinesVirtualMachineExtensionHandlerInstanceViewList" : WriteObject(new List()); break;
+ case "VirtualMachinesVirtualMachineExtensionInstanceView" : WriteObject(new VirtualMachineExtensionInstanceView()); break;
+ case "VirtualMachinesVirtualMachineExtensionInstanceViewList" : WriteObject(new List()); break;
+ case "VirtualMachinesVirtualMachineExtensionList" : WriteObject(new List()); break;
+ case "VirtualMachinesVirtualMachineInstanceView" : WriteObject(new VirtualMachineInstanceView()); break;
+ case "VirtualMachinesWindowsConfiguration" : WriteObject(new WindowsConfiguration()); break;
+ case "VirtualMachinesWinRMConfiguration" : WriteObject(new WinRMConfiguration()); break;
+ case "VirtualMachinesWinRMListener" : WriteObject(new WinRMListener()); break;
+ case "VirtualMachinesWinRMListenerList" : WriteObject(new List()); break;
default : WriteWarning("Cannot find the type by FriendlyName = '" + FriendlyName + "'."); break;
}
}
@@ -142,14 +263,38 @@ protected override void ProcessRecord()
switch (FullName)
{
case "Microsoft.Azure.Management.Compute.Models.AdditionalUnattendContent" : WriteObject(new AdditionalUnattendContent()); break;
+ case "Microsoft.Azure.Management.Compute.Models.BootDiagnostics" : WriteObject(new BootDiagnostics()); break;
+ case "Microsoft.Azure.Management.Compute.Models.BootDiagnosticsInstanceView" : WriteObject(new BootDiagnosticsInstanceView()); break;
+ case "Microsoft.Azure.Management.Compute.Models.DataDisk" : WriteObject(new DataDisk()); break;
+ case "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile" : WriteObject(new DiagnosticsProfile()); break;
+ case "Microsoft.Azure.Management.Compute.Models.DiskEncryptionSettings" : WriteObject(new DiskEncryptionSettings()); break;
+ case "Microsoft.Azure.Management.Compute.Models.DiskInstanceView" : WriteObject(new DiskInstanceView()); break;
+ case "Microsoft.Azure.Management.Compute.Models.HardwareProfile" : WriteObject(new HardwareProfile()); break;
case "Microsoft.Azure.Management.Compute.Models.ImageReference" : WriteObject(new ImageReference()); break;
+ case "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus" : WriteObject(new InstanceViewStatus()); break;
+ case "Microsoft.Azure.Management.Compute.Models.KeyVaultKeyReference" : WriteObject(new KeyVaultKeyReference()); break;
+ case "Microsoft.Azure.Management.Compute.Models.KeyVaultSecretReference" : WriteObject(new KeyVaultSecretReference()); break;
case "Microsoft.Azure.Management.Compute.Models.LinuxConfiguration" : WriteObject(new LinuxConfiguration()); break;
+ case "Microsoft.Azure.Management.Compute.Models.NetworkInterfaceReference" : WriteObject(new NetworkInterfaceReference()); break;
+ case "Microsoft.Azure.Management.Compute.Models.NetworkProfile" : WriteObject(new NetworkProfile()); break;
+ case "Microsoft.Azure.Management.Compute.Models.OSDisk" : WriteObject(new OSDisk()); break;
+ case "Microsoft.Azure.Management.Compute.Models.OSProfile" : WriteObject(new OSProfile()); break;
+ case "Microsoft.Azure.Management.Compute.Models.Plan" : WriteObject(new Plan()); break;
case "Microsoft.Azure.Management.Compute.Models.Sku" : WriteObject(new Sku()); break;
case "Microsoft.Azure.Management.Compute.Models.SshConfiguration" : WriteObject(new SshConfiguration()); break;
case "Microsoft.Azure.Management.Compute.Models.SshPublicKey" : WriteObject(new SshPublicKey()); break;
+ case "Microsoft.Azure.Management.Compute.Models.StorageProfile" : WriteObject(new StorageProfile()); break;
+ case "Microsoft.Azure.Management.Compute.Models.SubResource" : WriteObject(new SubResource()); break;
case "Microsoft.Azure.Management.Compute.Models.UpgradePolicy" : WriteObject(new UpgradePolicy()); break;
case "Microsoft.Azure.Management.Compute.Models.VaultSecretGroup" : WriteObject(new VaultSecretGroup()); break;
case "Microsoft.Azure.Management.Compute.Models.VirtualHardDisk" : WriteObject(new VirtualHardDisk()); break;
+ case "Microsoft.Azure.Management.Compute.Models.VirtualMachine" : WriteObject(new VirtualMachine()); break;
+ case "Microsoft.Azure.Management.Compute.Models.VirtualMachineAgentInstanceView" : WriteObject(new VirtualMachineAgentInstanceView()); break;
+ case "Microsoft.Azure.Management.Compute.Models.VirtualMachineCaptureParameters" : WriteObject(new VirtualMachineCaptureParameters()); break;
+ case "Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension" : WriteObject(new VirtualMachineExtension()); break;
+ case "Microsoft.Azure.Management.Compute.Models.VirtualMachineExtensionHandlerInstanceView" : WriteObject(new VirtualMachineExtensionHandlerInstanceView()); break;
+ case "Microsoft.Azure.Management.Compute.Models.VirtualMachineExtensionInstanceView" : WriteObject(new VirtualMachineExtensionInstanceView()); break;
+ case "Microsoft.Azure.Management.Compute.Models.VirtualMachineInstanceView" : WriteObject(new VirtualMachineInstanceView()); break;
case "Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet" : WriteObject(new VirtualMachineScaleSet()); break;
case "Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetExtension" : WriteObject(new VirtualMachineScaleSetExtension()); break;
case "Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetExtensionProfile" : WriteObject(new VirtualMachineScaleSetExtensionProfile()); break;
@@ -163,8 +308,15 @@ protected override void ProcessRecord()
case "Microsoft.Azure.Management.Compute.Models.WinRMConfiguration" : WriteObject(new WinRMConfiguration()); break;
case "Microsoft.Azure.Management.Compute.Models.WinRMListener" : WriteObject(new WinRMListener()); break;
case "System.Collections.Generic.List" : WriteObject(new List()); break;
+ case "System.Collections.Generic.List" : WriteObject(new List()); break;
+ case "System.Collections.Generic.List" : WriteObject(new List()); break;
+ case "System.Collections.Generic.List" : WriteObject(new List()); break;
+ case "System.Collections.Generic.List" : WriteObject(new List()); break;
case "System.Collections.Generic.List" : WriteObject(new List()); break;
case "System.Collections.Generic.List" : WriteObject(new List()); break;
+ case "System.Collections.Generic.List" : WriteObject(new List()); break;
+ case "System.Collections.Generic.List" : WriteObject(new List()); break;
+ case "System.Collections.Generic.List" : WriteObject(new List()); break;
case "System.Collections.Generic.List" : WriteObject(new List()); break;
case "System.Collections.Generic.List" : WriteObject(new List()); break;
case "System.Collections.Generic.List" : WriteObject(new List()); break;
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineCaptureMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineCaptureMethod.cs
new file mode 100644
index 000000000000..7261100ba501
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineCaptureMethod.cs
@@ -0,0 +1,113 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineCaptureDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pParameters = new RuntimeDefinedParameter();
+ pParameters.Name = "VirtualMachineCaptureParameter";
+ pParameters.ParameterType = typeof(VirtualMachineCaptureParameters);
+ pParameters.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 3,
+ Mandatory = false
+ });
+ pParameters.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VirtualMachineCaptureParameter", pParameters);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 4,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineCaptureMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+ VirtualMachineCaptureParameters parameters = (VirtualMachineCaptureParameters)ParseParameter(invokeMethodInputParameters[2]);
+
+ var result = VirtualMachinesClient.Capture(resourceGroupName, vmName, parameters);
+ WriteObject(result);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineCaptureParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+ VirtualMachineCaptureParameters parameters = new VirtualMachineCaptureParameters();
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName", "Parameters" },
+ new object[] { resourceGroupName, vmName, parameters });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineCreateOrUpdateMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineCreateOrUpdateMethod.cs
new file mode 100644
index 000000000000..2e62b2b551cf
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineCreateOrUpdateMethod.cs
@@ -0,0 +1,113 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineCreateOrUpdateDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pParameters = new RuntimeDefinedParameter();
+ pParameters.Name = "VirtualMachineCreateOrUpdateParameter";
+ pParameters.ParameterType = typeof(VirtualMachine);
+ pParameters.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 3,
+ Mandatory = false
+ });
+ pParameters.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VirtualMachineCreateOrUpdateParameter", pParameters);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 4,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineCreateOrUpdateMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+ VirtualMachine parameters = (VirtualMachine)ParseParameter(invokeMethodInputParameters[2]);
+
+ var result = VirtualMachinesClient.CreateOrUpdate(resourceGroupName, vmName, parameters);
+ WriteObject(result);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineCreateOrUpdateParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+ VirtualMachine parameters = new VirtualMachine();
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName", "Parameters" },
+ new object[] { resourceGroupName, vmName, parameters });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineDeallocateMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineDeallocateMethod.cs
new file mode 100644
index 000000000000..c9380a3ba051
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineDeallocateMethod.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineDeallocateDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineDeallocateMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ VirtualMachinesClient.Deallocate(resourceGroupName, vmName);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineDeallocateParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineDeleteMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineDeleteMethod.cs
new file mode 100644
index 000000000000..f8e240d70285
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineDeleteMethod.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineDeleteDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineDeleteMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ VirtualMachinesClient.Delete(resourceGroupName, vmName);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineDeleteParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineGeneralizeMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineGeneralizeMethod.cs
new file mode 100644
index 000000000000..6c2cfb76826e
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineGeneralizeMethod.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineGeneralizeDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineGeneralizeMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ VirtualMachinesClient.Generalize(resourceGroupName, vmName);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineGeneralizeParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineGetMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineGetMethod.cs
new file mode 100644
index 000000000000..9a6275eb30a4
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineGetMethod.cs
@@ -0,0 +1,127 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineGetDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pExpand = new RuntimeDefinedParameter();
+ pExpand.Name = "Expand";
+ pExpand.ParameterType = typeof(string);
+ pExpand.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 3,
+ Mandatory = false
+ });
+ pExpand.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("Expand", pExpand);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 4,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineGetMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+ string expand = (string)ParseParameter(invokeMethodInputParameters[2]);
+
+ if (!string.IsNullOrEmpty(resourceGroupName) && !string.IsNullOrEmpty(vmName) && !string.IsNullOrEmpty(expand))
+ {
+ var result = VirtualMachinesClient.Get(resourceGroupName, vmName, expand);
+ WriteObject(result);
+ }
+ else if (!string.IsNullOrEmpty(resourceGroupName))
+ {
+ var result = VirtualMachinesClient.List(resourceGroupName);
+ WriteObject(result);
+ }
+ else
+ {
+ var result = VirtualMachinesClient.ListAll();
+ WriteObject(result);
+ }
+ }
+
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineGetParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+ string expand = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName", "Expand" },
+ new object[] { resourceGroupName, vmName, expand });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAllMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAllMethod.cs
new file mode 100644
index 000000000000..8ac83b0bdc00
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAllMethod.cs
@@ -0,0 +1,79 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineListAllDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 1,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineListAllMethod(object[] invokeMethodInputParameters)
+ {
+
+ var result = VirtualMachinesClient.ListAll();
+ var resultList = result.ToList();
+ var nextPageLink = result.NextPageLink;
+ while (!string.IsNullOrEmpty(nextPageLink))
+ {
+ var pageResult = VirtualMachinesClient.ListAllNext(nextPageLink);
+ foreach (var pageItem in pageResult)
+ {
+ resultList.Add(pageItem);
+ }
+ nextPageLink = pageResult.NextPageLink;
+ }
+ WriteObject(resultList, true);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineListAllParameters()
+ {
+ return ConvertFromObjectsToArguments(new string[0], new object[0]);
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAllNextMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAllNextMethod.cs
new file mode 100644
index 000000000000..d6321db093bb
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAllNextMethod.cs
@@ -0,0 +1,85 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineListAllNextDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pNextPageLink = new RuntimeDefinedParameter();
+ pNextPageLink.Name = "NextPageLink";
+ pNextPageLink.ParameterType = typeof(string);
+ pNextPageLink.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pNextPageLink.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("NextPageLink", pNextPageLink);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 2,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineListAllNextMethod(object[] invokeMethodInputParameters)
+ {
+ string nextPageLink = (string)ParseParameter(invokeMethodInputParameters[0]);
+
+ var result = VirtualMachinesClient.ListAllNext(nextPageLink);
+ WriteObject(result);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineListAllNextParameters()
+ {
+ string nextPageLink = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "NextPageLink" },
+ new object[] { nextPageLink });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAvailableSizesMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAvailableSizesMethod.cs
new file mode 100644
index 000000000000..a8a9d6759870
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAvailableSizesMethod.cs
@@ -0,0 +1,110 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineListAvailableSizesDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineListAvailableSizesMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ var result = VirtualMachinesClient.ListAvailableSizes(resourceGroupName, vmName);
+ var resultList = result.ToList();
+ var nextPageLink = result.NextPageLink;
+ while (!string.IsNullOrEmpty(nextPageLink))
+ {
+ var pageResult = VirtualMachinesClient.ListAvailableSizesNext(nextPageLink);
+ foreach (var pageItem in pageResult)
+ {
+ resultList.Add(pageItem);
+ }
+ nextPageLink = pageResult.NextPageLink;
+ }
+ WriteObject(resultList, true);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineListAvailableSizesParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAvailableSizesNextMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAvailableSizesNextMethod.cs
new file mode 100644
index 000000000000..2806825b1cdc
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListAvailableSizesNextMethod.cs
@@ -0,0 +1,85 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineListAvailableSizesNextDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pNextPageLink = new RuntimeDefinedParameter();
+ pNextPageLink.Name = "NextPageLink";
+ pNextPageLink.ParameterType = typeof(string);
+ pNextPageLink.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pNextPageLink.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("NextPageLink", pNextPageLink);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 2,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineListAvailableSizesNextMethod(object[] invokeMethodInputParameters)
+ {
+ string nextPageLink = (string)ParseParameter(invokeMethodInputParameters[0]);
+
+ var result = VirtualMachinesClient.ListAvailableSizesNext(nextPageLink);
+ WriteObject(result);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineListAvailableSizesNextParameters()
+ {
+ string nextPageLink = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "NextPageLink" },
+ new object[] { nextPageLink });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListMethod.cs
new file mode 100644
index 000000000000..bc4fb12b1a39
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListMethod.cs
@@ -0,0 +1,96 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineListDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 2,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineListMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+
+ var result = VirtualMachinesClient.List(resourceGroupName);
+ var resultList = result.ToList();
+ var nextPageLink = result.NextPageLink;
+ while (!string.IsNullOrEmpty(nextPageLink))
+ {
+ var pageResult = VirtualMachinesClient.ListNext(nextPageLink);
+ foreach (var pageItem in pageResult)
+ {
+ resultList.Add(pageItem);
+ }
+ nextPageLink = pageResult.NextPageLink;
+ }
+ WriteObject(resultList, true);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineListParameters()
+ {
+ string resourceGroupName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName" },
+ new object[] { resourceGroupName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListNextMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListNextMethod.cs
new file mode 100644
index 000000000000..b045a1cc2b40
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineListNextMethod.cs
@@ -0,0 +1,85 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineListNextDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pNextPageLink = new RuntimeDefinedParameter();
+ pNextPageLink.Name = "NextPageLink";
+ pNextPageLink.ParameterType = typeof(string);
+ pNextPageLink.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pNextPageLink.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("NextPageLink", pNextPageLink);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 2,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineListNextMethod(object[] invokeMethodInputParameters)
+ {
+ string nextPageLink = (string)ParseParameter(invokeMethodInputParameters[0]);
+
+ var result = VirtualMachinesClient.ListNext(nextPageLink);
+ WriteObject(result);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineListNextParameters()
+ {
+ string nextPageLink = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "NextPageLink" },
+ new object[] { nextPageLink });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachinePowerOffMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachinePowerOffMethod.cs
new file mode 100644
index 000000000000..f01a716ef83c
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachinePowerOffMethod.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachinePowerOffDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachinePowerOffMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ VirtualMachinesClient.PowerOff(resourceGroupName, vmName);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachinePowerOffParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineRedeployMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineRedeployMethod.cs
new file mode 100644
index 000000000000..adbeae115c77
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineRedeployMethod.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineRedeployDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineRedeployMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ VirtualMachinesClient.Redeploy(resourceGroupName, vmName);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineRedeployParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineRestartMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineRestartMethod.cs
new file mode 100644
index 000000000000..8f4983d29719
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineRestartMethod.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineRestartDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineRestartMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ VirtualMachinesClient.Restart(resourceGroupName, vmName);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineRestartParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineStartMethod.cs b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineStartMethod.cs
new file mode 100644
index 000000000000..b32ca263bfc0
--- /dev/null
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineStartMethod.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft and contributors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Warning: This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if the
+// code is regenerated.
+
+using Microsoft.Azure;
+using Microsoft.Azure.Commands.Compute.Automation.Models;
+using Microsoft.Azure.Management.Compute;
+using Microsoft.Azure.Management.Compute.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.Compute.Automation
+{
+ public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected object CreateVirtualMachineStartDynamicParameters()
+ {
+ dynamicParameters = new RuntimeDefinedParameterDictionary();
+ var pResourceGroupName = new RuntimeDefinedParameter();
+ pResourceGroupName.Name = "ResourceGroupName";
+ pResourceGroupName.ParameterType = typeof(string);
+ pResourceGroupName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 1,
+ Mandatory = false
+ });
+ pResourceGroupName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ResourceGroupName", pResourceGroupName);
+
+ var pVMName = new RuntimeDefinedParameter();
+ pVMName.Name = "VMName";
+ pVMName.ParameterType = typeof(string);
+ pVMName.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByDynamicParameters",
+ Position = 2,
+ Mandatory = false
+ });
+ pVMName.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("VMName", pVMName);
+
+ var pArgumentList = new RuntimeDefinedParameter();
+ pArgumentList.Name = "ArgumentList";
+ pArgumentList.ParameterType = typeof(object[]);
+ pArgumentList.Attributes.Add(new ParameterAttribute
+ {
+ ParameterSetName = "InvokeByStaticParameters",
+ Position = 3,
+ Mandatory = true
+ });
+ pArgumentList.Attributes.Add(new AllowNullAttribute());
+ dynamicParameters.Add("ArgumentList", pArgumentList);
+
+ return dynamicParameters;
+ }
+
+ protected void ExecuteVirtualMachineStartMethod(object[] invokeMethodInputParameters)
+ {
+ string resourceGroupName = (string)ParseParameter(invokeMethodInputParameters[0]);
+ string vmName = (string)ParseParameter(invokeMethodInputParameters[1]);
+
+ VirtualMachinesClient.Start(resourceGroupName, vmName);
+ }
+ }
+
+ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
+ {
+ protected PSArgument[] CreateVirtualMachineStartParameters()
+ {
+ string resourceGroupName = string.Empty;
+ string vmName = string.Empty;
+
+ return ConvertFromObjectsToArguments(
+ new string[] { "ResourceGroupName", "VMName" },
+ new object[] { resourceGroupName, vmName });
+ }
+ }
+}
diff --git a/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js b/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js
index add1e444976e..b4f5859a2eb5 100644
--- a/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js
+++ b/src/ResourceManager/Compute/Commands.Compute/Generated/cli.js
@@ -180,7 +180,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsCreateOrUpdate = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsCreateOrUpdate.command('create-or-update [resource-group-name] [name] [parameters]')
- .description($('Commands to manage your virtual machine scale sets by the create-or-update method.'))
+ .description($('The operation to create or update a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --name ', $('name'))
@@ -290,7 +290,7 @@ exports.init = function (cli) {
.option('--location ', $('Set the location value.'))
.option('--tags ', $('Set the tags value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -425,7 +425,7 @@ exports.init = function (cli) {
.option('--location', $('Remove the location value.'))
.option('--tags', $('Remove the tags value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -512,7 +512,7 @@ exports.init = function (cli) {
.option('--location ', $('Add the location value.'))
.option('--tags ', $('Add the tags value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -644,7 +644,7 @@ exports.init = function (cli) {
.option('--tier ', $('Set the tier value.'))
.option('--capacity ', $('Set the capacity value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -714,7 +714,7 @@ exports.init = function (cli) {
.option('--tier', $('Remove the tier value.'))
.option('--capacity', $('Remove the capacity value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -771,7 +771,7 @@ exports.init = function (cli) {
.option('--tier ', $('Add the tier value.'))
.option('--capacity ', $('Add the capacity value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -842,7 +842,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--mode ', $('Set the mode value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -889,7 +889,7 @@ exports.init = function (cli) {
.option('--parameter-file ', $('The parameter file path.'))
.option('--mode', $('Remove the mode value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -936,7 +936,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--mode ', $('Add the mode value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -989,7 +989,7 @@ exports.init = function (cli) {
.option('--network-profile ', $('Set the network-profile value.'))
.option('--extension-profile ', $('Set the extension-profile value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -1069,7 +1069,7 @@ exports.init = function (cli) {
.option('--network-profile', $('Remove the network-profile value.'))
.option('--extension-profile', $('Remove the extension-profile value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -1131,7 +1131,7 @@ exports.init = function (cli) {
.option('--network-profile ', $('Add the network-profile value.'))
.option('--extension-profile ', $('Add the extension-profile value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -1217,7 +1217,7 @@ exports.init = function (cli) {
.option('--linux-configuration ', $('Set the linux-configuration value.'))
.option('--secrets ', $('Set the secrets value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -1330,7 +1330,7 @@ exports.init = function (cli) {
.option('--linux-configuration', $('Remove the linux-configuration value.'))
.option('--secrets', $('Remove the secrets value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -1407,7 +1407,7 @@ exports.init = function (cli) {
.option('--linux-configuration ', $('Add the linux-configuration value.'))
.option('--secrets ', $('Add the secrets value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -1521,7 +1521,7 @@ exports.init = function (cli) {
.option('--additional-unattend-content ', $('Set the additional-unattend-content value.'))
.option('--win-rm ', $('Set the win-rm value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -1614,7 +1614,7 @@ exports.init = function (cli) {
.option('--additional-unattend-content', $('Remove the additional-unattend-content value.'))
.option('--win-rm', $('Remove the win-rm value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -1681,7 +1681,7 @@ exports.init = function (cli) {
.option('--additional-unattend-content ', $('Add the additional-unattend-content value.'))
.option('--win-rm ', $('Add the win-rm value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -1778,7 +1778,7 @@ exports.init = function (cli) {
.option('--setting-name ', $('Set the setting-name value.'))
.option('--content ', $('Set the content value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -1862,7 +1862,7 @@ exports.init = function (cli) {
.option('--setting-name', $('Remove the setting-name value.'))
.option('--content', $('Remove the content value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -1924,7 +1924,7 @@ exports.init = function (cli) {
.option('--setting-name ', $('Add the setting-name value.'))
.option('--content ', $('Add the content value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2004,7 +2004,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--listeners ', $('Set the listeners value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2051,7 +2051,7 @@ exports.init = function (cli) {
.option('--parameter-file ', $('The parameter file path.'))
.option('--listeners', $('Remove the listeners value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -2098,7 +2098,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--listeners ', $('Add the listeners value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2151,7 +2151,7 @@ exports.init = function (cli) {
.option('--protocol ', $('Set the protocol value.'))
.option('--certificate-url ', $('Set the certificate-url value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2213,7 +2213,7 @@ exports.init = function (cli) {
.option('--protocol', $('Remove the protocol value.'))
.option('--certificate-url', $('Remove the certificate-url value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -2265,7 +2265,7 @@ exports.init = function (cli) {
.option('--protocol ', $('Add the protocol value.'))
.option('--certificate-url ', $('Add the certificate-url value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2326,7 +2326,7 @@ exports.init = function (cli) {
.option('--disable-password-authentication ', $('Set the disable-password-authentication value.'))
.option('--ssh ', $('Set the ssh value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2385,7 +2385,7 @@ exports.init = function (cli) {
.option('--disable-password-authentication', $('Remove the disable-password-authentication value.'))
.option('--ssh', $('Remove the ssh value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -2437,7 +2437,7 @@ exports.init = function (cli) {
.option('--disable-password-authentication ', $('Add the disable-password-authentication value.'))
.option('--ssh ', $('Add the ssh value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2498,7 +2498,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--public-keys ', $('Set the public-keys value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2545,7 +2545,7 @@ exports.init = function (cli) {
.option('--parameter-file ', $('The parameter file path.'))
.option('--public-keys', $('Remove the public-keys value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -2592,7 +2592,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--public-keys ', $('Add the public-keys value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2645,7 +2645,7 @@ exports.init = function (cli) {
.option('--path ', $('Set the path value.'))
.option('--key-data ', $('Set the key-data value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2707,7 +2707,7 @@ exports.init = function (cli) {
.option('--path', $('Remove the path value.'))
.option('--key-data', $('Remove the key-data value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -2759,7 +2759,7 @@ exports.init = function (cli) {
.option('--path ', $('Add the path value.'))
.option('--key-data ', $('Add the key-data value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2822,7 +2822,7 @@ exports.init = function (cli) {
.option('--source-vault ', $('Set the source-vault value.'))
.option('--vault-certificates ', $('Set the vault-certificates value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2884,7 +2884,7 @@ exports.init = function (cli) {
.option('--source-vault', $('Remove the source-vault value.'))
.option('--vault-certificates', $('Remove the vault-certificates value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -2936,7 +2936,7 @@ exports.init = function (cli) {
.option('--source-vault ', $('Add the source-vault value.'))
.option('--vault-certificates ', $('Add the vault-certificates value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -2997,7 +2997,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Set the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3045,7 +3045,7 @@ exports.init = function (cli) {
.option('--secrets-index ', $('Indexer: secrets-index.'))
.option('--id', $('Remove the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -3092,7 +3092,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Add the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3146,7 +3146,7 @@ exports.init = function (cli) {
.option('--certificate-url ', $('Set the certificate-url value.'))
.option('--certificate-store ', $('Set the certificate-store value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3209,7 +3209,7 @@ exports.init = function (cli) {
.option('--certificate-url', $('Remove the certificate-url value.'))
.option('--certificate-store', $('Remove the certificate-store value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -3261,7 +3261,7 @@ exports.init = function (cli) {
.option('--certificate-url ', $('Add the certificate-url value.'))
.option('--certificate-store ', $('Add the certificate-store value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3322,7 +3322,7 @@ exports.init = function (cli) {
.option('--image-reference ', $('Set the image-reference value.'))
.option('--os-disk ', $('Set the os-disk value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3380,7 +3380,7 @@ exports.init = function (cli) {
.option('--image-reference', $('Remove the image-reference value.'))
.option('--os-disk', $('Remove the os-disk value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -3432,7 +3432,7 @@ exports.init = function (cli) {
.option('--image-reference ', $('Add the image-reference value.'))
.option('--os-disk ', $('Add the os-disk value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3495,7 +3495,7 @@ exports.init = function (cli) {
.option('--sku ', $('Set the sku value.'))
.option('--version ', $('Set the version value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3575,7 +3575,7 @@ exports.init = function (cli) {
.option('--sku', $('Remove the sku value.'))
.option('--version', $('Remove the version value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -3637,7 +3637,7 @@ exports.init = function (cli) {
.option('--sku ', $('Add the sku value.'))
.option('--version ', $('Add the version value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3722,7 +3722,7 @@ exports.init = function (cli) {
.option('--image ', $('Set the image value.'))
.option('--vhd-containers ', $('Set the vhd-containers value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3824,7 +3824,7 @@ exports.init = function (cli) {
.option('--image', $('Remove the image value.'))
.option('--vhd-containers', $('Remove the vhd-containers value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -3896,7 +3896,7 @@ exports.init = function (cli) {
.option('--image ', $('Add the image value.'))
.option('--vhd-containers ', $('Add the vhd-containers value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -3996,7 +3996,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--uri ', $('Set the uri value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4043,7 +4043,7 @@ exports.init = function (cli) {
.option('--parameter-file ', $('The parameter file path.'))
.option('--uri', $('Remove the uri value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -4090,7 +4090,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--uri ', $('Add the uri value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4141,7 +4141,7 @@ exports.init = function (cli) {
.option('--value ', $('The input string value for the indexed item.'))
.option('--parse', $('Parse the input value string to a JSON object.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4181,7 +4181,7 @@ exports.init = function (cli) {
.option('--parameter-file ', $('The parameter file path.'))
.option('--index ', $('Indexer: index.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -4217,7 +4217,7 @@ exports.init = function (cli) {
.option('--value ', $('The JSON value.'))
.option('--parse', $('Parse the input value string to a JSON object.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4257,7 +4257,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--network-interface-configurations ', $('Set the network-interface-configurations value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4304,7 +4304,7 @@ exports.init = function (cli) {
.option('--parameter-file ', $('The parameter file path.'))
.option('--network-interface-configurations', $('Remove the network-interface-configurations value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -4351,7 +4351,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--network-interface-configurations ', $('Add the network-interface-configurations value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4406,7 +4406,7 @@ exports.init = function (cli) {
.option('--ip-configurations ', $('Set the ip-configurations value.'))
.option('--id ', $('Set the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4491,7 +4491,7 @@ exports.init = function (cli) {
.option('--ip-configurations', $('Remove the ip-configurations value.'))
.option('--id', $('Remove the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -4553,7 +4553,7 @@ exports.init = function (cli) {
.option('--ip-configurations ', $('Add the ip-configurations value.'))
.option('--id ', $('Add the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4641,7 +4641,7 @@ exports.init = function (cli) {
.option('--load-balancer-inbound-nat-pools ', $('Set the load-balancer-inbound-nat-pools value.'))
.option('--id ', $('Set the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4737,7 +4737,7 @@ exports.init = function (cli) {
.option('--load-balancer-inbound-nat-pools', $('Remove the load-balancer-inbound-nat-pools value.'))
.option('--id', $('Remove the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -4804,7 +4804,7 @@ exports.init = function (cli) {
.option('--load-balancer-inbound-nat-pools ', $('Add the load-balancer-inbound-nat-pools value.'))
.option('--id ', $('Add the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4896,7 +4896,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Set the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -4945,7 +4945,7 @@ exports.init = function (cli) {
.option('--network-interface-configurations-index ', $('Indexer: network-interface-configurations-index.'))
.option('--id', $('Remove the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -4992,7 +4992,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Add the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5046,7 +5046,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Set the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5099,7 +5099,7 @@ exports.init = function (cli) {
.option('--network-interface-configurations-index ', $('Indexer: network-interface-configurations-index.'))
.option('--id', $('Remove the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -5146,7 +5146,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Add the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5200,7 +5200,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Set the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5253,7 +5253,7 @@ exports.init = function (cli) {
.option('--network-interface-configurations-index ', $('Indexer: network-interface-configurations-index.'))
.option('--id', $('Remove the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -5300,7 +5300,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--id ', $('Add the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5350,7 +5350,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--extensions ', $('Set the extensions value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5397,7 +5397,7 @@ exports.init = function (cli) {
.option('--parameter-file ', $('The parameter file path.'))
.option('--extensions', $('Remove the extensions value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -5444,7 +5444,7 @@ exports.init = function (cli) {
.option('--parse', $('Parse the input value string to a JSON object.'))
.option('--extensions ', $('Add the extensions value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5504,7 +5504,7 @@ exports.init = function (cli) {
.option('--provisioning-state ', $('Set the provisioning-state value.'))
.option('--id ', $('Set the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5644,7 +5644,7 @@ exports.init = function (cli) {
.option('--provisioning-state', $('Remove the provisioning-state value.'))
.option('--id', $('Remove the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
cli.output.verbose('=====================================');
cli.output.verbose('Reading file content from: \"' + options.parameterFile + '\"');
cli.output.verbose('=====================================');
@@ -5731,7 +5731,7 @@ exports.init = function (cli) {
.option('--provisioning-state ', $('Add the provisioning-state value.'))
.option('--id ', $('Add the id value.'))
.execute(function(options, _) {
- cli.output.verbose(JSON.stringify(options));
+ cli.output.verbose(JSON.stringify(options), _);
if (options.parse && options.value) {
options.value = JSON.parse(options.value);
}
@@ -5859,7 +5859,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsDeallocate = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsDeallocate.command('deallocate [resource-group-name] [vm-scale-set-name] [instance-ids]')
- .description($('Commands to manage your virtual machine scale sets by the deallocate method.'))
+ .description($('The operation to deallocate virtual machines in a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -5898,7 +5898,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsDelete = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsDelete.command('delete [resource-group-name] [vm-scale-set-name]')
- .description($('Commands to manage your virtual machine scale sets by the delete method.'))
+ .description($('The operation to delete a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -5921,7 +5921,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsDeleteInstances = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsDeleteInstances.command('delete-instances [resource-group-name] [vm-scale-set-name] [instance-ids]')
- .description($('Commands to manage your virtual machine scale sets by the delete-instances method.'))
+ .description($('The operation to delete virtual machines in a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -5960,7 +5960,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsGet = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsGet.command('get [resource-group-name] [vm-scale-set-name]')
- .description($('Commands to manage your virtual machine scale sets by the get method.'))
+ .description($('The operation to get a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -5982,7 +5982,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsGetInstanceView = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsGetInstanceView.command('get-instance-view [resource-group-name] [vm-scale-set-name]')
- .description($('Commands to manage your virtual machine scale sets by the get-instance-view method.'))
+ .description($('The operation to get a virtual machine scale set instance view.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6003,7 +6003,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsList = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsList.command('list [resource-group-name]')
- .description($('Commands to manage your virtual machine scale sets by the list method.'))
+ .description($('The operation to list virtual machine scale sets under a resource group.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('--parameter-file ', $('the input parameter file'))
@@ -6021,7 +6021,19 @@ exports.init = function (cli) {
});
nextPageLink = pageResult.nextPageLink;
}
- cli.output.json(result);
+
+ if (cli.output.format().json) {
+ cli.output.json(result);
+ }
+ else {
+ cli.output.table(result, function (row, item) {
+ var rgName = item.id ? utils.parseResourceReferenceUri(item.id).resourceGroupName : null;
+ row.cell($('ResourceGroupName'), rgName);
+ row.cell($('Name'), item.name);
+ row.cell($('ProvisioningState'), item.provisioningState);
+ row.cell($('Location'), item.location);
+ });
+ }
});
/*
VirtualMachineScaleSets ListAll
@@ -6029,7 +6041,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsListAll = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsListAll.command('list-all')
- .description($('Commands to manage your virtual machine scale sets by the list-all method.'))
+ .description($('Gets the list of Virtual Machine Scale Sets in the subscription. Use nextLink property in the response to get the next page of Virtual Machine Scale Sets. Do this till nextLink is not null to fetch all the Virtual Machine Scale Sets.'))
.usage('[options]')
.option('--parameter-file ', $('the input parameter file'))
.option('-s, --subscription ', $('the subscription identifier'))
@@ -6045,7 +6057,19 @@ exports.init = function (cli) {
});
nextPageLink = pageResult.nextPageLink;
}
- cli.output.json(result);
+
+ if (cli.output.format().json) {
+ cli.output.json(result);
+ }
+ else {
+ cli.output.table(result, function (row, item) {
+ var rgName = item.id ? utils.parseResourceReferenceUri(item.id).resourceGroupName : null;
+ row.cell($('ResourceGroupName'), rgName);
+ row.cell($('Name'), item.name);
+ row.cell($('ProvisioningState'), item.provisioningState);
+ row.cell($('Location'), item.location);
+ });
+ }
});
/*
VirtualMachineScaleSets ListSkus
@@ -6055,7 +6079,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsListSkus = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsListSkus.command('list-skus [resource-group-name] [vm-scale-set-name]')
- .description($('Commands to manage your virtual machine scale sets by the list-skus method.'))
+ .description($('The operation to list available skus for a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6075,6 +6099,7 @@ exports.init = function (cli) {
});
nextPageLink = pageResult.nextPageLink;
}
+
cli.output.json(result);
});
/*
@@ -6086,7 +6111,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsPowerOff = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsPowerOff.command('power-off [resource-group-name] [vm-scale-set-name] [instance-ids]')
- .description($('Commands to manage your virtual machine scale sets by the power-off method.'))
+ .description($('The operation to power off (stop) virtual machines in a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6125,7 +6150,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsReimage = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsReimage.command('reimage [resource-group-name] [vm-scale-set-name]')
- .description($('Commands to manage your virtual machine scale sets by the reimage method.'))
+ .description($('The operation to re-image virtual machines in a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6148,7 +6173,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsRestart = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsRestart.command('restart [resource-group-name] [vm-scale-set-name] [instance-ids]')
- .description($('Commands to manage your virtual machine scale sets by the restart method.'))
+ .description($('The operation to restart virtual machines in a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6188,7 +6213,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsStart = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsStart.command('start [resource-group-name] [vm-scale-set-name] [instance-ids]')
- .description($('Commands to manage your virtual machine scale sets by the start method.'))
+ .description($('The operation to start virtual machines in a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6228,7 +6253,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetsUpdateInstances = cli.category('vmss')
.description($('Commands to manage your virtual machine scale sets. '));
virtualMachineScaleSetsUpdateInstances.command('update-instances [resource-group-name] [vm-scale-set-name] [instance-ids]')
- .description($('Commands to manage your virtual machine scale sets by the update-instances method.'))
+ .description($('The operation to manually upgrade virtual machines in a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6268,7 +6293,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsDeallocate = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsDeallocate.command('deallocate [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the deallocate method.'))
+ .description($('The operation to deallocate a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6293,7 +6318,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsDelete = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsDelete.command('delete [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the delete method.'))
+ .description($('The operation to delete a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6318,7 +6343,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsGet = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsGet.command('get [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the get method.'))
+ .description($('The operation to get a virtual machine scale set virtual machine.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6343,7 +6368,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsGetInstanceView = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsGetInstanceView.command('get-instance-view [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the get-instance-view method.'))
+ .description($('The operation to get a virtual machine scale set virtual machine.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6367,7 +6392,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsList = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsList.command('list [resource-group-name] [virtual-machine-scale-set-name]')
- .description($('Commands to manage your virtual machine scale set vm by the list method.'))
+ .description($('The operation to list virtual machine scale sets VMs.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --virtual-machine-scale-set-name ', $('virtual-machine-scale-set-name'))
@@ -6387,7 +6412,19 @@ exports.init = function (cli) {
});
nextPageLink = pageResult.nextPageLink;
}
- cli.output.json(result);
+
+ if (cli.output.format().json) {
+ cli.output.json(result);
+ }
+ else {
+ cli.output.table(result, function (row, item) {
+ var rgName = item.id ? utils.parseResourceReferenceUri(item.id).resourceGroupName : null;
+ row.cell($('ResourceGroupName'), rgName);
+ row.cell($('Name'), item.name);
+ row.cell($('ProvisioningState'), item.provisioningState);
+ row.cell($('Location'), item.location);
+ });
+ }
});
/*
VirtualMachineScaleSetVMs PowerOff
@@ -6398,7 +6435,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsPowerOff = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsPowerOff.command('power-off [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the power-off method.'))
+ .description($('The operation to power off (stop) a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6423,7 +6460,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsReimage = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsReimage.command('reimage [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the reimage method.'))
+ .description($('The operation to re-image a virtual machine scale set instance.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6448,7 +6485,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsRestart = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsRestart.command('restart [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the restart method.'))
+ .description($('The operation to restart a virtual machine scale set.'))
.usage('[options] ')
.option('-g, --resource-group-name ', $('resource-group-name'))
.option('-n, --vm-scale-set-name ', $('vm-scale-set-name'))
@@ -6473,7 +6510,7 @@ exports.init = function (cli) {
var virtualMachineScaleSetVMsStart = cli.category('vmssvm')
.description($('Commands to manage your virtual machine scale set vm. '));
virtualMachineScaleSetVMsStart.command('start [resource-group-name] [vm-scale-set-name] [instance-id]')
- .description($('Commands to manage your virtual machine scale set vm by the start method.'))
+ .description($('The operation to start a virtual machine scale set.'))
.usage('[options]