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] ') .option('-g, --resource-group-name ', $('resource-group-name')) .option('-n, --vm-scale-set-name ', $('vm-scale-set-name')) @@ -6489,6 +6526,28 @@ exports.init = function (cli) { var result = computeManagementClient.virtualMachineScaleSetVMs.start(resourceGroupName, vMScaleSetName, instanceId, _); cli.output.json(result); }); +/* + VirtualMachines Redeploy + --resource-group-name + --vm-name +*/ + var virtualMachinesRedeploy = cli.category('vm') + .description($('Commands to manage your virtual machines. ')); + virtualMachinesRedeploy.command('redeploy [resource-group-name] [vm-name]') + .description($('The operation to redeploy a virtual machine.')) + .usage('[options] ') + .option('-g, --resource-group-name ', $('resource-group-name')) + .option('-n, --vm-name ', $('vm-name')) + .option('--parameter-file ', $('the input parameter file')) + .option('-s, --subscription ', $('the subscription identifier')) + .execute(function(resourceGroupName, vMName, options, _) { + cli.output.verbose('resourceGroupName = ' + resourceGroupName); + cli.output.verbose('vMName = ' + vMName); + var subscription = profile.current.getSubscription(options.subscription); + var computeManagementClient = utils.createComputeManagementClient(subscription); + var result = computeManagementClient.virtualMachines.redeploy(resourceGroupName, vMName, _); + cli.output.json(result); + }); }; diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-FunctionCommand.ps1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-FunctionCommand.ps1 index 6cb743537b2a..0faadd218f22 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-FunctionCommand.ps1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-FunctionCommand.ps1 @@ -30,6 +30,9 @@ param [Parameter(Mandatory = $false)] [string]$FunctionCmdletFlavor = 'None', + [Parameter(Mandatory = $false)] + [string]$CliOpCommandFlavor = 'Verb', + [Parameter(Mandatory = $false)] [System.Reflection.MethodInfo]$FriendMethodInfo = $null, @@ -438,6 +441,12 @@ ${invoke_local_param_code_content} for ($i2 = 0; $i2 -lt $paramLocalNameList.Count - 1; $i2++) { $item2 = $paramLocalNameList[$i2]; + + if ($item2 -eq 'vmName' -and $OperationName -eq 'VirtualMachines') + { + continue; + } + $paramLocalNameList2 += $item2; } $invoke_cmdlt_source_template = " protected void Execute${invoke_param_set_name}Method(object[] ${invoke_input_params_name})" + $NEW_LINE; @@ -1124,9 +1133,28 @@ function Generate-CliFunctionCommandImpl $optionParamString = ([string]::Join(", ", $requireParamNormalizedNames)) + ", "; } + if ($xmlDocItems -ne $null) + { + $xmlHelpText = ""; + foreach ($helpItem in $xmlDocItems) + { + $helpSearchStr = "M:${ClientNameSpace}.${OperationName}OperationsExtensions.${methodName}(*)"; + if ($helpItem.name -like $helpSearchStr) + { + $helpLines = $helpItem.summary.Split("`r").Split("`n"); + foreach ($helpLine in $helpLines) + { + $xmlHelpText += (' ' + $helpLine.Trim()); + } + $xmlHelpText = $xmlHelpText.Trim(); + break; + } + } + } $code += " ${cliCategoryVarName}.command('${cliMethodOption}${requireParamsString}')" + $NEW_LINE; - $code += " .description(`$('Commands to manage your $cliOperationDescription by the ${cliMethodOption} method.'))" + $NEW_LINE; + #$code += " .description(`$('Commands to manage your $cliOperationDescription by the ${cliMethodOption} method.${xmlHelpText}'))" + $NEW_LINE; + $code += " .description(`$('${xmlHelpText}'))" + $NEW_LINE; $code += " .usage('[options]${usageParamsString}')" + $NEW_LINE; for ($index = 0; $index -lt $methodParamNameList.Count; $index++) { @@ -1276,9 +1304,28 @@ function Generate-CliFunctionCommandImpl $code += " });" + $NEW_LINE; $code += " nextPageLink = pageResult.nextPageLink;" + $NEW_LINE; $code += " }" + $NEW_LINE; + $code += "" + $NEW_LINE; } - $code += " cli.output.json(result);" + $NEW_LINE; + if ($PageMethodInfo -ne $null -and $methodName -ne 'ListSkus') + { + $code += " if (cli.output.format().json) {" + $NEW_LINE; + $code += " cli.output.json(result);" + $NEW_LINE; + $code += " }" + $NEW_LINE; + $code += " else {" + $NEW_LINE; + $code += " cli.output.table(result, function (row, item) {" + $NEW_LINE; + $code += " var rgName = item.id ? utils.parseResourceReferenceUri(item.id).resourceGroupName : null;" + $NEW_LINE; + $code += " row.cell(`$('ResourceGroupName'), rgName);" + $NEW_LINE; + $code += " row.cell(`$('Name'), item.name);" + $NEW_LINE; + $code += " row.cell(`$('ProvisioningState'), item.provisioningState);" + $NEW_LINE; + $code += " row.cell(`$('Location'), item.location);" + $NEW_LINE; + $code += " });" + $NEW_LINE; + $code += " }" + $NEW_LINE; + } + else + { + $code += " cli.output.json(result);" + $NEW_LINE; + } $code += " });" + $NEW_LINE; # 3.3 Parameters @@ -1384,4 +1431,9 @@ function Generate-CliFunctionCommandImpl Generate-PsFunctionCommandImpl $OperationName $MethodInfo $FileOutputFolder $FriendMethodInfo; # CLI Function Command Code -Generate-CliFunctionCommandImpl $OperationName $MethodInfo $ModelClassNameSpace $FileOutputFolder; +$opItem = $cliOperationSettings[$OperationName]; +if ($opItem -contains $MethodInfo.Name) +{ + return $null; +} +Generate-CliFunctionCommandImpl $OperationName $MethodInfo $ModelClassNameSpace $FileOutputFolder; \ No newline at end of file diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-ParameterCommand.ps1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-ParameterCommand.ps1 index 8f5ae04ad573..67b8f5741ef5 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-ParameterCommand.ps1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-ParameterCommand.ps1 @@ -209,7 +209,7 @@ function Generate-CliParameterCommandImpl } $code += " .execute(function(options, _) {" + $NEW_LINE; - $code += " cli.output.verbose(JSON.stringify(options));" + $NEW_LINE; + $code += " cli.output.verbose(JSON.stringify(options), _);" + $NEW_LINE; $code += " if (options.parse && options.value) {" + $NEW_LINE; $code += " options.value = JSON.parse(options.value);" + $NEW_LINE; $code += " }" + $NEW_LINE; @@ -316,7 +316,7 @@ function Generate-CliParameterCommandImpl # 2.3 Function Definition $code += " .execute(function(options, _) {" + $NEW_LINE; - $code += " cli.output.verbose(JSON.stringify(options));" + $NEW_LINE; + $code += " cli.output.verbose(JSON.stringify(options), _);" + $NEW_LINE; $code += " cli.output.verbose(`'=====================================`');" + $NEW_LINE; $code += " cli.output.verbose(`'Reading file content from: \`"`' + options.parameterFile + `'\`"`');" + $NEW_LINE; $code += " cli.output.verbose(`'=====================================`');" + $NEW_LINE; @@ -399,7 +399,7 @@ function Generate-CliParameterCommandImpl } $code += " .execute(function(options, _) {" + $NEW_LINE; - $code += " cli.output.verbose(JSON.stringify(options));" + $NEW_LINE; + $code += " cli.output.verbose(JSON.stringify(options), _);" + $NEW_LINE; $code += " if (options.parse && options.value) {" + $NEW_LINE; $code += " options.value = JSON.parse(options.value);" + $NEW_LINE; $code += " }" + $NEW_LINE; diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-CommonVariables.ps1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-CommonVariables.ps1 index dd78e479b156..d1ab59e6cc3c 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-CommonVariables.ps1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-CommonVariables.ps1 @@ -102,9 +102,18 @@ if ($clientNameSpace -eq "Microsoft.WindowsAzure.Management.${component_name}") # Initialize other variables $all_return_type_names = @(); +# XML Documentation +if (Test-Path -Path $dllFileFullPath.Replace('.dll', '.xml')) +{ + $xmlFileFullPath = $dllFileFullPath.Replace('.dll', '.xml'); + [xml]$xmlDoc = Get-Content $xmlFileFullPath; + $xmlDocItems = $xmlDoc.SelectNodes('doc/members/*'); +} + Write-Verbose $BAR_LINE; Write-Verbose "Input Parameters:"; Write-Verbose "DLL File = $dllFileFullPath"; +Write-Verbose "XML File = $xmlFileFullPath"; Write-Verbose "Out Folder = $outFolder"; Write-Verbose "Config Path = $ConfigPath"; Write-Verbose "Client NameSpace = $clientNameSpace"; diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-StringFunction.ps1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-StringFunction.ps1 index f53e71e0851e..ad11ee48ccc3 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-StringFunction.ps1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-StringFunction.ps1 @@ -114,6 +114,10 @@ function Get-CliCategoryName { $outName = 'vmssvm'; } + elseif ($inName -eq 'VirtualMachines') + { + $outName = 'vm'; + } else { $outName = Get-CliOptionName $inName; diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-WriterFunction.ps1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-WriterFunction.ps1 index 3646144fa00b..0d60c3dbb800 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-WriterFunction.ps1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Import-WriterFunction.ps1 @@ -326,6 +326,10 @@ $validate_all_method_names_code { $method_name = $method_name.Replace("ScaleSetVMs", "ScaleSetVM"); } + elseif ($method_name.Contains("VirtualMachines")) + { + $method_name = $method_name.Replace("VirtualMachines", "VirtualMachine"); + } $operation_code_template = @" @@ -546,6 +550,10 @@ $validate_all_method_names_code { $singular_method_name = $method_name.Replace("ScaleSetVMs", "ScaleSetVM"); } + elseif ($method_name.Contains("VirtualMachines")) + { + $singular_method_name = $method_name.Replace("VirtualMachines", "VirtualMachine"); + } else { $singular_method_name = $method_name; diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Invoke-CodeGeneration.ps1 b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Invoke-CodeGeneration.ps1 index 546e596e6ebf..5810fc4d1eb5 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Invoke-CodeGeneration.ps1 +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Invoke-CodeGeneration.ps1 @@ -45,7 +45,7 @@ param( # CLI Command Code Generation Flavor [Parameter(Mandatory = $false, ParameterSetName = "ByParameters", Position = 3)] - [string[]]$cliCommandFlavor = 'Verb', + [string]$cliCommandFlavor = 'Verb', # The filter of operation name for code generation # e.g. "VirtualMachineScaleSet","VirtualMachineScaleSetVM" @@ -65,8 +65,7 @@ if (-not [string]::IsNullOrEmpty($ConfigPath)) $configJsonObject = ConvertFrom-Json ([string]::Join('', $lines)); $operationSettings = @{}; - $SKIP_VERB_NOUN_CMDLET_LIST = @('PowerOff', 'ListNext', 'ListAllNext', 'ListSkusNext', 'GetInstanceView', 'List', 'ListAll'); - #$SKIP_VERB_NOUN_CMDLET_LIST = @('CreateOrUpdate', 'Get', 'Start', 'Restart'); + $cliOperationSettings = @{}; if ($configJsonObject.operations -ne $null) { # The filter of operation name for code generation @@ -76,6 +75,7 @@ if (-not [string]::IsNullOrEmpty($ConfigPath)) { $operationNameFilter += $operationItem.name; $operationSettings.Add($operationItem.name, @()); + $cliOperationSettings.Add($operationItem.name, @()); if ($operationItem.methods -ne $null) { foreach ($methodItem in $operationItem.methods) @@ -85,6 +85,11 @@ if (-not [string]::IsNullOrEmpty($ConfigPath)) { $operationSettings[$operationItem.name] += $methodItem.name; } + + if ($methodItem.command -ne $null -and $methodItem.command.skip -eq $true) + { + $cliOperationSettings[$operationItem.name] += $methodItem.name; + } } } } @@ -193,6 +198,11 @@ else $opFolderName = $opShortName.Replace('ScaleSetVMs', 'ScaleSetVM'); $opOutFolder = $outFolder + '/' + $opFolderName; } + elseif ($opShortName.EndsWith("VirtualMachines")) + { + $opFolderName = $opShortName.Replace('VirtualMachines', 'VirtualMachine'); + $opOutFolder = $outFolder + '/' + $opFolderName; + } else { $opOutFolder = $outFolder + '/' + $opShortName; @@ -212,11 +222,6 @@ else } $SKIP_VERB_NOUN_CMDLET_LIST = $operationSettings[$operation_nomalized_name]; - $methodAnnotationSuffix = ''; - if ($SKIP_VERB_NOUN_CMDLET_LIST -contains $methodInfo.Name) - { - $methodAnnotationSuffix = ' *'; - } $qualified_methods = @(); $total_method_count = 0; @@ -233,11 +238,15 @@ else { continue; } - else + + $methodAnnotationSuffix = ''; + if ($SKIP_VERB_NOUN_CMDLET_LIST -contains $methodInfo.Name) { - Write-Verbose ($methodInfo.Name + $methodAnnotationSuffix); + $methodAnnotationSuffix = ' *'; } + Write-Verbose ($methodInfo.Name + $methodAnnotationSuffix); + $qualified_methods += $mtItem; $total_method_count++; @@ -286,6 +295,11 @@ else { [System.Reflection.MethodInfo]$methodInfo = $mtItem; $method_count++; + $methodAnnotationSuffix = ''; + if ($SKIP_VERB_NOUN_CMDLET_LIST -contains $methodInfo.Name) + { + $methodAnnotationSuffix = ' *'; + } # Get Friend Method (if any) $friendMethodInfo = $null; diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Configuration/Compute.json b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Configuration/Compute.json index 6a38299eeba2..91e33ac00c92 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Configuration/Compute.json +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Configuration/Compute.json @@ -108,6 +108,27 @@ } } ] + }, + { + "name": "VirtualMachines", + "methods": [ + { "name": "Capture", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "CreateOrUpdate", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "Deallocate", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "Delete", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "Generalize", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "Get", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "List", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "ListAll", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "ListAllNext", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "ListAvailableSizes", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "ListAvailableSizesNext", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "ListNext", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "PowerOff", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "Redeploy", "cmdlet": { "skip": true },"command": { "skip": false } }, + { "name": "Restart", "cmdlet": { "skip": true },"command": { "skip": true } }, + { "name": "Start", "cmdlet": { "skip": true },"command": { "skip": true } } + ] } ] } diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Generated/cli.js b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Generated/cli.js index 4c4ea6eb61c8..98143d349522 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Generated/cli.js +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Generated/cli.js @@ -71,7 +71,7 @@ exports.init = function (cli) { var deploymentChangeConfigurationByName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentChangeConfigurationByName.command('change-configuration-by-name [service-name] [deployment-name] [parameters]') - .description($('Commands to manage your deployment by the change-configuration-by-name method.')) + .description($('The Change Deployment Configuration By Name operation initiates a change to the deployment configuration. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460809.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -177,7 +177,7 @@ exports.init = function (cli) { .option('--mode ', $('Set the mode value.')) .option('--treat-warnings-as-error ', $('Set the treat-warnings-as-error 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); } @@ -269,7 +269,7 @@ exports.init = function (cli) { .option('--mode', $('Remove the mode value.')) .option('--treat-warnings-as-error', $('Remove the treat-warnings-as-error 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('====================================='); @@ -336,7 +336,7 @@ exports.init = function (cli) { .option('--mode ', $('Add the mode value.')) .option('--treat-warnings-as-error ', $('Add the treat-warnings-as-error 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); } @@ -428,7 +428,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Set the all-roles value.')) .option('--named-roles ', $('Set the named-roles 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); } @@ -486,7 +486,7 @@ exports.init = function (cli) { .option('--all-roles', $('Remove the all-roles value.')) .option('--named-roles', $('Remove the named-roles 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('====================================='); @@ -538,7 +538,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Add the all-roles value.')) .option('--named-roles ', $('Add the named-roles 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); } @@ -601,7 +601,7 @@ exports.init = function (cli) { .option('--id ', $('Set the id value.')) .option('--state ', $('Set the state 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); } @@ -663,7 +663,7 @@ exports.init = function (cli) { .option('--id', $('Remove the id value.')) .option('--state', $('Remove the state 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('====================================='); @@ -715,7 +715,7 @@ exports.init = function (cli) { .option('--id ', $('Add the id value.')) .option('--state ', $('Add the state 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); } @@ -778,7 +778,7 @@ exports.init = function (cli) { .option('--extensions ', $('Set the extensions value.')) .option('--role-name ', $('Set the role-name 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); } @@ -840,7 +840,7 @@ exports.init = function (cli) { .option('--extensions', $('Remove the extensions value.')) .option('--role-name', $('Remove the role-name 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('====================================='); @@ -892,7 +892,7 @@ exports.init = function (cli) { .option('--extensions ', $('Add the extensions value.')) .option('--role-name ', $('Add the role-name 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); } @@ -954,7 +954,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); } @@ -995,7 +995,7 @@ exports.init = function (cli) { .option('--index ', $('Indexer: index.')) .option('--named-roles-index ', $('Indexer: named-roles-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('====================================='); @@ -1031,7 +1031,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); } @@ -1095,7 +1095,7 @@ exports.init = function (cli) { var deploymentChangeConfigurationBySlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentChangeConfigurationBySlot.command('change-configuration-by-slot [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the change-configuration-by-slot method.')) + .description($('The Change Deployment Configuration By Slot operation initiates a change to the deployment configuration. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460809.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -1201,7 +1201,7 @@ exports.init = function (cli) { .option('--mode ', $('Set the mode value.')) .option('--treat-warnings-as-error ', $('Set the treat-warnings-as-error 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); } @@ -1293,7 +1293,7 @@ exports.init = function (cli) { .option('--mode', $('Remove the mode value.')) .option('--treat-warnings-as-error', $('Remove the treat-warnings-as-error 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('====================================='); @@ -1360,7 +1360,7 @@ exports.init = function (cli) { .option('--mode ', $('Add the mode value.')) .option('--treat-warnings-as-error ', $('Add the treat-warnings-as-error 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); } @@ -1452,7 +1452,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Set the all-roles value.')) .option('--named-roles ', $('Set the named-roles 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); } @@ -1510,7 +1510,7 @@ exports.init = function (cli) { .option('--all-roles', $('Remove the all-roles value.')) .option('--named-roles', $('Remove the named-roles 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('====================================='); @@ -1562,7 +1562,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Add the all-roles value.')) .option('--named-roles ', $('Add the named-roles 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); } @@ -1625,7 +1625,7 @@ exports.init = function (cli) { .option('--id ', $('Set the id value.')) .option('--state ', $('Set the state 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); } @@ -1687,7 +1687,7 @@ exports.init = function (cli) { .option('--id', $('Remove the id value.')) .option('--state', $('Remove the state 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('====================================='); @@ -1739,7 +1739,7 @@ exports.init = function (cli) { .option('--id ', $('Add the id value.')) .option('--state ', $('Add the state 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); } @@ -1802,7 +1802,7 @@ exports.init = function (cli) { .option('--extensions ', $('Set the extensions value.')) .option('--role-name ', $('Set the role-name 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); } @@ -1864,7 +1864,7 @@ exports.init = function (cli) { .option('--extensions', $('Remove the extensions value.')) .option('--role-name', $('Remove the role-name 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('====================================='); @@ -1916,7 +1916,7 @@ exports.init = function (cli) { .option('--extensions ', $('Add the extensions value.')) .option('--role-name ', $('Add the role-name 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); } @@ -1978,7 +1978,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); } @@ -2019,7 +2019,7 @@ exports.init = function (cli) { .option('--index ', $('Indexer: index.')) .option('--named-roles-index ', $('Indexer: named-roles-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('====================================='); @@ -2055,7 +2055,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); } @@ -2122,7 +2122,7 @@ exports.init = function (cli) { var deploymentCreate = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentCreate.command('create [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the create method.')) + .description($('The Create Deployment operation uploads a new service package and creates a new deployment in the staging or production environments. This operation is an asynchronous operation. To determine whether the management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460813.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -2231,7 +2231,7 @@ exports.init = function (cli) { .option('--start-deployment ', $('Set the start-deployment value.')) .option('--treat-warnings-as-error ', $('Set the treat-warnings-as-error 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); } @@ -2357,7 +2357,7 @@ exports.init = function (cli) { .option('--start-deployment', $('Remove the start-deployment value.')) .option('--treat-warnings-as-error', $('Remove the treat-warnings-as-error 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('====================================='); @@ -2439,7 +2439,7 @@ exports.init = function (cli) { .option('--start-deployment ', $('Add the start-deployment value.')) .option('--treat-warnings-as-error ', $('Add the treat-warnings-as-error 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); } @@ -2562,7 +2562,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Set the all-roles value.')) .option('--named-roles ', $('Set the named-roles 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); } @@ -2620,7 +2620,7 @@ exports.init = function (cli) { .option('--all-roles', $('Remove the all-roles value.')) .option('--named-roles', $('Remove the named-roles 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('====================================='); @@ -2672,7 +2672,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Add the all-roles value.')) .option('--named-roles ', $('Add the named-roles 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); } @@ -2735,7 +2735,7 @@ exports.init = function (cli) { .option('--id ', $('Set the id value.')) .option('--state ', $('Set the state 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); } @@ -2797,7 +2797,7 @@ exports.init = function (cli) { .option('--id', $('Remove the id value.')) .option('--state', $('Remove the state 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('====================================='); @@ -2849,7 +2849,7 @@ exports.init = function (cli) { .option('--id ', $('Add the id value.')) .option('--state ', $('Add the state 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); } @@ -2912,7 +2912,7 @@ exports.init = function (cli) { .option('--extensions ', $('Set the extensions value.')) .option('--role-name ', $('Set the role-name 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); } @@ -2974,7 +2974,7 @@ exports.init = function (cli) { .option('--extensions', $('Remove the extensions value.')) .option('--role-name', $('Remove the role-name 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('====================================='); @@ -3026,7 +3026,7 @@ exports.init = function (cli) { .option('--extensions ', $('Add the extensions value.')) .option('--role-name ', $('Add the role-name 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); } @@ -3088,7 +3088,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); } @@ -3129,7 +3129,7 @@ exports.init = function (cli) { .option('--index ', $('Indexer: index.')) .option('--named-roles-index ', $('Indexer: named-roles-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('====================================='); @@ -3165,7 +3165,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); } @@ -3202,7 +3202,7 @@ exports.init = function (cli) { var deploymentDeleteByName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentDeleteByName.command('delete-by-name [service-name] [deployment-name]') - .description($('Commands to manage your deployment by the delete-by-name method.')) + .description($('The Delete Deployment By Name operation deletes the specified deployment. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460815.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -3236,7 +3236,7 @@ exports.init = function (cli) { var deploymentDeleteBySlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentDeleteBySlot.command('delete-by-slot [service-name] [deployment-slot]') - .description($('Commands to manage your deployment by the delete-by-slot method.')) + .description($('The Delete Deployment By Slot operation deletes the specified deployment. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460815.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -3265,7 +3265,7 @@ exports.init = function (cli) { var deploymentDeleteRoleInstanceByDeploymentName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentDeleteRoleInstanceByDeploymentName.command('delete-role-instance-by-deployment-name [service-name] [deployment-name] [role-instance-name]') - .description($('Commands to manage your deployment by the delete-role-instance-by-deployment-name method.')) + .description($('The Delete Role Instances operation deletes a role instance from a deployment in a cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469418.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -3296,7 +3296,7 @@ exports.init = function (cli) { var deploymentDeleteRoleInstanceByDeploymentSlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentDeleteRoleInstanceByDeploymentSlot.command('delete-role-instance-by-deployment-slot [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the delete-role-instance-by-deployment-slot method.')) + .description($('The Delete Role Instances operation deletes the role instances from a deployment in a cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469418.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -3403,7 +3403,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--name ', $('Set the name 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); } @@ -3450,7 +3450,7 @@ exports.init = function (cli) { .option('--parameter-file ', $('The parameter file path.')) .option('--name', $('Remove the name 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('====================================='); @@ -3497,7 +3497,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--name ', $('Add the name 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); } @@ -3548,7 +3548,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); } @@ -3588,7 +3588,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('====================================='); @@ -3624,7 +3624,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); } @@ -3660,7 +3660,7 @@ exports.init = function (cli) { var deploymentGetByName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentGetByName.command('get-by-name [service-name] [deployment-name]') - .description($('Commands to manage your deployment by the get-by-name method.')) + .description($('The Get Deployment By Name operation returns configuration information, status, and system properties for a deployment. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460804.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -3684,7 +3684,7 @@ exports.init = function (cli) { var deploymentGetBySlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentGetBySlot.command('get-by-slot [service-name] [deployment-slot]') - .description($('Commands to manage your deployment by the get-by-slot method.')) + .description($('The Get Deployment By Slot operation returns configuration information, status, and system properties for a deployment. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460804.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -3712,7 +3712,7 @@ exports.init = function (cli) { var deploymentGetPackageByName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentGetPackageByName.command('get-package-by-name [service-name] [deployment-name] [parameters]') - .description($('Commands to manage your deployment by the get-package-by-name method.')) + .description($('The Get Package By Name operation retrieves a cloud service package for a deployment and stores the package files in Azure Blob storage. The following package files are placed in storage: the cloud service configuration file (.cscfg), providing configuration settings for the cloud service and individual roles, including the number of role instances; and the service package (.cspkg), containing the application code and the service definition file. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj154121.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -3815,7 +3815,7 @@ exports.init = function (cli) { .option('--container-uri ', $('Set the container-uri value.')) .option('--overwrite-existing ', $('Set the overwrite-existing 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); } @@ -3874,7 +3874,7 @@ exports.init = function (cli) { .option('--container-uri', $('Remove the container-uri value.')) .option('--overwrite-existing', $('Remove the overwrite-existing 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('====================================='); @@ -3926,7 +3926,7 @@ exports.init = function (cli) { .option('--container-uri ', $('Add the container-uri value.')) .option('--overwrite-existing ', $('Add the overwrite-existing 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); } @@ -3989,7 +3989,7 @@ exports.init = function (cli) { var deploymentGetPackageBySlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentGetPackageBySlot.command('get-package-by-slot [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the get-package-by-slot method.')) + .description($('The Get Package By Slot operation retrieves a cloud service package for a deployment and stores the package files in Azure Blob storage. The following package files are placed in storage: the cloud service configuration file (.cscfg), providing configuration settings for the cloud service and individual roles, including the number of role instances; and the service package (.cspkg), containing the application code and the service definition file. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj154121.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -4092,7 +4092,7 @@ exports.init = function (cli) { .option('--container-uri ', $('Set the container-uri value.')) .option('--overwrite-existing ', $('Set the overwrite-existing 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); } @@ -4151,7 +4151,7 @@ exports.init = function (cli) { .option('--container-uri', $('Remove the container-uri value.')) .option('--overwrite-existing', $('Remove the overwrite-existing 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('====================================='); @@ -4203,7 +4203,7 @@ exports.init = function (cli) { .option('--container-uri ', $('Add the container-uri value.')) .option('--overwrite-existing ', $('Add the overwrite-existing 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); } @@ -4262,7 +4262,7 @@ exports.init = function (cli) { var deploymentListEvents = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentListEvents.command('list-events [service-name] [deployment-name] [start-time] [end-time]') - .description($('Commands to manage your deployment by the list-events method.')) + .description($('Identifies the list of reboot events due to planned maintenance that impacted a deployment in the optionally provided timeframe.')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -4292,7 +4292,7 @@ exports.init = function (cli) { var deploymentListEventsBySlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentListEventsBySlot.command('list-events-by-slot [service-name] [deployment-slot] [start-time] [end-time]') - .description($('Commands to manage your deployment by the list-events-by-slot method.')) + .description($('Identifies the list of reboot events due to planned maintenance that impacted a deployment in the optionally provided timeframe.')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -4319,7 +4319,7 @@ exports.init = function (cli) { var deploymentRebootRoleInstanceByDeploymentName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentRebootRoleInstanceByDeploymentName.command('reboot-role-instance-by-deployment-name [service-name] [deployment-name] [role-instance-name]') - .description($('Commands to manage your deployment by the reboot-role-instance-by-deployment-name method.')) + .description($('The Reboot Role Instance By Deployment Name operation requests a reboot of a role instance that is running in a deployment. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441298.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -4346,7 +4346,7 @@ exports.init = function (cli) { var deploymentRebootRoleInstanceByDeploymentSlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentRebootRoleInstanceByDeploymentSlot.command('reboot-role-instance-by-deployment-slot [service-name] [deployment-slot] [role-instance-name]') - .description($('Commands to manage your deployment by the reboot-role-instance-by-deployment-slot method.')) + .description($('The Reboot Role Instance By Deployment Slot operation requests a reboot of a role instance that is running in a deployment. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441298.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -4372,7 +4372,7 @@ exports.init = function (cli) { var deploymentRebuildRoleInstanceByDeploymentName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentRebuildRoleInstanceByDeploymentName.command('rebuild-role-instance-by-deployment-name [service-name] [deployment-name] [role-instance-name] [resources]') - .description($('Commands to manage your deployment by the rebuild-role-instance-by-deployment-name method.')) + .description($('The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance athttp://msdn.microsoft.com/en-us/library/azure/gg441292.aspx.For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/azure/dn627518.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -4400,7 +4400,7 @@ exports.init = function (cli) { var deploymentRebuildRoleInstanceByDeploymentSlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentRebuildRoleInstanceByDeploymentSlot.command('rebuild-role-instance-by-deployment-slot [service-name] [deployment-slot] [role-instance-name] [resources]') - .description($('Commands to manage your deployment by the rebuild-role-instance-by-deployment-slot method.')) + .description($('The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance athttp://msdn.microsoft.com/en-us/library/azure/gg441292.aspx.For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/azure/dn627518.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -4427,7 +4427,7 @@ exports.init = function (cli) { var deploymentReimageRoleInstanceByDeploymentName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentReimageRoleInstanceByDeploymentName.command('reimage-role-instance-by-deployment-name [service-name] [deployment-name] [role-instance-name]') - .description($('Commands to manage your deployment by the reimage-role-instance-by-deployment-name method.')) + .description($('The Reimage Role Instance By Deployment Name operation requests a reimage of a role instance that is running in a deployment.This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441292.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -4454,7 +4454,7 @@ exports.init = function (cli) { var deploymentReimageRoleInstanceByDeploymentSlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentReimageRoleInstanceByDeploymentSlot.command('reimage-role-instance-by-deployment-slot [service-name] [deployment-slot] [role-instance-name]') - .description($('Commands to manage your deployment by the reimage-role-instance-by-deployment-slot method.')) + .description($('The Reimage Role Instance By Deployment Slot operation requests a reimage of a role instance that is running in a deployment. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441292.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -4484,7 +4484,7 @@ exports.init = function (cli) { var deploymentRollbackUpdateOrUpgradeByDeploymentName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentRollbackUpdateOrUpgradeByDeploymentName.command('rollback-update-or-upgrade-by-deployment-name [service-name] [deployment-name] [parameters]') - .description($('Commands to manage your deployment by the rollback-update-or-upgrade-by-deployment-name method.')) + .description($('The Rollback Update Or Upgrade By Deployment Name operation cancels an in-progress configuration update and returns the deployment to its state before the update was started. This operation can only be called when an update is in progress on the deployment. The deployment status can be detected by calling the Get Deployment operation or Get Hosted Service Properties operation and inspecting the RollbackAllowed element. If the value returned is true a rollback can be performed. (see http://msdn.microsoft.com/en-us/library/windowsazure/hh403977.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -4587,7 +4587,7 @@ exports.init = function (cli) { .option('--force ', $('Set the force value.')) .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); } @@ -4645,7 +4645,7 @@ exports.init = function (cli) { .option('--force', $('Remove the force value.')) .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('====================================='); @@ -4697,7 +4697,7 @@ exports.init = function (cli) { .option('--force ', $('Add the force value.')) .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); } @@ -4758,7 +4758,7 @@ exports.init = function (cli) { .option('--force ', $('Set the force value.')) .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); } @@ -4816,7 +4816,7 @@ exports.init = function (cli) { .option('--force', $('Remove the force value.')) .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('====================================='); @@ -4868,7 +4868,7 @@ exports.init = function (cli) { .option('--force ', $('Add the force value.')) .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); } @@ -4926,7 +4926,7 @@ exports.init = function (cli) { .usage('[options]') .option('--parameter-file ', $('The parameter file path.')) .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('====================================='); @@ -4961,7 +4961,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); } @@ -5003,7 +5003,7 @@ exports.init = function (cli) { var deploymentRollbackUpdateOrUpgradeByDeploymentSlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentRollbackUpdateOrUpgradeByDeploymentSlot.command('rollback-update-or-upgrade-by-deployment-slot [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the rollback-update-or-upgrade-by-deployment-slot method.')) + .description($('The Rollback Update Or Upgrade By Deployment Slot operation cancels an in-progress configuration update and returns the deployment to its state before the update was started. This operation can only be called when an update is in progress on the deployment. The deployment status can be detected by calling the Get Deployment operation or Get Hosted Service Properties operation and inspecting the RollbackAllowed element. If the value returned is true a rollback can be performed. (see http://msdn.microsoft.com/en-us/library/windowsazure/hh403977.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -5106,7 +5106,7 @@ exports.init = function (cli) { .option('--force ', $('Set the force value.')) .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); } @@ -5164,7 +5164,7 @@ exports.init = function (cli) { .option('--force', $('Remove the force value.')) .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('====================================='); @@ -5216,7 +5216,7 @@ exports.init = function (cli) { .option('--force ', $('Add the force value.')) .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); } @@ -5277,7 +5277,7 @@ exports.init = function (cli) { .option('--force ', $('Set the force value.')) .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); } @@ -5335,7 +5335,7 @@ exports.init = function (cli) { .option('--force', $('Remove the force value.')) .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('====================================='); @@ -5387,7 +5387,7 @@ exports.init = function (cli) { .option('--force ', $('Add the force value.')) .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); } @@ -5445,7 +5445,7 @@ exports.init = function (cli) { .usage('[options]') .option('--parameter-file ', $('The parameter file path.')) .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('====================================='); @@ -5480,7 +5480,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); } @@ -5521,7 +5521,7 @@ exports.init = function (cli) { var deploymentSwap = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentSwap.command('swap [service-name] [production-deployment] [source-deployment]') - .description($('Commands to manage your deployment by the swap method.')) + .description($('The Swap Deployment operation initiates a virtual IP address swap between the staging and production deployment environments for a service. If the service is currently running in the staging environment, it will be swapped to the production environment. If it is running in the production environment, it will be swapped to staging. For more information on this type of upgrade, see Performing Virtual IP Swap Upgrades at http://msdn.microsoft.com/en-us/library/windowsazure/ee517253.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460814.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--production-deployment ', $('production-deployment')) @@ -5562,7 +5562,7 @@ exports.init = function (cli) { var deploymentUpdateStatusByDeploymentName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentUpdateStatusByDeploymentName.command('update-status-by-deployment-name [service-name] [deployment-name] [parameters]') - .description($('Commands to manage your deployment by the update-status-by-deployment-name method.')) + .description($('The Update Deployment Status By Deployment Name operation initiates a change in the running status of a deployment. The status of a deployment can be running or suspended. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460808.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -5664,7 +5664,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Set the status 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); } @@ -5711,7 +5711,7 @@ exports.init = function (cli) { .option('--parameter-file ', $('The parameter file path.')) .option('--status', $('Remove the status 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('====================================='); @@ -5758,7 +5758,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Add the status 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); } @@ -5808,7 +5808,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Set the status 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); } @@ -5855,7 +5855,7 @@ exports.init = function (cli) { .option('--parameter-file ', $('The parameter file path.')) .option('--status', $('Remove the status 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('====================================='); @@ -5902,7 +5902,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Add the status 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); } @@ -5950,7 +5950,7 @@ exports.init = function (cli) { .usage('[options]') .option('--parameter-file ', $('The parameter file path.')) .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('====================================='); @@ -5985,7 +5985,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); } @@ -6026,7 +6026,7 @@ exports.init = function (cli) { var deploymentUpdateStatusByDeploymentSlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentUpdateStatusByDeploymentSlot.command('update-status-by-deployment-slot [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the update-status-by-deployment-slot method.')) + .description($('The Update Deployment Status By Deployment Slot operation initiates a change in the running status of a deployment. The status of a deployment can be running or suspended. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460808.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -6128,7 +6128,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Set the status 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); } @@ -6175,7 +6175,7 @@ exports.init = function (cli) { .option('--parameter-file ', $('The parameter file path.')) .option('--status', $('Remove the status 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('====================================='); @@ -6222,7 +6222,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Add the status 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); } @@ -6272,7 +6272,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Set the status 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); } @@ -6319,7 +6319,7 @@ exports.init = function (cli) { .option('--parameter-file ', $('The parameter file path.')) .option('--status', $('Remove the status 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('====================================='); @@ -6366,7 +6366,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--status ', $('Add the status 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); } @@ -6414,7 +6414,7 @@ exports.init = function (cli) { .usage('[options]') .option('--parameter-file ', $('The parameter file path.')) .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('====================================='); @@ -6449,7 +6449,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); } @@ -6516,7 +6516,7 @@ exports.init = function (cli) { var deploymentUpgradeByName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentUpgradeByName.command('upgrade-by-name [service-name] [deployment-name] [parameters]') - .description($('Commands to manage your deployment by the upgrade-by-name method.')) + .description($('The Upgrade Deployment By Name operation initiates an update of role instances in a deployment using the package and configuration that you specify. For more information about updating role instances, see Update an Azure Service at http://msdn.microsoft.com/en-us/library/windowsazure/hh472157.aspx. This operation is an asynchronous operation. To determine whether the request has been processed, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. To perform an automatic update of a deployment, call Upgrade Deployment or Change Deployment Configuration with the Mode element set to automatic. The update proceeds from that point without a need for further input. You can call Get Operation Status to determine when the update is complete. To perform a manual update, first call Upgrade Deployment with the Mode element set to manual. Next, call Walk Upgrade Domain to update each domain within the deployment. You should make sure that the operation is complete by calling Get Operation Status before updating the next domain. Important: An update that adds or removes role instances will result in a configuration update to all roles that are deployed in the cloud service. Existing role instances need to be notified of new role instances so that all role instances can communicate together in the cloud service. By default, a cloud service is deployed with five update domains, which are updated one at a time during an in-place update. For information on modifying the number of update domains in the service definition file, see the Azure Service Definition Schema (.csdef File). To determine the update domain in which a particular instance is running in Windows Azure, use the UpdateDomain property of the RoleInstance class. See the Azure Managed Library Reference at http://msdn.microsoft.com/en-us/library/windowsazure/dd179380.aspx for more information. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460793.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -6625,7 +6625,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Set the package-uri value.')) .option('--role-to-upgrade ', $('Set the role-to-upgrade 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); } @@ -6749,7 +6749,7 @@ exports.init = function (cli) { .option('--package-uri', $('Remove the package-uri value.')) .option('--role-to-upgrade', $('Remove the role-to-upgrade 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('====================================='); @@ -6831,7 +6831,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Add the package-uri value.')) .option('--role-to-upgrade ', $('Add the role-to-upgrade 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); } @@ -6952,7 +6952,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Set the all-roles value.')) .option('--named-roles ', $('Set the named-roles 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); } @@ -7010,7 +7010,7 @@ exports.init = function (cli) { .option('--all-roles', $('Remove the all-roles value.')) .option('--named-roles', $('Remove the named-roles 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('====================================='); @@ -7062,7 +7062,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Add the all-roles value.')) .option('--named-roles ', $('Add the named-roles 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); } @@ -7125,7 +7125,7 @@ exports.init = function (cli) { .option('--id ', $('Set the id value.')) .option('--state ', $('Set the state 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); } @@ -7187,7 +7187,7 @@ exports.init = function (cli) { .option('--id', $('Remove the id value.')) .option('--state', $('Remove the state 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('====================================='); @@ -7239,7 +7239,7 @@ exports.init = function (cli) { .option('--id ', $('Add the id value.')) .option('--state ', $('Add the state 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); } @@ -7302,7 +7302,7 @@ exports.init = function (cli) { .option('--extensions ', $('Set the extensions value.')) .option('--role-name ', $('Set the role-name 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); } @@ -7364,7 +7364,7 @@ exports.init = function (cli) { .option('--extensions', $('Remove the extensions value.')) .option('--role-name', $('Remove the role-name 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('====================================='); @@ -7416,7 +7416,7 @@ exports.init = function (cli) { .option('--extensions ', $('Add the extensions value.')) .option('--role-name ', $('Add the role-name 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); } @@ -7478,7 +7478,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); } @@ -7519,7 +7519,7 @@ exports.init = function (cli) { .option('--index ', $('Indexer: index.')) .option('--named-roles-index ', $('Indexer: named-roles-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('====================================='); @@ -7555,7 +7555,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); } @@ -7602,7 +7602,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Set the package-uri value.')) .option('--role-to-upgrade ', $('Set the role-to-upgrade 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); } @@ -7726,7 +7726,7 @@ exports.init = function (cli) { .option('--package-uri', $('Remove the package-uri value.')) .option('--role-to-upgrade', $('Remove the role-to-upgrade 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('====================================='); @@ -7808,7 +7808,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Add the package-uri value.')) .option('--role-to-upgrade ', $('Add the role-to-upgrade 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); } @@ -7929,7 +7929,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Set the all-roles value.')) .option('--named-roles ', $('Set the named-roles 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); } @@ -7987,7 +7987,7 @@ exports.init = function (cli) { .option('--all-roles', $('Remove the all-roles value.')) .option('--named-roles', $('Remove the named-roles 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('====================================='); @@ -8039,7 +8039,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Add the all-roles value.')) .option('--named-roles ', $('Add the named-roles 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); } @@ -8102,7 +8102,7 @@ exports.init = function (cli) { .option('--id ', $('Set the id value.')) .option('--state ', $('Set the state 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); } @@ -8164,7 +8164,7 @@ exports.init = function (cli) { .option('--id', $('Remove the id value.')) .option('--state', $('Remove the state 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('====================================='); @@ -8216,7 +8216,7 @@ exports.init = function (cli) { .option('--id ', $('Add the id value.')) .option('--state ', $('Add the state 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); } @@ -8279,7 +8279,7 @@ exports.init = function (cli) { .option('--extensions ', $('Set the extensions value.')) .option('--role-name ', $('Set the role-name 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); } @@ -8341,7 +8341,7 @@ exports.init = function (cli) { .option('--extensions', $('Remove the extensions value.')) .option('--role-name', $('Remove the role-name 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('====================================='); @@ -8393,7 +8393,7 @@ exports.init = function (cli) { .option('--extensions ', $('Add the extensions value.')) .option('--role-name ', $('Add the role-name 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); } @@ -8455,7 +8455,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); } @@ -8496,7 +8496,7 @@ exports.init = function (cli) { .option('--index ', $('Indexer: index.')) .option('--named-roles-index ', $('Indexer: named-roles-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('====================================='); @@ -8532,7 +8532,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); } @@ -8570,7 +8570,7 @@ exports.init = function (cli) { .usage('[options]') .option('--parameter-file ', $('The parameter file path.')) .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('====================================='); @@ -8605,7 +8605,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); } @@ -8672,7 +8672,7 @@ exports.init = function (cli) { var deploymentUpgradeBySlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentUpgradeBySlot.command('upgrade-by-slot [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the upgrade-by-slot method.')) + .description($('The Upgrade Deployment By Slot operation initiates an update of role instances in a deployment using the package and configuration that you specify. For more information about updating role instances, see Update an Azure Service at http://msdn.microsoft.com/en-us/library/windowsazure/hh472157.aspx. This operation is an asynchronous operation. To determine whether the request has been processed, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. To perform an automatic update of a deployment, call Upgrade Deployment or Change Deployment Configuration with the Mode element set to automatic. The update proceeds from that point without a need for further input. You can call Get Operation Status to determine when the update is complete. To perform a manual update, first call Upgrade Deployment with the Mode element set to manual. Next, call Walk Upgrade Domain to update each domain within the deployment. You should make sure that the operation is complete by calling Get Operation Status before updating the next domain. Important: An update that adds or removes role instances will result in a configuration update to all roles that are deployed in the cloud service. Existing role instances need to be notified of new role instances so that all role instances can communicate together in the cloud service. By default, a cloud service is deployed with five update domains, which are updated one at a time during an in-place update. For information on modifying the number of update domains in the service definition file, see the Azure Service Definition Schema (.csdef File). To determine the update domain in which a particular instance is running in Windows Azure, use the UpdateDomain property of the RoleInstance class. See the Azure Managed Library Reference at http://msdn.microsoft.com/en-us/library/windowsazure/dd179380.aspx for more information. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460793.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -8781,7 +8781,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Set the package-uri value.')) .option('--role-to-upgrade ', $('Set the role-to-upgrade 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); } @@ -8905,7 +8905,7 @@ exports.init = function (cli) { .option('--package-uri', $('Remove the package-uri value.')) .option('--role-to-upgrade', $('Remove the role-to-upgrade 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('====================================='); @@ -8987,7 +8987,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Add the package-uri value.')) .option('--role-to-upgrade ', $('Add the role-to-upgrade 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); } @@ -9108,7 +9108,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Set the all-roles value.')) .option('--named-roles ', $('Set the named-roles 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); } @@ -9166,7 +9166,7 @@ exports.init = function (cli) { .option('--all-roles', $('Remove the all-roles value.')) .option('--named-roles', $('Remove the named-roles 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('====================================='); @@ -9218,7 +9218,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Add the all-roles value.')) .option('--named-roles ', $('Add the named-roles 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); } @@ -9281,7 +9281,7 @@ exports.init = function (cli) { .option('--id ', $('Set the id value.')) .option('--state ', $('Set the state 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); } @@ -9343,7 +9343,7 @@ exports.init = function (cli) { .option('--id', $('Remove the id value.')) .option('--state', $('Remove the state 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('====================================='); @@ -9395,7 +9395,7 @@ exports.init = function (cli) { .option('--id ', $('Add the id value.')) .option('--state ', $('Add the state 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); } @@ -9458,7 +9458,7 @@ exports.init = function (cli) { .option('--extensions ', $('Set the extensions value.')) .option('--role-name ', $('Set the role-name 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); } @@ -9520,7 +9520,7 @@ exports.init = function (cli) { .option('--extensions', $('Remove the extensions value.')) .option('--role-name', $('Remove the role-name 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('====================================='); @@ -9572,7 +9572,7 @@ exports.init = function (cli) { .option('--extensions ', $('Add the extensions value.')) .option('--role-name ', $('Add the role-name 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); } @@ -9634,7 +9634,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); } @@ -9675,7 +9675,7 @@ exports.init = function (cli) { .option('--index ', $('Indexer: index.')) .option('--named-roles-index ', $('Indexer: named-roles-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('====================================='); @@ -9711,7 +9711,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); } @@ -9758,7 +9758,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Set the package-uri value.')) .option('--role-to-upgrade ', $('Set the role-to-upgrade 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); } @@ -9882,7 +9882,7 @@ exports.init = function (cli) { .option('--package-uri', $('Remove the package-uri value.')) .option('--role-to-upgrade', $('Remove the role-to-upgrade 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('====================================='); @@ -9964,7 +9964,7 @@ exports.init = function (cli) { .option('--package-uri ', $('Add the package-uri value.')) .option('--role-to-upgrade ', $('Add the role-to-upgrade 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); } @@ -10085,7 +10085,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Set the all-roles value.')) .option('--named-roles ', $('Set the named-roles 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); } @@ -10143,7 +10143,7 @@ exports.init = function (cli) { .option('--all-roles', $('Remove the all-roles value.')) .option('--named-roles', $('Remove the named-roles 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('====================================='); @@ -10195,7 +10195,7 @@ exports.init = function (cli) { .option('--all-roles ', $('Add the all-roles value.')) .option('--named-roles ', $('Add the named-roles 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); } @@ -10258,7 +10258,7 @@ exports.init = function (cli) { .option('--id ', $('Set the id value.')) .option('--state ', $('Set the state 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); } @@ -10320,7 +10320,7 @@ exports.init = function (cli) { .option('--id', $('Remove the id value.')) .option('--state', $('Remove the state 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('====================================='); @@ -10372,7 +10372,7 @@ exports.init = function (cli) { .option('--id ', $('Add the id value.')) .option('--state ', $('Add the state 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); } @@ -10435,7 +10435,7 @@ exports.init = function (cli) { .option('--extensions ', $('Set the extensions value.')) .option('--role-name ', $('Set the role-name 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); } @@ -10497,7 +10497,7 @@ exports.init = function (cli) { .option('--extensions', $('Remove the extensions value.')) .option('--role-name', $('Remove the role-name 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('====================================='); @@ -10549,7 +10549,7 @@ exports.init = function (cli) { .option('--extensions ', $('Add the extensions value.')) .option('--role-name ', $('Add the role-name 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); } @@ -10611,7 +10611,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); } @@ -10652,7 +10652,7 @@ exports.init = function (cli) { .option('--index ', $('Indexer: index.')) .option('--named-roles-index ', $('Indexer: named-roles-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('====================================='); @@ -10688,7 +10688,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); } @@ -10726,7 +10726,7 @@ exports.init = function (cli) { .usage('[options]') .option('--parameter-file ', $('The parameter file path.')) .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('====================================='); @@ -10761,7 +10761,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); } @@ -10802,7 +10802,7 @@ exports.init = function (cli) { var deploymentWalkUpgradeDomainByDeploymentName = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentWalkUpgradeDomainByDeploymentName.command('walk-upgrade-domain-by-deployment-name [service-name] [deployment-name] [parameters]') - .description($('Commands to manage your deployment by the walk-upgrade-domain-by-deployment-name method.')) + .description($('The Walk Upgrade Domain By Deployment Name operation specifies an update domain in which a role instance must be updated. For more information about updating role instances, see Update an Azure Service at http://msdn.microsoft.com/en-us/library/windowsazure/hh472157.aspx. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. Prior to calling the Walk Upgrade Domain operation you must have called Upgrade Deployment, Change Deployment Configuration, or Rollback Update Or Upgrade. By default, a service is deployed with five update domains, which are updated one at a time during an in-place update. For information on modifying the number of update domains in the service definition file, see the Azure Service Definition Schema (.csdef File). To perform a manual update of your deployment, proceed in this order: Call Upgrade Deployment with the Mode element set to manual. Call Walk Upgrade Domain to update each domain within the deployment. Update domains must be updated in order. For example, begin with domain 0, proceed to domain 1, and so on. Important: An update that adds or removes role instances will result in a configuration update to all roles that are deployed in the cloud service. Existing role instances need to be notified of new role instances so that all role instances can communicate together in the cloud service. While an update is in progress, call Get Deployment to determine its status. If the update is in progress, Get Deployment returns an UpgradeStatus element that contains information about the update. If the update is complete, or if no update is in progress, then the UpgradeStatus element is null. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460800.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -10904,7 +10904,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--upgrade-domain ', $('Set the upgrade-domain 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); } @@ -10951,7 +10951,7 @@ exports.init = function (cli) { .option('--parameter-file ', $('The parameter file path.')) .option('--upgrade-domain', $('Remove the upgrade-domain 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('====================================='); @@ -10998,7 +10998,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--upgrade-domain ', $('Add the upgrade-domain 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); } @@ -11049,7 +11049,7 @@ exports.init = function (cli) { var deploymentWalkUpgradeDomainByDeploymentSlot = cli.category('invoke').description('Commands to invoke service management operations.').category('deployment') .description($('Commands to manage your deployment. ')); deploymentWalkUpgradeDomainByDeploymentSlot.command('walk-upgrade-domain-by-deployment-slot [service-name] [deployment-slot] [parameters]') - .description($('Commands to manage your deployment by the walk-upgrade-domain-by-deployment-slot method.')) + .description($('The Walk Upgrade Domain By Deployment Slot operation specifies an update domain in which a role instance must be updated. For more information about updating role instances, see Update an Azure Service at http://msdn.microsoft.com/en-us/library/windowsazure/hh472157.aspx. This operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status. For more information on asynchronous operations, see Tracking Asynchronous Service Management Requests at http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx. Prior to calling the Walk Upgrade Domain operation you must have called Upgrade Deployment, Change Deployment Configuration, or Rollback Update Or Upgrade. By default, a service is deployed with five update domains, which are updated one at a time during an in-place update. For information on modifying the number of update domains in the service definition file, see the Azure Service Definition Schema (.csdef File). To perform a manual update of your deployment, proceed in this order: Call Upgrade Deployment with the Mode element set to manual. Call Walk Upgrade Domain to update each domain within the deployment. Update domains must be updated in order. For example, begin with domain 0, proceed to domain 1, and so on. Important: An update that adds or removes role instances will result in a configuration update to all roles that are deployed in the cloud service. Existing role instances need to be notified of new role instances so that all role instances can communicate together in the cloud service. While an update is in progress, call Get Deployment to determine its status. If the update is in progress, Get Deployment returns an UpgradeStatus element that contains information about the update. If the update is complete, or if no update is in progress, then the UpgradeStatus element is null. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460800.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-slot ', $('deployment-slot')) @@ -11151,7 +11151,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--upgrade-domain ', $('Set the upgrade-domain 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); } @@ -11198,7 +11198,7 @@ exports.init = function (cli) { .option('--parameter-file ', $('The parameter file path.')) .option('--upgrade-domain', $('Remove the upgrade-domain 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('====================================='); @@ -11245,7 +11245,7 @@ exports.init = function (cli) { .option('--parse', $('Parse the input value string to a JSON object.')) .option('--upgrade-domain ', $('Add the upgrade-domain 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); } @@ -11297,7 +11297,7 @@ exports.init = function (cli) { var dnsServerAddDNSServer = cli.category('invoke').description('Commands to invoke service management operations.').category('dns-server') .description($('Commands to manage your dns server. ')); dnsServerAddDNSServer.command('add-dns-server [service-name] [deployment-name] [address] [name]') - .description($('Commands to manage your dns server by the add-dns-server method.')) + .description($('Add a definition for a DNS server to an existing deployment. VM's in this deployment will be programmed to use this DNS server for all DNS resolutions')) .usage('[options]
') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -11336,7 +11336,7 @@ exports.init = function (cli) { var dnsServerDeleteDNSServer = cli.category('invoke').description('Commands to invoke service management operations.').category('dns-server') .description($('Commands to manage your dns server. ')); dnsServerDeleteDNSServer.command('delete-dns-server [service-name] [deployment-name] [dns-server-name]') - .description($('Commands to manage your dns server by the delete-dns-server method.')) + .description($('Deletes a definition for an existing DNS server from the deployment')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -11367,7 +11367,7 @@ exports.init = function (cli) { var dnsServerUpdateDNSServer = cli.category('invoke').description('Commands to invoke service management operations.').category('dns-server') .description($('Commands to manage your dns server. ')); dnsServerUpdateDNSServer.command('update-dns-server [service-name] [deployment-name] [dns-server-name] [address] [name]') - .description($('Commands to manage your dns server by the update-dns-server method.')) + .description($('Updates a definition for an existing DNS server. Updates to address is the only change allowed. DNS server name cannot be changed')) .usage('[options]
') .option('--service-name ', $('service-name')) .option('--deployment-name ', $('deployment-name')) @@ -11470,7 +11470,7 @@ exports.init = function (cli) { var extensionImageRegister = cli.category('invoke').description('Commands to invoke service management operations.').category('extension-image') .description($('Commands to manage your extension image. ')); extensionImageRegister.command('register [parameters]') - .description($('Commands to manage your extension image by the register method.')) + .description($('Register a new extension. An extension is identified by the combination of its ProviderNamespace and Type (case-sensitive string). It is not allowed to register an extension with the same identity (i.e. combination of ProviderNamespace and Type) of an already-registered extension. To register new version of an existing extension, the Update Extension API should be used.')) .usage('[options] ') .option('-p, --parameters ', $('parameters')) .option('--parameter-file ', $('the input parameter file')) @@ -11593,7 +11593,7 @@ exports.init = function (cli) { .option('--type ', $('Set the type 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); } @@ -11920,7 +11920,7 @@ exports.init = function (cli) { .option('--type', $('Remove the type 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('====================================='); @@ -12092,7 +12092,7 @@ exports.init = function (cli) { .option('--type ', $('Add the type 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); } @@ -12400,7 +12400,7 @@ exports.init = function (cli) { .option('--thumbprint-algorithm ', $('Set the thumbprint-algorithm value.')) .option('--thumbprint-required ', $('Set the thumbprint-required 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); } @@ -12481,7 +12481,7 @@ exports.init = function (cli) { .option('--thumbprint-algorithm', $('Remove the thumbprint-algorithm value.')) .option('--thumbprint-required', $('Remove the thumbprint-required 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('====================================='); @@ -12543,7 +12543,7 @@ exports.init = function (cli) { .option('--thumbprint-algorithm ', $('Add the thumbprint-algorithm value.')) .option('--thumbprint-required ', $('Add the thumbprint-required 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); } @@ -12626,7 +12626,7 @@ exports.init = function (cli) { .option('--instance-input-endpoints ', $('Set the instance-input-endpoints value.')) .option('--internal-endpoints ', $('Set the internal-endpoints 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); } @@ -12695,7 +12695,7 @@ exports.init = function (cli) { .option('--instance-input-endpoints', $('Remove the instance-input-endpoints value.')) .option('--internal-endpoints', $('Remove the internal-endpoints 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('====================================='); @@ -12752,7 +12752,7 @@ exports.init = function (cli) { .option('--instance-input-endpoints ', $('Add the instance-input-endpoints value.')) .option('--internal-endpoints ', $('Add the internal-endpoints 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); } @@ -12827,7 +12827,7 @@ exports.init = function (cli) { .option('--port ', $('Set the port value.')) .option('--protocol ', $('Set the protocol 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); } @@ -12911,7 +12911,7 @@ exports.init = function (cli) { .option('--port', $('Remove the port value.')) .option('--protocol', $('Remove the protocol 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('====================================='); @@ -12973,7 +12973,7 @@ exports.init = function (cli) { .option('--port ', $('Add the port value.')) .option('--protocol ', $('Add the protocol 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); } @@ -13059,7 +13059,7 @@ exports.init = function (cli) { .option('--name ', $('Set the name value.')) .option('--protocol ', $('Set the protocol 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); } @@ -13154,7 +13154,7 @@ exports.init = function (cli) { .option('--name', $('Remove the name value.')) .option('--protocol', $('Remove the protocol 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('====================================='); @@ -13221,7 +13221,7 @@ exports.init = function (cli) { .option('--name ', $('Add the name value.')) .option('--protocol ', $('Add the protocol 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); } @@ -13315,7 +13315,7 @@ exports.init = function (cli) { .option('--port ', $('Set the port value.')) .option('--protocol ', $('Set the protocol 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); } @@ -13388,7 +13388,7 @@ exports.init = function (cli) { .option('--port', $('Remove the port value.')) .option('--protocol', $('Remove the protocol 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('====================================='); @@ -13445,7 +13445,7 @@ exports.init = function (cli) { .option('--port ', $('Add the port value.')) .option('--protocol ', $('Add the protocol 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); } @@ -13518,7 +13518,7 @@ exports.init = function (cli) { .option('--name ', $('Set the name value.')) .option('--size-in-m-b ', $('Set the size-in-m-b 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); } @@ -13580,7 +13580,7 @@ exports.init = function (cli) { .option('--name', $('Remove the name value.')) .option('--size-in-m-b', $('Remove the size-in-m-b 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('====================================='); @@ -13632,7 +13632,7 @@ exports.init = function (cli) { .option('--name ', $('Add the name value.')) .option('--size-in-m-b ', $('Add the size-in-m-b 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); } @@ -13689,7 +13689,7 @@ exports.init = function (cli) { var extensionImageUnregister = cli.category('invoke').description('Commands to invoke service management operations.').category('extension-image') .description($('Commands to manage your extension image. ')); extensionImageUnregister.command('unregister [provider-namespace] [type] [version]') - .description($('Commands to manage your extension image by the unregister method.')) + .description($('Unregister a version of an extension that was previously registered using either the Register Extension or Update Extension APIs. An extension version is identified by the combination of its ProviderNamespace, Type and Version which are specified when registering the extension. Unregistering is only allowed for internal extensions, that is, the extensions for which the IsInternalExtension field is set to 'true' during registration or during an update. There is a quota (15) on the number of extensions that can be registered per subscription. If your subscription runs out of quota, you will wither need to unregister some of the internal extensions or contact Azure (same email used to become a publisher) to increase the quota.')) .usage('[options] ') .option('--provider-namespace ', $('provider-namespace')) .option('--type ', $('type')) @@ -13776,7 +13776,7 @@ exports.init = function (cli) { var extensionImageUpdate = cli.category('invoke').description('Commands to invoke service management operations.').category('extension-image') .description($('Commands to manage your extension image. ')); extensionImageUpdate.command('update [parameters]') - .description($('Commands to manage your extension image by the update method.')) + .description($('Update a new extension. It is allowed to update an extension which had already been registered with the same identity (i.e. combination of ProviderNamespace and Type) but with different version. It will fail if the extension to update has an identity that has not been registered before, or there is already an extension with the same identity and same version.')) .usage('[options] ') .option('-p, --parameters ', $('parameters')) .option('--parameter-file ', $('the input parameter file')) @@ -13899,7 +13899,7 @@ exports.init = function (cli) { .option('--type ', $('Set the type 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); } @@ -14226,7 +14226,7 @@ exports.init = function (cli) { .option('--type', $('Remove the type 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('====================================='); @@ -14398,7 +14398,7 @@ exports.init = function (cli) { .option('--type ', $('Add the type 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); } @@ -14706,7 +14706,7 @@ exports.init = function (cli) { .option('--thumbprint-algorithm ', $('Set the thumbprint-algorithm value.')) .option('--thumbprint-required ', $('Set the thumbprint-required 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); } @@ -14787,7 +14787,7 @@ exports.init = function (cli) { .option('--thumbprint-algorithm', $('Remove the thumbprint-algorithm value.')) .option('--thumbprint-required', $('Remove the thumbprint-required 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('====================================='); @@ -14849,7 +14849,7 @@ exports.init = function (cli) { .option('--thumbprint-algorithm ', $('Add the thumbprint-algorithm value.')) .option('--thumbprint-required ', $('Add the thumbprint-required 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); } @@ -14932,7 +14932,7 @@ exports.init = function (cli) { .option('--instance-input-endpoints ', $('Set the instance-input-endpoints value.')) .option('--internal-endpoints ', $('Set the internal-endpoints 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); } @@ -15001,7 +15001,7 @@ exports.init = function (cli) { .option('--instance-input-endpoints', $('Remove the instance-input-endpoints value.')) .option('--internal-endpoints', $('Remove the internal-endpoints 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('====================================='); @@ -15058,7 +15058,7 @@ exports.init = function (cli) { .option('--instance-input-endpoints ', $('Add the instance-input-endpoints value.')) .option('--internal-endpoints ', $('Add the internal-endpoints 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); } @@ -15133,7 +15133,7 @@ exports.init = function (cli) { .option('--port ', $('Set the port value.')) .option('--protocol ', $('Set the protocol 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); } @@ -15217,7 +15217,7 @@ exports.init = function (cli) { .option('--port', $('Remove the port value.')) .option('--protocol', $('Remove the protocol 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('====================================='); @@ -15279,7 +15279,7 @@ exports.init = function (cli) { .option('--port ', $('Add the port value.')) .option('--protocol ', $('Add the protocol 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); } @@ -15365,7 +15365,7 @@ exports.init = function (cli) { .option('--name ', $('Set the name value.')) .option('--protocol ', $('Set the protocol 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); } @@ -15460,7 +15460,7 @@ exports.init = function (cli) { .option('--name', $('Remove the name value.')) .option('--protocol', $('Remove the protocol 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('====================================='); @@ -15527,7 +15527,7 @@ exports.init = function (cli) { .option('--name ', $('Add the name value.')) .option('--protocol ', $('Add the protocol 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); } @@ -15621,7 +15621,7 @@ exports.init = function (cli) { .option('--port ', $('Set the port value.')) .option('--protocol ', $('Set the protocol 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); } @@ -15694,7 +15694,7 @@ exports.init = function (cli) { .option('--port', $('Remove the port value.')) .option('--protocol', $('Remove the protocol 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('====================================='); @@ -15751,7 +15751,7 @@ exports.init = function (cli) { .option('--port ', $('Add the port value.')) .option('--protocol ', $('Add the protocol 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); } @@ -15824,7 +15824,7 @@ exports.init = function (cli) { .option('--name ', $('Set the name value.')) .option('--size-in-m-b ', $('Set the size-in-m-b 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); } @@ -15886,7 +15886,7 @@ exports.init = function (cli) { .option('--name', $('Remove the name value.')) .option('--size-in-m-b', $('Remove the size-in-m-b 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('====================================='); @@ -15938,7 +15938,7 @@ exports.init = function (cli) { .option('--name ', $('Add the name value.')) .option('--size-in-m-b ', $('Add the size-in-m-b 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); } @@ -16005,7 +16005,7 @@ exports.init = function (cli) { var hostedServiceAddExtension = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceAddExtension.command('add-extension [service-name] [id] [private-configuration] [provider-namespace] [public-configuration] [thumbprint] [thumbprint-algorithm] [type] [version]') - .description($('Commands to manage your hosted service by the add-extension method.')) + .description($('The Add Extension operation adds an available extension to your cloud service. In Azure, a process can run as an extension of a cloud service. For example, Remote Desktop Access or the Azure Diagnostics Agent can run as extensions to the cloud service. You can find the available extension by using the List Available Extensions operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn169558.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--id ', $('id')) @@ -16058,7 +16058,7 @@ exports.init = function (cli) { var hostedServiceCheckNameAvailability = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceCheckNameAvailability.command('check-name-availability [service-name]') - .description($('Commands to manage your hosted service by the check-name-availability method.')) + .description($('The Check Hosted Service Name Availability operation checks for the availability of the specified cloud service name. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj154116.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--parameter-file ', $('the input parameter file')) @@ -16088,7 +16088,7 @@ exports.init = function (cli) { var hostedServiceCreate = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceCreate.command('create [parameters]') - .description($('Commands to manage your hosted service by the create method.')) + .description($('The Create Hosted Service operation creates a new cloud service in Azure. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441304.aspx for more information)')) .usage('[options] ') .option('-p, --parameters ', $('parameters')) .option('--parameter-file ', $('the input parameter file')) @@ -16192,7 +16192,7 @@ exports.init = function (cli) { .option('--reverse-dns-fqdn ', $('Set the reverse-dns-fqdn value.')) .option('--service-name ', $('Set the service-name 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); } @@ -16305,7 +16305,7 @@ exports.init = function (cli) { .option('--reverse-dns-fqdn', $('Remove the reverse-dns-fqdn value.')) .option('--service-name', $('Remove the service-name 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('====================================='); @@ -16382,7 +16382,7 @@ exports.init = function (cli) { .option('--reverse-dns-fqdn ', $('Add the reverse-dns-fqdn value.')) .option('--service-name ', $('Add the service-name 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); } @@ -16487,7 +16487,7 @@ exports.init = function (cli) { var hostedServiceDelete = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceDelete.command('delete [service-name]') - .description($('Commands to manage your hosted service by the delete method.')) + .description($('The Delete Hosted Service operation deletes the specified cloud service from Azure. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441305.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--parameter-file ', $('the input parameter file')) @@ -16506,7 +16506,7 @@ exports.init = function (cli) { var hostedServiceDeleteAll = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceDeleteAll.command('delete-all [service-name]') - .description($('Commands to manage your hosted service by the delete-all method.')) + .description($('The DeleteAll Hosted Service operation deletes the specified cloud service as well as operating system disk, attached data disks, and the source blobs for the disks from storage from Microsoft Azure. (see 'http://msdn.microsoft.com/en-us/library/windowsazure/gg441305.aspx' for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--parameter-file ', $('the input parameter file')) @@ -16526,7 +16526,7 @@ exports.init = function (cli) { var hostedServiceDeleteExtension = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceDeleteExtension.command('delete-extension [service-name] [extension-id]') - .description($('Commands to manage your hosted service by the delete-extension method.')) + .description($('The Delete Extension operation deletes the specified extension from a cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn169560.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--extension-id ', $('extension-id')) @@ -16547,7 +16547,7 @@ exports.init = function (cli) { var hostedServiceGet = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceGet.command('get [service-name]') - .description($('Commands to manage your hosted service by the get method.')) + .description($('The Get Hosted Service Properties operation retrieves system properties for the specified cloud service. These properties include the service name and service type; and the name of the affinity group to which the service belongs, or its location if it is not part of an affinity group. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460806.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--parameter-file ', $('the input parameter file')) @@ -16566,7 +16566,7 @@ exports.init = function (cli) { var hostedServiceGetDetailed = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceGetDetailed.command('get-detailed [service-name]') - .description($('Commands to manage your hosted service by the get-detailed method.')) + .description($('The Get Detailed Hosted Service Properties operation retrieves system properties for the specified cloud service. These properties include the service name and service type; the name of the affinity group to which the service belongs, or its location if it is not part of an affinity group; and information on the deployments of the service. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460806.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--parameter-file ', $('the input parameter file')) @@ -16586,7 +16586,7 @@ exports.init = function (cli) { var hostedServiceGetExtension = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceGetExtension.command('get-extension [service-name] [extension-id]') - .description($('Commands to manage your hosted service by the get-extension method.')) + .description($('The Get Extension operation retrieves information about a specified extension that was added to a cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn169557.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--extension-id ', $('extension-id')) @@ -16606,7 +16606,7 @@ exports.init = function (cli) { var hostedServiceList = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceList.command('list') - .description($('Commands to manage your hosted service by the list method.')) + .description($('The List Hosted Services operation lists the cloud services available under the current subscription. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460781.aspx for more information)')) .usage('[options]') .option('--parameter-file ', $('the input parameter file')) .option('-s, --subscription ', $('the subscription identifier')) @@ -16622,7 +16622,7 @@ exports.init = function (cli) { var hostedServiceListAvailableExtensions = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceListAvailableExtensions.command('list-available-extensions') - .description($('Commands to manage your hosted service by the list-available-extensions method.')) + .description($('The List Available Extensions operation lists the extensions that are available to add to your cloud service. In Windows Azure, a process can run as an extension of a cloud service. For example, Remote Desktop Access or the Azure Diagnostics Agent can run as extensions to the cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn169559.aspx for more information)')) .usage('[options]') .option('--parameter-file ', $('the input parameter file')) .option('-s, --subscription ', $('the subscription identifier')) @@ -16639,7 +16639,7 @@ exports.init = function (cli) { var hostedServiceListExtensions = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceListExtensions.command('list-extensions [service-name]') - .description($('Commands to manage your hosted service by the list-extensions method.')) + .description($('The List Extensions operation lists all of the extensions that were added to a cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn169561.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('--parameter-file ', $('the input parameter file')) @@ -16659,7 +16659,7 @@ exports.init = function (cli) { var hostedServiceListExtensionVersions = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceListExtensionVersions.command('list-extension-versions [provider-namespace] [extension-type]') - .description($('Commands to manage your hosted service by the list-extension-versions method.')) + .description($('The List Extension Versions operation lists the versions of an extension that are available to add to a cloud service. In Azure, a process can run as an extension of a cloud service. For example, Remote Desktop Access or the Azure Diagnostics Agent can run as extensions to the cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn495437.aspx for more information)')) .usage('[options] ') .option('--provider-namespace ', $('provider-namespace')) .option('--extension-type ', $('extension-type')) @@ -16679,7 +16679,7 @@ exports.init = function (cli) { var hostedServiceListPublisherExtensions = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceListPublisherExtensions.command('list-publisher-extensions') - .description($('Commands to manage your hosted service by the list-publisher-extensions method.')) + .description($('The List Available Extensions operation lists the extensions that are available to add to your cloud service. In Windows Azure, a process can run as an extension of a cloud service. For example, Remote Desktop Access or the Azure Diagnostics Agent can run as extensions to the cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn169559.aspx for more information)')) .usage('[options]') .option('--parameter-file ', $('the input parameter file')) .option('-s, --subscription ', $('the subscription identifier')) @@ -16705,7 +16705,7 @@ exports.init = function (cli) { var hostedServiceUpdate = cli.category('invoke').description('Commands to invoke service management operations.').category('hosted-service') .description($('Commands to manage your hosted service. ')); hostedServiceUpdate.command('update [service-name] [parameters]') - .description($('Commands to manage your hosted service by the update method.')) + .description($('The Update Hosted Service operation can update the label or description of a cloud service in Azure. (see http://msdn.microsoft.com/en-us/library/windowsazure/gg441303.aspx for more information)')) .usage('[options] ') .option('--service-name ', $('service-name')) .option('-p, --parameters ', $('parameters')) @@ -16808,7 +16808,7 @@ exports.init = function (cli) { .option('--label