From 2c45093a96d2401ddbd53a10c74cf062ff6e7394 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Mon, 26 Oct 2015 18:21:10 -0700 Subject: [PATCH 01/27] Initial DataCollection Change --- .../DSC/SetAzureVMDscExtensionCommand.cs | 9 + ...rosoft.Azure.Commands.Compute.dll-Help.xml | 292 + .../DSC/DscExtensionPublicSettings.cs | 9 + .../Extensions/DSC/SetAzureVMDscExtension.cs | 9 + ...re.Commands.ServiceManagement.dll-Help.xml | 43694 ++++++++-------- 5 files changed, 21566 insertions(+), 22447 deletions(-) diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs index fdb7d91c817a..7eff5538b5f7 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs @@ -207,6 +207,14 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet [ValidateSetAttribute(new[] { "4.0", "latest", "5.0PP" })] public string WmfVersion { get; set; } + /// + /// The Extension Data Collection state + /// + [Parameter(ValueFromPipelineByPropertyName = true, HelpMessage = "Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls.")] + [ValidateSet("Enable", "Disable")] + [AllowNull] + public string DataCollection { get; set; } + //Private Variables private const string VersionRegexExpr = @"^(([0-9])\.)\d+$"; @@ -309,6 +317,7 @@ private void CreateConfiguration() publicSettings.SasToken = configurationUris.SasToken; publicSettings.ModulesUrl = configurationUris.ModulesUrl; + publicSettings.DataCollection = this.DataCollection; publicSettings.ConfigurationFunction = string.Format( CultureInfo.InvariantCulture, "{0}\\{1}", diff --git a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml index 63570e9894ce..0fc254fd39b8 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml +++ b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml @@ -11782,6 +11782,298 @@ PS C:\> Save-AzureRmVMImage -ResourceGroupName "ResourceGroup11" -V VMName +<<<<<<< HEAD +======= + + The virtual machine name + + string + + string + + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + String + + String + + + + + + + Status + + Output shows status when the switch is present + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + +Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' + + Description + ----------- + Retrieves the settings of extension (Name - 'DSC') on virtual machine 'VM'. Specify Name parameter only when you changed its default value 'Microsoft.Powershell.DSC' to something else ('DSC' in this case) either through Set-AzureRmVMDscExtension cmdlet or an ARM template. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRmVMDSCExtension + + + Configure the Windows PowerShell Desired State Configuration extension on a VM. + + + + + + Set + AzureVMDscExtension + + + + + Configure the Windows PowerShell Desired State Configuration extension on a VM in a resource group + + + + + Set-AzureRmVMDSCExtension + + ArchiveBlobName + + The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration + + string + + + ResourceGroupName + + The name of the resource group that contains the virtual machine + + string + + + VMName + + Name of the virtual machine where dsc extension handler would be installed + + string + + + ArchiveStorageAccountName + + The Azure Storage Account name used to download the ArchiveBlobName + + string + + + Version + + The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N + + string + + + ConfigurationArgument + + A hashtable specifying the arguments to the ConfigurationFunction + + hashtable + + + ConfigurationData + + Path to a .psd1 file that specifies the data for the Configuration + + string + + + ConfigurationName + + Name of the configuration that will be invoked by the DSC Extension + + string + + + ArchiveResourceGroupName + + The name of the resource group that contains the storage account containing the configuration archive.This param is optional if storage account and virtual machine both exists in the same resource group name, specified by ResourceGroupName param + + string + + + ArchiveContainerName + + Name of the Azure Storage Container where the configuration archive is located + + string + + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + + Force + + By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them + + + + Location + + Location of the resource + + string + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' + + string + + + ArchiveStorageEndpointSuffix + + The Storage Endpoint Suffix + + string + + + AutoUpdate + + We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. + + + + Confirm + + Prompts you for confirmation before executing the command. + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + + + WmfVersion + + + Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". + A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. + A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + + + string + + + + + + + ArchiveBlobName +>>>>>>> Initial DataCollection Change Specifies the name of a virtual machine. diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs index 93ccec9f7a7e..4f9069ceaec5 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs @@ -102,5 +102,14 @@ public class Property /// on the VM. /// public string WmfVersion { get; set; } + + /// + /// String to set the state of the the extension data collection. + /// Enable will enable + /// Disable will disable + /// Null or empty will leave it in the last state. + /// The default is Enabled. + /// + public string DataCollection { get; set; } } } diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs index c74d60370a3b..504c5453c22e 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs @@ -156,6 +156,14 @@ public class SetAzureVMDscExtension : VirtualMachineExtensionCmdletBase [ValidateSetAttribute(new[] { "4.0", "latest", "5.0PP" })] public string WmfVersion { get; set; } + /// + /// The Extension Data Collection state + /// + [Parameter(ValueFromPipelineByPropertyName = true, HelpMessage = "Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls.")] + [ValidateSet("Enable", "Disable")] + [AllowNull] + public string DataCollection { get; set; } + /// /// Credentials used to access Azure Storage /// @@ -389,6 +397,7 @@ private void CreateConfiguration() publicSettings.SasToken = configurationUris.SasToken; publicSettings.ModulesUrl = configurationUris.ModulesUrl; + publicSettings.DataCollection = this.DataCollection; publicSettings.ConfigurationFunction = string.Format( CultureInfo.InvariantCulture, "{0}\\{1}", diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml b/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml index 932c942e61d4..200128321e24 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml @@ -1,11 +1,11 @@  - - + + Add-AzureCertificate - Uploads a certificate to an Azure cloud service. + Uploads a service certificate for the specified cloud service. @@ -15,89 +15,75 @@ - The Add-AzureCertificate cmdlet uploads a certificate for an Azure service. + + + Add-AzureCertificate - + ServiceName - Specifies the name of the Azure service to which this cmdlet adds a certificate. + Specifies the name of the Microsoft Azure service to which you are adding a certificate. String - + CertToDeploy - Specifies the certificate to deploy. You can specify the full path of a certificate file, such as a file that has a *.cer or *. pfx file name extension, or an X.509 Certificate object. + Specifies the certificate to deploy. You can specify the path file name of a certificate file (*.cer, *. pfx, etc) or an X.509 Certificate object. Object - + Password Specifies the certificate password. - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + String - - CertToDeploy - - Specifies the certificate to deploy. You can specify the full path of a certificate file, such as a file that has a *.cer or *. pfx file name extension, or an X.509 Certificate object. - - Object - - Object - - - none - - - Password + + ServiceName - Specifies the certificate password. + Specifies the name of the Microsoft Azure service to which you are adding a certificate. - String + String String - none + + - - Profile + + CertToDeploy - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the certificate to deploy. You can specify the path file name of a certificate file (*.cer, *. pfx, etc) or an X.509 Certificate object. - AzureProfile + Object - AzureProfile + Object - none + + - - ServiceName + + Password - Specifies the name of the Azure service to which this cmdlet adds a certificate. + Specifies the certificate password. String String - none + + @@ -105,15 +91,13 @@ - - + - + + - - @@ -121,77 +105,78 @@ ManagementOperationContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Upload a certificate and password + -------------------------- Example 1 -------------------------- - PS C:\>Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy ContosoCertificate.pfx -Password "password" - + PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy myCertificate.pfx –password 123 - This command uploads the certificate file ContosoCertificate.pfx to a cloud service. The command specifies the password for the certificate. - - + This command uploads myCertificate.pfx certificate to the specified cloud service. - + + - Example 2: Upload a certificate file + -------------------------- Example 2 -------------------------- - PS C:\>Add-AzureCertificate -serviceName "MyService" -CertToDeploy ContosoCertificate.cer - + PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy myCertificate.cer - This command uploads the certificate file ContosoCertificate.cer to a cloud service. The command specifies the password for the certificate. - - + This command uploads myCertificate.cer certificate to the specified cloud service. - + + - Example 3: Upload a certificate object + -------------------------- Example 3 -------------------------- - PS C:\>$Certificate = Get-Item cert:\PATTIFULLER\MY\1D6E34B526723E06C235BE8E5457784BF12C9F39 -PS C:\> Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy $Certificate - + PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy (Get-Item cert:\CurrentUser\MY\1D6E34B526723E06C235BE8E5547784BF12C9F39) - The first command gets a certificate from the MY store of a user by using the Windows PowerShell core Get-Item cmdlet. The command stores the certificate in the $Certificate variable. - The second command uploads the certificate in $certificate to a cloud service. - - + This command uploads the specified certificate to the specified cloud service, using the Get-Item Windows PowerShell cmdlet to get the certificate object. - + + @@ -199,23 +184,22 @@ PS C:\> Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy $Cer Get-AzureCertificate - - - - New-AzureCertificateSetting - + + Remove-AzureCertificate - + + - + + Add-AzureDataDisk - Adds a data disk to a virtual machine. + Adds a new data disk to a virtual machine object. @@ -225,323 +209,276 @@ PS C:\> Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy $Cer - The Add-AzureDataDisk cmdlet adds a new or existing data disk to an Azure virtual machine object. Use the CreateNew parameter to create a new data disk that has a specified size and label. Use the Import parameter to attach an existing disk from the image repository. Use the ImportFrom parameter to attach an existing disk from a blob in a storage account. You can specify the host-cache mode of the attached data disk. + + The Add-AzureDataDisk cmdlet adds a new data disk to a virtual machine object. Use the –CreateNew parameter to create a new data disk with a specified size and label, and then attach it. Use the –Import parameter to attach an existing disk from the image repository. Use the –ImportFrom parameter to attach an existing disk from a blob in a storage account.The cmdlet allows you to specify the host-cache mode of attached data disks. Add-AzureDataDisk - + CreateNew - Indicates that this cmdlet creates a data disk. + Specify to create a new data disk. + SwitchParameter - + DiskSizeInGB - Specifies the logical disk size, in gigabytes, for a new data disk. + Specifies the logical disk size in gigabytes. Int32 - + DiskLabel - Specifies the disk label for a new data disk. + Specifies the disk label when creating a new data disk. String - + LUN - Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. + Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. Int32 - - HostCaching - - Specifies the host level caching settings of the disk. Valid values are: - --- None --- ReadOnly --- ReadWrite - - - ReadOnly - ReadWrite - None - - - + MediaLocation - Specifies the location of the blob in an Azure storage account where this cmdlet stores the data disk. If you do not specify a location, the cmdlet stores the data disk in the vhds container in the default storage account for the current subscription. If a vhds container does not exist, the cmdlet creates a vhds container. + Optional. Specifies the Location of the blob in a Microsoft Azure storage account where the data disk will be stored. If no location is specified, the data disk will be stored in the vhds container within the default storage account for the current subscription. If a vhds container doesn’t exist, the container is created - String + String - - Profile + + HostCaching - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. - AzureProfile + String - + VM - Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the virtual machine object where the data disk will attach. IPersistentVM Add-AzureDataDisk - - ImportFrom + + Import - Indicates that this cmdlet imports an existing data disk from a blob in a storage account. + Imports an existing data disk from the disk library. + SwitchParameter - - DiskLabel + + DiskName - Specifies the disk label for a new data disk. + Specifies the name of the data disk in the disk repository. String - + LUN - Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. + Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. Int32 - + HostCaching - Specifies the host level caching settings of the disk. Valid values are: - --- None --- ReadOnly --- ReadWrite - - - ReadOnly - ReadWrite - None - - - - MediaLocation - - Specifies the location of the blob in an Azure storage account where this cmdlet stores the data disk. If you do not specify a location, the cmdlet stores the data disk in the vhds container in the default storage account for the current subscription. If a vhds container does not exist, the cmdlet creates a vhds container. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. - AzureProfile + String - + VM - Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the virtual machine object where the data disk will attach. IPersistentVM Add-AzureDataDisk - - Import + + ImportFrom - Indicates that this cmdlet imports an existing data disk from the image repository. + Imports an existing data disk from a blob in a storage acount. + SwitchParameter - - DiskName + + DiskLabel - Specifies the name of a data disk in the disk repository. + Specifies the disk label when creating a new data disk. String - + LUN - Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. + Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. Int32 - - HostCaching + + MediaLocation - Specifies the host level caching settings of the disk. Valid values are: - --- None --- ReadOnly --- ReadWrite + Optional. Specifies the Location of the blob in a Microsoft Azure storage account where the data disk will be stored. If no location is specified, the data disk will be stored in the vhds container within the default storage account for the current subscription. If a vhds container doesn’t exist, the container is created - - ReadOnly - ReadWrite - None - + String - - Profile + + HostCaching - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. - AzureProfile + String - + VM - Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the virtual machine object where the data disk will attach. IPersistentVM - + CreateNew - Indicates that this cmdlet creates a data disk. + Specify to create a new data disk. - SwitchParameter + SwitchParameter SwitchParameter - none + + - - DiskLabel + + DiskSizeInGB - Specifies the disk label for a new data disk. + Specifies the logical disk size in gigabytes. - String + Int32 - String + Int32 - none + + - - DiskName + + DiskLabel - Specifies the name of a data disk in the disk repository. + Specifies the disk label when creating a new data disk. String String - none + + - - DiskSizeInGB + + LUN - Specifies the logical disk size, in gigabytes, for a new data disk. + Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. Int32 Int32 - none + + - - HostCaching + + MediaLocation - Specifies the host level caching settings of the disk. Valid values are: - --- None --- ReadOnly --- ReadWrite + Optional. Specifies the Location of the blob in a Microsoft Azure storage account where the data disk will be stored. If no location is specified, the data disk will be stored in the vhds container within the default storage account for the current subscription. If a vhds container doesn’t exist, the container is created - String + String String - none + + - - Import + + HostCaching - Indicates that this cmdlet imports an existing data disk from the image repository. + Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. - SwitchParameter + String - SwitchParameter + String - none + + - - ImportFrom + + VM - Indicates that this cmdlet imports an existing data disk from a blob in a storage account. + Specifies the virtual machine object where the data disk will attach. - SwitchParameter + IPersistentVM - SwitchParameter + IPersistentVM - none + + - - LUN + + Import - Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. + Imports an existing data disk from the disk library. - Int32 + SwitchParameter - Int32 + SwitchParameter - none + + - - MediaLocation + + DiskName - Specifies the location of the blob in an Azure storage account where this cmdlet stores the data disk. If you do not specify a location, the cmdlet stores the data disk in the vhds container in the default storage account for the current subscription. If a vhds container does not exist, the cmdlet creates a vhds container. + Specifies the name of the data disk in the disk repository. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - VM + + ImportFrom - Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Imports an existing data disk from a blob in a storage acount. - IPersistentVM + SwitchParameter - IPersistentVM + SwitchParameter - none + + @@ -549,15 +486,13 @@ PS C:\> Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy $Cer - - + - + + - - @@ -566,107 +501,114 @@ PS C:\> Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy $Cer - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Import a data disk from the repository + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Add-AzureDataDisk -Import -DiskName "Disk68" -LUN 0 | Update-AzureVM - + PS C:\> C:\PS>Get-AzureVM "myservice" -Name "MyVM" ` + | Add-AzureDataDisk -Import -DiskName "MyExistingDisk" -LUN 0 ` + | Update-AzureVM - This command gets a virtual machine object for the virtual machine named VirtualMachine07 in the ContosoService cloud service by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. That command attaches an existing data disk from the repository to the virtual machine. The data disk has a LUN of 0. The command updates the virtual machine to reflect your changes by using the Update-AzureVM cmdlet. - - + This example gets a virtual machine object for the virtual machine named “MyVM” in the “myservice” cloud service, updates the virtual machine object by attaching an existing data disk from the repository using the disk name, and then updates the Microsoft Azure virtual machine. - + + - Example 2: Add a new data disk + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine08" | Add-AzureDataDisk -CreateNew -DiskSizeInGB 128 -DiskLabel "main" -LUN 0 | Update-AzureVM - + PS C:\> C:\PS>Get-AzureVM "myservice" -Name "MyVM" ` + | Add-AzureDataDisk -CreateNew -DiskSizeInGB 128 -DiskLabel "main" -LUN 0 ` + | Update-AzureVM - This command gets a virtual machine object for the virtual machine named VirtualMachine08. The command passes it to the current cmdlet. That command attaches a new data disk named MyNewDisk.vhd. The cmdlet creates the disk in the vhds container in the default storage account of the current subscription. The command updates the virtual machine to reflect your changes. - - + This example updates the virtual machine by creating the new blank data disk “MyNewDisk.vhd” in the vhds container within the default storage account of the currently active subscription. - + + - Example 3: Add a data disk from a specified location + -------------------------- Example 3 -------------------------- - PS C:\>Get-AzureVM "ContosoService" -Name "Database" | Add-AzureDataDisk -ImportFrom -MediaLocation "https://contosostorage.blob.core.windows.net/container07/Disk14.vhd" -DiskLabel "main" -LUN 0 | Update-AzureVM - + PS C:\> C:\PS>Get-AzureVM "myservice" -Name "Database" ` + | Add-AzureDataDisk -ImportFrom -MediaLocation ` + "https://mystorage.blob.core.windows.net/mycontainer/MyExistingDisk.vhd" ` + -DiskLabel "main" -LUN 0 ` + | Update-AzureVM - This command gets a virtual machine object for the virtual machine named Database. The command passes it to the current cmdlet. That command attaches an existing data disk named Disk14.vhd from the specified location. The command updates the virtual machine to reflect your changes. - - + This example updates a virtual machine by attaching an existing data disk from a storage location. - + + - Get-AzureDataDisk - - - - Get-AzureVM - - - - Remove-AzureDataDisk - + New-AzureVMConfig + + Set-AzureDataDisk - + + Update-AzureVM - + + - + + Add-AzureDisk - Adds a disk to the Azure disk repository. + Adds a new disk to the Microsoft Azure disk repository. @@ -676,118 +618,94 @@ PS C:\> Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy $Cer - The Add-AzureDisk cmdlet adds a disk to the Azure disk repository in the current subscription. This cmdlet can add a system disk or a data disk. To add a system disk, specify an operating system type by using the OS parameter. + + The Add-AzureDisk cmdlet adds a new disk to the Microsoft Azure disk repository in the current subscription. This disk is bootable if the optional –OS parameter is specified. If not specified, the disk is a data disk. + The required parameters are DiskName and MediaLocation. Add-AzureDisk - + DiskName - Specifies the name of the disk that this cmdlet adds. + Specifies the name of the disk. String - + MediaLocation - Specifies the physical location of the disk in Azure Storage. This value refers to a blob page in the current subscription and storage account. + Specifies the physical location of the disk in Microsoft Azure storage. This link refers to a blob page in the current subscription and storage account. String - + Label - Specifies a disk label for the disk that this cmdlet adds. + Specifies a disk label. - String + String - + OS - Specifies the operating system type for a system disk. Valid values are: - --- Windows --- Linux - -If you do not specify this parameter, the cmdlet adds the disk as a data disk. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + If specified, the disk is bootable. The OS parameter accepts either "Windows" or "Linux" values. - AzureProfile + String - + DiskName - Specifies the name of the disk that this cmdlet adds. + Specifies the name of the disk. String String - none + + - - Label + + MediaLocation - Specifies a disk label for the disk that this cmdlet adds. + Specifies the physical location of the disk in Microsoft Azure storage. This link refers to a blob page in the current subscription and storage account. - String + String String - none + + - - MediaLocation + + Label - Specifies the physical location of the disk in Azure Storage. This value refers to a blob page in the current subscription and storage account. + Specifies a disk label. String String - none + Disk name - + OS - Specifies the operating system type for a system disk. Valid values are: - --- Windows --- Linux - -If you do not specify this parameter, the cmdlet adds the disk as a data disk. + If specified, the disk is bootable. The OS parameter accepts either "Windows" or "Linux" values. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + @@ -795,15 +713,13 @@ If you do not specify this parameter, the cmdlet adds the disk as a data disk. < - - + - + + - - @@ -811,75 +727,78 @@ If you do not specify this parameter, the cmdlet adds the disk as a data disk. < DiskContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a startup disk that uses the Windows operating system + -------------------------- Example 1 -------------------------- - PS C:\>Add-AzureDisk -DiskName "MyWinDisk" -MediaLocation "http://contosostorage.blob.core.azure.com/vhds/winserver-system.vhd" -Label "StartupDisk" -OS "Windows" - + PS C:\> C:\PS>Add-AzureDisk -DiskName "MyWinDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/winserver-system.vhd" -Label "BootDisk" -OS "Windows" - This command adds a system disk to your disk repository. The system disk uses the Windows operating system. - - + This example adds a new, bootable Windows disk. - + + - Example 2: Add a data disk + -------------------------- Example 2 -------------------------- - PS C:\>Add-AzureDisk -DiskName "MyDataDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/winserver-data.vhd" -Label "DataDisk" - + PS C:\> C:\PS>Add-AzureDisk -DiskName "MyDataDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/winserver-data.vhd" -Label "DataDisk" - This command adds a data disk. - - + This example adds a new data disk. - + + - Example 3: Add a Linux system disk + -------------------------- Example 3 -------------------------- - PS C:\>Add-AzureDisk -DiskName "MyLinuxDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/linuxsys.vhd" -OS "Linux" - + PS C:\> C:\PS>Add-AzureDisk -DiskName "MyLinuxDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/linuxsys.vhd" -OS "Linux" - This command adds a Linux system disk. - - + This example adds a new Linux boot disk. The disk name and label are the same. - + + @@ -887,23 +806,27 @@ If you do not specify this parameter, the cmdlet adds the disk as a data disk. < Get-AzureDisk - + + Remove-AzureDisk - + + Update-AzureDisk - + + - + + Add-AzureDns - Adds a DNS server to an Azure service. + Adds a DNS server to an existing cloud service. @@ -913,89 +836,88 @@ If you do not specify this parameter, the cmdlet adds the disk as a data disk. < - The Add-AzureDns cmdlet adds a DNS server to an Azure service. + + The Add-AzureDns cmdlet adds a DNS server to an existing cloud service. It accepts three parameters: Name, IPAddress and ServiceName. The Name parameter is a friendly name, not necessarily a DNS resolvable name, the IPAddress is the IP address of the DNS server, and the ServiceName is the name of the cloud service Add-AzureDns - + Name - Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. + Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name String - + IPAddress - Specifies the IP address of the DNS server. + Specifies the IP address of the DNS server String - + ServiceName - Specifies the name of the service to which this cmdlet adds the DNS server. + Specifies the name of the cloud service String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - IPAddress + + Name - Specifies the IP address of the DNS server. + Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name String String - none + + - - Name + + IPAddress - Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. + Specifies the IP address of the DNS server String String - none + + - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the cloud service - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + PipelineVariable - Specifies the name of the service to which this cmdlet adds the DNS server. + + - String + string - String + string - none + + @@ -1003,15 +925,13 @@ If you do not specify this parameter, the cmdlet adds the disk as a data disk. < - - + - + + - - @@ -1019,831 +939,637 @@ If you do not specify this parameter, the cmdlet adds the disk as a data disk. < Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a DNS server + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Add-AzureDns -ServiceName "ContosoService" -IPAddress 10.1.2.4 -Name "Dns07" - + PS C:\> Add-AzureDns -ServiceName "myservice" -IPAddress 10.1.2.4 -Name "mydns" - This command adds the DNS server that has the address 10.1.2.4 to ContosoService. - - + Description - + -----------This command adds a DNS server "mydns" to the specified cloud service - Get-AzureDns - - - - New-AzureDns - - - - Remove-AzureDns - - - - Set-AzureDns - + Unknown + + - + + - Add-AzureEndpoint + + Add-AzureEndpoint + - Adds an endpoint to a virtual machine. + Add endpoint to the persistent VM object. - + + Add AzureEndpoint - + + - The Add-AzureEndpoint cmdlet adds an endpoint to an Azure virtual machine object. + + + Add-AzureEndpoint - + Name - Specifies a name for the endpoint. + + - String + string - + Protocol - Specifies the protocol of the endpoint. Valid values are: - --- tcp --- udp + + - - tcp - udp - + string - + LocalPort - Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - - Int32 - - - ACL - - Specifies an access control list (ACL) configuration object for the endpoint. - - NetworkAclObject - - - DirectServerReturn - - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - - Boolean - - - IdleTimeoutInMinutes - - Specifies the TCP idle time-out period, in minutes, for the endpoint. - - Int32 - - - InternalLoadBalancerName - - Specifies the name of the internal load balancer. + + - String + int - - LoadBalancerDistribution + + DefaultProbe - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol - -The default value is none. + Not Specified - - sourceIP - sourceIPProtocol - none - - - Profile + + LBSetName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + string - - PublicPort + + ProbePort - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + + - Int32 + int - - VirtualIPName + + ProbeProtocol - Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + + - String + string - + VM - Specifies the virtual machine to which the endpoint belongs. + + IPersistentVM - - - Add-AzureEndpoint - - Name - - Specifies a name for the endpoint. - - String - - - Protocol - - Specifies the protocol of the endpoint. Valid values are: - --- tcp --- udp - - - tcp - udp - - - - LocalPort - - Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - - Int32 - - + ACL - Specifies an access control list (ACL) configuration object for the endpoint. + Not Specified - NetworkAclObject + NetworkAclObject - + DirectServerReturn - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + - Boolean + System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - + IdleTimeoutInMinutes - Specifies the TCP idle time-out period, in minutes, for the endpoint. + + - Int32 + System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - + InternalLoadBalancerName - Specifies the name of the internal load balancer. + The Internal LoadBalancer Name. - String + string - + LoadBalancerDistribution - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + + Load Balancer distribution algorithm -The default value is none. + The value can be + sourceIP: 2 tuple affinity (Source IP, Destination IP) + sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) + none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value + - - sourceIP - sourceIPProtocol - none - + string - - Profile + + PipelineVariable - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + string - - PublicPort + + ProbeIntervalInSeconds - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + + - Int32 + int - - VirtualIPName + + ProbePath - Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + + - String + string - - DefaultProbe + + ProbeTimeoutInSeconds - Indicates that this cmdlet uses the default probe setting. + + + int - - LBSetName + + PublicPort - Specifies the name of the load balancer set for the endpoint. + + - String + int - - VM + + VirtualIPName - Specifies the virtual machine to which the endpoint belongs. + The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. - IPersistentVM + string Add-AzureEndpoint - + Name - Specifies a name for the endpoint. + + - String + string - + Protocol - Specifies the protocol of the endpoint. Valid values are: - --- tcp --- udp + + - - tcp - udp - + string - + LocalPort - Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - - Int32 - - - ACL - - Specifies an access control list (ACL) configuration object for the endpoint. + + - NetworkAclObject + int - - DirectServerReturn + + NoProbe - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + Not Specified - Boolean - - IdleTimeoutInMinutes + + VM - Specifies the TCP idle time-out period, in minutes, for the endpoint. + + - Int32 + IPersistentVM - - InternalLoadBalancerName + + ACL - Specifies the name of the internal load balancer. + Not Specified - String + NetworkAclObject - - LoadBalancerDistribution + + DirectServerReturn - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol - -The default value is none. + + - - sourceIP - sourceIPProtocol - none - + System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - - ProbeIntervalInSeconds + + IdleTimeoutInMinutes - Specifies the probe polling interval, in seconds, for the endpoint. + + - Int32 + System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - - ProbePath + + InternalLoadBalancerName - Specifies the relative path to the HTTP probe. + The Internal LoadBalancer Name. - String + string - - ProbeTimeoutInSeconds + + LoadBalancerDistribution - Specifies the probe polling time-out period in seconds. + + Load Balancer distribution algorithm + + The value can be + sourceIP: 2 tuple affinity (Source IP, Destination IP) + sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) + none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value + - Int32 + string - - Profile + + PipelineVariable - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + string - + PublicPort - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + + - Int32 + int - + VirtualIPName - Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. - - String - - - LBSetName - - Specifies the name of the load balancer set for the endpoint. - - String - - - ProbePort - - Specifies the port that the endpoint uses. + The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. - Int32 - - - ProbeProtocol - - Specifies the port protocol. Valid values are: - --- tcp --- http - - - tcp - http - - - - VM - - Specifies the virtual machine to which the endpoint belongs. - - IPersistentVM - - - - Add-AzureEndpoint - - Name - - Specifies a name for the endpoint. - - String - - - Protocol - - Specifies the protocol of the endpoint. Valid values are: - --- tcp --- udp - - - tcp - udp - - - - LocalPort - - Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - - Int32 - - - ACL - - Specifies an access control list (ACL) configuration object for the endpoint. - - NetworkAclObject - - - DirectServerReturn - - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - - Boolean - - - IdleTimeoutInMinutes - - Specifies the TCP idle time-out period, in minutes, for the endpoint. - - Int32 - - - InternalLoadBalancerName - - Specifies the name of the internal load balancer. - - String - - - LoadBalancerDistribution - - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol - -The default value is none. - - - sourceIP - sourceIPProtocol - none - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - PublicPort - - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - - Int32 - - - VirtualIPName - - Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. - - String - - - LBSetName - - Specifies the name of the load balancer set for the endpoint. - - String - - - NoProbe - - Indicates that this cmdlet uses the no probe setting. - - - - VM - - Specifies the virtual machine to which the endpoint belongs. - - IPersistentVM + string + - + ACL - Specifies an access control list (ACL) configuration object for the endpoint. + Not Specified - NetworkAclObject + NetworkAclObject NetworkAclObject - none + + - + DefaultProbe - Indicates that this cmdlet uses the default probe setting. + Not Specified - SwitchParameter + SwitchParameter SwitchParameter - none + + - + DirectServerReturn - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + - Boolean + System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - Boolean + System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - none + + - + IdleTimeoutInMinutes - Specifies the TCP idle time-out period, in minutes, for the endpoint. + + - Int32 + System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - Int32 + System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - none + + - + InternalLoadBalancerName - Specifies the name of the internal load balancer. + The Internal LoadBalancer Name. - String + string - String + string - none + + - + LBSetName - Specifies the name of the load balancer set for the endpoint. + + - String + string - String + string - none + + - + LoadBalancerDistribution - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + + Load Balancer distribution algorithm -The default value is none. + The value can be + sourceIP: 2 tuple affinity (Source IP, Destination IP) + sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) + none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value + - String + string - String + string - none + + - + LocalPort - Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. + + - Int32 + int - Int32 + int - none + + - + Name - Specifies a name for the endpoint. + + - String + string - String + string - none + + - + NoProbe - Indicates that this cmdlet uses the no probe setting. + Not Specified - SwitchParameter + SwitchParameter SwitchParameter - none + + - - ProbeIntervalInSeconds + + PipelineVariable - Specifies the probe polling interval, in seconds, for the endpoint. + Not Specified - Int32 + string - Int32 + string - none + + - - ProbePath + + ProbeIntervalInSeconds - Specifies the relative path to the HTTP probe. + + - String + int - String + int - none + + - - ProbePort + + ProbePath - Specifies the port that the endpoint uses. + + - Int32 + string - Int32 + string - none + + - - ProbeProtocol + + ProbePort - Specifies the port protocol. Valid values are: - --- tcp --- http + + - String + int - String + int - none + + - - ProbeTimeoutInSeconds + + ProbeProtocol - Specifies the probe polling time-out period in seconds. + + - Int32 + string - Int32 + string - none + + - - Profile + + ProbeTimeoutInSeconds - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + int - AzureProfile + int - none + + - + Protocol - Specifies the protocol of the endpoint. Valid values are: - --- tcp --- udp + + - String + string - String + string - none + + - + PublicPort - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + + - Int32 + int - Int32 + int - none + + - + VirtualIPName - Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. - String + string - String + string - none + + - + VM - Specifies the virtual machine to which the endpoint belongs. + + IPersistentVM IPersistentVM - none + + + - - - - - + + + @@ -1852,111 +1578,142 @@ The default value is none. System.Object - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Add an endpoint + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirutalMachine01" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 | Update-AzureVM - + +Get-AzureVM -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 | Update-AzureVM - This command retrieves the configuration of a virtual machine named VirtualMachine01 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet adds an endpoint named HttpIn. The endpoint has a public port 80 and local port 8080. The command passes the virtual machine object to the Update-AzureVM cmdlet, which implements your changes. - - + Description + ----------- + This command retrieves the configuration of a virtual machine and adds a new endpoint named 'HttpIn' configured with public port 80 and local port 8080. The changed configuration is passed through the pipeline to Update-AzureVM to update the virtual machine. + + + + + + + + - + + - Example 2: Add an endpoint that belongs to a load balanced group + + -------------------------- EXAMPLE 2 -------------------------- + - - + C:\PS> - PS C:\>Get-AzureVM -ServiceName "LoadBalancedService" -Name "VirtualMachine12" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 -LBSetName "WebFarm" -ProbePort 80 -ProbeProtocol "http" -ProbePath '/' | Update-AzureVM - + +Get-AzureVM -ServiceName "myLBSvc" -Name "MyVM2" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 -LBSetName "WebFarm" -ProbePort 80 -ProbeProtocol "http" -ProbePath '/' | Update-AzureVM - This command retrieves the configuration of a virtual machine named VirtualMachine07. The current cmdlet adds an endpoint named HttpIn. The endpoint has a public port 80 and local port 8080. The endpoint belongs to the shared load balanced group named WebFarm. An HTTP probe on port 80 with a path of '/' monitors the availability of the endpoint. The command implements your changes. - - + Description + ----------- + This command retrieves the configuration of a virtual machine and adds a new endpoint named 'HttpIn' configured with public port 80 and local port 8080. The endpoint belongs to the shared load-balanced group named "WebFarm" and its availability is monitored by an HTTP probe on port 80, path '/'. The changed configuration is pass through the pipeline to Update-AzureVM to update the virtual machine. + + + + + + + + - + + - Example 3: Associate a virtual IP to an endpoint + + -------------------------- EXAMPLE 3 -------------------------- + - - + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine25" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -LocalPort 8080 -PublicPort 80 -VirtualIPName "ContosoVip11" | Update-AzureVM - + +get-azurevm -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -LocalPort 8080 -PublicPort 80 -VirtualIPName "MyVip" | Update-AzureVM - This command retrieves the configuration of a virtual machine named VirtualMachine25. The current cmdlet adds an endpoint named HttpIn. The endpoint has a public port 80 and local port 8080. This command associates a virtual IP to the endpoint. The command implements your changes. - - + Description + ----------- + This command associates a virtual IP to a cloud service to an endpoint + + + + + + + + - + + + - Add-AzureVirtualIP - - - - Get-AzureEndpoint - - - - Get-AzureVM - - - - Remove-AzureEndpoint - - - - Set-AzureEndpoint - - - - Update-AzureVM + + - + + Add-AzureInternalLoadBalancer - Adds an internal load balancer to an Azure service. + Add-AzureInternalLoadBalancer [-InternalLoadBalancerName] <string> [-ServiceName] <string> [<CommonParameters>] + + Add-AzureInternalLoadBalancer [-InternalLoadBalancerName] <string> [-ServiceName] <string> [-SubnetName] <string> [<CommonParameters>] + + Add-AzureInternalLoadBalancer [-InternalLoadBalancerName] <string> [-ServiceName] <string> [-SubnetName] <string> [-StaticVNetIPAddress] <ipaddress> [<CommonParameters>] @@ -1966,163 +1723,148 @@ The default value is none. - The Add-AzureInternalLoadBalancer cmdlet adds an internal load balancer configuration to an Azure service. For a virtual network, you can specify a subnet or the IP address of the internal load balancer. + + The Add-InternalLoadbalancer cmdlet provides users the ability to add an Internal Loadbalancer configuration to a cloud service. For the users using Virtual network, they are allowed to specify a subnet or even the IP address directly of the internal load balancer. Add-AzureInternalLoadBalancer - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet adds. + + String - + ServiceName - Specifies the name of the service to which this cmdlet adds an internal load balancer. + + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - Add-AzureInternalLoadBalancer - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet adds. + + String - + ServiceName - Specifies the name of the service to which this cmdlet adds an internal load balancer. + + String - + SubnetName - Specifies the name of the subnet for an internal load balancer that this cmdlet adds. + + String - + StaticVNetIPAddress - Specifies the virtual network IP address for an internal load balancer that this cmdlet adds. + + IPAddress - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - Add-AzureInternalLoadBalancer - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet adds. + + String - + ServiceName - Specifies the name of the service to which this cmdlet adds an internal load balancer. + + String - + SubnetName - Specifies the name of the subnet for an internal load balancer that this cmdlet adds. + + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet adds. + + String String - none + + - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + SubnetName - Specifies the name of the service to which this cmdlet adds an internal load balancer. + + String String - none + + - + StaticVNetIPAddress - Specifies the virtual network IP address for an internal load balancer that this cmdlet adds. + + IPAddress IPAddress - none - - - SubnetName - - Specifies the name of the subnet for an internal load balancer that this cmdlet adds. - - String - - String - - - none + + @@ -2130,15 +1872,13 @@ The default value is none. - - + - + + - - @@ -2146,1069 +1886,887 @@ The default value is none. Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add an internal load balancer + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Add-AzureInternalLoadBalancer -ServiceName "ContosoWebsite01" -InternalLoadBalancerName "ContosoILB" - + PS C:\> Add-AzureInternalLoadBalancer -ServiceName MyWebsite1 -InternalLoadBalancerName MyILB - This command adds an internal load balancer named ContosoILB to the service named ContosoWebsite01. - - + Description - + -----------Adds an internal load balancer object to a deployment - Example 2: Add an internal load balancer for a specified subnet + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Add-AzureInternalLoadBalancer -ServiceName "ContosoWebsite01" -InternalLoadBalancerName "ContosoILB" -SubnetName "FrontEndSubnet" - + PS C:\> Add-AzureInternalLoadBalancer -ServiceName MyWebsite1 -InternalLoadBalancerName MyILB -SubnetName FrontEndSubnet - This command adds an internal load balancer named ContosoILB to the service named ContosoWebsite01. The command specifies the subnet named FrontEndSubnet. - - + Description - + -----------Adds an internal load balancer object to a deployment in a Virtual Network. Specifies the Subnet in the VNet from which the load balancer IP should be allocated. - Example 3: Add an internal load balancer for a specified subnet and address + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Add-AzureInternalLoadBalancer -ServiceName "ContosoWebsite01" -InternalLoadBalancerName "ContosoILB" -SubnetName "FrontEndSubnet" -StaticVNetIPAddress 192.168.4.7 - + PS C:\> Add-AzureInternalLoadBalancer -ServiceName MyWebsite1 -InternalLoadBalancerName MyILB -ServiceName svc1 -SubnetName FrontEndSubnet -StaticVNetIPAddress 192.168.4.7 - This command adds an internal load balancer named ContosoILB to the service named ContosoWebsite01. The command specifies the subnet named FrontEndSubnet and the static address of the virtual network. - - + Description - + -----------Adds an internal load balancer object to a deployment in a Virtual Network. Specifies the Subnet in the VNet and the exact IP address from that subnet that should be allocated to the internal load balancer. - Get-AzureInternalLoadBalancer - - - - New-AzureInternalLoadBalancerConfig - - - - Remove-AzureInternalLoadBalancer - - - - Set-AzureInternalLoadBalancer - + Unknown + + - + + - Add-AzureNetworkInterfaceConfig + Add-AzureProvisioningConfig - - + Adds the provisioning configuration to a Microsoft Azure virtual machine. Add - AzureNetworkInterfaceConfig + AzureProvisioningConfig + + The Add-AzureProvisioningConfig cmdlet adds configuration information to a virtual machine configuration used to create a new Virtual Machine. +Different provisioning configurations are supported including standalone Windows servers, Windows servers joined to an Active Directory domain, and Linux-based servers. +When creating an Active Directory domain joined server, the provisioning configuration must specify the fully qualified domain name of the Active Directory domain, as well as the domain credentials of a user with permission to join the machine to the domain. - Add-AzureNetworkInterfaceConfig - - Name + Add-AzureProvisioningConfig + + VM + Specifies the virtual machine object. - String + IPersistentVM - - SubnetName + + DisableGuestAgent + To disable IaaS provision guest agent. - String + SwitchParameter - - StaticVNetIPAddress + + CustomDataFile + This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. + +On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. +On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. - String + String - - NetworkSecurityGroup + + Windows + Specify to create a standalone Windows provisioning configuration. - String + SwitchParameter - - IPForwarding + + AdminUsername + Specifies the Administrator account to create. - - Enabled - Disabled - + String - - Profile + + Password + Specifies the password of the administrator account for the role. - AzureProfile + String - - VM + + ResetPasswordOnFirstLogon + If specified, forces the user to change their password on first logon. - IPersistentVM + SwitchParameter - - - - - IPForwarding - - - String - - String - - - none - - - Name - - - String - - String - - - none - - - NetworkSecurityGroup - - - String - - String - - - none - - - Profile - - - AzureProfile - - AzureProfile - - - none - - - StaticVNetIPAddress - - - String - - String - - - none - - - SubnetName - - - String - - String - - - none - - - VM - - - IPersistentVM - - IPersistentVM - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - PS C:\> - - - - - - - - - - - - - - - - - Get-AzureNetworkInterfaceConfig - - - - Remove-AzureNetworkInterfaceConfig - - - - Set-AzureNetworkInterfaceConfig - - - - - - - Add-AzureProvisioningConfig - - Adds provisioning configuration for an Azure virtual machine. - - - - - Add - AzureProvisioningConfig - - - - The Add-AzureProvisioningConfig cmdlet adds provisioning configuration information to an Azure virtual machine configuration. You can use the configuration object to create a virtual machine. - This cmdlet supports different provisioning configurations, including standalone Windows servers, Windows servers joined to an Active Directory domain, and Linux-based servers. - To create an Active Directory domain joined server, specify the fully qualified domain name of the Active Directory domain and the domain credentials of a user who has permission to join the machine to the domain. - - - - Add-AzureProvisioningConfig - - AdminUsername + + DisableAutomaticUpdates - Specifies the user name of the Administrator account that this configuration creates on the virtual machine. + If specified, the configuration will have automatic updates disabled. - String + SwitchParameter - - Certificates + + NoRDPEndpoint - Specifies a set of certificates that this configuration installs on the virtual machine. + If specified, create the virtual machine without a remote desktop endpoint. - CertificateSettingList + SwitchParameter - - CustomDataFile + + TimeZone - Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. - If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. - If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. + Specifies the Microsoft Time Zone value to use to set the time zone for the virtual machine. Examples are: "Pacific Standard Time" and "Canada Central Standard Time". - String + String - - DisableAutomaticUpdates + + Certificates - Indicates that this configuration disables automatic updates. + Specifies a set of certificates to install in the virtual machine. + CertificateSettingList - - DisableGuestAgent + + EnableWinRMHttp - Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. + Enables WinRM over http. + SwitchParameter - + DisableWinRMHttps - Indicates that this configuration disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. + Disables WinRM on https which is added by default. + SwitchParameter - - EnableWinRMHttp + + WinRMCertificate - Indicates that this configuration enables WinRM over HTTP. + Certificate that will be associated with WinRM endpoint. + X509Certificate2 - - NoExportPrivateKey + + X509Certificates - Indicates that this configuration does not upload the private key. + X509 certificates that will be deployed to hosted service. + X509Certificate2[] - - NoRDPEndpoint + + NoExportPrivateKey - Indicates that this configuration creates a virtual machine without a remote desktop endpoint. + Prevents the private key from being uploaded + SwitchParameter - + NoWinRMEndpoint - Indicates that this configuration does not add a WinRM endpoint for the virtual machine. + Prevents the WinRM endpoint from being added + SwitchParameter - - Password + + + Add-AzureProvisioningConfig + + VM - Specifies the password of the administrator account. + Specifies the virtual machine object. - String + IPersistentVM - - Profile + + DisableGuestAgent - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + To disable IaaS provision guest agent. - AzureProfile + SwitchParameter - - ResetPasswordOnFirstLogon + + Linux - Indicates that the virtual machine requires the user to change the password at the first logon. + Specify to create a Linux provisioning configuration. + SwitchParameter - - TimeZone + + LinuxUser - Specifies the time zone for the virtual machine, for example, Pacific Standard Time or Canada Central Standard Time. + Specifies the Linux administrative account name to create. - String + String - - WinRMCertificate + + DisableSSH - Specifies a certificate that this configuration associates to a WinRM endpoint. + If specified, the virtual machine is created with SSH disabled. - X509Certificate2 + SwitchParameter - - X509Certificates + + NoSSHEndpoint - Specifies an array of X509 certificates that are deployed to a hosted service. + If specified, create the virtual machine without an SSH endpoint. - X509Certificate2[] + SwitchParameter - - VM + + NoSSHPassword - Specifies a virtual machine object. + Not Specified - IPersistentVM + SwitchParameter - - Windows + + SSHPublicKeys - Indicates that this configuration creates a standalone virtual machine that runs the Windows operating system. + + + LinuxProvisioningConfigurationSet+SSHPublicKeyList - - - Add-AzureProvisioningConfig - - Certificates + + SSHKeyPairs - Specifies a set of certificates that this configuration installs on the virtual machine. + + - CertificateSettingList + LinuxProvisioningConfigurationSet+SSHKeyPairList - + CustomDataFile - Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. - If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. - If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. + This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. + +On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. +On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. - String + String - - DisableAutomaticUpdates + + Password - Indicates that this configuration disables automatic updates. + Specifies the password of the administrator account for the role. + String - - DisableGuestAgent + + + Add-AzureProvisioningConfig + + VM - Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. + Specifies the virtual machine object. + IPersistentVM - - DisableWinRMHttps + + DisableGuestAgent - Indicates that this configuration disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. + To disable IaaS provision guest agent. + SwitchParameter - - EnableWinRMHttp + + CustomDataFile - Indicates that this configuration enables WinRM over HTTP. + This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. + +On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. +On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. + String - - MachineObjectOU - - Specifies the fully qualified name of the organizational unit (OU) in which the configuration creates the computer account. - - String - - - NoExportPrivateKey - - Indicates that this configuration does not upload the private key. - - - - NoRDPEndpoint + + AdminUsername - Indicates that this configuration creates a virtual machine without a remote desktop endpoint. + Specifies the Administrator account to create. + String - - NoWinRMEndpoint + + WindowsDomain - Indicates that this configuration does not add a WinRM endpoint for the virtual machine. + Specify to create a provisioning configuration for a Windows server joined to an Active Directory domain. + SwitchParameter - + Password - Specifies the password of the administrator account. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the password of the administrator account for the role. - AzureProfile + String - + ResetPasswordOnFirstLogon - Indicates that the virtual machine requires the user to change the password at the first logon. + If specified, forces the user to change their password on first logon. + SwitchParameter - - TimeZone + + DisableAutomaticUpdates - Specifies the time zone for the virtual machine, for example, Pacific Standard Time or Canada Central Standard Time. + If specified, the configuration will have automatic updates disabled. - String + SwitchParameter - - WinRMCertificate + + NoRDPEndpoint - Specifies a certificate that this configuration associates to a WinRM endpoint. + If specified, create the virtual machine without a remote desktop endpoint. - X509Certificate2 + SwitchParameter - - X509Certificates + + TimeZone - Specifies an array of X509 certificates that are deployed to a hosted service. + Specifies the Microsoft Time Zone value to use to set the time zone for the virtual machine. Examples are: "Pacific Standard Time" and "Canada Central Standard Time". - X509Certificate2[] + String - - AdminUsername + + Certificates - Specifies the user name of the Administrator account that this configuration creates on the virtual machine. + Specifies a set of certificates to install in the virtual machine. - String + CertificateSettingList - - Domain + + JoinDomain - Specifies the name of the domain of the account that has permission to add the computer to a domain. + Specifies the fully qualified domain name (FQDN) of the Windows domain to join. String - - DomainPassword + + Domain - Specifies the password of the user account that has permission to add the computer to a domain. + Specifies the name of the domain of the account with permission to add the computer to a domain. String - + DomainUserName - Specifies the name of the user account that has permission to add the computer to a domain. + Specifies the name of the user account with permission to add the computer to a domain. String - - JoinDomain + + DomainPassword - Specifies the fully qualified domain name (FQDN) of the domain to join. + Specifies the password of the user account with permission to add the computer to a domain. String - - VM - - Specifies a virtual machine object. - - IPersistentVM - - - WindowsDomain - - Indicates that this configuration creates Windows server that is joined to an Active Directory domain. - - - - - Add-AzureProvisioningConfig - - CustomDataFile - - Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. - If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. - If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. - - String - - - DisableGuestAgent - - Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. - - - - DisableSSH - - Indicates that this configuration disables SSH. - - - - LinuxUser - - Specifies the user name of the Linux administrative account that this configuration creates on the virtual machine. - - String - - - NoSSHEndpoint - - Indicates that this configuration creates a virtual machine without an SSH endpoint. - - - - NoSSHPassword + + MachineObjectOU - Indicates that this configuration creates a virtual machine without an SSH password. + Specifies the fully qualified name of the organizational unit (OU) in which the computer account is created. + String - - Password + + EnableWinRMHttp - Specifies the password of the administrator account. + Enables WinRM over http. - String + SwitchParameter - - Profile + + DisableWinRMHttps - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Disables WinRM on https which is added by default. - AzureProfile + SwitchParameter - - SSHKeyPairs + + WinRMCertificate - Specifies SSH key pairs. + Certificate that will be associated with WinRM endpoint. - LinuxProvisioningConfigurationSet+SSHKeyPairList + X509Certificate2 - - SSHPublicKeys + + X509Certificates - Specifies SSH public keys. + X509 certificates that will be deployed to hosted service. - LinuxProvisioningConfigurationSet+SSHPublicKeyList + X509Certificate2[] - - Linux + + NoExportPrivateKey - Indicates that this configuration creates a Linux configuration. + Prevents the private key from being uploaded + SwitchParameter - - VM + + NoWinRMEndpoint - Specifies a virtual machine object. + Prevents the WinRM endpoint from being added - IPersistentVM + SwitchParameter - - AdminUsername + + VM - Specifies the user name of the Administrator account that this configuration creates on the virtual machine. + Specifies the virtual machine object. - String + IPersistentVM - String + IPersistentVM - none + + - - Certificates + + DisableGuestAgent - Specifies a set of certificates that this configuration installs on the virtual machine. + To disable IaaS provision guest agent. - CertificateSettingList + SwitchParameter - CertificateSettingList + SwitchParameter - none + + - + CustomDataFile - Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. - If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. - If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. + This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. + +On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. +On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. - String + String String - none + + - - DisableAutomaticUpdates + + Windows - Indicates that this configuration disables automatic updates. + Specify to create a standalone Windows provisioning configuration. SwitchParameter SwitchParameter - none + + - - DisableGuestAgent + + AdminUsername - Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. + Specifies the Administrator account to create. - SwitchParameter + String - SwitchParameter + String - none + + - - DisableSSH + + Password - Indicates that this configuration disables SSH. + Specifies the password of the administrator account for the role. - SwitchParameter + String - SwitchParameter + String - none + + - - DisableWinRMHttps + + ResetPasswordOnFirstLogon - Indicates that this configuration disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. + If specified, forces the user to change their password on first logon. SwitchParameter SwitchParameter - none + + - - Domain + + DisableAutomaticUpdates - Specifies the name of the domain of the account that has permission to add the computer to a domain. + If specified, the configuration will have automatic updates disabled. - String + SwitchParameter - String + SwitchParameter - none + + - - DomainPassword + + NoRDPEndpoint - Specifies the password of the user account that has permission to add the computer to a domain. + If specified, create the virtual machine without a remote desktop endpoint. - String + SwitchParameter - String + SwitchParameter - none + + - - DomainUserName + + TimeZone - Specifies the name of the user account that has permission to add the computer to a domain. + Specifies the Microsoft Time Zone value to use to set the time zone for the virtual machine. Examples are: "Pacific Standard Time" and "Canada Central Standard Time". String String - none + + - - EnableWinRMHttp + + Certificates - Indicates that this configuration enables WinRM over HTTP. + Specifies a set of certificates to install in the virtual machine. - SwitchParameter + CertificateSettingList - SwitchParameter + CertificateSettingList - none + + - - JoinDomain + + EnableWinRMHttp - Specifies the fully qualified domain name (FQDN) of the domain to join. + Enables WinRM over http. - String + SwitchParameter - String + SwitchParameter - none + + - - Linux + + DisableWinRMHttps - Indicates that this configuration creates a Linux configuration. + Disables WinRM on https which is added by default. - SwitchParameter + SwitchParameter SwitchParameter - none + + - - LinuxUser + + WinRMCertificate - Specifies the user name of the Linux administrative account that this configuration creates on the virtual machine. + Certificate that will be associated with WinRM endpoint. - String + X509Certificate2 - String + X509Certificate2 - none + + - - MachineObjectOU + + X509Certificates - Specifies the fully qualified name of the organizational unit (OU) in which the configuration creates the computer account. + X509 certificates that will be deployed to hosted service. - String + X509Certificate2[] - String + X509Certificate2[] - none + + - + NoExportPrivateKey - Indicates that this configuration does not upload the private key. + Prevents the private key from being uploaded SwitchParameter SwitchParameter - none + + - - NoRDPEndpoint + + NoWinRMEndpoint - Indicates that this configuration creates a virtual machine without a remote desktop endpoint. + Prevents the WinRM endpoint from being added SwitchParameter SwitchParameter - none + + - - NoSSHEndpoint + + Linux - Indicates that this configuration creates a virtual machine without an SSH endpoint. + Specify to create a Linux provisioning configuration. SwitchParameter SwitchParameter - none + + - - NoSSHPassword + + LinuxUser - Indicates that this configuration creates a virtual machine without an SSH password. + Specifies the Linux administrative account name to create. - SwitchParameter + String - SwitchParameter + String - none + + - - NoWinRMEndpoint + + DisableSSH - Indicates that this configuration does not add a WinRM endpoint for the virtual machine. + If specified, the virtual machine is created with SSH disabled. SwitchParameter SwitchParameter - none + + - - Password + + NoSSHEndpoint - Specifies the password of the administrator account. + If specified, create the virtual machine without an SSH endpoint. - String + SwitchParameter - String + SwitchParameter - none + + - - Profile + + NoSSHPassword - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + SwitchParameter - AzureProfile + SwitchParameter - none + + - - ResetPasswordOnFirstLogon + + SSHPublicKeys - Indicates that the virtual machine requires the user to change the password at the first logon. + + - SwitchParameter + LinuxProvisioningConfigurationSet+SSHPublicKeyList - SwitchParameter + LinuxProvisioningConfigurationSet+SSHPublicKeyList - none + + - + SSHKeyPairs - Specifies SSH key pairs. + + - LinuxProvisioningConfigurationSet+SSHKeyPairList + LinuxProvisioningConfigurationSet+SSHKeyPairList LinuxProvisioningConfigurationSet+SSHKeyPairList - none + + - - SSHPublicKeys + + WindowsDomain - Specifies SSH public keys. + Specify to create a provisioning configuration for a Windows server joined to an Active Directory domain. - LinuxProvisioningConfigurationSet+SSHPublicKeyList + SwitchParameter - LinuxProvisioningConfigurationSet+SSHPublicKeyList + SwitchParameter - none + + - - TimeZone + + JoinDomain - Specifies the time zone for the virtual machine, for example, Pacific Standard Time or Canada Central Standard Time. + Specifies the fully qualified domain name (FQDN) of the Windows domain to join. - String + String String - none + + - - VM + + Domain - Specifies a virtual machine object. + Specifies the name of the domain of the account with permission to add the computer to a domain. - IPersistentVM + String - IPersistentVM + String - none + + - - Windows + + DomainUserName - Indicates that this configuration creates a standalone virtual machine that runs the Windows operating system. + Specifies the name of the user account with permission to add the computer to a domain. - SwitchParameter + String - SwitchParameter + String - none + + - - WindowsDomain + + DomainPassword - Indicates that this configuration creates Windows server that is joined to an Active Directory domain. + Specifies the password of the user account with permission to add the computer to a domain. - SwitchParameter + String - SwitchParameter + String - none + + - - WinRMCertificate + + MachineObjectOU - Specifies a certificate that this configuration associates to a WinRM endpoint. + Specifies the fully qualified name of the organizational unit (OU) in which the computer account is created. - X509Certificate2 + String - X509Certificate2 + String - none + + - - X509Certificates + + PipelineVariable - Specifies an array of X509 certificates that are deployed to a hosted service. + Not Specified - X509Certificate2[] + string - X509Certificate2[] + string - none + + @@ -3216,15 +2774,13 @@ The default value is none. - - + - + + - - @@ -3233,175 +2789,191 @@ The default value is none. - - + - + + - - - - - - - Example 1: Create a standalone virtual machine - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` +| Add-AzureProvisioningConfig -Windows -Pass word $Password -AdminUsername PsTestAdmin ` +| New-AzureVM -ServiceName $svcName + + Description + + + + -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is enabled by default on the VM. + + + + + -------------------------- EXAMPLE 2 -------------------------- + - PS C:\>New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" | New-AzureVM -ServiceName "ContosoService" - + PS C:\> New-AzureVMConfig -Name "MyDomainVM" -InstanceSize Small -ImageName $img ` +| Add-AzureProvisioningConfig -WindowsDomain -Password $Password -AdminUsername PsTestAdmin -ResetPasswordOnFirstLogon -JoinDomain "contoso.com" -Domain "contoso" -DomainUserName "domainadminuser" -DomainPassword "domainPassword" -MachineObjectOU 'OU=AzureVMs,DC=contoso,DC=com' +| New-AzureVM -ServiceName $svcName - This command creates a virtual machine configuration object by using the New-AzureVMConfig cmdlet. The command passes that object to the current cmdlet by using the pipeline operator. The current cmdlet adds provisioning configuration for a virtual machine that runs the Windows operating system. The configuration includes the administrator user name and password. The command passes the configuration to the New-AzureVM cmdlet, which creates the virtual machine. - - + Description - + -----------This example creates a new, domain-joined Windows virtual machine and adds it to the specified service. - Example 2: Create a domain joined virtual machine + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>New-AzureVMConfig -Name "DomainVM" -InstanceSize Small -ImageName "Image09" | Add-AzureProvisioningConfig -WindowsDomain -Password "password" -AdminUsername "AdminMain" -ResetPasswordOnFirstLogon -JoinDomain "contoso.com" -Domain "contoso" -DomainUserName "DomainAdminUser" -DomainPassword "DomainPassword" -MachineObjectOU 'OU=AzureVMs,DC=contoso,DC=com' | New-AzureVM -ServiceName "ContosoService" - + PS C:\> New-AzureVMConfig -Name "MyLinuxVM" -InstanceSize Small -ImageName $LnxImg ` +| Add-AzureProvisioningConfig -Linux -LinuxUser $linuxUser -Password $Password ` +| New-AzureVM -ServiceName $svcName - This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration for a virtual machine to be joined with the contoso domain. The command includes user name and password necessary to join the virtual machine to the domain. The configuration requires the user to change the user password at the first logon. The command creates the virtual machine based on the provisioning object. - - + Description - + -----------This example creates a new Linux virtual machine and adds it to the specified service. - Example 3: Create a Linux-based virtual machine + -------------------------- EXAMPLE 4 -------------------------- - PS C:\>New-AzureVMConfig -Name "LinuxVM" -InstanceSize Small -ImageName "LinuxImage03" | Add-AzureProvisioningConfig -Linux -LinuxUser "LinuxRoot" -Password "password" | New-AzureVM -ServiceName "ContosoService" - + PS C:\> $certs = Get-ChildItem Cert:\CurrentUser\My +New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` +| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] ` +| New-AzureVM -ServiceName $svcName -WaitForBoot - This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration for a virtual machine that runs the Linux operating system. The configuration includes the root user name and password. The command creates the virtual machine based on the provisioning object. - - + Description - + -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is enabled by default on the VM. WaitForBoot option enables to wait for VM to boot. WinRMCertificate and X509Certificates are uploaded to hosted service by New-AzureVM. - Example 4: Create a virtual machine that includes certificates for WinRM + -------------------------- EXAMPLE 5 -------------------------- - PS C:\>$certs = Get-ChildItem Cert:\CurrentUser\My -New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image11" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] | New-AzureVM -ServiceName "ContosoService" -WaitForBoot - + PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` +| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -EnableWinRMHttp ` +| New-AzureVM -ServiceName $svcName -WaitForBoot - The first command gets certificates from a certificate store, and then stores them in the $certs array variable. - The second command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration that includes certificates for WinRM. The command creates the virtual machine based on the provisioning object. - - + Description - + -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. Both WinRM Https and Http listener is enabled on the VM. WaitForBoot option enables to wait for VM to boot. - Example 5: Create a virtual machine that has WinRM enabled over HTTP + -------------------------- EXAMPLE 6 -------------------------- - PS C:\>New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image14" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -EnableWinRMHttp | New-AzureVM -ServiceName "ContosoService" -WaitForBoot - + PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` +| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -DisableWinRMHttps ` +| New-AzureVM -ServiceName $svcName -WaitForBoot - This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration that has WinRM enabled over HTTP. The command creates the virtual machine based on the provisioning object. - - + Description - + -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is not enabled on the VM. WaitForBoot option enables to wait for VM to boot. - Example 6: Create a virtual machine that has WinRM disabled over HTTPS + -------------------------- EXAMPLE 7 -------------------------- - PS C:\>New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -DisableWinRMHttps | New-AzureVM -ServiceName "ContosoService" -WaitForBoot - + PS C:\> $certs = Get-ChildItem Cert:\CurrentUser\My +New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` +| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -X509Certificates $certs[0], $certs[1] -NoExportPrivateKey ` +| New-AzureVM -ServiceName $svcName -WaitForBoot - This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration that disables WinRM over HTTPS. The command creates the virtual machine based on the provisioning object. - - + Description - + -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is enabled by default on the VM. WaitForBoot option enables to wait for VM to boot. WinRMCertificate and X509Certificates are uploaded to hosted service by New-AzureVM. PrivateKeys are removed from X509Certificates before uploading them. - Example 7: Create a virtual machine with no key export + -------------------------- EXAMPLE 8 -------------------------- - PS C:\>$certs = Get-ChildItem Cert:\CurrentUser\My -New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -X509Certificates $certs[0], $certs[1] -NoExportPrivateKey | New-AzureVM -ServiceName "ContosoService" -WaitForBoot - + PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` +| Add-AzureProvisioningConfig -Windows -Pass word $Password -AdminUsername PsTestAdmin ` +| New-AzureVM -ServiceName $svcName -DisableGuestAgent - The first command gets certificates from a certificate store, and then stores them in the $certs array variable. - The second command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration for a virtual machine that includes certificates and does not export private keys. The command creates the virtual machine based on the provisioning object. - - + Description - + -----------This example creates a new Windows standalone virtual machine without enabling the provision guest agent and adds it to the specified service. WinRM Https listener is enabled by default on the VM. - New-AzureVM - - - - New-AzureVMConfig - + Unknown + + - + + Add-AzureVhd - Uploads a VHD file from an on-premise machine to a blob in a cloud storage account in Azure. + Uploads a VHD file from an on premise machine to a blob in a cloud storage account in Microsoft Azure @@ -3411,126 +2983,128 @@ New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | - The Add-AzureVhd cmdlet uploads on premise Virtual hard disk (VHD) images to a blob storage account as fixed .vhd images. It has parameters to configure the upload process such as specifying the number of uploader threads that will be used or overwriting a blob which already exists in the specified destination URI. For on premise VHD images, patching scenario is also supported so that diff disk images can be uploaded without having to upload the already uploaded base images. Shared Access Signature (SAS) URI is also supported. + + The Add-AzureVhd cmdlet allows to upload on premise VHD images to a blob storage account as fixed VHD images. It has parameters to configure the upload process such as specifying the number of uploader threads that will be used or overwriting a blob which already exists in the specified destination uri. For on premise VHD images, patching scenario is also supported so that diff disk images can be uploaded without having to upload the already uploaded base images. SAS Uri is supported as well. Add-AzureVhd - + Destination - Specifies a URI to a blob in Microsoft Azure Blob Storage. SAS in URI input is supported. However, in patching scenarios the destination cannot be a SAS URI. + A Uri to a blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well, however in patching scenarios destination cannot be a SAS Uri. Uri - + LocalFilePath - Species the file path of the local .vhd file. + File path of the local Vhd file. FileInfo - + NumberOfUploaderThreads - Specifies the number of threads to use for upload. + + - Int32 + Int32 - + BaseImageUriToPatch - Specifies an URI to a base image blob in Azure Blob Storage. SAS in URI input is supported as well. + A Uri to a base image blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well. - Uri + Uri - + OverWrite - Specifies that this cmdlet deletes the existing blob in the specified destination URI if it exists. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Determines to delete the existing blob in the specified destination uri if it exists. - AzureProfile + SwitchParameter - - BaseImageUriToPatch - - Specifies an URI to a base image blob in Azure Blob Storage. SAS in URI input is supported as well. - - Uri - - Uri - - - none - - + Destination - Specifies a URI to a blob in Microsoft Azure Blob Storage. SAS in URI input is supported. However, in patching scenarios the destination cannot be a SAS URI. + A Uri to a blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well, however in patching scenarios destination cannot be a SAS Uri. Uri Uri - none + + - + LocalFilePath - Species the file path of the local .vhd file. + File path of the local Vhd file. FileInfo FileInfo - none + + - + NumberOfUploaderThreads - Specifies the number of threads to use for upload. + + - Int32 + Int32 Int32 - none + + + + + BaseImageUriToPatch + + A Uri to a base image blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well. + + Uri + + Uri + + + + - + OverWrite - Specifies that this cmdlet deletes the existing blob in the specified destination URI if it exists. + Determines to delete the existing blob in the specified destination uri if it exists. SwitchParameter SwitchParameter - none + + - - Profile + + NumberOfThreads - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Determines the number of uploader threads that will be used during upload. - AzureProfile + int - AzureProfile + int - none + 8 @@ -3538,15 +3112,13 @@ New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | - - + - + + - - @@ -3555,703 +3127,533 @@ New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a VHD file + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" - + PS C:\> Add-AzureVhd -Destination http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd - This command adds a .vhd file to a storage account. - - + Description - + -----------This command uploads the vhd file on premise as a fixed disk to the specified blob by destination uri. - Example 2: Add a VHD file and overwrite the destination + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -Overwrite - + PS C:\> Add-AzureVhd -Destination http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -Overwrite - This command adds a .vhd file to a storage account. - - + Description - + -----------Overwrite option tells the cmdlet to delete if there is a blob already in the specified destination uri. - Example 3: Add a VHD file and specify the number of threads + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -NumberOfThreads 32 - + PS C:\> Add-AzureVhd -Destination http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -NumberOfThreads 32 - This command adds a .vhd file to a storage account and specifies the number of threads to use to upload the file. - - + Description - + -----------NumberOfThreads allows to change the default number of uploader threads, which is 8. - Example 4: Add a VHD file and specify the SAS URI + -------------------------- EXAMPLE 4 -------------------------- - PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd?st=2013-01-09T22%3A15%3A49Z&amp;se=2013-01-09T23%3A10%3A49Z&amp;sr=b&amp;sp=w&amp;sig=13T9Ow%2FRJAMmhfO%2FaP3HhKKJ6AY093SmveOSIV4%2FR7w%3D" -LocalFilePath "C:\vhd\win7baseimage.vhd" - + PS C:\> Add-AzureVhd -Destination "http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd?st=2013-01-09T22%3A15%3A49Z&amp;se=2013-01-09T23%3A10%3A49Z&amp;sr=b&amp;sp=w&amp;sig=13T9Ow%2FRJAMmhfO%2FaP3HhKKJ6AY093SmveOSIV4%2FR7w%3D" -LocalFilePath C:\vhd\win7baseimage.vhd - This command adds a .vhd file to a storage account and specifies the SAS URI. - - + Description - + -----------Destination is provided with a SAS signature in the querystring of the Uri. SAS signature should have Read,Write, and Delete permissions. - Save-AzureVhd - + Unknown + + - + - Add-AzureVirtualIP + + Add-AzureVMImage + - Adds a virtual IP to a cloud service. + The Add-AzureVMImage cmdlet adds a new operating system (OS) image or a new VM Image to the image repository. The image should be a sysprep'd or generalized image. - + + Add - AzureVirtualIP - + AzureVMImage + + - The Add-AzureVirtualIP cmdlet adds a new virtual IP (VIP) to your Azure service. The new virtual IP has a name but is not allocated an IP address. - The IP address is allocated only when you associate an endpoint to the VIP. See Add-AzureEndpoint for more details. - Your subscription is charged for extra VIPs only once they are associated with an endpoint. + + + - Add-AzureVirtualIP - - ServiceName + Add-AzureVMImage + + ImageName - Specifies the name of the service. + Specifies the name of the image being added to the image repository. - String + string - - VirtualIPName + + MediaLocation - Specifies the name of the virtual IP address. + Specifies the location of the physical blob page where the image resides. This is a link to a blob page in the current subscription's storage. - String + string - - Profile + + Label - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a label to give the image. - AzureProfile + string - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ServiceName - - Specifies the name of the service. - - String - - String - - - none - - - VirtualIPName - - Specifies the name of the virtual IP address. - - String - - String - - - none - - - - - - - - - + + Eula - + Specifies the End User License Aggreement, recommended value is a URL. - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + string + + + Description - + Specifies the description of the OS image. - - - - - - - - - - - - Example 1: Add a virtual IP to a service - - - - - PS C:\>Add-AzureVirtualIP -VirtualIPName "Vip01" -ServiceName "ContosoService03" -OperationDescription OperationId OperationStatus --------------------- ----------- --------------- -Add-AzureVirtualIP 4bd7b638-d2e7-216f-ba38-5221233d70ce Succeeded - - - This command adds a virtual IP address to a service. - - - - - - - - - - - - - Add-AzureEndpoint - - - - Remove-AzureVirtualIP - - - - - - - Add-AzureVMImage - - Adds a new operating system image or a new virtual machine image to the image repository. - - - - - Add - AzureVMImage - - - - The Add-AzureVMImage cmdlet adds a new operating system image or a new virtual machine image to the image repository. The image is a generalized operating system image, using either Sysprep for Windows or, for Linux, using the appropriate tool for the distribution. - - - - Add-AzureVMImage - - ImageName + string + + + ImageFamily - Specifies the name of the image being added to the image repository. + Specifies a value that can be used to group OS images. - String + string + + + PublishedDate + + + + + System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + + + PrivacyUri + + Specifies the URI that points to a document that contains the privacy policy related to the OS image. + + Uri - + RecommendedVMSize - Specifies the size to use for the virtual machine that is created from the operating system image. - The acceptable values for this parameter are: - --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 + Specifies the size to use for the virtual machine that is created from the OS image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". - String + string - + IconName - Specifies the name of the icon that is used when the image is added to the repository. + Not Specified - String + string - + SmallIconName - Specifies the name of the small icon that is used when the image is added to the repository. + Not Specified - String + string - + ShowInGui - - + Not Specified - - MediaLocation + + PipelineVariable - Specifies the location of the physical blob page where the image resides. This is a link to a blob page in the current subscription's storage. + Not Specified - String + string + + + + Add-AzureVMImage + + ImageName + + Specifies the name of the image being added to the image repository. + + string + + + DiskConfig + + Not Specified + + VirtualMachineImageDiskConfigSet - + OS Specifies the operating system version of the image. - - Windows - Linux - + string - + Label Specifies a label to give the image. - String + string - + Eula - Specifies the End User License Agreement. It is recommended that you use an URL for this value. + Specifies the End User License Aggreement, recommended value is a URL. - String + string - + Description - Specifies the description of the operating system image. + Specifies the description of the OS image. - String + string - + ImageFamily - Specifies a value that is used to group operating system images. + Specifies a value that can be used to group OS images. - String + string - + PublishedDate - Specifies the date when the operating system image was added to the image repository. + + - DateTime + System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - + PrivacyUri - Specifies the URL that points to a document that contains the privacy policy related to the OS image. + Specifies the URI that points to a document that contains the privacy policy related to the OS image. - Uri + Uri - - Profile + + RecommendedVMSize - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the size to use for the virtual machine that is created from the OS image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". - AzureProfile + string - - - Add-AzureVMImage - - ImageName - - Specifies the name of the image being added to the image repository. - - String - - - RecommendedVMSize - - Specifies the size to use for the virtual machine that is created from the operating system image. - The acceptable values for this parameter are: - --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 - - String - - + IconName - Specifies the name of the icon that is used when the image is added to the repository. + Not Specified - String + string - + SmallIconName - Specifies the name of the small icon that is used when the image is added to the repository. + Not Specified - String + string - + ShowInGui - - - - - - DiskConfig - - Specifies the operating system disk configuration for the virtual machine image. - - VirtualMachineImageDiskConfigSet - - - OS - - Specifies the operating system version of the image. - - - Windows - Linux - - - - Label - - Specifies a label to give the image. - - String - - - Eula - - Specifies the End User License Agreement. It is recommended that you use an URL for this value. - - String - - - Description - - Specifies the description of the operating system image. - - String - - - ImageFamily - - Specifies a value that is used to group operating system images. - - String - - - PublishedDate - - Specifies the date when the operating system image was added to the image repository. - - DateTime - - - PrivacyUri - - Specifies the URL that points to a document that contains the privacy policy related to the OS image. + Not Specified - Uri - - Profile + + PipelineVariable - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + string + - + Description - Specifies the description of the operating system image. + Specifies the description of the OS image. - String + string - String + string - none + + - + DiskConfig - Specifies the operating system disk configuration for the virtual machine image. + Not Specified VirtualMachineImageDiskConfigSet VirtualMachineImageDiskConfigSet - none + + - + Eula - Specifies the End User License Agreement. It is recommended that you use an URL for this value. + Specifies the End User License Aggreement, recommended value is a URL. - String + string - String + string - none + + - + IconName - Specifies the name of the icon that is used when the image is added to the repository. + Not Specified - String + string - String + string - none + + - + ImageFamily - Specifies a value that is used to group operating system images. + Specifies a value that can be used to group OS images. - String + string - String + string - none + + - + ImageName Specifies the name of the image being added to the image repository. - String + string - String + string - none + + - + Label Specifies a label to give the image. - String + string - String + string - none + + - + MediaLocation Specifies the location of the physical blob page where the image resides. This is a link to a blob page in the current subscription's storage. - String + string - String + string - none + + - + OS Specifies the operating system version of the image. - String + string - String + string - none + + - - PrivacyUri + + PipelineVariable - Specifies the URL that points to a document that contains the privacy policy related to the OS image. + Not Specified - Uri + string - Uri + string - none + + - - Profile + + PrivacyUri - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the URI that points to a document that contains the privacy policy related to the OS image. - AzureProfile + Uri - AzureProfile + Uri - none + + - + PublishedDate - Specifies the date when the operating system image was added to the image repository. + + - DateTime + System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - DateTime + System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - none + + - + RecommendedVMSize - Specifies the size to use for the virtual machine that is created from the operating system image. - The acceptable values for this parameter are: - --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 + Specifies the size to use for the virtual machine that is created from the OS image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". - String + string - String + string - none + + - + ShowInGui - - + Not Specified SwitchParameter SwitchParameter - none + + - + SmallIconName - Specifies the name of the small icon that is used when the image is added to the repository. + Not Specified - String + string - String + string - none + + + - - - - - + + + @@ -4260,71 +3662,126 @@ Add-AzureVirtualIP 4bd7b638-d2e7-216f-ba38-5221233d70ce Succeeded OSImageContext - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Add an operating system image to the repository + + -------------------------- EXAMPLE 1 -------------------------- + + C:\PS> + + + $s = New-AzureVMImageDiskConfigSet + + Set-AzureVMImageOSDiskConfig -DiskConfig $s -HostCaching ReadWrite -OSState 'Generalized' -OS 'Windows' -MediaLink $link + # A Uri link to the vhd in your storage account + + Set-AzureVMImageDataDiskConfig -DiskConfig $s -DataDiskName test1 -HostCaching ReadWrite -Lun 0 -MediaLink $link1 + + Set-AzureVMImageDataDiskConfig -DiskConfig $s -DataDiskName test4 -HostCaching ReadWrite -Lun 0 -MediaLink $link + + Remove-AzureVMImageDataDiskConfig -DiskConfig $s -DataDiskName test4 + + $imgname = 'testCREATEvmimage2'; + + Add-AzureVMImage -ImageName $imgname -Label test1 -Description test1 -DiskConfig $s -Eula 'http://www.test.com' -ImageFamily Windows -PublishedDate (Get-Date) -PrivacyUri 'http://www.test.com' -RecommendedVMSize Small -IconName test1 -SmallIconName test2 -ShowInGui + + + Description + ----------- + + Adds a VM Image to image repository + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> - PS C:\>$S = New-AzureVMImageDiskConfigSet -PS C:\> Set-AzureVMImageOSDiskConfig -DiskConfig $S -HostCaching ReadWrite -OSState "Generalized" -OS "Windows" -MediaLink $Link -PS C:\> Set-AzureVMImageDataDiskConfig -DiskConfig $S -DataDiskName "Test1" -HostCaching ReadWrite -Lun 0 -MediaLink $Link1 -PS C:\> Set-AzureVMImageDataDiskConfig -DiskConfig $S -DataDiskName "Test4" -HostCaching ReadWrite -Lun 0 -MediaLink $Link -PS C:\> Remove-AzureVMImageDataDiskConfig -DiskConfig $S -DataDiskName "Test4" -PS C:\> $IMGName = "TestCREATEvmimage2"; -PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Test1" -DiskConfig $S -Eula "http://www.contoso.com" -ImageFamily Windows -PublishedDate (Get-Date) -PrivacyUri '"http://www.test.com" -RecommendedVMSize Small -IconName "Icon01" -SmallIconName "SmallIcon01" -ShowInGui - + + - This example adds an operating system image to the repository. - - + Description + ----------- + + + + + + + + + + - + + + - Get-AzureVMImage - - - - Remove-AzureVMImage - - - - Save-AzureVMImage - - - - Update-AzureVMImage + + - + + Export-AzureVM - Exports an Azure virtual machine state to a file. + Exports a Microsoft Azure virtual machine state to a file. @@ -4334,90 +3791,76 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Export-AzureVM cmdlet exports the state of a virtual machine to an .xml file. - Running Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. + + The Export-AzureVM cmdlet exports the state of a virtual machine to an xml file. + + Note: Using Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. Export-AzureVM - + ServiceName - Specifies the name of the Azure service that hosts the virtual machine. + Specifies the name of the Microsoft Azure service that hosts the virtual machine. String - + Name - Specifies the name of the virtual machine for which this cmdlet exports state. + Specifies the name of the virtual machine whose state you are exporting. String - + Path - Specifies the path and file name to which this cmdlet saves the virtual machine state. + Specifies the path and file name to which the virtual machine state will be saved. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Name + + ServiceName - Specifies the name of the virtual machine for which this cmdlet exports state. + Specifies the name of the Microsoft Azure service that hosts the virtual machine. String String - none + + - - Path + + Name - Specifies the path and file name to which this cmdlet saves the virtual machine state. + Specifies the name of the virtual machine whose state you are exporting. String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - ServiceName + + Path - Specifies the name of the Azure service that hosts the virtual machine. + Specifies the path and file name to which the virtual machine state will be saved. String String - none + + @@ -4425,15 +3868,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -4442,37 +3883,44 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Export a virtual machine + -------------------------- Example 1 -------------------------- - PS C:\>Export-AzureVM -ServiceName "ContosoService" -Name "ContosoRole06" -Path "C:\vms\VMstate.xml" - + PS C:\> C:\PS>Export-AzureVM -ServiceName $MyService -Name $MyRole -Path "C:\vms\VMstate.xml" - This command exports the state of the specified virtual machine to the VMstate.xml file. - - + This command exports the state of the $MyRole virtual machine to the “VMstate.xml” file. - + + @@ -4480,15 +3928,22 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes Import-AzureVM - + + + + + New-AzureVM + + - + + Get-AzureAclConfig - Gets the ACL configuration object from an Azure virtual machine. + Gets the ACL configuration object from an existing Azure VM. @@ -4498,70 +3953,54 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureAclConfig cmdlet gets the access control list (ACL) configuration object from an existing Azure virtual machine. + + The Get-AzureAclConfig cmdlet gets the ACL configuration object from an existing Azure VM. Get-AzureAclConfig - + EndpointName - Specifies the name of the endpoint for which this cmdlet gets an ACL. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the endpoint. - AzureProfile + String - + VM - Specifies the virtual machine object for which this cmdlet gets ACL configuration. + Specifies the virtual machine object for which the endpoint will be created. IPersistentVM - + EndpointName - Specifies the name of the endpoint for which this cmdlet gets an ACL. + Specifies the name of the endpoint. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - + VM - Specifies the virtual machine object for which this cmdlet gets ACL configuration. + Specifies the virtual machine object for which the endpoint will be created. IPersistentVM IPersistentVM - none + + @@ -4569,15 +4008,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -4586,65 +4023,72 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get an ACL configuration object for a virtual machine endpoint + -------------------------- Example 1 -------------------------- - PS C:\>$Acl = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureAclConfig -EndpointName "Web" - + PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "myservice" -Name "MyVM" | Get-AzureAclConfig -EndpointName "Web" - The first command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the Get-AzureAclConfig cmdlet by using the pipeline operator. That cmdlet gets the ACL configuration for the endpoint named Web. The command stores that ACL configuration object in the $Acl variable. - - + This command will get the ACL configuration from the VM with name "MyVM". - + + - - Get-AzureVM - - New-AzureAclConfig - + + Remove-AzureAclConfig - + + Set-AzureAclConfig - + + - + + Get-AzureAffinityGroup - Gets an Azure affinity group object. + Returns an object that represents a Microsoft Azure affinity group. @@ -4654,51 +4098,34 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureAffinityGroup cmdlet gets an Azure affinity group. The affinity group object includes the affinity group name, location, label, description and the storage and hosted services that are part of the affinity group. + + The Get-AzureAffinityGroup cmdlet returns an affinity group object that includes the affinity group name, location, label, description and the storage and hosted services that are part of the affinity group. Get-AzureAffinityGroup - + Name - Specifies the name of the affinity group that this cmdlet gets. Names for affinity groups created through the Management Portal are typically GUIDs. The Management Port shows the affinity group label. + Affinity Group name. A name is assigned to the affinity group at the time of creation. Note that names for affinity groups created through the Management Portal are typically GUIDs and that the UI shows its label. - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + String - + Name - Specifies the name of the affinity group that this cmdlet gets. Names for affinity groups created through the Management Portal are typically GUIDs. The Management Port shows the affinity group label. + Affinity Group name. A name is assigned to the affinity group at the time of creation. Note that names for affinity groups created through the Management Portal are typically GUIDs and that the UI shows its label. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + @@ -4706,15 +4133,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -4722,61 +4147,57 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes AffinityGroup - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get properties of an affinity group + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureAffinityGroup -Name "South01" - + PS C:\> C:\PS>Get-AzureAffinityGroup -Name "MyGroup1" - This command gets the properties of the affinity group named South01. - - + This example list the properties of the "MyGroup1" affinity group. - + + - - New-AzureAffinityGroup - - - - Remove-AzureAffinityGroup - - - - Set-AzureAffinityGroup - - - + + Get-AzureCertificate - Gets a certificate object from an Azure service. + Gets a certificate object from the specified Microsoft Azure service. @@ -4786,89 +4207,75 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureCertificate cmdlet gets a certificate object from an Azure service. + + + Get-AzureCertificate - + ServiceName - Specifies the name of the Azure service from which this cmdlet gets a certificate. + Specifies the name of the Microsoft Azure service that has the certificate. String - - Profile + + ThumbprintAlgorithm - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the algorithm used to create the certificate thumbprint. - AzureProfile + String - + Thumbprint - Specifies the thumbprint of the certificate that this cmdlet gets. - - String - - - ThumbprintAlgorithm - - Specifies the algorithm that is used to create the certificate thumbprint. + Specifies the thumbprint that identifies the certificate. - String + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + ServiceName - Specifies the name of the Azure service from which this cmdlet gets a certificate. + Specifies the name of the Microsoft Azure service that has the certificate. String String - none + + - - Thumbprint + + ThumbprintAlgorithm - Specifies the thumbprint of the certificate that this cmdlet gets. + Specifies the algorithm used to create the certificate thumbprint. - String + String String - none + + - - ThumbprintAlgorithm + + Thumbprint - Specifies the algorithm that is used to create the certificate thumbprint. + Specifies the thumbprint that identifies the certificate. - String + String String - none + + @@ -4876,15 +4283,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -4892,56 +4297,61 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes CertificateContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get certificates from a service + -------------------------- Example 1 -------------------------- - PS C:\>$AzureCert = Get-AzureCertificate -ServiceName "ContosoService" - + PS C:\> C:\PS>$MyAzureCert = Get-AzureCertificate -ServiceName "MyService" - This command gets certificate objects from the service named ContosoService, and then stores them in the $AzureCert variable. - - + This command gets the certificate object from the specified cloud service, and stores it in the $MyAzureCert variable. - + + - Example 2: Get a certificate from a service + -------------------------- Example 2 -------------------------- - PS C:\>$AzureCert = Get-AzureCertificate -ServiceName "ContosoService" -Thumbprint '5383CE0343CB6563281CA97C1D4D712209CFFA97' - + PS C:\> C:\PS>$MyAzureCert = Get-AzureCertificate -ServiceName "MyService" `-Thumbprint <CertThumbprint> - This command gets the certificate object identified by the specified thumbprint from the service named ContosoService, and then stores it in the $AzureCert variable. - - + This command gets the certificate object identified by the specified thumbprint from the specified hosted service, and stores it in the $MyAzureCert variable. - + + @@ -4949,23 +4359,22 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes Add-AzureCertificate - - - - New-AzureCertificateSetting - + + Remove-AzureCertificate - + + - + + Get-AzureDataDisk - Gets Azure data disks. + Gets a Microsoft Azure data disk object. @@ -4975,70 +4384,54 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureDataDisk cmdlet gets an object that represents the data disks on an Azure virtual machine. To get a specific data disk object, specify the logical unit number (LUN) of the disk. + + The Get-AzureDataDisk cmdlet gets an object that represents the Microsoft Azure data disks on the specified virtual machine. To get a specific data disk object, specify the disk's LUN. Get-AzureDataDisk - + Lun - Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. - - Int32 - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the LUN where the data disk resides. - AzureProfile + Nullable`1[Int32] - + VM - Specifies the virtual machine object for which this cmdlet gets data disks. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the virtual machine object from which to get data disk objects. IPersistentVM - + Lun - Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. - - Int32 - - Int32 - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the LUN where the data disk resides. - AzureProfile + Nullable`1[Int32] - AzureProfile + Nullable`1[Int32] - none + + - + VM - Specifies the virtual machine object for which this cmdlet gets data disks. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the virtual machine object from which to get data disk objects. IPersistentVM IPersistentVM - none + + @@ -5046,15 +4439,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -5063,500 +4454,290 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get all data disks for a virtual machine + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVM "myservice" –Name "MyVM" | Get-AzureDataDisk + + This command gets the "MyVM" virtual machine running on the "myservice" cloud service, and then gets a list of the data disks mounted on the virtual machine. + + + + + + + + + + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Get-AzureDataDisk - + PS C:\> C:\PS>$dDisk = ( Get-AzureVM "myservice" -Name "MyVM" ` + | Get-AzureDataDisk -LUN 2 ) - This command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet gets all the data disks for this virtual machine. - - + This command gets a data disk object, $dDisk, that represents the data disk mounted at LUN 2 on the Database virtual machine running on the Microsoft Azure service "myservice". - + + - Example 2: Get a specific data disk for a vitural machine + -------------------------- Example 3 -------------------------- - PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Get-AzureDataDisk -LUN 2 - + PS C:\> C:\PS>Get-AzureVM "MyService" –Name "MyVM" | Get-AzureDataDisk –LUN 1 - This command gets the virtual machine named VirtualMachine07 in the service named ContosoService. The command passes the virtual machine to the current cmdlet. The current cmdlet gets the data disk that has the LUN 2. - - + This command removes the data disk at LUN 1 on the "MyVM" virtual machine running on the Microsoft Azure service "MyService". - + + - - Add-AzureDataDisk - - Get-AzureVM - + + - Remove-AzureDataDisk - + Add-AzureDataDisk + + Set-AzureDataDisk - + + + + + Remove-AzureDataDisk + + - + + - Get-AzureDeploymentEvent + Get-AzureDeployment - Gets information about events that Azure initiates that impact virtual machines and cloud services. + + Get - AzureDeploymentEvent + AzureDeployment - The Get-AzureDeploymentEvent cmdlet gets information regarding events that Azure initiates that impact virtual machines and cloud services. These events include planned maintenance events. This cmdlet returns a list of events that identify the role instance or virtual machine impacted, the reason for the impact, and the start time of the event. + + + - Get-AzureDeploymentEvent - + Get-AzureDeployment + ServiceName - Specifies the name of the hosted service for which this cmdlet gets scheduled events. - - String - - - DeploymentName - - Specifies the name of the deployment for which this cmdlet gets events. + + String - - StartTime - - Specifies the starting time for the scheduled events that this cmdlet gets. - - DateTime - - - EndTime - - Specifies the ending time for the scheduled events that this cmdlet gets. - - DateTime - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Get-AzureDeploymentEvent - - ServiceName - - Specifies the name of the hosted service for which this cmdlet gets scheduled events. - - String - - - StartTime - - Specifies the starting time for the scheduled events that this cmdlet gets. - - DateTime - - - EndTime - - Specifies the ending time for the scheduled events that this cmdlet gets. - - DateTime - - + Slot - Specifies the environment of the deployment for which this cmdlet gets scheduled events. Valid values are: Staging and Production. The default value is Production. - - - Staging - Production - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - - DeploymentName + + ServiceName - Specifies the name of the deployment for which this cmdlet gets events. + + String String - none + + - - EndTime + + Slot - Specifies the ending time for the scheduled events that this cmdlet gets. + + - DateTime + String - DateTime + String - none + + - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + + + - AzureProfile + + + + + + - none - - - ServiceName - Specifies the name of the hosted service for which this cmdlet gets scheduled events. - String + + + + - String + + + + + + - none - - - Slot - - Specifies the environment of the deployment for which this cmdlet gets scheduled events. Valid values are: Staging and Production. The default value is Production. - - String - - String - - - none - - - StartTime - - Specifies the starting time for the scheduled events that this cmdlet gets. - - DateTime - - DateTime - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - - - - - - - - - - - - - - - - Get-AzureDeployment - - - - - - - Get-AzureDeployment - - Gets details of a deployment. - - - - - Get - AzureDeployment - - - - The Get-AzureDeployment cmdlet gets details of an Azure deployment. Specify the name of the Azure service and the slot of the deployment. - - - - Get-AzureDeployment - - ServiceName - - Specifies the name of the service. - - String - - - Slot - - Specifies the environment of the deployment. Valid values are: Staging or Production. The default value is Production. - - - Staging - Production - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ServiceName - - Specifies the name of the service. - - String - - String - - - none - - - Slot - Specifies the environment of the deployment. Valid values are: Staging or Production. The default value is Production. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get details for a production deployment + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureDeployment -ServiceName "ContosoService" - + PS C:\> C:\PS>Get-AzureDeployment -ServiceName "MyService" - This command returns the details of the deployment for the service named ContosoService. This command does not specify a slot. Therefore, the command uses the default value of Production. - - + This command will return the details of the production deployment of "MyService". - + + - Example 2: Get details for a staging deployment + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureDeployment -ServiceName "ContosoService" -Slot "Staging" - + PS C:\> C:\PS>Get-AzureDeployment -ServiceName "MyService" -Slot Staging - This command returns the details of the staging deployment of ContosoService. - - + This command returns the details of the staging deployment of "MyService". - + + - - Get-AzureDeploymentEvent - - Move-AzureDeployment - + + New-AzureDeployment - + + Remove-AzureDeployment - + + Set-AzureDeployment - + + + + + Unknown + + - + + Get-AzureDisk - Gets information about disks in the Azure disk repository. + Gets an object with information on disks in the Microsoft Azure disk repository. @@ -5566,51 +4747,34 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureDisk cmdlet gets information about the disks that are stored in the Azure disk repository for the current subscription. This cmdlet returns a list of information for all disks in the repository. To view information for a specific disk, specify the name of the disk. + + The Get-AzureDisk cmdlet retrieves an object with information about the disks stored in the Microsoft Azure disk repository for the current subscription. It returns a list object with information for all disks in the repository, or with information on a specific disk if its disk name is specified. Get-AzureDisk - + DiskName - Specifies the name of the disk in the disk repository about which this cmdlet gets information. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the disk in the disk repository to return information about. - AzureProfile + String - + DiskName - Specifies the name of the disk in the disk repository about which this cmdlet gets information. + Specifies the name of the disk in the disk repository to return information about. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + @@ -5618,15 +4782,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -5635,75 +4797,79 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get information about a disk + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureDisk -DiskName "ContosoDataDisk" - + PS C:\> C:\PS>Get-AzureDisk -DiskName MyDataDisk - This command gets information data about the disk named ContosoDataDisk from the disk repository. - - + This command retrieves data about the "MyDataDisk" disk from the disk repository. - + + - Example 2: Get information about all disks + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureDisk - + PS C:\> C:\PS>Get-AzureDisk - This command gets information about all the disks in the disk repository. - - + This command retrieves data for all the disks in the disk repository. - + + - Example 3: Get information about a disk + -------------------------- Example 3 -------------------------- - PS C:\>Get-AzureDisk | Where-Object {$_.AttachedTo -eq $Null } | Format-Table -AutoSize -Property "DiskName","DiskSizeInGB","MediaLink" - + PS C:\> C:\PS>Get-AzureDisk | Where-Object {$_.AttachedTo –eq $null } ` + | Format-Table –auto "DiskName","DiskSizeInGB","MediaLink" - This command gets data for all of the disks in the disk repository that are not currently attached to a virtual machine. The command gets information about all of the disks, and passes each object to the Where-Object cmdlet. That cmdlet drops any disk that does not have a value of $Null for the AttachedTo property. The command formats the list as a table by using the Format-Table cmdlet. - - + This command gets data for all of the disks in the disk repository that are not currently attached to a virtual machine and then formats the list as a table. - + + @@ -5711,23 +4877,27 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes Add-AzureDisk - + + Remove-AzureDisk - + + Update-AzureDisk - + + - + + Get-AzureDns - Gets the DNS settings for an Azure deployment. + Gets an object with the DNS settings for the Microsoft Azure deployment. @@ -5737,32 +4907,34 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureDns cmdlet gets the DNS settings for an Azure deployment. The cmdlet returns the friendly name and IP address of the DNS server in a DNS settings object. + + The Get-AzureDNS cmdlet gets the DNS settings for a Microsoft Azure deployment. The returned settings are "name" (a friendly name) and "Address" which is the IP address of the DNS server. Get-AzureDns - + DnsSettings Specifies a DnsSettings object. - DnsSettings + DnsSettings - + DnsSettings Specifies a DnsSettings object. - DnsSettings + DnsSettings DnsSettings - none + + @@ -5770,15 +4942,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -5787,69 +4957,57 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get DNS settings + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureDeployment -ServiceName "ContosoService" -Slot "Production" | Get-AzureDNS - + PS C:\> C:\PS>Get-AzureDeployment -ServiceName "MySvc1" -Slot "Production" | Get-AzureDNS - This command uses the Get-AzureDeployment cmdlet to get the production deployment of the service named ContosoService. The command passes that object to the current cmdlet by using the pipeline operator. The current cmdlet gets the DNS settings. - - + This command gets the production DNS settings for the specified deployment. - + + - - Add-AzureDns - - - - Get-AzureDeployment - - - - New-AzureDns - - - - Remove-AzureDns - - - - Set-AzureDns - - - + + Get-AzureEndpoint - Gets information about the endpoints that are assigned to an Azure virtual machine. + Gets an object with information about the endpoints assigned to a Microsoft Azure virtual machine. @@ -5859,70 +5017,54 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureEndpoint cmdlet gets information about the endpoints that are assigned to an Azure virtual machine. + + The Get-AzureEndpoint cmdlet returns an object with information about the endpoints that are assigned to a Microsoft Azure virtual machine. Get-AzureEndpoint - + Name - Specifies the name of the endpoint for which this cmdlet gets information. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the input endpoint from which information will be retrieved. If the Name parameter is omitted, information about all endpoints assigned to the specified virtual machine is retrieved. - AzureProfile + String - + VM - Specifies the virtual machine from which this cmdlet gets endpoint information. + Specifies the virtual machine object from which endpoint information will be retrieved. IPersistentVM - + Name - Specifies the name of the endpoint for which this cmdlet gets information. + Specifies the name of the input endpoint from which information will be retrieved. If the Name parameter is omitted, information about all endpoints assigned to the specified virtual machine is retrieved. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - + VM - Specifies the virtual machine from which this cmdlet gets endpoint information. + Specifies the virtual machine object from which endpoint information will be retrieved. IPersistentVM IPersistentVM - none + + @@ -5930,15 +5072,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -5947,37 +5087,44 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get endpoint information for a virtual machine + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine12" | Get-AzureEndpoint - + PS C:\> Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureEndpoint - This command retrieves the configuration of a virtual machine named VirtualMachine12 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet gets endpoint information for that virtual machine. - - + This command gets endpoint information for the virtual machine “MyVM”. - + + @@ -5985,27 +5132,32 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes Add-AzureEndpoint - - - - Get-AzureVM - + + Remove-AzureEndpoint - + + Set-AzureEndpoint - + + + + + Get-AzureVM + + - + + Get-AzureInternalLoadBalancer - Gets the details of the internal load balancer configuration. + Get-AzureInternalLoadBalancer [-ServiceName] <string> [<CommonParameters>] @@ -6015,51 +5167,36 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureInternalLoadBalancer cmdlet gets the details of the internal load balancer configuration for an Azure service. + + Returns the details of the Internal Load balancer configuration on the deployment. Get-AzureInternalLoadBalancer - + ServiceName - Specifies the name of the service for which this cmdlet gets details for an internal load balancer. + + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + ServiceName - Specifies the name of the service for which this cmdlet gets details for an internal load balancer. + + String String - none + + @@ -6067,15 +5204,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -6083,69 +5218,61 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes Microsoft.WindowsAzure.Commands.ServiceManagement.Model.InternalLoadBalancerContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get details for an internal load balancer + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureService -ServiceName "ContosoService" | Get-AzureInternalLoadBalancer - + PS C:\> Get-AzureService -ServiceName ILBINVNet | Get-AzureInternalLoadBalancer - This command gets the service named ContosoService by using the Get-AzureService cmdlet. The command passes that service to the current cmdlet by using the pipeline operator. The current cmdlet gets details for the internal load balancer for that service. - - + Description - + -----------Returns information on the internal load balancer configuration on the deployment - Add-AzureInternalLoadBalancer - - - - Get-AzureService - - - - New-AzureInternalLoadBalancerConfig - - - - Remove-AzureInternalLoadBalancer - - - - Set-AzureInternalLoadBalancer - + Unknown + + - + + Get-AzureLocation - Gets the available data center locations for the current Azure subscription. + Gets the available data center locations for the current Microsoft Azure subscription. @@ -6155,48 +5282,28 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureLocation cmdlet gets a list of the available Azure data centers and their properties for the current Azure subscription. Before you run this cmdlet, you must set your current subscription by using the Select-AzureSubscription and Set-AzureSubscription cmdlets. + + The Get-AzureLocation cmdlet returns a list object with the available Microsoft Azure data centers and their properties for the current Microsoft Azure subscription. Before running this cmdlet, you need to set your current subscription with Select-AzureSubscription and Set-AzureSubscription. Get-AzureLocation - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - + - + + - - @@ -6205,99 +5312,109 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get locations + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureLocation - + PS C:\> C:\PS>Get-AzureLocation This command gets a list of available data centers, and their properties, for the current subscription. - - - + + + + Select-AzureSubscription + + + + + Set-AzureSubscription + + + + + Import-AzurePublishSettingsFile + + + - + + - Get-AzureNetworkInterfaceConfig + Get-AzureOSDisk - - + Gets the operating system disk object for the specified Microsoft Azure virtual machine. Get - AzureNetworkInterfaceConfig + AzureOSDisk + + The Get-AzureOSDisk cmdlet gets an object representing the operating system disk of the specified virtual machine object. - Get-AzureNetworkInterfaceConfig - - Name - - - String - - + Get-AzureOSDisk + VM + Specifies the virtual machine object whose operating system disk object you want to get. - PersistentVMRoleContext + IPersistentVM - - Name - - - String - - String - - - none - - + VM + Specifies the virtual machine object whose operating system disk object you want to get. - PersistentVMRoleContext + IPersistentVM - PersistentVMRoleContext + IPersistentVM - none + + @@ -6305,10 +5422,10 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + @@ -6320,130 +5437,88 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - 1: + -------------------------- Example 1 -------------------------- - PS C:\> - + PS C:\> Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureOSDisk - - - - + This command gets the operating system disk object for the "MyVM" virtual machine. - + + - - Add-AzureNetworkInterfaceConfig - - - - Remove-AzureNetworkInterfaceConfig - - - - Set-AzureNetworkInterfaceConfig - - - + + - Get-AzureOSDisk + Get-AzureOSVersion - Gets the operating system disk of an Azure virtual machine. + Returns an object with all the available Microsoft Azure guest operating systems. Get - AzureOSDisk + AzureOSVersion - The Get-AzureOSDisk cmdlet gets the operating system disk of an Azure virtual machine. + + The Get-AzureOSVersion cmdlet returns a list object with all the available Microsoft Azure guest operating systems. - Get-AzureOSDisk - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the virtual machine for which this cmdlet gets the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - - IPersistentVM - + Get-AzureOSVersion - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM - - Specifies the virtual machine for which this cmdlet gets the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - - IPersistentVM - - IPersistentVM - - - none - - - + - + + - - @@ -6452,182 +5527,74 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - - - - Example 1: Get an operating system disk - - - - - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine02" | Get-AzureOSDisk - - - This command gets the virtual machine named VirtualMachine02 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet gets the operating system disk of that virtual machine. - - - - - - - - - - - - - Get-AzureDataDisk - - - - Set-AzureOSDisk - - - - - - - Get-AzureOSVersion - - Lists all Azure guest operating systems. - - - - - Get - AzureOSVersion - - - - The Get-AzureOSVersion cmdlet lists all the available Azure guest operating systems. - - - - Get-AzureOSVersion - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get all available operating systems + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureOSVersion - + PS C:\> C:\PS>Get-AzureOSVersion - This command retrieves an object that contains a list of all versions of guest operating systems that are available in the current subscription. - - + This command retrieves an object containing a list of all versions of the guest operating system that are available in the current subscription. - + + - Example 2: Display operating system information in a table + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureOSVersion | Format-Table -AutoSize -Property "Family", "FamilyLabel", "Version" - + PS C:\> C:\PS>Get-AzureOSVersion | Format-Table –auto "Family", "FamilyLabel", "Version" - This command retrieves an object that contains a list of all versions of guest operating systems that are available in the current subscription. The command passes them to the Format-Table cmdlet by using the pipeline operator. That cmdlet formats them as a table that shows the operating system family, operating system family label, and version. - - + This command retrieves an object containing a list of all versions of the guest operating system that are available in the current subscription, and formats them in a table showing the OS Family, OS Family Label, and Version. - + + - - Get-AzureOSDisk - - - + + Get-AzurePublicIP - Gets the Public IP information for an Azure virtual machine. + Get-AzurePublicIP [[-PublicIPName] <string>] -VM <IPersistentVM> [<CommonParameters>] @@ -6637,70 +5604,58 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzurePublicIP cmdlet gets the Public IP information for an Azure virtual machine. To obtain the IP address of the Public IP, use the Get-AzureVM cmdlet. + + Returns the Instance Level Public IP information on the virtual machine. To obtain the IP Address of the Public IP use Get-AzureVM cmdlet. Get-AzurePublicIP - + PublicIPName - Specifies the Public IP name. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - + VM - Specifies the virtual machine for which this cmdlet gets Public IP configuration. + + IPersistentVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + PublicIPName - Specifies the Public IP name. + + - String + String String - none + + - + VM - Specifies the virtual machine for which this cmdlet gets Public IP configuration. + + IPersistentVM IPersistentVM - none + + @@ -6708,15 +5663,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -6724,61 +5677,61 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes Microsoft.WindowsAzure.Commands.ServiceManagement.AssignPublicIPCollection - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get Public IP configuration + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Get-AzurePublicIP - + PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Get-AzurePublicIP - This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet gets Public IP configuration from the virtual machine. - - + Description - + -----------Returns the Public IP information on the virtual machine. To get the IP address of the public ip, use Get-AzureVM - Get-AzureVM - - - - Remove-AzurePublicIP - - - - Set-AzurePublicIP - + Unknown + + - + + Get-AzureRemoteDesktopFile - Gets an RDP file for an Azure virtual machine. + Gets a remote desktop connection file (.RDP) for the specified Microsoft Azure virtual machine. @@ -6788,138 +5741,118 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureRemoteDesktopFile cmdlet downloads and saves a remote desktop connection (RDP) file for an Azure virtual machine. The cmdlet can launch a remote desktop connection to the specified virtual machine. + + The Get-AzureRemoteDesktopFile cmdlet downloads and saves a remote desktop connection (RDP) file to a local disk file. The cmdlet can optionally launch a remote desktop connection to the specified virtual machine. Get-AzureRemoteDesktopFile - - ServiceName - - Specifies the name of the Azure service to which the virtual machine belongs. - - String - - + Name - Specifies the virtual machine for which this cmdlet downloads an RDP file. + Specifies the virtual machine to download an RDP file for. String - + LocalPath - Specifies the full path of the downloaded RDP file on the local computer. + Specifies the path and name of the downloaded RDP file on the local disk. String - - Launch - - Indicates that this cmdlet starts a remote desktop session to the virtual machine. - - - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the Microsoft Azure service name. - AzureProfile + String Get-AzureRemoteDesktopFile - - ServiceName + + Name - Specifies the name of the Azure service to which the virtual machine belongs. + Specifies the virtual machine to download an RDP file for. String - - Name + + LocalPath - Specifies the virtual machine for which this cmdlet downloads an RDP file. + Specifies the path and name of the downloaded RDP file on the local disk. String - - LocalPath + + Launch - Specifies the full path of the downloaded RDP file on the local computer. + When specified, launches a remote desktop session to the specified virtual machine. - String + SwitchParameter - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the Microsoft Azure service name. - AzureProfile + String - - Launch + + Name - Indicates that this cmdlet starts a remote desktop session to the virtual machine. + Specifies the virtual machine to download an RDP file for. - SwitchParameter + String - SwitchParameter + String - none + + - + LocalPath - Specifies the full path of the downloaded RDP file on the local computer. + Specifies the path and name of the downloaded RDP file on the local disk. String String - none + + - - Name + + ServiceName - Specifies the virtual machine for which this cmdlet downloads an RDP file. + Specifies the Microsoft Azure service name. String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - ServiceName + + Launch - Specifies the name of the Azure service to which the virtual machine belongs. + When specified, launches a remote desktop session to the specified virtual machine. - String + SwitchParameter - String + SwitchParameter - none + + @@ -6927,15 +5860,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -6944,56 +5875,61 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get an RDP file + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureRemoteDesktopFile -ServiceName "ContosoService" -Name "VirtualMachine07" -LocalPath "C:\temp\VirtualMachine07.rdp" - + PS C:\> C:\PS>Get-AzureRemoteDesktopFile -ServiceName "myservice" -Name "MyVM-01_IN_0" -LocalPath "c:\temp\MyVM01.rdp" - This command gets an RDP file for the VirtualMachine07 virtual machine named VirtualMachine07 that runs on the service named ContosoService. The command stores that file as C:\temp\VirtualMachine07.rdp. - - + This command gets an RDP file for the "MyVM-01_IN_0" virtual machine running on the "myservice" service and stores it as "c:\temp\MyVM01.rdp". - + + - Example 2: Start a remote session + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureRemoteDesktopFile -ServiceName "ContosoService" -Name "VirtualMachine07" -Launch - + PS C:\> C:\PS>Get-AzureRemoteDesktopFile -ServiceName "myservice" -Name "MyVM-01_IN_0" –Launch - This command gets an RDP file for the VirtualMachine07 virtual machine named VirtualMachine07 that runs on the service named ContosoService. The command launches a remote desktop session. The command deletes the RDP file when the connection is closed. - - + This command gets an RDP connection file for the "MyVM-01_IN_0" virtual machine running on the "myservice" service and launches a remote desktop connection to the specified virtual machine. The RDP file is deleted when the connection is closed. - + + @@ -7006,11 +5942,12 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - + + Get-AzureReservedIP - Gets a reserved IP address by its name or lists all the reserved IP addresses in the subscription. + Get the Reserved IP by its name or lists all the Reserved IPs in the subscription. @@ -7020,51 +5957,34 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - The Get-AzureReservedIP cmdlet gets a reserved IP address by its name or lists all of the reserved IP addresses in the subscription. + + Get the reserved IP by its name or list all of them in the subscription. Get-AzureReservedIP - + ReservedIPName - Specifies the reserved IP name. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Reserved IP Name - AzureProfile + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + ReservedIPName - Specifies the reserved IP name. + Reserved IP Name - String + String String - none + + @@ -7072,15 +5992,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -7089,130 +6007,174 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get all reserved IP addresses + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureReservedIP - + PS C:\> Get-AzureReservedIP - This command gets all reserved IP addresses. - - + Description - + -----------List all the reserved IP(s) in this subscription. - Example 2: Get a reserved IP address with a specified name + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Get-AzureReservedIP -ReservedIPName $IpName - + PS C:\> Get-AzureReservedIP -ReservedIPName $ipName - This command gets the reserved IP address that has the name specified by the $IpName variable. - - + Description - + -----------Get the reserved IP by the name in this subscription. - New-AzureReservedIP - - - - Remove-AzureReservedIP - + Unknown + + - + + - Get-AzureRoleSize + Get-AzureRole - Gets the role size information for the current subscription. + Returns a list of roles in your Microsoft Azure service. Get - AzureRoleSize + AzureRole - The Get-AzureRoleSize cmdlet gets the role size information for the current subscription. + + The Get-AzureRole cmdlet returns a list object with details on the roles in your Microsoft Azure service. If the RoleName parameter is specified, Get-AzureRole returns details on that role only. If the InstanceDetails parameter is specified, additional, instance specific details are returned. - Get-AzureRoleSize - - InstanceSize + Get-AzureRole + + ServiceName - Specifies the role size name, for example: ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7. + Specifies the name of the Microsoft Azure service. - String + String - - Profile + + Slot + + Specifies the Microsoft Azure deployment environment. Choices are "Production" or "Staging". + + String + + + RoleName + + When specified, returns details only on the specified role. + + String + + + InstanceDetails - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + When specified, returns details about the instances on each role. - AzureProfile + SwitchParameter - - InstanceSize + + ServiceName - Specifies the role size name, for example: ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7. + Specifies the name of the Microsoft Azure service. - String + String String - none + + - - Profile + + Slot - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the Microsoft Azure deployment environment. Choices are "Production" or "Staging". - AzureProfile + String - AzureProfile + String - none + + + + + RoleName + + When specified, returns details only on the specified role. + + String + + String + + + + + + + InstanceDetails + + When specified, returns details about the instances on each role. + + SwitchParameter + + SwitchParameter + + + + @@ -7220,15 +6182,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -7237,243 +6197,151 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get role size information + -------------------------- Example 1 -------------------------- - PS C:\> Get-AzureRoleSize - - InstanceSize : A6 - RoleSizeLabel : - Cores : 4 - MemoryInMb : 28672 - SupportedByWebWorkerRoles : True - SupportedByVirtualMachines : True - OperationDescription : Get-AzureRoleSize - OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce - OperationStatus : Succeeded - - InstanceSize : A7 - RoleSizeLabel : - Cores : 8 - MemoryInMb : 57344 - SupportedByWebWorkerRoles : True - SupportedByVirtualMachines : True - OperationDescription : Get-AzureRoleSize - OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce - OperationStatus : Succeeded - + PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Production - This command gets role size information for the current subscription. - - + This command returns an object with details on all the production roles running on the "MySvc1" service. - + + - Example 2: Get role size information and specify the role size name + -------------------------- Example 2 -------------------------- - PS C:\> Get-AzureRoleSize -InstanceSize A7 - - InstanceSize : A7 - RoleSizeLabel : - Cores : 8 - MemoryInMb : 57344 - SupportedByWebWorkerRoles : True - SupportedByVirtualMachines : True - OperationDescription : Get-AzureRoleSize - OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce - OperationStatus : Succeeded - + PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Staging –RoleName "MyTestVM3" - This command gets role size information for the specified role size. - - + This command returns an object with details on the "MyTestVM3" role, running on the staging environment of the "MySvc1" service. - + + - Example 3: Get role size information for all virtual machines in all of the Azure services + -------------------------- Example 3 -------------------------- - PS C:\>Get-AzureService | Get-AzureVM | Get-AzureRoleSize - - + PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Production –RoleName "MyTestVM2" -InstanceDetails + + This command returns an object with details on the instances of the "MyTestVM2" role running in the production environment on the "MySvc1" service. + + + + + + + + + + -------------------------- Example 4 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Production -InstanceDetails ` + | Format-Table –Auto "InstanceName", "InstanceSize", "InstanceStatus" - This command gets role size information for all virtual machines in all of the Azure services. - - + This command returns a table of the instance name, size, and status of all role instances running in the production environment on the "MySvc1" service. - + + - Get-AzureRole - - - - Get-AzureService - - - - Get-AzureVM - + Set-AzureRole + + - + + - Get-AzureRole + Get-AzureRoleSize - Returns a list of roles in your Microsoft Azure service. + Get the role size information for the current subscription. Get - AzureRole + AzureRoleSize - The Get-AzureRole cmdlet returns a list object with details on the roles in your Microsoft Azure service. If you specify the RoleName parameter, Get-AzureRole returns details on that role only. If you specify the InstanceDetails parameter, additional, instance-specific details are returned. + + Get the role size information for the current subscription. - Get-AzureRole - - ServiceName + Get-AzureRoleSize + + InstanceSize - Specifies the name of the Azure service. + The role size name, e.g. ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7, etc. String - - Slot - - Specifies the Azure deployment environment. The acceptable values for this parameter are: Production or Staging. - - - Staging - Production - - - - RoleName - - Specifies the name of the role to get. - - String - - - InstanceDetails - - Specifies that this cmdlet returns details about the instances on each role. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - InstanceDetails - - Specifies that this cmdlet returns details about the instances on each role. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - RoleName - - Specifies the name of the role to get. - - String - - String - - - none - - - ServiceName + + InstanceSize - Specifies the name of the Azure service. + The role size name, e.g. ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7, etc. String String - none - - - Slot - - Specifies the Azure deployment environment. The acceptable values for this parameter are: Production or Staging. - - String - - String - - - none + + @@ -7481,15 +6349,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -7498,186 +6364,337 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get a list of roles for a service - - - - - PS C:\>Get-AzureRole -ServiceName "MySvc01" -Slot "Production" - - - This command returns an object with details on all the production roles running on the MySvc01 service. - - - - - - - - - - - Example 2: Get details on a role running on a service + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureRole -ServiceName "MySvc1" -Slot "Staging" -RoleName "MyTestVM3" - + PS C:\> Get-AzureRoleSize + + InstanceSize : A6 + RoleSizeLabel : + Cores : 4 + MemoryInMb : 28672 + SupportedByWebWorkerRoles : True + SupportedByVirtualMachines : True + OperationDescription : Get-AzureRoleSize + OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce + OperationStatus : Succeeded + + InstanceSize : A7 + RoleSizeLabel : + Cores : 8 + MemoryInMb : 57344 + SupportedByWebWorkerRoles : True + SupportedByVirtualMachines : True + OperationDescription : Get-AzureRoleSize + OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce + OperationStatus : Succeeded - This command returns an object with details on the MyTestVM3 role, running on the staging environment of the MySvc01 service. - - + Description - + ----------- - Example 3: Get instance information on instances of a role running on a service + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Get-AzureRole -ServiceName "MySvc01" -Slot "Production" -RoleName "MyTestVM02" -InstanceDetails - + PS C:\> Get-AzureRoleSize -InstanceSize A7 + + InstanceSize : A7 + RoleSizeLabel : + Cores : 8 + MemoryInMb : 57344 + SupportedByWebWorkerRoles : True + SupportedByVirtualMachines : True + OperationDescription : Get-AzureRoleSize + OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce + OperationStatus : Succeeded - This command returns an object with details on the instances of the MyTestVM02 role running in the production environment on the MySvc01 service. - - + Description - + ----------- - Example 4: Get a table of the role instances associated with a service + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Get-AzureRole -ServiceName "MySvc01" -Slot "Production" -InstanceDetails | Format-Table -Auto "InstanceName", "InstanceSize", "InstanceStatus" - + PS C:\> Get-AzureService | Get-AzureVM | Get-AzureRoleSize + + # Output of the role size information for all VMs in all the cloud services - This command returns a table of the instance name, size, and status of all role instances running in the production environment on the MySvc01 service. - - + Description - + ----------- - Set-AzureRole - + Unknown + + - + + - Get-AzureServiceADDomainExtension + Get-AzureService - Gets the cloud service Active Directory (AD) domain extension that applies to all roles or to named roles at a specified deployment slot. + Returns an object with information about the cloud services for the current subscription. Get - AzureServiceADDomainExtension + AzureService - The Get-AzureServiceADDomainExtension cmdlet gets the cloud service AD domain extension that applies to all roles or named roles at a specified deployment slot. + + The Get-AzureService cmdlet returns a list object with all of the Microsoft Azure cloud services associated with the current subscription. If the ServiceName parameter is specified, Get-AzureService will return information on only the matching service. - Get-AzureServiceADDomainExtension - + Get-AzureService + ServiceName - Specifies the Azure service name of the deployment. - - String - - - Slot - - Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. - - - Production - Staging - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + If specified, returns information on the specified service. - AzureProfile + String - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + If specified, returns information on the specified service. - AzureProfile + String - AzureProfile + String - none + + - + + + + + + + + + + + + + + + + + + + + HostedServiceContext + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureService + + This command returns a list object that contains information about all of the Microsoft Azure services associated with the current subscription. + + + + + + + + + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureService –ServiceName $MySvc + + This command returns information about the $MySvc service. + + + + + + + + + + -------------------------- Example 3 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureService | Get-Member + + This command displays the properties and methods that are available from the Get-AzureService cmdlet. + + + + + + + + + + + + Set-AzureService + + + + + New-AzureService + + + + + + + + + Get-AzureServiceADDomainExtension + + This cmdlet gets the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. + + + + + Get + AzureServiceADDomainExtension + + + + + This cmdlet gets the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. + + + + Get-AzureServiceADDomainExtension + + ServiceName + + Specifies the Microsoft Azure service name of the deployment. + + String + + + Slot + + + + + String + + + + + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String String - none + + - + Slot - Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. + + - String + String String - none + + @@ -7685,15 +6702,13 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - @@ -7702,57 +6717,61 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the AD domain extension for a specified service + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureServiceADDomainExtension -ServiceName $Svc - + PS C:\> Get-AzureServiceADDomainExtension -ServiceName $svc - This command gets the AD domain extension for the service specified in $Svc. - - + Description - + -----------This command returns the information of the cloud service AD domain extensions enabled on the roles of a certain deployment. - Remove-AzureServiceADDomainExtension - - - - Set-AzureServiceADDomainExtension - + Unknown + + - + + Get-AzureServiceAntimalwareConfig - Gets configuration details for the Microsoft Antimalware service extension. + Gets configuration details for the Microsoft Antimalware extension for a service. @@ -7762,59 +6781,35 @@ PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Tes + The Get-AzureServiceAntimalwareConfig cmdlet gets the antimalware configuration and monitoring configuration details associated with the Microsoft Antimalware extension for a cloud service. Get-AzureServiceAntimalwareConfig - + ServiceName Specifies the name of the cloud service. String - + Slot Specifies a deployment slot. Valid values are: - -- Production - -- Staging - The default value is Production. - - Production - Staging - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + ServiceName Specifies the name of the cloud service. @@ -7826,20 +6821,17 @@ The default value is Production. none - + Slot Specifies a deployment slot. Valid values are: - -- Production - -- Staging - The default value is Production. - String + String String @@ -7852,15 +6844,13 @@ The default value is Production. - - + - + + - - @@ -7869,56 +6859,61 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get a configuration for a service + -------------------------- Example 1: Get configuration for a service -------------------------- - PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" - + PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" This command returns the antimalware configuration object for the specified service name. Because this command does not specify the Slot parameter, the command gets the configuration for the default slot, Production. For services that have monitoring enabled, the command also returns a monitoring configuration object. - - - + + - Example 2: Get a configuration for a service for the Staging slot + -------------------------- Example 2: Get configuration for a service for the Staging slot -------------------------- - PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" -Slot Staging - + PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" -Slot Staging This command returns the antimalware configuration object for the specified service name. Because this command specifies a value of Staging for the Slot parameter, the command gets the configuration for the Staging slot. For services that have monitoring enabled, the command also returns a monitoring configuration object. - - - + + @@ -7930,19 +6925,22 @@ The default value is Production. Remove-AzureServiceAntimalwareExtension - + + Set-AzureServiceAntimalwareExtension - + + - + + Get-AzureServiceAvailableExtension - Gets information about the available extensions for hosted services. + Get information for the latest available extensions for hosted services. @@ -7952,155 +6950,128 @@ The default value is Production. - The Get-AzureServiceAvailableExtension cmdlet gets information for the latest available extensions for hosted services. + + Get information for the latest available extensions for hosted services. Get-AzureServiceAvailableExtension - + ExtensionName - Specifies the extension name. + The Extension Name. - String + String - + ProviderNamespace - Specifies the extension provider namespace. - - String - - - AllVersions - - Indicates that this cmdlet gets all versions of an extension. + The Extension Provider Namespace. - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + String Get-AzureServiceAvailableExtension - + ExtensionName - Specifies the extension name. + The Extension Name. - String + String - + ProviderNamespace - Specifies the extension provider namespace. + The Extension Provider Namespace. - String + String - - Profile + + AllVersions - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specify to list all versions of an extension. - AzureProfile + SwitchParameter Get-AzureServiceAvailableExtension - + ExtensionName - Specifies the extension name. + The Extension Name. - String + String - + ProviderNamespace - Specifies the extension provider namespace. + The Extension Provider Namespace. - String + String - + Version - Specifies the extension version. + The Extension Version. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - AllVersions + + ExtensionName - Indicates that this cmdlet gets all versions of an extension. + The Extension Name. - SwitchParameter + String - SwitchParameter + String - none + + - - ExtensionName + + ProviderNamespace - Specifies the extension name. + The Extension Provider Namespace. - String + String String - none + + - - Profile + + AllVersions - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specify to list all versions of an extension. - AzureProfile + SwitchParameter - AzureProfile + SwitchParameter - none + + - - ProviderNamespace - - Specifies the extension provider namespace. - - String - - String - - - none - - + Version - Specifies the extension version. + The Extension Version. String String - none + + @@ -8108,15 +7079,13 @@ The default value is Production. - - + - + + - - @@ -8125,28 +7094,37 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get available extensions + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureServiceAvailableExtension + PS C:\> Get-AzureServiceAvailableExtension ProviderNameSpace : Microsoft.Windows.Azure.Extensions ExtensionName : RDP @@ -8164,26 +7142,23 @@ The default value is Production. name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> OperationDescription : Get-AzureServiceAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded - + OperationStatus : Succeeded - This command gets all available extensions. - - + Description - + ----------- - Example 2: Get extensions in a specified namespace + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName "RDP" -AllVersions + PS C:\> Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName RDP -AllVersions ProviderNameSpace : Microsoft.Windows.Azure.Extensions ExtensionName : RDP @@ -8201,26 +7176,23 @@ The default value is Production. name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> OperationDescription : Get-AzureServiceAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded - + OperationStatus : Succeeded - This command gets the extensions with a specified name in a specified namespace. - - + Description - + ----------- - Example 3: Get a specific version of an extension + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName "RDP" -Version 1.0.0.1 + PS C:\> Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName RDP -Version 1.0.0.1 ProviderNameSpace : Microsoft.Windows.Azure.Extensions ExtensionName : RDP @@ -8238,32 +7210,31 @@ The default value is Production. name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> OperationDescription : Get-AzureServiceAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded - + OperationStatus : Succeeded - This command gets information about a specific version of an extension. - - + Description - + ----------- - Get-AzureServiceExtension - + Unknown + + - + + Get-AzureServiceDiagnosticsExtension - Gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + This cmdlet gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. @@ -8273,73 +7244,54 @@ The default value is Production. - The Get-AzureServiceDiagnosticsExtension cmdlet gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + + This cmdlet gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. Get-AzureServiceDiagnosticsExtension - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - - - Production - Staging - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - AzureProfile + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String String - none + + - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - String + String String - none + + @@ -8347,15 +7299,13 @@ The default value is Production. - - + - + + - - @@ -8364,57 +7314,61 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Enable a diagnostic extension + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureServiceDiagnosticsExtension -ServiceName $Svc - + PS C:\> Get-AzureServiceDiagnosticsExtension -ServiceName $svc - This command enables a diagnostic service across all roles. - - + Description - + -----------This command returns the information of the cloud service diagnostics extensions enabled on the roles of the Production deployment in the service $svc. - Remove-AzureServiceDiagnosticsExtension - - - - Set-AzureServiceDiagnosticsExtension - + Unknown + + - + + Get-AzureServiceExtension - Gets cloud service extensions that are applied on a deployment. + This cmdlet gets existing cloud service extensions that are applied on a deployment. @@ -8424,111 +7378,96 @@ The default value is Production. - The Get-AzureServiceExtension cmdlet gets existing cloud service extensions that are applied on a deployment. + + This cmdlet gets existing cloud service extensions that are applied on a deployment. Get-AzureServiceExtension - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - + Slot - Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. + + - - Production - Staging - + String - + ExtensionName - Specifies the extension name. + The Extension Name. - String + String - + ProviderNamespace - Specifies the extension provider namespace. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Provider Namespace. - AzureProfile + String - - ExtensionName + + ServiceName - Specifies the extension name. + Specifies the Microsoft Azure service name of the deployment. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - ProviderNamespace + + Slot - Specifies the extension provider namespace. + + - String + String String - none + + - - ServiceName + + ExtensionName - Specifies the Azure service name of the deployment. + The Extension Name. - String + String String - none + + - - Slot + + ProviderNamespace - Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. + The Extension Provider Namespace. - String + String String - none + + @@ -8536,15 +7475,13 @@ The default value is Production. - - + - + + - - @@ -8553,53 +7490,73 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get a specified extension + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Get-AzureServiceExtension -ServiceName $svc -Slot Production -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions + + Description + + + + -----------Get existing RDP extensions applied on all roles in the production deployment slot. + + + + + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Get-AzureServiceExtension -ServiceName $Svc -Slot "Production" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" - + PS C:\> Get-AzureServiceExtension -ServiceName $svc -Slot Production -Role WebRole1 -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions - This command gets the cloud service extension with the specified name and namespace. - - + Description - + -----------Get existing RDP extensions applied on the 'WebRole1' role in the production deployment slot. - Remove-AzureServiceExtension - - - - Set-AzureServiceExtension - + Unknown + + - + + Get-AzureServiceRemoteDesktopExtension @@ -8613,73 +7570,54 @@ The default value is Production. - The Get-AzureServiceRemoteDesktopExtension cmdlet gets the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. + + This cmdlet gets the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. Get-AzureServiceRemoteDesktopExtension - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - - - Production - Staging - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - AzureProfile + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String String - none + + - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - String + String String - none + + @@ -8687,15 +7625,13 @@ The default value is Production. - - + - + + - - @@ -8704,107 +7640,98 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get remote desktop extension for the specified service + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureServiceRemoteDesktopExtension -ServiceName $svc - + PS C:\> Get-AzureServiceRemoteDesktopExtension -ServiceName $svc - This command gets the remote desktop extension for the specified service. - - + Description - + -----------This command returns the information of the cloud service remote desktop extensions enabled on the roles of a certain deployment. - Set-AzureServiceRemoteDesktopExtension - + Unknown + + - + + - Get-AzureService + Get-AzureStaticVNetIP - Returns an object with information about the cloud services for the current subscription. + Get the static VNet IP address information from a VM object, if any. Get - AzureService + AzureStaticVNetIP - The Get-AzureService cmdlet returns a list object with all of the Azure cloud services associated with the current subscription. If you specify the ServiceName parameter, Get-AzureService returns information on only the matching service. + + Get the static VNet IP address information from a VM object, if any. - Get-AzureService - - ServiceName - - Specifies the name of a service on which to return information. - - String - - - Profile + Get-AzureStaticVNetIP + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Persistent VM object. - AzureProfile + IPersistentVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ServiceName + + VM - Specifies the name of a service on which to return information. + Persistent VM object. - String + IPersistentVM - String + IPersistentVM - none + + @@ -8812,235 +7739,60 @@ The default value is Production. - - + - + + - - - HostedServiceContext - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - Example 1: Get information about all services - - - - - PS C:\>Get-AzureService - - - This command returns an object that contains information about all of the Azure services associated with the current subscription. - - - - - - - - - - - Example 2: Get information about a specified service - - - - - PS C:\>Get-AzureService -ServiceName $MySvc - - - This command returns information about the $MySvc service. - - - - - - - - - - - Example 3: Display available methods and properties - - - - - PS C:\>Get-AzureService | Get-Member - - - This command displays the properties and methods that are available from the Get-AzureService cmdlet. - - - - - - - - - - - - - New-AzureService - - - - Set-AzureService - - - - - - - Get-AzureStaticVNetIP - - Gets the static VNet IP address information from a virtual machine object, if any. - - - - - Get - AzureStaticVNetIP - - - - The Get-AzureStaticVNetIP cmdlet gets the static virtual network (VNet) IP address information from a virtual machine object, if any. - - - - Get-AzureStaticVNetIP - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies a persistent virtual machine object. - - IPersistentVM - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM - - Specifies a persistent virtual machine object. - - IPersistentVM - - IPersistentVM - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - - - - - - - - - - - - - Set-AzureStaticVNetIP - + Unknown + + - + + Get-AzureStorageAccount - Gets the storage accounts for the current Azure subscription. + Gets the storage accounts for the current Microsoft Azure subscription. @@ -9050,51 +7802,34 @@ The default value is Production. - The Get-AzureStorageAccount cmdlet returns an object containing information about the storage accounts for the current subscription. If the StorageAccountName parameter is specified, then only information about the specified storage account is returned. + + The Get-AzureStorageAccount cmdlet returns an object with the details about the storage accounts for the current subscription. If the StorageAccountName parameter is specified, then only that storage account is returned. Get-AzureStorageAccount - + StorageAccountName - Specifies the name of a storage account. If specified, this cmdlet returns only the specified storage account object. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + If specified, the cmdlet returns only the specified storage account object. - AzureProfile + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + StorageAccountName - Specifies the name of a storage account. If specified, this cmdlet returns only the specified storage account object. + If specified, the cmdlet returns only the specified storage account object. - String + String String - none + + @@ -9102,15 +7837,13 @@ The default value is Production. - - + - + + - - @@ -9118,81 +7851,77 @@ The default value is Production. ManagementOperationContext - - + - + + - - - - + + + + - + + - Type help node-dev to get help on Node.js development-related cmdlets. Type help php-dev to get help on PHP development-related cmdlets. + node-dev, php-dev + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - Example 1: Return all storage accounts + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureStorageAccount - + PS C:\> C:\PS>Get-AzureStorageAccount This command returns an object with all the storage accounts associated with the current subscription. - - - + + - Example 2: Return account information for a specified account + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureStorageAccount -StorageAccountName "ContosoStore01" - + PS C:\> C:\PS>Get-AzureStorageAccount –StorageAccountName "mystore1" - This command returns an object with only the ContosoStore01 account information. - - + This command returns an object with only the "mystore1" account information. - + + - Example 3: Display a table of storage accounts + -------------------------- Example 3 -------------------------- - PS C:\>Get-AzureStorageAccount | Format-Table -AutoSize -Property @{Label="Name";Expression={$_.StorageAccountName}},"Label","Location" - + PS C:\> C:\PS>Get-AzureStorageAccount | Format-Table -auto @{Label="Name";Expression={$_.StorageAccountName}},"Label","Location" This command returns an object with all the storage accounts associated with the current subscription, and outputs them as a table showing the account name, the account label, and the storage location. - - - + + @@ -9200,19 +7929,27 @@ The default value is Production. New-AzureStorageAccount - + + Set-AzureStorageAccount - + + + + + Get-AzureStorageAccount + + - + + Get-AzureStorageKey - Returns the primary and secondary storage account keys for an Azure storage account. + Returns the primary and secondary storage account keys for a Microsoft Azure storage account. @@ -9222,41 +7959,23 @@ The default value is Production. - The Get-AzureStorageKey cmdlet returns an object with the Azure Storage account name, the primary account key, and the secondary account key of the specified Azure storage account as properties. + + The Get-AzureStorageKey cmdlet returns an object with the storage account name, the primary account key, and the secondary account key of the specified Microsoft Azure storage account as properties. Get-AzureStorageKey - + StorageAccountName Specifies the storage account name. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + StorageAccountName Specifies the storage account name. @@ -9266,7 +7985,8 @@ The default value is Production. String - none + + @@ -9274,15 +7994,13 @@ The default value is Production. - - + - + + - - @@ -9291,62 +8009,60 @@ The default value is Production. - - + - + + - - - - + + + + - + + - To get help with Node.js, use the help node-dev command. For help with PHP extensions, use the help php-dev command. + node-dev, php-dev + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - Example 1: Get an object that contains primary and secondary storage keys + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureStorageKey -StorageAccountName "ContosoStore01" - + PS C:\> Get-AzureStorageKey –StorageAccountName "mystore1" - This command gets an object with the primary and secondary storage keys for the ContosoStore01 storage account. - - + This command gets an object with the primary and secondary storage keys for the "mystore1" storage account. - + + - Example 2: Get the primary storage account key and store it in a variable + -------------------------- Example 2 -------------------------- - PS C:\>$ContosoStoreKey = (Get-AzureStorageKey -StorageAccountName "ContosoStore01").Primary - + PS C:\> $myStoreKey = (Get-AzureStorageKey –StorageAccountName "mystore1").Primary - This command puts the primary storage account key for the ContosoStore01 storage account in the $ContosoStoreKey variable. - - + This command puts the primary storage account key for the "mystore1" storage account in the $myStoreKey variable. - + + @@ -9354,31 +8070,37 @@ The default value is Production. Get-AzureStorageAccount - + + New-AzureStorageAccount - + + New-AzureStorageKey - + + Remove-AzureStorageAccount - + + Set-AzureStorageAccount - + + - + + Get-AzureSubnet - Gets a list of subnets associated with the specified Azure virtual machine. + Gets a list of subnets associated with the specified Microsoft Azure virtual machine. @@ -9388,19 +8110,13 @@ The default value is Production. + The Get-AzureSubnet cmdlet returns a list the subnets associated with the specified virtual machine. Use Get-AzureVM to specify the virtual machine. Get-AzureSubnet - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM Specifies the virtual machine object from which to get the subnet list. @@ -9410,19 +8126,7 @@ The default value is Production. - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM Specifies the virtual machine object from which to get the subnet list. @@ -9432,7 +8136,8 @@ The default value is Production. IPersistentVM - none + + @@ -9440,15 +8145,13 @@ The default value is Production. - - + - + + - - @@ -9457,39 +8160,45 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get subnets for a virtual machine + -------------------------- Example 1 -------------------------- - PS C:\>$VM = Get-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine01" -C:\PS> Get-AzureSubnet -VM $VM - + PS C:\> C:\PS>$myVM = Get-AzureVM –ServiceName "MySvc" –Name "MyVM" + C:\PS>Get-AzureSubnet –VM $myVM - The first command gets a virtual machine named VirtualMachine01 in the service named ContosoService03, and then stores it in the $VM variable. - The second command gets the Azure subnets for the virtual machine in $VM. - - + This example gets the Microsoft Azure subnets for the virtual machine "MyVM" running in "MySvc" - + + @@ -9497,73 +8206,257 @@ C:\PS> Get-AzureSubnet -VM $VM Get-AzureVM - - - - Set-AzureSubnet - + + - + + - Get-AzureVMAccessExtension + Get-AzureVM - Gets the VMAccess extension applied on a virtual machine. + Retrieves information from one or more Microsoft Azure virtual machines. Get - AzureVMAccessExtension + AzureVM - The Get-AzureVMAccessExtension cmdlet gets the VMAccess extension applied on a virtual machine. + + The Get-AzureVM cmdlet retrieves information about virtual machines running in Microsoft Azure. It returns an object with information on a specific virtual machine, or if no virtual machine is specified, for all the virtual machines in the specified service of the current subscription. - Get-AzureVMAccessExtension - - Profile + Get-AzureVM + + + Get-AzureVM + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The name of the cloud service for which to return virtual machine information. - AzureProfile + String - - VM + + Name - Specifies the persistent virtual machine object. + Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. - IPersistentVM + String - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The name of the cloud service for which to return virtual machine information. - AzureProfile + String - AzureProfile + String - none + + + + + Name + + Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. + + String + + String + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM1" + + This command returns an object with information on the "MyVM1" virtual machine running in the "MySvc1" cloud service. + + + + + + + + + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" + + This command retrieves a list object with information on all of the virtual machines running in the "MySvc1" cloud service. + + + + + + + + + + -------------------------- Example 3 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" ` + | Format-Table –auto "Name",@{Expression={$_.InstanceUpgradeDomain};Label="UpgDom";Align="Right"},"InstanceStatus" + + This command displays a table showing the virtual machines running on the "MySvc1" service, their Upgrade Domain, and the current status of each machine. + + + + + + + + + + + + New-AzureVMConfig + + + + + Remove-AzureVM + + + + + Restart-AzureVM + + + + + Start-AzureVM + + + + + Stop-AzureVM + + + + + Update-AzureVM + + + + + New-AzureVM + + + + + + + + + Get-AzureVMAccessExtension + + This cmdlet gets the VMAccess extension (if any) applied on the VM. + + + + + Get + AzureVMAccessExtension + + + + + This cmdlet gets the VMAccess extension (if any) applied on the VM. + + + + Get-AzureVMAccessExtension + + VM + + The persistent VM object. + + IPersistentVM + + + + + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM IPersistentVM - none + + @@ -9571,15 +8464,13 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - @@ -9588,57 +8479,61 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the VMAccess extension for a virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVMAccessExtension -VM $VM; - + PS C:\> Get-AzureVMAccessExtension -VM $vm; - This command gets the VMAccess extension for a virtual machine. - - + Description - + -----------This cmdlet gets the VMAccess extension (if any) applied on the VM. - Remove-AzureVMAccessExtension - - - - Set-AzureVMAccessExtension - + Unknown + + - + + Get-AzureVMAvailableExtension - Gets information for the latest available extensions for virtual machines. + Get information for the latest available extensions for VMs. @@ -9648,155 +8543,128 @@ C:\PS> Get-AzureSubnet -VM $VM - The Get-AzureVMAvailableExtension cmdlet gets information for the latest available extensions for virtual machines. + + Get information for the latest available extensions for VMs. Get-AzureVMAvailableExtension - + ExtensionName - Specifies the name of the available extension. + The Extension Name. - String + String - + Publisher - Specifies the publisher of the extension. - - String - - - AllVersions - - Indicates that this cmdlet lists all versions of an extension. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Publisher. - AzureProfile + String Get-AzureVMAvailableExtension - + ExtensionName - Specifies the name of the available extension. + The Extension Name. - String + String - + Publisher - Specifies the publisher of the extension. + The Extension Publisher. - String + String - - Profile + + AllVersions - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specify to list all versions of an extension. - AzureProfile + SwitchParameter Get-AzureVMAvailableExtension - + ExtensionName - Specifies the name of the available extension. + The Extension Name. - String + String - + Publisher - Specifies the publisher of the extension. + The Extension Publisher. - String + String - + Version - Specifies the version of the extension. + The Extension Version. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - AllVersions - - Indicates that this cmdlet lists all versions of an extension. - - SwitchParameter - - SwitchParameter - - - none - - + ExtensionName - Specifies the name of the available extension. + The Extension Name. - String + String String - none + + - - Profile + + Publisher - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Publisher. - AzureProfile + String - AzureProfile + String - none + + - - Publisher + + AllVersions - Specifies the publisher of the extension. + Specify to list all versions of an extension. - String + SwitchParameter - String + SwitchParameter - none + + - + Version - Specifies the version of the extension. + The Extension Version. String String - none + + @@ -9804,15 +8672,13 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - @@ -9821,29 +8687,39 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - - - - - - Example 1: Get information for the latest available extensions - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + - PS C:\>Get-AzureVMAvailableExtension - Publisher : Contoso.Compute + PS C:\> Get-AzureVMAvailableExtension + + Publisher : Microsoft.Compute ExtensionName : VMAccessAgent Version : 1.0 PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> @@ -9868,33 +8744,31 @@ C:\PS> Get-AzureSubnet -VM $VM </xs:complexType> </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded - + OperationStatus : Succeeded - This command gets information for the latest available extensions for all virtual machines. - - + Description - + ----------- - Example 2: Get information from a specified extension name + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Get-AzureVMAvailableExtension -Publisher Contoso.Compute -ExtensionName "VMAccessAgent" -AllVersions - Publisher : Contoso.Compute + PS C:\> Get-AzureVMAvailableExtension -Publisher Microsoft.Compute -ExtensionName VMAccessAgent -AllVersions + + Publisher : Microsoft.Compute ExtensionName : VMAccessAgent Version : 1.0.2 - PublicConfigurationSchema : + PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> @@ -9907,7 +8781,7 @@ C:\PS> Get-AzureSubnet -VM $VM </xs:element> </xs:schema> - PrivateConfigurationSchema : + PrivateConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> @@ -9920,12 +8794,12 @@ C:\PS> Get-AzureSubnet -VM $VM </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx OperationStatus : Succeeded - Publisher : Contoso.Compute + Publisher : Microsoft.Compute ExtensionName : VMAccessAgent Version : 1.0.3 PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> @@ -9950,30 +8824,28 @@ C:\PS> Get-AzureSubnet -VM $VM </xs:complexType> </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded - + OperationStatus : Succeeded - This command gets information from all versions of the extension named VMAccessAgent and the publisher named Contoso.Computer. - - + Description - + ----------- - Example 3: Get information from a specific virtual machine extension by version number + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Get-AzureVMAvailableExtension -Publisher Contoso.Compute -ExtensionName VMAccessAgent -Version 1.0.3 - Publisher : Contoso.Compute + PS C:\> Get-AzureVMAvailableExtension -Publisher Microsoft.Compute -ExtensionName VMAccessAgent -Version 1.0.3 + + Publisher : Microsoft.Compute ExtensionName : VMAccessAgent Version : 1.0.3 PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> @@ -9998,35 +8870,34 @@ C:\PS> Get-AzureSubnet -VM $VM </xs:complexType> </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded - + OperationStatus : Succeeded - This command gets information for the extension named VMAccessAgent and the publisher named Contoso.Compute for the extension version 1.0.3. - - + Description - + ----------- - Azure Service Cmdlets - + Unknown + + - + + Get-AzureVMBGInfoExtension - Gets the BGInfo extension applied on a virtual machine. + This cmdlet gets the BGInfo extension (if any) applied on the VM. @@ -10036,51 +8907,34 @@ C:\PS> Get-AzureSubnet -VM $VM - The Get-AzureVMBGInfoExtension cmdlet gets the BGInfo extension applied on a virtual machine. + + This cmdlet gets the BGInfo extension (if any) applied on the VM. Get-AzureVMBGInfoExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM IPersistentVM - none + + @@ -10088,15 +8942,13 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - @@ -10105,111 +8957,98 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the BGInfo extension applied on a specified virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVMBGInfoExtension -VM $VM; - + PS C:\> Get-AzureVMBGInfoExtension -VM $vm; - This command gets the BGInfo extension applied on a specified virtual machine - - + Description - + -----------This cmdlet gets the BGInfo extension (if any) applied on the VM. - Remove-AzureVMBGInfoExtension - - - - Set-AzureVMBGInfoExtension - + Unknown + + - + + - Get-AzureVMChefExtension + Get-AzureVMCustomScriptExtension - Gets the Chef extension applied on a virtual machine. + Get Azure VM Custom Script Extension Information. Get - AzureVMChefExtension + AzureVMCustomScriptExtension - The Get-AzureVMChefExtension cmdlet gets the Chef extension applied on a virtual machine. + + Get Azure VM Custom Script Extension Information. - Get-AzureVMChefExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + Get-AzureVMCustomScriptExtension + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM IPersistentVM - none + + @@ -10217,15 +9056,13 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - @@ -10234,115 +9071,102 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the Chef extension applied on the specified virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVMChefExtension -VM $VM; - + PS C:\> Get-AzureVMCustomScriptExtension -VM $vm; - This command gets the Chef extension applied on the specified virtual machine. - - + Description - + ----------- - Remove-AzureVMChefExtension - - - - Set-AzureVMChefExtension - - - - Azure Service Cmdlets - + Unknown + + - + + - Get-AzureVMCustomScriptExtension + Get-AzureVMDiagnosticsExtension - Gets information from an Azure virtual machine custom script extension. + + Get - AzureVMCustomScriptExtension + AzureVMDiagnosticsExtension - The Get-AzureVMCustomScriptExtension cmdlet gets information from an Azure virtual machine custom script extension. + + + - Get-AzureVMCustomScriptExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + Get-AzureVMDiagnosticsExtension + VM - Specifies the persistent virtual machine object. + + IPersistentVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM - Specifies the persistent virtual machine object. + + IPersistentVM IPersistentVM - none + + @@ -10350,15 +9174,13 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - @@ -10367,130 +9189,116 @@ C:\PS> Get-AzureSubnet -VM $VM - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - Example 1: Get an Azure virtual machine script extension - - - - - PS C:\>Get-AzureVMCustomScriptExtension -VM $VM; - - - This command gets an Azure virtual machine script extension stored in the variable $VM. - - - - - - - - - - - Remove-AzureVMCustomScriptExtension - - - - Set-AzureVMCustomScriptExtension - - - - Azure Service Cmdlets - - - + + - Get-AzureVMDiagnosticsExtension + + Get-AzureVMDscExtension + - Gets the settings of the Azure Diagnostics extension on a virtual machine. + Gets the settings of the DSC extension on a particular VM. - + + Get - AzureVMDiagnosticsExtension - + AzureVMDscExtension + + - The Get-AzureVMDiagnosticsExtension cmdlet gets the settings of the Microsoft Azure Diagnostics extension on a virtual machine. + Gets the settings of the DSC extension on a particular VM. + - Get-AzureVMDiagnosticsExtension - - Profile + Get-AzureVMDscExtension + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Virtual Machine to get the settings from. - AzureProfile + IPersistentVM - - VM + + Version - Specifies the persistent virtual machine object. + The specific version of the DSC extension that Get-AzureVMDSCExtension will get the settings from. - IPersistentVM + string + - - Profile + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The specific version of the DSC extension that Get-AzureVMDSCExtension will get the settings from. - AzureProfile + string - AzureProfile + string - none + + - + VM - Specifies the persistent virtual machine object. + The Virtual Machine to get the settings from. IPersistentVM IPersistentVM - none + + + - - - - - + + + @@ -10498,176 +9306,151 @@ C:\PS> Get-AzureSubnet -VM $VM - - - - - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionContext + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - - Example 1: Get the diagnostics extension applied to a virtual machine - - - - - PS C:\>Get-AzureVMDiagnosticsExtension -VM $VM - - - This command gets the diagnostics extension applied to the specified virtual machine as stored in the variable $VM. - - - - - - - - - + - Remove-AzureVMDiagnosticsExtension - - - - Set-AzureVMDiagnosticsExtension + + - + + - Get-AzureVMDscExtensionStatus + + Get-AzureVMDscExtensionStatus + - Gets the DSC extension status for all the virtual machines deployed in a cloud service or for a particular virtual machine in the service. + Get the DSC Extension status for all the vm's deployed in a cloud service or for a particular vm in the service. - + + Get AzureVMDscExtensionStatus - + + - The Get-AzureVMDscExtensionStatus cmdlet gets the Desired State Configuration (DSC) extension status for all the virtual machines deployed in a cloud service or for a particular virtual machine in the service. + Get the DSC Extension status for all the vm's deployed in a cloud service or for a particular vm in the service. + Get-AzureVMDscExtensionStatus - + ServiceName - Specifies the name of the service. + Name of the service - String + string - + Name - Specifies the name of the virtual machine. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Name of the vm - AzureProfile + string Get-AzureVMDscExtensionStatus - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. - IPersistentVM + PersistentVMRoleContext + - + Name - Specifies the name of the virtual machine. + Name of the vm - String + string - String + string - none + + - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Name of the service - AzureProfile + string - AzureProfile + string - none + + - - ServiceName + + VM - Specifies the name of the service. + The persistent VM object. - String + PersistentVMRoleContext - String + PersistentVMRoleContext - none - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - IPersistentVM - - - none + + + - - - - - + + + @@ -10676,339 +9459,181 @@ C:\PS> Get-AzureSubnet -VM $VM Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionStatusContext - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - - 1: - - - - - - - - - - - - - - + - Get-AzureVMDscExtension - - - - Remove-AzureVMDscExtension - - - - Set-AzureVMDscExtension + + - + + - Get-AzureVMDscExtension + Get-AzureVMExtension - Gets the settings of the DSC extension on a virtual machine. + This cmdlet gets resource extensions applied on VMs. Get - AzureVMDscExtension + AzureVMExtension - The Get-AzureVMDscExtension cmdlet gets the settings of the DSC extension on a virtual machine. + + This cmdlet gets resource extensions applied on VMs. - Get-AzureVMDscExtension - - VM + Get-AzureVMExtension + + ReferenceName - Specifies the persistent virtual machine object. + The extension's reference name. - IPersistentVM + String - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + IPersistentVM - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - IPersistentVM - - - none - - - - - - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionContext - - - - - - - - - - - - - - - - - Example 1: Get the setting of the DSC Extension on a virtual machine - - - - - PS C:\>Get-AzureVMDscExtension -VM $VMModulesUrl -https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.ps1.zipConfigurationFunction : MyConfiguration.ps1\MyConfigurationProperties : {ServerName}ExtensionName : DSCPublisher : Microsoft.PowershellVersion : 1.*PrivateConfiguration :PublicConfiguration : {"ModulesUrl": "https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.ps1.zip","ConfigurationFunction": "MyConfiguration.ps1\\MyConfiguration","Properties": {"ServerName": "C:\\MyDirectory"}}ReferenceName : DSCState : EnableRoleName : my-vm - - - - This command gets the settings of the DSC Extension on a virtual machine. - - - - - - - - - - - - - Remove-AzureVMDscExtension - - - - Set-AzureVMDscExtension - - - - Get-AzureVMDscExtensionStatus - - - - - - - Get-AzureVMExtension - - Gets resource extensions applied to virtual machines. - - - - - Get - AzureVMExtension - - - - The Get-AzureVMExtension cmdlet gets resource extensions applied to virtual machines. - - Get-AzureVMExtension - + ExtensionName - Specifies the virtual machine extension name. + The Extension Name. String - + Publisher - Specifies the publisher of the extension. + The Extension Publisher. String - + Version - Specifies the version of the extension. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - - - Get-AzureVMExtension - - ReferenceName - - Specifies the reference name of the extension. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String - + VM - Specifies the persistent virtual machine object. + + IPersistentVM - - ExtensionName + + ReferenceName - Specifies the virtual machine extension name. + The extension's reference name. String String - none + + - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + IPersistentVM - AzureProfile + IPersistentVM - none + + - - Publisher + + ExtensionName - Specifies the publisher of the extension. + The Extension Name. String String - none + + - - ReferenceName + + Publisher - Specifies the reference name of the extension. + The Extension Publisher. - String + String String - none + + - + Version - Specifies the version of the extension. + The Extension Version. - String + String String - none - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - IPersistentVM - - - none + + @@ -11016,15 +9641,13 @@ https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.p - - + - + + - - @@ -11033,92 +9656,98 @@ https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.p - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the resource extensions applied to a virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVM -ServiceName $SVC -Name $VM | Get-AzureVMExtension; - + PS C:\> Get-AzureVM -ServiceName $svc -Name $vm | Get-AzureVMExtension; - This command gets the resource extensions applied to the specified virtual machine as stored in the variable $VM. - - + Description - + -----------Get the resource extensions applied on the VM '$vm'. - Remove-AzureVMExtension - - - - Set-AzureVMExtension - + Unknown + + - + + - Get-AzureVMImageDiskConfigSet + Get-AzureVMImage - Gets a disk configuration set object from the input image context. + The Get-AzureVMImage cmdlet gets the properties on one or a list of OS or VM image in the image repository. Get - AzureVMImageDiskConfigSet + AzureVMImage - The Get-AzureVMImageDiskConfigSet cmdlet gets a disk configuration set object from the input image context. + + The Get-AzureVMImage cmdlet returns one or a list of OS or VM object(s) with information on one or more operating system images stored in the image repository. The cmdlet returns information for all images in the repository, or about a specific image if its image name is provided. - Get-AzureVMImageDiskConfigSet - - ImageContext + Get-AzureVMImage + + ImageName - Specifies the virtual machine image context. + Specifies the name of the OS or VM image in the image repository. If not specified, all the images will be returned. - OSImageContext + String - - ImageContext + + ImageName - Specifies the virtual machine image context. + Specifies the name of the OS or VM image in the image repository. If not specified, all the images will be returned. - OSImageContext + String - OSImageContext + String - none + + @@ -11126,127 +9755,147 @@ https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.p - - + - + + - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get a disk configuration set object from a virtual machine + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Get-AzureVMImage -ImageName MyImage + + Description + + + + -----------This command retrieves the "MyImage" OS or VM image object from the current image repository. + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> Get-AzureVMImage + + Description + + + + -----------This command retrieves all the OS and VM images from the current image repository. + + + + + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Get-AzureVMImage -ImageName $Img | Get-AzureVMImageDiskConfigSet - + PS C:\> $subsId = <MySubscriptionID> + C:\PS>$cert = Get-AzureCertificate cert:\LocalMachine\MY\<CertificateThumbprint> + C:\PS>$MyOSImages = Get-AzureVMImage - This command gets a disk configuration set object from a virtual machine. - - + Description - + -----------This command sets the subscription context and then retrieves all the images from the image repository. - New-AzureVMImageDiskConfigSet - - - - Get-AzureVMImage - + Unknown + + - + + - Get-AzureVMImage + Get-AzureVMImageDiskConfigSet - Gets the properties on one or a list of operating systems or a virtual machine image in the image repository. + This cmdlet returns an object for disk configuration set, which is from the input image context. Get - AzureVMImage + AzureVMImageDiskConfigSet - The Get-AzureVMImage cmdlet gets properties on one or a list of operating systems or a virtual machine image in the image repository. The cmdlet returns information for all images in the repository, or about a specific image if its image name is provided. + + This cmdlet returns an object for disk configuration set, which is from the input image context. - Get-AzureVMImage - - ImageName - - Specifies the name of the operating system or virtual machine image in the image repository. If you do not specify this parameter, all the images are returned. - - String - - - Profile + Get-AzureVMImageDiskConfigSet + + ImageContext - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The VM image context. - AzureProfile + OSImageContext - - ImageName - - Specifies the name of the operating system or virtual machine image in the image repository. If you do not specify this parameter, all the images are returned. - - String - - String - - - none - - - Profile + + ImageContext - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The VM image context. - AzureProfile + OSImageContext - AzureProfile + OSImageContext - none + + @@ -11254,118 +9903,71 @@ https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.p - - + - + + - - - - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get a specific image object from the current image repository. - - - - - PS C:\>Get-AzureVMImage -ImageName Image001 - - - This command gets the image object named Image001 from the current image repository. - - - - - - - - - - - Example 2: Get all images from the current image repository - - - - - PS C:\>Get-AzureVMImage - - - This command retrieves all the images from the current image repository. - - - - - - - - - - - Example 3: Set the subscription context and then get all the images + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$SubsId = <MySubscriptionID> -C:\PS>$Cert = Get-AzureCertificate cert:\LocalMachine\MY\<CertificateThumbprint> -C:\PS>$MyOSImages = Get-AzureVMImage - + PS C:\> Get-AzureVMImage -ImageName $img | Get-AzureVMImageDiskConfigSet - This command sets the subscription context and then retrieves all the images from the image repository. - - + Description - + ----------- - Add-AzureVMImage - - - - Remove-AzureVMImage - - - - Save-AzureVMImage - - - - Update-AzureVMImage - + Unknown + + - + + Get-AzureVMMicrosoftAntimalwareExtension @@ -11379,19 +9981,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The Get-AzureVMMicrosoftAntimalwareExtension cmdlet gets the Microsoft Antimalware extension details for a virtual machine. This cmdlet gets details for virtual machines that have the extension turned on programmatically by using the Set-AzureVMMicrosoftAntimalwareExtension cmdlet. The cmdlet gets the JavaScript Object Notation (JSON) equivalent for the configuration. If monitoring is turned on, the cmdlet also gets an .xml representation of the antimalware monitoring configuration. + + The Get-AzureVMMicrosoftAntimalwareExtension cmdlet gets the Microsoft Antimalware extension details for a virtual machine. This cmdlet gets details for virtual machines that have the extension turned on programmatically by using the Set-AzureVMMicrosoftAntimalwareExtension cmdlet. The cmdlet gets the JavaScript Object Notation (JSON) equivalent for the configuration. If monitoring is turned on, the cmdlet also gets an XML representation of the antimalware monitoring configuration. Get-AzureVMMicrosoftAntimalwareExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM Specifies the virtual machine as an IPersistentVM object. @@ -11401,19 +9997,7 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM Specifies the virtual machine as an IPersistentVM object. @@ -11430,15 +10014,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage IPersistentVM - - + - + + - - @@ -11446,37 +10028,43 @@ C:\PS>$MyOSImages = Get-AzureVMImage VirtualMachineMicrosoftAntimalwareExtensionContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get information for the extension for a virtual machine + -------------------------- Example 1: Get information for the extension for a virtual machine -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Get-AzureVMMicrosoftAntimalwareExtension - + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Get-AzureVMMicrosoftAntimalwareExtension This command gets details for the Microsoft Antimalware extension for a virtual machine. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. Get-AzureVMMicrosoftAntimalwareExtension gets configuration information for the extension. - - - + The configuration information for monitoring appears in the output field labeled AntimalwareMonitoringConfiguration. @@ -11486,21 +10074,29 @@ C:\PS>$MyOSImages = Get-AzureVMImage Online Version: http://go.microsoft.com/fwlink/?LinkID=402840 + + Get-AzureVM + + + Remove-AzureVMMicrosoftAntimalwareExtension - + + Set-AzureVMMicrosoftAntimalwareExtension - + + - + + Get-AzureVMPuppetExtension - Gets the Puppet extension applied on a virtual machine. + This cmdlet gets the Puppet extension (if any) applied on the VM. @@ -11510,51 +10106,34 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The Get-AzureVMPuppetExtension cmdlet gets the Puppet extension applied on a virtual machine. + + This cmdlet gets the Puppet extension (if any) applied on the VM. Get-AzureVMPuppetExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM IPersistentVM - none + + @@ -11562,15 +10141,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -11579,111 +10156,98 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the Puppet extension applied on a virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVMPuppetExtension -VM $VM - + PS C:\> Get-AzureVMPuppetExtension -VM $vm; - This command gets the Puppet extension applied on a virtual machine. - - + Description - + -----------This cmdlet gets the Puppet extension (if any) applied on the VM. - Remove-AzureVMPuppetExtension - - - - Set-AzureVMPuppetExtension - + Unknown + + - + + - Get-AzureVMSqlServerExtension + Get-AzureVNetConfig - Gets the settings of the SQL Server IaaS Agent on a particular virtual machine. + Gets the Microsoft Azure virtual network configuration from the current subscription. Get - AzureVMSqlServerExtension + AzureVNetConfig - The Get-AzureVMSqlServerExtension cmdlet gets the settings of the SQL Server infrastructure as a service (IaaS) Agent on a particular virtual machine. + + The Get-AzureVNetConfig retrieves the virtual network configuration of the current Microsoft Azure subscription. If the ExportToFile parameter is specified, a network configuration file is created. - Get-AzureVMSqlServerExtension - - VM - - Specifies the persistent virtual machine object that this cmdlet gets settings from. - - IPersistentVM - - - Profile + Get-AzureVNetConfig + + ExportToFile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the path and file name of a network configuration file to be created from the settings. - AzureProfile + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM + + ExportToFile - Specifies the persistent virtual machine object that this cmdlet gets settings from. + Specifies the path and file name of a network configuration file to be created from the settings. - IPersistentVM + String - IPersistentVM + String - none + + @@ -11691,15 +10255,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -11708,200 +10270,126 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the settings of a SQL Server extension on a virtual machine + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVMSqlServerExtension-VM $VM - ExtensionName : SqlIaaSAgent - Publisher : Microsoft.SqlServer.Management - Version : 1.0 - State : Enable - RoleName : VMName - AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings - AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings - + PS C:\> C:\PS>Get-AzureVNetConfig - Gets the settings of the SQL Server extension on a particular virtual machine. - - + This command gets the virtual network configuration of the current Microsoft Azure subscription and displays it. - + + - Example 2: Get the settings of a SQL Server IaaS Agent on a virtual machine + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureVM -ServiceName "Service" -Name "VMName" | Get-AzureVMSqlServerExtension - ExtensionName : SqlIaaSAgent - Publisher : Microsoft.SqlServer.Management - Version : 1.0 - State : Enable - RoleName : VMName - AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings - AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings - + PS C:\> C:\PS>Get-AzureVNetConfig -ExportToFile "c:\temp\MyAzNets.netcfg" - Gets the settings of the SQL Server IaaS Agent on a particular virtual machine using piped input. - - + This command retrieves the virtual network configuration of the current Microsoft Azure subscription and then saves it to a local file. - - - - - - Example 3: Get the settings of specific SQL Server version IaaS Agent on a virtual machine - - - - - PS C:\>Get-AzureVMSqlServerExtension -VM $VM -Version "1.0" - ExtensionName : SqlIaaSAgent - Publisher : Microsoft.SqlServer.Management - Version : 1.0 - State : Enable - RoleName : VMName - AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings - AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings - - - - This command gets the settings of the particular version of SQL Server IaaS Agent on a virtual machine. - - - - - - + + - Remove-AzureVMSqlServerExtension - + Get-AzureVNetSite + + - Set-AzureVMSqlServerExtension - + Remove-AzureVNetConfig + + + + + Set-AzureVNetConfig + + - + + - Get-AzureVM + Get-AzureVNetConnection - Retrieves information from one or more Azure virtual machines. + Returns an object with all of the virtual network connections to the specified Microsoft Azure virtual network. Get - AzureVM + AzureVNetConnection - The Get-AzureVM cmdlet retrieves information about virtual machines running in Azure. It returns an object with information on a specific virtual machine, or if no virtual machine is specified, for all the virtual machines in the specified service of the current subscription. + + The Get-AzureVNetConnections cmdlet returns an object with all of the current active connections to the specified Microsoft Azure virtual network. - Get-AzureVM - - ServiceName + Get-AzureVNetConnection + + VNetName - Specifies the name of the cloud service for which to return virtual machine information. + Specifies the name of the virtual network from which to return connections. String - - Name - - Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Get-AzureVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Name - - Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ServiceName + + VNetName - Specifies the name of the cloud service for which to return virtual machine information. + Specifies the name of the virtual network from which to return connections. String String - none + + @@ -11909,15 +10397,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -11926,169 +10412,104 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Retrieve information on a specified virtual machine - - - - - PS C:\>Get-AzureVM -ServiceName "ContosoService01" -Name "VirtualMachine02" - - - This command returns an object with information on the VirtualMachine02 virtual machine running in the ContosoService01 cloud service. - - - - - - - - - - - Example 2: Retrieve information on all virtual machines - - - - - PS C:\>Get-AzureVM -ServiceName "ContosoService01" - - - This command retrieves a list object with information on all of the virtual machines running in the ContosoService01 cloud service. - - - - - - - - - - - Example 3: Display a table of virtual machine statuses + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService01" | Format-Table AutoSize -Property "Name",@{Expression={$_.InstanceUpgradeDomain};Label="UpgDom";Align="Right"},"InstanceStatus" - + PS C:\> C:\PS>Get-AzureVNetConnection –VNetName "VNet1" - This command displays a table showing the virtual machines running on the ContosoService01 service, their Upgrade Domain, and the current status of each machine. - - + Gets a list of all of the current connections to the "VNet1" virtual network. - + + - New-AzureVM - - - - New-AzureVMConfig - - - - Remove-AzureVM - - - - Restart-AzureVM - - - - Start-AzureVM - - - - Stop-AzureVM - + Start-VirtualNetworkGateway + + - Update-AzureVM - + End-VirtualNetworkGateway + + - + + - Get-AzureVNetConfig + Get-AzureVNetGateway - Gets the Azure virtual network configuration from the current subscription. + Retrieves an object with information about a Microsoft Azure virtual network gateway. Get - AzureVNetConfig + AzureVNetGateway - The Get-AzureVNetConfig cmdlet retrieves the virtual network configuration of the current Azure subscription. If the ExportToFile parameter is specified, a network configuration file is created. + + The Get-AzureVNetGateway cmdlet retrieves an object with information about a Microsoft Azure virtual network gateway from the current Microsoft Azure subscription. A virtual network gateway is a connection between a local network site with a VPN device and a Microsoft Azure virtual network. - Get-AzureVNetConfig - - ExportToFile - - Specifies the path and file name of a network configuration file to be created from the settings. - - String - - - Profile + Get-AzureVNetGateway + + VNetName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the virtual network name whose virtual network gateway object will be retrieved. - AzureProfile + String - - ExportToFile + + VNetName - Specifies the path and file name of a network configuration file to be created from the settings. + Specifies the virtual network name whose virtual network gateway object will be retrieved. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + @@ -12096,15 +10517,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -12113,134 +10532,114 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the virtual network configuration of a current Azure subscription - - - - - PS C:\>Get-AzureVNetConfig - - - This command gets the virtual network configuration of the current Azure subscription and displays it. - - - - - - - - - - - Example 2: Get the virtual network configuration of the current Azure subscription and save it to a local file + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVNetConfig -ExportToFile "c:\temp\MyAzNets.netcfg" - + PS C:\> C:\PS>Get-VNetGateway –VnetName "MyVNet01" - This command gets the virtual network configuration of the current Azure subscription and then saves it to a local file. - - + This command gets a Microsoft Azure virtual network gateway object from the "MyVNet01" virtual network. - + + - - Get-AzureVNetSite - - - - Remove-AzureVNetConfig - - - - Set-AzureVNetConfig - - - + + - Get-AzureVNetSite + Get-AzureVNetGatewayKey - Gets a list object with information about Azure virtual networks. + Returns a shared key that can be used to configure a VPN device. Get - AzureVNetSite + AzureVNetGatewayKey - The Get-AzureVNetSite cmdlet gets a list object with information about Azurevirtual networks for the current subscription. If you specify a virtual network name, only information for that virtual network is returned. + + The Get-AzureVNetGatewayKey cmdlet returns the shared key used by the VPN device on the specified LocalNetworkSiteName to authenticate to the Microsoft Azure Virtual Network Gateway for the specified Microsoft Azure virtual network. - Get-AzureVNetSite - + Get-AzureVNetGatewayKey + VNetName - Specifies a virtual network name to return information about. + Specifies the name of the Microsoft Azure virtual network that the VPN device connects to. - String + String - - Profile + + LocalNetworkSiteName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the local network site name for which to retrieve a shared key. - AzureProfile + String - - Profile + + VNetName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the Microsoft Azure virtual network that the VPN device connects to. - AzureProfile + String - AzureProfile + String - none + + - - VNetName + + LocalNetworkSiteName - Specifies a virtual network name to return information about. + Specifies the local network site name for which to retrieve a shared key. - String + String String - none + + @@ -12248,15 +10647,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -12265,80 +10662,199 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get information about all virtual networks in the current subscription - - - - - PS C:\>Get-AzureVNetSite - - - This command gets information about all the virtual networks in the current subscription. - - - - - - - - - - - Example 2: Get information about a specific virtual network in the current subscription + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVNetSite -VNetName "MyProductionNetwork" - + PS C:\> Get-AzureVNetGatewayKey –VNetName "MyVirtualNetwork" –LocalNetworkSiteName "MyBranchOffice" - This command retrieves information on the MyProductionNetwork virtual network only. - - + This command retrieves a shared-key to allow the VPN device at the specified local network site to authenticate to the specified virtual network. - + + - - Get-AzureVNetConfig - - - - Remove-AzureVNetConfig - + + + + + + Get-AzureVNetSite + + Returns an object describing Microsoft Azure virtual networks. + + + + + Get + AzureVNetSite + + + + + The Get-AzureVNetSite cmdlet returns a list object with information about Microsoft Azure virtual networks for the current subscription.. If you specify a virtual network name, only information for that virtual network is returned. + + + + Get-AzureVNetSite + + VNetName + + Specifies a virtual network name to return information about. + + String + + + + + + VNetName + + Specifies a virtual network name to return information about. + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVNetSite + + This example retrieves information about all the virtual networks in the current subscription. + + + + + + + + + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVNetSite –VNetName "MyProductionNetwork" + + This example retrieves information on the "MyProductionNetwork" virtual network only. + + + + + + + + + + + + Get-AzureVNetConfig + + + + + Remove-AzureVNetConfig + + Set-AzureVNetConfig - + + - + + Get-AzureWinRMUri - Gets the URI to WinRM https listener to a virtual machine or a list of virtual machines in a hosted service. + Retrieves the uri to WinRM https listener to a VM or a list of VMs in a hosted service. @@ -12348,70 +10864,54 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The Get-AzureWinRMUri cmdlet gets the URI of the Windows Remote Management (WinRM) https listener to a virtual machine or a list of virtual machines in a hosted service. + + Retrieves the uri to WinRM https listener to a VM or a list of VMs in a hosted service. Get-AzureWinRMUri - + ServiceName Specifies the name of the Microsoft Azure service that hosts the virtual machine. String - + Name - Specifies the name of the virtual machine to which the WinRM URI is generated. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the virtual machine to which the WinRM Uri is generated. - AzureProfile + String - - Name + + ServiceName - Specifies the name of the virtual machine to which the WinRM URI is generated. + Specifies the name of the Microsoft Azure service that hosts the virtual machine. - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - ServiceName + + Name - Specifies the name of the Microsoft Azure service that hosts the virtual machine. + Specifies the name of the virtual machine to which the WinRM Uri is generated. String String - none + + @@ -12419,15 +10919,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -12436,56 +10934,59 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Get the URI of the WinRM https listener to a virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureWinRMUri -ServiceName MyService -Name MyVM - + PS C:\> Get-AzureWinRMUri -ServiceName MyService -Name MyVM - This command gets the UIR of the WinRM https listener to a virtual machine. - - + Description - + -----------Returns a URI to WinRM https listener to the specified VM in the specified service. - Example 2: Get the URI of the WinRM https listener to a virtual machine of a specific service + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Get-AzureWinRMUri -ServiceName MyService - + PS C:\> Get-AzureWinRMUri -ServiceName MyService - This command gets the UIR of the WinRM https listener to a virtual machine. - - + Description - + -----------Returns a list of URIs to WinRM https listeners to the VMs in the specified service. @@ -12493,19 +10994,22 @@ C:\PS>$MyOSImages = Get-AzureVMImage New-AzureVM - + + New-AzureQuickVM - + + - + + Import-AzureVM - Imports an Azure virtual machine state from a file. + Imports a Microsoft Azure virtual machine state from a file. @@ -12515,33 +11019,36 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The Import-AzureVM cmdlet imports the previously saved state of a virtual machine from an XML file. This cmdlet is useful when you want to subsequently create a virtual machine from the imported data. - Running Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. + + The Import-AzureVM cmdlet imports the previously saved state of a virtual machine from an xml file. This cmdlet is useful when you want to subsequently create a new virtual machine from the imported data. + + Note: Using Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. Import-AzureVM - + Path - Specifies the path of the file with the previously saved virtual machine state. + Specifies the path to the file with the previously saved virtual machine state. String - + Path - Specifies the path of the file with the previously saved virtual machine state. + Specifies the path to the file with the previously saved virtual machine state. String String - none + + @@ -12549,15 +11056,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -12566,37 +11071,44 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Import a virtual machine state + -------------------------- Example 1 -------------------------- - PS C:\>Import-AzureVM -Path "C:\VMstate.xml" | New-AzureVM -ServiceName "ContosoService02" - + PS C:\> C:\PS>Import-AzureVM -Path "C:\VMstate.xml" | New-AzureVM –ServiceName "mynewsvc" - This command imports the state of a virtual machine from the VMstate.xml file, and then creates a virtual machine in the specified cloud service. - - + This command imports the state of a virtual machine from the "myvm.xml" file, and then creates a new virtual machine in the specified cloud service. - + + @@ -12604,19 +11116,22 @@ C:\PS>$MyOSImages = Get-AzureVMImage Export-AzureVM - + + New-AzureVM - + + - + + Move-AzureDeployment - Swaps deployments between production and staging. + Swaps the deployments in production and staging. @@ -12626,51 +11141,34 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The Move-AzureDeployment cmdlet swaps the virtual IP addresses of deployments in production and staging environments. This cmdlet swaps a deployment that currently runs in the staging environment to the production environment, and a deployment that runs in the production environment to the staging environment. If there is a deployment in the staging environment and no deployment in the production environment, the cmdlet moves the deployment to production. If there is a deployment in the production environment and no deployment in the staging environment, the cmdlet fails. + + The Move-AzureDeployment swaps the virtual IP addresses (VIPs) of deployments in production and staging environments. A deployment currently running in the staging environment will be swapped to the production environment, and a deployment running in the production environment will be swapped to the staging environment. If there is a deployment in the staging environment and no deployment in the production environment, the deployment will move to production. If there is no deployment in the staging environment, the cmdlet will fail. Move-AzureDeployment - + ServiceName - Specifies the name of the service for which this cmdlet swaps production and staging deployments. + Specifies the name of the service whose production and staging deployments will be swapped. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + ServiceName - Specifies the name of the service for which this cmdlet swaps production and staging deployments. + Specifies the name of the service whose production and staging deployments will be swapped. String String - none + + @@ -12678,15 +11176,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -12694,37 +11190,44 @@ C:\PS>$MyOSImages = Get-AzureVMImage ManagementOperationContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Swap deployments for a service + -------------------------- Example 1 -------------------------- - PS C:\>Move-AzureDeployment -ServiceName "ContosoService" - + PS C:\> C:\PS>Move-AzureDeployment -ServiceName "myservice" - This command swaps the deployments of the service named ContosoService between the production and staging environments. - - + This command swaps the deployments of the "myservice" service between the production and stanging environments. - + + @@ -12732,31 +11235,32 @@ C:\PS>$MyOSImages = Get-AzureVMImage Get-AzureDeployment - - - - Get-AzureDeploymentEvent - + + New-AzureDeployment - + + Remove-AzureDeployment - + + Set-AzureDeployment - + + - + + New-AzureAclConfig - Creates an empty ACL configuration object. + Creates a new empty ACL configuration object. @@ -12766,7 +11270,8 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The New-AzureAclConfig cmdlet creates an empty access control list (ACL) configuration object. + + The New-AzureAclConfig cmdlet creates a new empty ACL configuration object. @@ -12780,15 +11285,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -12797,37 +11300,44 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create an ACL configuration object + -------------------------- Example 1 -------------------------- - PS C:\>$Acl = New-AzureAclConfig - + PS C:\> C:\PS> $acl = New-AzureAclConfig - This command creates an empty ACL configuration object, and then stores it in the $Acl variable. - - + This command will create a new empty ACL configuration object. - + + @@ -12835,23 +11345,27 @@ C:\PS>$MyOSImages = Get-AzureVMImage Get-AzureAclConfig - + + Remove-AzureAclConfig - + + Set-AzureAclConfig - + + - + + New-AzureAffinityGroup - Creates an affinity group in the current subscription. + Creates a new affinity group for the current Microsoft Azure subscription. @@ -12861,109 +11375,93 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The New-AzureAffinityGroup cmdlet creates an Azure affinity group in the current Azure subscription. - An affinity group puts your services and their resources together in an Azure datacenter. The affinity group groups members together for optimal performance. Define affinity groups at the subscription level. Your affinity groups are available to any subsequent cloud services or storage accounts that you create. You can add services to an affinity group only when you create it. + + The New-AzureAffinityGroup cmdlet creates a new affinity group in the current subscription. An affinity group places your services and their resources together in a Microsoft Azure data center. The affinity group members are grouped together for optimal performance. Affinity groups are defined at the subscription level and are available to any subsequent cloud services or storage accounts that you create. Services can be added to an affinity group only at the time of creation. New-AzureAffinityGroup - + Name - Specifies a name for the affinity group. The name must be unique to the subscription. + Specifies a name for the new affinity group that is unique to the subscription. String - - Description - - Specifies a description for the affinity group. The description may be up to 1024 characters long. - - String - - + Label - Specifies a label for the affinity group. The label may be up to 100 characters long. + Specifies a label for the affinity group. The label may be up to 100 characters in length. - String + String - - Profile + + Description - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a description for the affinity group. The description may be up to 1024 characters in length. - AzureProfile + String - + Location - Specifies the geographical location of the Azure datacenter where this cmdlet creates the affinity group. + Required if AffinityGroup is not specified. The Location parameter specifies the geographical location of the data center where the affinity group will be created. String - - Description + + Name - Specifies a description for the affinity group. The description may be up to 1024 characters long. + Specifies a name for the new affinity group that is unique to the subscription. - String + String String - none + + - + Label - Specifies a label for the affinity group. The label may be up to 100 characters long. + Specifies a label for the affinity group. The label may be up to 100 characters in length. - String + String String - none + The same one as the Name - - Location + + Description - Specifies the geographical location of the Azure datacenter where this cmdlet creates the affinity group. + Specifies a description for the affinity group. The description may be up to 1024 characters in length. String String - none + + - - Name + + Location - Specifies a name for the affinity group. The name must be unique to the subscription. + Required if AffinityGroup is not specified. The Location parameter specifies the geographical location of the data center where the affinity group will be created. String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + @@ -12971,15 +11469,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -12988,37 +11484,44 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create an affinity group + -------------------------- Example 1 -------------------------- - PS C:\>New-AzureAffinityGroup -Name "South01" -Location "South Central US" -Label "South Region" -Description "Affinity group for production applications in southern region." - + PS C:\> C:\PS>New-AzureAffinityGroup -Name South1 -Location "South Central US" -Label "South Region" -Description "Affinity group for production applications in southern region." - This command creates an affinity group named South01 in the South Central US region. The command specifies a label and a description. - - + This command creates a new affinity group named "South1" in the "South Central US" region and specifies both a label and a description. - + + @@ -13026,23 +11529,27 @@ C:\PS>$MyOSImages = Get-AzureVMImage Get-AzureAffinityGroup - + + Remove-AzureAffinityGroup - + + Set-AzureAffinityGroup - + + - + + New-AzureCertificateSetting - Creates a certificate setting object for a certificate is in a service. + Creates a setting object to insert an existing certificate into new Microsoft Azure virtual machines. @@ -13052,38 +11559,20 @@ C:\PS>$MyOSImages = Get-AzureVMImage - The New-AzureCertificateSetting cmdlet creates a certificate setting object for a certificate that is in an Azure service. - You can use a certificate setting object to create a configuration object by using the Add-AzureProvisioningConfig cmdlet. Use a configuration object to create virtual machine by using the New-AzureVM cmdlet. You can use a certificate setting object to create a virtual machine by using the New-AzureQuickVM cmdlet. + + The New-AzureCertificateSetting cmdlet creates a certificate setting object for a certificate that has already been added to Microsoft Azure. This certificate setting object can be used by New-AzureProvisioningConfig when creating the configuration object for a new virtual machine using New-AzureVM, or when creating a new virtual machine with New-AzureQuickVM. When included as part of a virtual machine creation script, this adds the specified certificate to the new virtual machine. New-AzureCertificateSetting - + StoreName - Specifies the certificate store in which to put the certificate. Valid values are: - --- AddressBook --- AuthRoot --- CertificateAuthority --- Disallowed --- My --- Root --- TrustedPeople --- TrustedPublisher + Specifies the Certificate Store to place the certificate in. - - AddressBook - AuthRoot - CertificateAuthority - Disallowed - My - Root - TrustedPeople - TrustedPublisher - + String - + Thumbprint Specifies the thumbprint of the certificate. @@ -13093,28 +11582,20 @@ C:\PS>$MyOSImages = Get-AzureVMImage - + StoreName - Specifies the certificate store in which to put the certificate. Valid values are: - --- AddressBook --- AuthRoot --- CertificateAuthority --- Disallowed --- My --- Root --- TrustedPeople --- TrustedPublisher + Specifies the Certificate Store to place the certificate in. - String + String String - none + + - + Thumbprint Specifies the thumbprint of the certificate. @@ -13124,7 +11605,8 @@ C:\PS>$MyOSImages = Get-AzureVMImage String - none + + @@ -13132,15 +11614,13 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - @@ -13149,102 +11629,78 @@ C:\PS>$MyOSImages = Get-AzureVMImage - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a certificate setting object + -------------------------- Example 1 -------------------------- - PS C:\>New-AzureCertificateSetting -Thumbprint "D7BECD4D63EBAF86023BB41FA5FBF5C2C924902A" -StoreName "My" - + PS C:\> C:\PS>$myWinCert = New-AzureCertificateSetting –Thumbprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –StoreName "My" - This command creates a certificate setting object for an existing certificate. - - + This command creates a certificate setting object for an existing certificate and then stores the object in a variable for later use. - + + - Example 2: Create a virtual machine that uses a configuration setting object + -------------------------- Example 2 -------------------------- - PS C:\>Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy "C:\temp\ContosoCert.cer" -PS C:\> $CertificateSetting = New-AzureCertificateSetting -Thumbprint "D7BECD4D63EBAF86023BB41FA5FBF5C2C924902A" -StoreName "My" -PS C:\> $Image = Get-AzureVMImage -ImageName "ContosoStandard" -PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -ImageName $Image | Add-AzureProvisioningConfig -Windows -Certificates $CertificateSetting -Password "password" | New-AzureVM -ServiceName "ContosoService" - + PS C:\> C:\PS>Add-AzureCertificate –ServiceName "MySvc" –CertToDeploy "C:\temp\MyWinCert.cer" + C:\PS>$myWinCert = New-AzureCertificateSetting –Thumbprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –StoreName "My" + C:\PC>New-AzureVMConfig -Name "MyVM2" -InstanceSize Small -ImageName $winImage ` + | Add-AzureProvisioningConfig -Windows -Certificates $myWinCert -Password 'pass@word1' ` + | New-AzureVM -ServiceName "MySvc" - The first command adds the certificate ContosoCert.cer to the service named ContosoService by using the Add-AzureCertificate cmdlet. - The second command creates a certificate setting object, and then stores it in the $CertificateSetting variable. - The third command gets an image from the image repository by using the Get-AzureVMImage cmdlet. This command store the image in the $Image variable. - The final command creates a virtual machine configuration object based on the image in $Image by using the New-AzureVMConfig cmdlet. The command passes that object to the Add-AzureProvisioningConfig cmdlet by using the pipeline operator. That cmdlet add provisioning information to the configuration. The command passes the object to the New-AzureVM cmdlet, which creates the virtual machine. - - + This command adds a certificate to the Microsoft Azure service, and then creates a new Windows virtual machine that uses the certificate. - + + - - Add-AzureCertificate - - - - Add-AzureProvisioningConfig - - - - Get-AzureCertificate - - - - Get-AzureVMImage - - - - New-AzureQuickVM - - - - New-AzureVM - - - - Remove-AzureCertificate - - - + + New-AzureDeployment - Creates a deployment from a service. + Creates a new deployment from a service comprising web roles and worker roles. @@ -13254,205 +11710,193 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - The New-AzureDeployment cmdlet creates an Azure deployment from a service that comprises web roles and worker roles. This cmdlet creates a deployment based on a package file (.cspkg) and a service configuration file (.cscfg). Specify a name that is unique within deployment environment. - Use the New-AzureVM cmdlet to create a deployment based on Azure virtual machines. + + The New-AzureDeployment cmdlet creates a new deployment based on package files (.cspkg) and a service configuration files (.cscfg). Use the New-AzureVM cmdlet to create a new deployment based on Microsoft Azure virtual machines. + + There should not be an existing deployment with the same name nor in the same deployment environment when executing this command. If there is, the command will fail. New-AzureDeployment - + ServiceName - Specifies the name of the Azure service for the deployment. + Specifies Microsoft Azure service name for the deployment. String - + Package - Specifies the path or URI of a .cspkg file in storage within the same subscription or project. + Specifies the path or URI to a .cspkg blob in a storage within the same subscription/project. String - + Configuration - Specifies the full path of a service configuration file. + Specifies the path and file name of a service configuration file (.cscfg). String - + Slot - Specifies the environment where this cmdlet creates the deployment. Valid values are: Staging and Production. The default value is Production. + Specifies the environment where the deployment is created. Acceptable values are Staging or Production. If not specified, Production is used. - - Staging - Production - + String - + Label - Specifies a label name for the deployment. If you do not specify a label, this cmdlet uses a GUID. + Specifies the label name for the new deployment. If not specified, a Globally Unique Identifier (GUID) is used. - String + String - + Name - Specifies a deployment name. If you do not specify a name, this cmdlet uses a GUID. + Specifies the deployment name. If not specified, a Global Unique Identifier is used. - String + String - + DoNotStart - Specifies that this cmdlet does not start the deployment. + Specifies that the new deployment will not be started when it is created. + SwitchParameter - - ExtensionConfiguration - - Specifies an array of extension configuration objects. - - ExtensionConfigurationInput[] - - - Profile + + TreatWarningsAsError - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Causes warning messages to be treated as errors, resulting in the deployment failing on warnings. - AzureProfile + SwitchParameter - - TreatWarningsAsError + + ExtensionConfiguration - Specifies that warning messages are errors. If you specify this parameter, a warning message causes the deployment to fail. + Optional array of extension configuration objects. + ExtensionConfigurationInput[] - - Configuration + + ServiceName - Specifies the full path of a service configuration file. + Specifies Microsoft Azure service name for the deployment. String String - none - - - DoNotStart - - Specifies that this cmdlet does not start the deployment. - - SwitchParameter - - SwitchParameter - - - none + + - - ExtensionConfiguration + + Package - Specifies an array of extension configuration objects. + Specifies the path or URI to a .cspkg blob in a storage within the same subscription/project. - ExtensionConfigurationInput[] + String - ExtensionConfigurationInput[] + String - none + + - - Label + + Configuration - Specifies a label name for the deployment. If you do not specify a label, this cmdlet uses a GUID. + Specifies the path and file name of a service configuration file (.cscfg). - String + String String - none + + - - Name + + Slot - Specifies a deployment name. If you do not specify a name, this cmdlet uses a GUID. + Specifies the environment where the deployment is created. Acceptable values are Staging or Production. If not specified, Production is used. - String + String String - none + Production - - Package + + Label - Specifies the path or URI of a .cspkg file in storage within the same subscription or project. + Specifies the label name for the new deployment. If not specified, a Globally Unique Identifier (GUID) is used. String String - none + The same as Name - - Profile + + Name - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the deployment name. If not specified, a Global Unique Identifier is used. - AzureProfile + String - AzureProfile + String - none + Guid - - ServiceName + + DoNotStart - Specifies the name of the Azure service for the deployment. + Specifies that the new deployment will not be started when it is created. - String + SwitchParameter - String + SwitchParameter - none + + - - Slot + + TreatWarningsAsError - Specifies the environment where this cmdlet creates the deployment. Valid values are: Staging and Production. The default value is Production. + Causes warning messages to be treated as errors, resulting in the deployment failing on warnings. - String + SwitchParameter - String + SwitchParameter - none + + - - TreatWarningsAsError + + ExtensionConfiguration - Specifies that warning messages are errors. If you specify this parameter, a warning message causes the deployment to fail. + Optional array of extension configuration objects. - SwitchParameter + ExtensionConfigurationInput[] - SwitchParameter + ExtensionConfigurationInput[] - none + + @@ -13460,15 +11904,13 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - - + - + + - - @@ -13477,56 +11919,61 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a deployment + -------------------------- Example 1 -------------------------- - PS C:\>New-AzureDeployment -ServiceName "ContosoService" -Slot "Production" -Package "https://contosostorage.blob.core.windows.net/container06/ContosoPackage.cspkg" -Configuration "C:\packages\ContosoConfiguration.cscfg" -Label "ContosoDeployment" - + PS C:\> New-AzureDeployment -ServiceName "myservice" -Slot "Production" -Package "https://mystorage.blob.core.windows.net/mycontainer/MyPackage.cspkg" -Configuration "c:\packages\mypackage.cscfg" -Label "MyDeployment" - This command creates a production deployment based on a package named ContosoPackage.cspkg and a configuration named ContosoConfiguration.cscfg. The command specifies a label for the deployment. It does not specify a name. This cmdlet creates a GUID as the name. - - + This example creates a new deployment based on a package location and a configuration path. - + + - Example 2: Create a deployment based on an extension configuration + -------------------------- Example 2 -------------------------- - PS C:\>New-AzureDeployment -ServiceName "ContosoService" -Slot "Production" -Package "https://contosostorage.blob.core.windows.net/container06/ContosoPackage.cspkg" -Configuration "C:\packages\ContosoConfiguration.cscfg" -ExtensionConfiguration "C:\packages\ContosoExtensionConfig.cscfg" - + PS C:\> New-AzureDeployment -ServiceName $svc -Package $pkg -Configuration $cnfg -Slot Production -ExtensionConfiguration $rdpConfig - This command creates a production deployment based on a package and configuration. The command specifies an extension configuration named ContosoExtensionConfig.cscfg. This cmdlet creates GUIDs as the name and the label. - - + + - + This example installs the extension configuration in the specified Cloud Service and applies them on roles. @@ -13534,35 +11981,32 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image Get-AzureDeployment - - - - Get-AzureDeploymentEvent - - - - Move-AzureDeployment - + + - New-AzureVM - + Remove-AzureDeployment + + - Remove-AzureDeployment - + New-AzureVMConfig + + Set-AzureDeployment - + + - + + New-AzureDns - Creates an Azure DNS settings object. + Creates a DNS settings object to be used when creating a Microsoft Azure deployment. @@ -13572,19 +12016,20 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - The New-AzureDns cmdlet creates an Azure DNS settings object. You can use a DNS settings object when you create a virtual machine by using the New-AzureVM cmdlet. + + The New-AzureDNS cmdlet creates a DNS settings object for use by the New-AzureVM cmdlet. It accepts two parameters: Name and Address. The Name parameter is a friendly name, not necessarily a DNS resolvable name, and the Address parameter is the IP address of the DNS server. New-AzureDns - + Name - Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. + Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name. String - + IPAddress Specifies the IP address of the DNS server. @@ -13594,29 +12039,31 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - - IPAddress + + Name - Specifies the IP address of the DNS server. + Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name. String String - none + + - - Name + + IPAddress - Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. + Specifies the IP address of the DNS server. String String - none + + @@ -13624,15 +12071,13 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - - + - + + - - @@ -13641,69 +12086,79 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a DNS settings object + -------------------------- Example 1 -------------------------- - PS C:\>$Dns = New-AzureDns -Name "Dns01" -IPAddress "10.1.2.4" - + PS C:\> C:\PS>$dns1 = New-AzureDns –Name "dns1" –address "10.1.2.4" - This command creates an Azure DNS settings object. The DNS server has the specified address and the friendly name Dns01. The command stores the object in the $Dns variable for use by the New-AzureVM cmdlet. - - + This command creates a new Microsoft Azure DNS settings object. - + + - - - - Add-AzureDns - - - - Get-AzureDns - - - - New-AzureVM - - - - Remove-AzureDns - - - - Set-AzureDns - - + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> C:\PS>$dns1 = New-AzureDns –Name "dns1" –address "10.1.2.4" + C:\PS>New-AzureVM –ServiceName $MyService –AffinityGroup $MyAG –VnetName $VNet1 –DnsSettings $dns1 –VMs $MyVMconfig + + This command creates a new Microsoft Azure DNS settings object that is then used during the creation of a virtual machine with the New-AzureVM cmdlet. + + + + + + + + + + - + + New-AzureInternalLoadBalancerConfig - Creates an internal load balancer configuration. + New-AzureInternalLoadBalancerConfig [-InternalLoadBalancerName] <string> [<CommonParameters>] + + New-AzureInternalLoadBalancerConfig [-InternalLoadBalancerName] <string> [-SubnetName] <string> [-StaticVNetIPAddress] <ipaddress> [<CommonParameters>] + + New-AzureInternalLoadBalancerConfig [-InternalLoadBalancerName] <string> [-SubnetName] <string> [<CommonParameters>] @@ -13713,130 +12168,110 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - The New-AzureInternalLoadBalancerConfig cmdlet creates an InternalLoadBalancerConfig object. You can use an internal load balancer configuration when you create an Azure virtual machine deployment. + + The New-InternalLoadbalancerConfig creates a local object that can be used later during creation of a new azure virtual machine deployment. New-AzureInternalLoadBalancerConfig - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. + + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - New-AzureInternalLoadBalancerConfig - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. + + String - + SubnetName - Specifies the name of the subnet for an internal load balancer. + + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - New-AzureInternalLoadBalancerConfig - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. + + String - + SubnetName - Specifies the name of the subnet for an internal load balancer. + + String - + StaticVNetIPAddress - Specifies the virtual network IP address for an internal load balancer that this cmdlet includes in the configuration. + + IPAddress - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. + + String String - none + + - - Profile + + SubnetName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - AzureProfile + String - none + + - + StaticVNetIPAddress - Specifies the virtual network IP address for an internal load balancer that this cmdlet includes in the configuration. + + IPAddress IPAddress - none - - - SubnetName - - Specifies the name of the subnet for an internal load balancer. - - String - - String - - - none + + @@ -13844,15 +12279,13 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - - + - + + - - @@ -13860,929 +12293,844 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image Microsoft.WindowsAzure.Commands.ServiceManagement.Model.InternalLoadBalancerConfig - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create an internal load balancer configuration + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$IlbConfig = New-AzureInternalLoadBalancerConfig -InternalLoadBalancerName "Contoso" -SubnetName "FrontEndSubnet" - + PS C:\> $myilbconfig = New-AzureInternalLoadBalancerConfig -InternalLoadBalancerName "MyILB" -SubnetName "FrontEndSubnet" - This command creates an internal load balancer configuration for the subnet named FrontEndSubnet. The command stores the configuration in the $IlbConfig variable for you to use for a virtual machine deployment. - - + Description - + -----------Creates a local Internal load balancer object that can be referenced later in the New-AzureVM operation - Add-AzureInternalLoadBalancer - - - - Get-AzureInternalLoadBalancer - - - - Remove-AzureInternalLoadBalancer - - - - Set-AzureInternalLoadBalancer - + Unknown + + - + + - New-AzureQuickVM + + New-AzureQuickVM + - Configures and creates an Azure virtual machine. + + - + + New AzureQuickVM - + + - The New-AzureQuickVM cmdlet configures and creates an Azure virtual machine. This cmdlet can deploy a virtual machine into an existing Azure service. This cmdlet can alternatively create an Azure service that hosts the new virtual machine. + The New-AzureQuickVM sets the configuration for a new virtual machine and creates the virtual machine. It can create a new Microsoft Azure service, or deploy the new virtual machine into an existing service if neither -Location or -AffinityGroup is specified. + New-AzureQuickVM - - AdminUsername + + ImageName - Specifies the user name of the Administrator account that this cmdlet creates on the virtual machine. + Specifies the name of the operating system image to use to create the operating system disk. - String + string - - AffinityGroup + + Linux - Specifies the affinity group for the virtual machine. Specify this parameter or the Location parameter only if this cmdlet creates an Azure service for the virtual machine. + Specify to create a Linux virtual machine. - String - - AvailabilitySetName + + ServiceName - Specifies the name of the availability set in which this cmdlet creates the virtual machine. + + Specifies the new or existing service name. + + If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. + If the service exists, the -Location or -AffinityGroup parameter is not needed. + - String + string - - Certificates + + AffinityGroup - Specifies a list of certificates that this cmdlet uses to create the service. + Specifies the Microsoft Azure affinity group the virtual machine will reside in. Only valid for a new cloud service. - CertificateSettingList + string - - CustomDataFile + + AvailabilitySetName - Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. - If the guest operating system is the Windows operating system, this cmdlet saves this data as a binary file that is named %SYSTEMDRIVE%\AzureData\CustomData.bin. - If the guest operating system is Linux, this cmdlet passes the data by using the ovf-env.xml file. Installation copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. + Specify the availability set to use. - String + string - - DisableGuestAgent + + CustomDataFile - Indicates that this cmdlet disables the infrastructure as a service (IaaS) provision guest agent. + + This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. + + On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. + On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. + + string - - DisableWinRMHttps + + DisableGuestAgent - Indicates that this cmdlet disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. + Not Specified - + DnsSettings - Specifies an array of DNS server objects that defines the DNS settings for the new deployment. To create a DnsServer object, use the New-AzureDns cmdlet. + Specifies a DNS Server object that defines the DNS settings for the new deployment. Use New-AzureDNS to create the DNS server object. - DnsServer[] + DnsServer[] - - EnableWinRMHttp - - Indicates that this cmdlet enables WinRM over HTTP. - - - + HostCaching - Specifies the host caching mode for the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite + Specifies the host caching mode to use. Supported options are: "ReadOnly" and "ReadWrite". - - ReadWrite - ReadOnly - + string - + InstanceSize - Specifies the size of the instance. Valid values are: - --- ExtraSmall --- Small --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 --- A8 --- A9 --- Basic_A0 --- Basic_A1 --- Basic_A2 --- Basic_A3 --- Basic_A4 --- Standard_D1 --- Standard_D2 --- Standard_D3 --- Standard_D4 --- Standard_D11 --- Standard_D12 --- Standard_D13 --- Standard_D14 - - String - - - Location - - Specifies the Azure datacenter that hosts the virtual machine. If you specify this parameter, the cmdlet creates an Azure service in the specified location. Specify this parameter or the AffinityGroup parameter only if this cmdlet creates an Azure service for the virtual machine. + Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. - String + string - - MediaLocation + + LinuxUser - Specifies the Azure Storage location where this cmdlet creates the virtual machines disks. + Specifies the Linux administrative account name to create. - String + string - - Name + + Location - Specifies the name of the virtual machine that this cmdlet creates. + Specifies the Microsoft Azure data center location that will host the virtual machine. When specified, New-AzureQuickVM will create a new Microsoft Azure service in the specified location. Only valid for a new cloud service. - String + string - - NoExportPrivateKey + + MediaLocation - Indicates that this configuration does not upload the private key. + Specifies the Microsoft Azure storage location to use for the virtual machines disks. + string - - NoWinRMEndpoint + + Name - Indicates that this cmdlet does not add a WinRM endpoint for the virtual machine. + Specifies the name of the virtual machine. + string - + Password Specifies the password for the administrative account. - String + string - - Profile + + ReservedIPName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + string - - ReservedIPName + + SSHKeyPairs - Specifies the reserved IP name. + + - String + LinuxProvisioningConfigurationSet+SSHKeyPairList - - ReverseDnsFqdn + + SSHPublicKeys - Specifies the fully qualified domain name for reverse DNS look up. + + - String + LinuxProvisioningConfigurationSet+SSHPublicKeyList - + SubnetNames - Specifies an array of names of subnet for the virtual machine. + Specifies a list of subnet names the virtual machine will use. - String[] + string[] - + VNetName - Specifies the name of a virtual network for the virtual machine. + Specifies the name of a virtual network the virtual machine will use. - String + string - + WaitForBoot - Indicates that this cmdlet waits for the virtual machine to reach the state ReadyRole. If the virtual machine reaches one of the following states, the cmdlet fails: FailedStartingVM, ProvisioningFailed, or ProvisioningTimeout. + Waits for VM to reach ReadyRole state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". - - WinRMCertificate + + + New-AzureQuickVM + + ImageName - Specifies a certificate that this cmdlet associates to a WinRM endpoint. + Specifies the name of the operating system image to use to create the operating system disk. - X509Certificate2 + string - - X509Certificates + + ServiceName - Specifies an array of X509 certificates that are deployed to a hosted service. + + Specifies the new or existing service name. + + If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. + If the service exists, the -Location or -AffinityGroup parameter is not needed. + - X509Certificate2[] + string - - ImageName + + Windows - Specifies the name of the disk image this cmdlet uses to create the operating system disk. + Include to create a Windows virtual machine. - String - - ServiceName + + AdminUsername - Specifies the name of a new or existing Azure service to which this cmdlet adds the new virtual machine. - If you specify a new service, this cmdlets creates it. To create a new service, you must specify the Location or AffinityGroup parameter. - If you specify an existing service, do not specify Location or AffinityGroup. + Specifies the Administrator account to create. - String + string - - Windows + + AffinityGroup - Indicates that this cmdlet creates a Windows virtual machine. + Specifies the Microsoft Azure affinity group the virtual machine will reside in. Only valid for a new cloud service. + string - - - New-AzureQuickVM - - AffinityGroup + + AvailabilitySetName - Specifies the affinity group for the virtual machine. Specify this parameter or the Location parameter only if this cmdlet creates an Azure service for the virtual machine. + Specify the availability set to use. - String + string - - AvailabilitySetName + + Certificates - Specifies the name of the availability set in which this cmdlet creates the virtual machine. + Specifies a certificate list to use for creating the service. - String + CertificateSettingList - + CustomDataFile - Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. - If the guest operating system is the Windows operating system, this cmdlet saves this data as a binary file that is named %SYSTEMDRIVE%\AzureData\CustomData.bin. - If the guest operating system is Linux, this cmdlet passes the data by using the ovf-env.xml file. Installation copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. + + This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. + + On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. + On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. + - String + string - + DisableGuestAgent - Indicates that this cmdlet disables the infrastructure as a service (IaaS) provision guest agent. + Not Specified - - DnsSettings + + DisableWinRMHttps - Specifies an array of DNS server objects that defines the DNS settings for the new deployment. To create a DnsServer object, use the New-AzureDns cmdlet. + Disables WinRM on https which is added by default. - DnsServer[] - - HostCaching + + DnsSettings - Specifies the host caching mode for the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite + Specifies a DNS Server object that defines the DNS settings for the new deployment. Use New-AzureDNS to create the DNS server object. - - ReadWrite - ReadOnly - + DnsServer[] - - InstanceSize - - Specifies the size of the instance. Valid values are: - --- ExtraSmall --- Small --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 --- A8 --- A9 --- Basic_A0 --- Basic_A1 --- Basic_A2 --- Basic_A3 --- Basic_A4 --- Standard_D1 --- Standard_D2 --- Standard_D3 --- Standard_D4 --- Standard_D11 --- Standard_D12 --- Standard_D13 --- Standard_D14 - - String - - - LinuxUser + + EnableWinRMHttp - Specifies the user name of the Linux administrative account that this cmdlet creates on the virtual machine. + Enables WinRM over http. - String - - Location + + HostCaching - Specifies the Azure datacenter that hosts the virtual machine. If you specify this parameter, the cmdlet creates an Azure service in the specified location. Specify this parameter or the AffinityGroup parameter only if this cmdlet creates an Azure service for the virtual machine. + Specifies the host caching mode to use. Supported options are: "ReadOnly" and "ReadWrite". - String + string - - MediaLocation + + InstanceSize - Specifies the Azure Storage location where this cmdlet creates the virtual machines disks. + Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. - String + string - - Name + + Location - Specifies the name of the virtual machine that this cmdlet creates. + Specifies the Microsoft Azure data center location that will host the virtual machine. When specified, New-AzureQuickVM will create a new Microsoft Azure service in the specified location. Only valid for a new cloud service. - String + string - - Password + + MediaLocation - Specifies the password for the administrative account. + Specifies the Microsoft Azure storage location to use for the virtual machines disks. - String + string - - Profile + + Name - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the virtual machine. - AzureProfile + string - - ReservedIPName + + NoExportPrivateKey - Specifies the reserved IP name. + Prevents the private key from being uploaded - String - - ReverseDnsFqdn + + NoWinRMEndpoint - Specifies the fully qualified domain name for reverse DNS look up. + Prevents the WinRM endpoint from being added - String - - SSHKeyPairs + + Password - Specifies SSH key pairs. + Specifies the password for the administrative account. - LinuxProvisioningConfigurationSet+SSHKeyPairList + string - - SSHPublicKeys + + ReservedIPName - Specifies SSH public keys. + Not Specified - LinuxProvisioningConfigurationSet+SSHPublicKeyList + string - + SubnetNames - Specifies an array of names of subnet for the virtual machine. + Specifies a list of subnet names the virtual machine will use. - String[] + string[] - + VNetName - Specifies the name of a virtual network for the virtual machine. + Specifies the name of a virtual network the virtual machine will use. - String + string - + WaitForBoot - Indicates that this cmdlet waits for the virtual machine to reach the state ReadyRole. If the virtual machine reaches one of the following states, the cmdlet fails: FailedStartingVM, ProvisioningFailed, or ProvisioningTimeout. - - - - ImageName - - Specifies the name of the disk image this cmdlet uses to create the operating system disk. + Waits for VM to reach ReadyRole state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". - String - - Linux + + WinRMCertificate - Indicates that this cmdlet creates a Linux based virtual machine. + Certificate that will be associated with WinRM endpoint. + X509Certificate2 - - ServiceName + + X509Certificates - Specifies the name of a new or existing Azure service to which this cmdlet adds the new virtual machine. - If you specify a new service, this cmdlets creates it. To create a new service, you must specify the Location or AffinityGroup parameter. - If you specify an existing service, do not specify Location or AffinityGroup. + X509 certificates that will be deployed to hosted service. - String + X509Certificate2[] + - + AdminUsername - Specifies the user name of the Administrator account that this cmdlet creates on the virtual machine. + Specifies the Administrator account to create. - String + string - String + string - none + + - + AffinityGroup - Specifies the affinity group for the virtual machine. Specify this parameter or the Location parameter only if this cmdlet creates an Azure service for the virtual machine. + Specifies the Microsoft Azure affinity group the virtual machine will reside in. Only valid for a new cloud service. - String + string - String + string - none + + - + AvailabilitySetName - Specifies the name of the availability set in which this cmdlet creates the virtual machine. + Specify the availability set to use. - String + string - String + string - none + + - + Certificates - Specifies a list of certificates that this cmdlet uses to create the service. + Specifies a certificate list to use for creating the service. - CertificateSettingList + CertificateSettingList CertificateSettingList - none + + - + CustomDataFile - Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. - If the guest operating system is the Windows operating system, this cmdlet saves this data as a binary file that is named %SYSTEMDRIVE%\AzureData\CustomData.bin. - If the guest operating system is Linux, this cmdlet passes the data by using the ovf-env.xml file. Installation copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. + + This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. + + On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. + On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. + - String + string - String + string - none + + - + DisableGuestAgent - Indicates that this cmdlet disables the infrastructure as a service (IaaS) provision guest agent. + Not Specified SwitchParameter SwitchParameter - none + + - + DisableWinRMHttps - Indicates that this cmdlet disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. + Disables WinRM on https which is added by default. SwitchParameter SwitchParameter - none + + - + DnsSettings - Specifies an array of DNS server objects that defines the DNS settings for the new deployment. To create a DnsServer object, use the New-AzureDns cmdlet. + Specifies a DNS Server object that defines the DNS settings for the new deployment. Use New-AzureDNS to create the DNS server object. - DnsServer[] + DnsServer[] DnsServer[] - none + + - + EnableWinRMHttp - Indicates that this cmdlet enables WinRM over HTTP. + Enables WinRM over http. SwitchParameter SwitchParameter - none + + - + HostCaching - Specifies the host caching mode for the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite + Specifies the host caching mode to use. Supported options are: "ReadOnly" and "ReadWrite". - String + string - String + string - none + + - + ImageName - Specifies the name of the disk image this cmdlet uses to create the operating system disk. + Specifies the name of the operating system image to use to create the operating system disk. - String + string - String + string - none + + - + InstanceSize - Specifies the size of the instance. Valid values are: - --- ExtraSmall --- Small --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 --- A8 --- A9 --- Basic_A0 --- Basic_A1 --- Basic_A2 --- Basic_A3 --- Basic_A4 --- Standard_D1 --- Standard_D2 --- Standard_D3 --- Standard_D4 --- Standard_D11 --- Standard_D12 --- Standard_D13 --- Standard_D14 - - String + Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. + + string - String + string - none + + - + Linux - Indicates that this cmdlet creates a Linux based virtual machine. + Specify to create a Linux virtual machine. - SwitchParameter + SwitchParameter SwitchParameter - none + + - + LinuxUser - Specifies the user name of the Linux administrative account that this cmdlet creates on the virtual machine. + Specifies the Linux administrative account name to create. - String + string - String + string - none + + - + Location - Specifies the Azure datacenter that hosts the virtual machine. If you specify this parameter, the cmdlet creates an Azure service in the specified location. Specify this parameter or the AffinityGroup parameter only if this cmdlet creates an Azure service for the virtual machine. + Specifies the Microsoft Azure data center location that will host the virtual machine. When specified, New-AzureQuickVM will create a new Microsoft Azure service in the specified location. Only valid for a new cloud service. - String + string - String + string - none + + - + MediaLocation - Specifies the Azure Storage location where this cmdlet creates the virtual machines disks. + Specifies the Microsoft Azure storage location to use for the virtual machines disks. - String + string - String + string - none + + - + Name - Specifies the name of the virtual machine that this cmdlet creates. + Specifies the name of the virtual machine. - String + string - String + string - none + + - + NoExportPrivateKey - Indicates that this configuration does not upload the private key. + Prevents the private key from being uploaded SwitchParameter SwitchParameter - none + + - + NoWinRMEndpoint - Indicates that this cmdlet does not add a WinRM endpoint for the virtual machine. + Prevents the WinRM endpoint from being added SwitchParameter SwitchParameter - none + + - + Password Specifies the password for the administrative account. - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + string - AzureProfile + string - none + + - + ReservedIPName - Specifies the reserved IP name. - - String - - String - - - none - - - ReverseDnsFqdn - - Specifies the fully qualified domain name for reverse DNS look up. + Not Specified - String + string - String + string - none + + - + ServiceName - Specifies the name of a new or existing Azure service to which this cmdlet adds the new virtual machine. - If you specify a new service, this cmdlets creates it. To create a new service, you must specify the Location or AffinityGroup parameter. - If you specify an existing service, do not specify Location or AffinityGroup. + + Specifies the new or existing service name. + + If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. + If the service exists, the -Location or -AffinityGroup parameter is not needed. + - String + string - String + string - none + + - + SSHKeyPairs - Specifies SSH key pairs. + + - LinuxProvisioningConfigurationSet+SSHKeyPairList + LinuxProvisioningConfigurationSet+SSHKeyPairList LinuxProvisioningConfigurationSet+SSHKeyPairList - none + + - + SSHPublicKeys - Specifies SSH public keys. + + - LinuxProvisioningConfigurationSet+SSHPublicKeyList + LinuxProvisioningConfigurationSet+SSHPublicKeyList LinuxProvisioningConfigurationSet+SSHPublicKeyList - none + + - + SubnetNames - Specifies an array of names of subnet for the virtual machine. + Specifies a list of subnet names the virtual machine will use. - String[] + string[] - String[] + string[] - none + + - + VNetName - Specifies the name of a virtual network for the virtual machine. + Specifies the name of a virtual network the virtual machine will use. - String + string - String + string - none + + - + WaitForBoot - Indicates that this cmdlet waits for the virtual machine to reach the state ReadyRole. If the virtual machine reaches one of the following states, the cmdlet fails: FailedStartingVM, ProvisioningFailed, or ProvisioningTimeout. + Waits for VM to reach ReadyRole state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". SwitchParameter SwitchParameter - none + + - + Windows - Indicates that this cmdlet creates a Windows virtual machine. + Include to create a Windows virtual machine. - SwitchParameter + SwitchParameter SwitchParameter - none + + - + WinRMCertificate - Specifies a certificate that this cmdlet associates to a WinRM endpoint. + Certificate that will be associated with WinRM endpoint. - X509Certificate2 + X509Certificate2 X509Certificate2 - none + + - + X509Certificates - Specifies an array of X509 certificates that are deployed to a hosted service. + X509 certificates that will be deployed to hosted service. - X509Certificate2[] + X509Certificate2[] X509Certificate2[] - none + + + - - - - - + + + @@ -14792,376 +13140,392 @@ PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -Image - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Create a virtual machine + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>New-AzureQuickVM -Windows -ServiceName "ContosoService17" -Name "VirutalMachine01" -ImageName "Image07" -Password "password" -AdminUsername "AdminMain" -WaitForBoot - + + New-AzureQuickVM -Windows -ServiceName "MySvc1" -name "MyWinVM1" -ImageName $image -Password $adminPasswd -AdminUsername PsTestAdmin -WaitForBoot + - This command creates a virtual machine that runs the Windows operating system in an existing service. The cmdlet bases the virtual machine on the specified image. The command specifies the WaitForBoot parameter. Therefore, the cmdlet waits for the virtual machine to start. - - + Description + ----------- + This example creates a new Windows virtual machine in an existing service from an image. (Use Get-AzureVMImage to get a list of images.) Optional WaitForBoot flag blocks New-AzureVM till the VM boots. + + + + + + + + - + + - Example 2: Create a virtual machine that by using certificates + + -------------------------- EXAMPLE 2 -------------------------- + - - + C:\PS> - PS C:\>$certs = Get-ChildItem Cert:\CurrentUser\My -PS C:\> New-AzureQuickVM -Windows -ServiceName "MySvc1" -name "MyWinVM1" -ImageName "Image07" -Password "password" -AdminUserName "AdminMain" -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] -WaitForBoot - + + $certs = Get-ChildItem Cert:\CurrentUser\My + New-AzureQuickVM -Windows -ServiceName "MySvc1" -name "MyWinVM1" -ImageName $image -Password $adminPasswd -AdminUserName PsTestAdmin -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] -WaitForBoot + - The first command gets certificates from a store, and stores them in the $certs variable. - The second command creates a virtual machine that runs the Windows operating system in an existing service from an image. By default, WinRM Https listener is enabled on the virtual machine. The command specifies the WaitForBoot parameter. Therefore, the cmdlet waits for the virtual machine to start. The command uploads a WinRM Certificate and X509Certificates to the hosted service. - - + Description + ----------- + + This example creates a new Windows virtual machine in an existing service from an image. WinRM Https listener is enabled by default on the VM. WaitForBoot option enables to wait for VM to boot. WinRMCertificate and X509Certificates are uploaded to hosted service by New-AzureQuickVM. + + + + + + + + + - + + - Example 3: Create a virtual machine that runs the Linux operating system + + -------------------------- EXAMPLE 3 -------------------------- + - - + C:\PS> - PS C:\>New-AzureQuickVM -Linux -ServiceName "ContosoServiceLinux01" -Name "LinuxVirtualMachine01" -ImageName "LinuxImage01" -LinuxUser "RootMain" -Password "password" -Location "Central US" - + + New-AzureQuickVM -Linux -ServiceName "MySvc2" -name "MyLxVM1" -ImageName $image -LinuxUser $user -Password $adminPasswd -Location $dclocation + - This command creates a virtual machine that runs the Linux operating system from an image. This command creates a service to host the new virtual machine. The command specifies a location for the service. - - + Description + ----------- + This example creates a new Linux virtual machine from an image, and creates a new service to host it. + + + + + + + + - + + - Example 4: Create a virtual machine and create a service to host the new virtual machine + + -------------------------- EXAMPLE 4 -------------------------- + - - + C:\PS> - PS C:\>$Locations = Get-AzureLocation -PS C:\> $Images = Get-AzureVMImage -PS C:\> New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "ContosoService03" -Name " VirtualMachine25" -ImageName $images[4].imagename -Password "password" -AdminUsername "AdminMain" -Location $Locations[0].name - + + $dclocations = Get-AzureLocation + $images = Get-AzureVMImage + New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "MySvc3" -name "MyWinVM1" -ImageName $images[4].imagename -Password $adminPasswd -AdminUsername PSTestAdmin -location $dclocations[0].name + - The first command gets locations by using the Get-AzureLocation cmdlet, and then stores them in the $Locations array variable. - The second command gets available images by using the Get-AzureVMImage cmdlet, and then stores them in the $Images array variable. - The final command creates a large virtual machine named VirtualMachine25. The virtual machine runs the Windows operating system. It is based on one of the images in $Images. The command creates a service named ContosoService03 for the new virtual machine. The service is in a location in $Locations. - - + Description + ----------- + + This example gets a list of data center locations, and a list of virtual machine images, and then creates a new large Windows virtual machine and a new service. + + + + + + + + + - + + - Example 5: Create a virtual machine that has a reserved IP name + + -------------------------- EXAMPLE 5 -------------------------- + - - + C:\PS> - PS C:\>$Locations = Get-AzureLocation -PS C:\> $Images = Get-AzureVMImage -PS C:\> New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "ContosoService04" -Name "VirtualMachine27" -ImageName $Images[4].imagename -Password "password" -AdminUsername "AdminMain" -Location $Locations[0].name -ReservedIPName $ipName - + + $dclocations = Get-AzureLocation + $images = Get-AzureVMImage + New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "MySvc3" -name "MyWinVM1" -ImageName $images[4].imagename -Password $adminPasswd -AdminUsername PSTestAdmin -location $dclocations[0].name -ReservedIPName $ipName + - The first command gets locations, and then stores them in the $Locations array variable. - The second command gets available images, and then stores them in the $Images array variable. - The final command creates a virtual machine named VirtualMachine27 based on one of the images in $Images. The command creates a service in a location in $Locations. The virtual machine has a reserved IP name, previously stored in the $ipName variable. - - + Description + ----------- + + This example creates a new Windows virtual machine with a Reserved IP + + + + + + + + + - + + + - Get-AzureLocation - - - - Get-AzureVMImage - - - - New-AzureDns + + - + + - New-AzureReservedIP + + New-AzureReservedIP + - Creates a reserved IP address. + Create a Reserved IP. - + + New AzureReservedIP - + + - The New-AzureReservedIP cmdlet creates a reserved IP address. + Create a reserved IP. + New-AzureReservedIP - - ReservedIPName - - Specifies the reserved IP address name. - - String - - - Label - - Specifies a label for the reserved IP address. - - String - - - Location - - Specifies a location at which to create the reserved IP address. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - New-AzureReservedIP - + ReservedIPName - Specifies the reserved IP address name. + Reserved IP Name - String + string - + Label - Specifies a label for the reserved IP address. + Reserved IP Label - String + string - + Location - Specifies a location at which to create the reserved IP address. + Location where the Reserved IP should be created - String + string - + ServiceName - Specifies a service name. + Service name. - String + string - + VirtualIPName - Specifies that this cmdlet uses the VirtualIPName parameter to reserve an existing virtual IP address (VIP) in your deployment. If this parameter is not specified, this cmdlet reserves a new VIP. + Use the VirtualIPName parameter to reserve an existing VIP in your deployment. If not specified, you will reserve a new VIP. - String + string - + Slot - Specifies the deployment slot. The acceptable values for this parameter are: Staging, Production. + Deployment slot [Staging | Production]. - - Staging - Production - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + string New-AzureReservedIP - + ReservedIPName - Specifies the reserved IP address name. + Reserved IP Name - String + string - + Label - Specifies a label for the reserved IP address. + Reserved IP Label - String + string - + Location - Specifies a location at which to create the reserved IP address. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Location where the Reserved IP should be created - AzureProfile + string + - + Label - Specifies a label for the reserved IP address. + Reserved IP Label - String + string - String + string - none + + - + Location - Specifies a location at which to create the reserved IP address. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Location where the Reserved IP should be created - AzureProfile + string - AzureProfile + string - none + + - + ReservedIPName - Specifies the reserved IP address name. + Reserved IP Name - String + string - String + string - none + + - + ServiceName - Specifies a service name. + Service name. - String + string - String + string - none + + - + Slot - Specifies the deployment slot. The acceptable values for this parameter are: Staging, Production. + Deployment slot [Staging | Production]. - String + string - String + string - none + + - + VirtualIPName - Specifies that this cmdlet uses the VirtualIPName parameter to reserve an existing virtual IP address (VIP) in your deployment. If this parameter is not specified, this cmdlet reserves a new VIP. + Use the VirtualIPName parameter to reserve an existing VIP in your deployment. If not specified, you will reserve a new VIP. - String + string - String + string - none + + + - - - - - + + + @@ -15171,724 +13535,536 @@ PS C:\> New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "Contoso - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Create a new reserved IP + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>New-AzureReservedIP -ReservedIPName $Name -Label $Label -Location $Location - + +New-AzureReservedIP -ReservedIPName $name -Label $label -Location $location - This command creates a new reserved IP address in the subscription, which can be used for creating cloud services that include Web, Worker, and Virtual Machines. - - + Description + ----------- + Create a new Reserved IP in the Subscription which can be used for Creating Cloud Services (Web/Worker/Virtual Machines) + + + + + + + + + - + + - Example 2: Create a reserved IP based on an existing IP + + -------------------------- EXAMPLE 2 -------------------------- + - - + C:\PS> - PS C:\>New-AzureReservedIP -ReservedIPName resip14 -Location "West Europe" -ServiceName piptestwesteurope - + +New-AzureReservedIP -ReservedIPName resip14 -Location "West Europe" -ServiceName piptestwesteurope - This command creates an existing VIP (Virtual IP) on the specified service. - - + Description + ----------- + Existing VIP (Virtual IP) on the given service can be reserved. + + + + + + + + - + + + - Get-AzureReservedIP - - - - Remove-AzureReservedIP + + - + + - New-AzureServiceADDomainExtensionConfig + + Set-AzureReservedIPAssociation + - Generates the configuration for the AD domain extension for cloud services. + This cmdlet associates a Reserved IP Address to an existing VM's or a cloud service's VIP (Virtual IP). ReservedIPName is the name of the reserved IP in the subscription. It has to be a free IP, (i.e. not in use). + - - - New - AzureServiceADDomainExtensionConfig - + + + + Set + AzureReservedIPAssociation + + - The New-AzureServiceADDomainExtensionConfig cmdlet generates the configuration for the Active Directory (AD) domain extension for cloud services. + The cmdlet provides means to associate a Reserved IP Address to a running VM or cloud service. The ReservedIP Address should not be in use at the time of invocation of this cmdlet. The Reserved IP and the VM/CloudService has to be in the same region. +The operation will take about 30 seconds to complete, after which the VM/Service will be accessible via the Reserved IP. + - New-AzureServiceADDomainExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - Version - - Specifies the extension version. - - String - - - CertificateThumbprint - - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - - String - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - DomainName - - Specifies the AD domain name. - - String - - - Restart - - Specifies whether to restart the computer if the join operation succeeds. - - - - Credential - - Specifies the credentials to use to join the AD domain. Credentials include a user name and password. - - PSCredential - - - UnjoinDomainCredential - - Specifies the credentials (user name and password) to unjoin the AD domain. - - PSCredential - - - Options - - Specifies the unsigned integer join option. - - - JoinDomain - AccountCreate - Win9XUpgrade - UnsecuredJoin - PasswordPass - DeferSPNSet - JoinWithNewName - JoinReadOnly - InstallInvoke - - - - OUPath - - Specifies the organization unit (OU) path for AD domain join operation. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - New-AzureServiceADDomainExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint - - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - - String - - - ThumbprintAlgorithm + Set-AzureReservedIPAssociation + + ReservedIPName - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + The Name of the Reserved IP that is being associated with the VM/Service. - String + string - - WorkgroupName + + ServiceName - Specifies the workgroup name. + + Name of the service which has the deployment with which we want to associate the Reserved IP + - String + string - - Restart + + VirtualIPName - Specifies whether to restart the computer if the join operation succeeds. + Use the VirtualIPName paramter to associate a reserved IP with an existing VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. + string - - Credential + + Slot - Specifies the credentials to use to join the AD domain. Credentials include a user name and password. + Deployment slot [Staging | Production]. - PSCredential + string - - Version + + PipelineVariable - Specifies the extension version. + Not Specified - String + string - + Profile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + AzureProfile + + + + + PipelineVariable + + Not Specified + + string + + string + + + + + + + Profile + + + + + AzureProfile + + AzureProfile + + + + + + + ReservedIPName + + The Name of the Reserved IP that is being associated with the VM/Service. + + string + + string + + + + + + + ServiceName + + + + + string + + string + + + + + + + Slot + + Deployment slot [Staging | Production]. + + string + + string + + + Production + + + VirtualIPName + + Use the VirtualIPName paramter to associate a reserved IP with an existing VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + +Set-AzureReservedIPAssociation -ReservedIPName resip14 -ServiceName piptestwesteurope + + Description + ----------- + 'resip14' will be assigned to the service 'piptestwesteurope'. 'resip14' is a reserved IP in the West Europe region. + + + + + + + + + + + + + + + + + + + + + https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx + + + + + + + + + Remove-AzureReservedIPAssociation + + + This cmdlet removes the association of the Reserved IP Address from the VM/Cloud Service. + + + + + + Remove + AzureReservedIPAssociation + + + + + This cmdlet dis-associates a reserved IP Address from a VM or Cloud Service. When the operation completes, the Reserved Ip Address will become free and the VM/VIP will get a dynamic public Ip Address from the Azure Inventory. + + + - New-AzureServiceADDomainExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - Version - - Specifies the extension version. - - String - - - CertificateThumbprint - - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - - String - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - DomainName + Remove-AzureReservedIPAssociation + + ReservedIPName - Specifies the AD domain name. + + - String + string - - Restart + + ServiceName - Specifies whether to restart the computer if the join operation succeeds. + + + string - - Credential + + VirtualIPName - Specifies the credentials to use to join the AD domain. Credentials include a user name and password. + Use VirtualIPName parameter to remove the association from a given virtual IP. - PSCredential + string - - UnjoinDomainCredential + + Slot - Specifies the credentials (user name and password) to unjoin the AD domain. + + - PSCredential + string - - JoinOption + + Force - Specifies the join option enumeration. + Use this flag to bypass warning messages when removing the Reserved IP association. - UInt32 - - OUPath + + PipelineVariable - Specifies the organization unit (OU) path for AD domain join operation. + Not Specified - String + string - + Profile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile - - - - New-AzureServiceADDomainExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - Version - - Specifies the extension version. - - String - - - X509Certificate - - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - DomainName - - Specifies the AD domain name. - - String - - - Restart - - Specifies whether to restart the computer if the join operation succeeds. - - - - Credential - - Specifies the credentials to use to join the AD domain. Credentials include a user name and password. - - PSCredential - - - UnjoinDomainCredential - - Specifies the credentials (user name and password) to unjoin the AD domain. - - PSCredential - - - Options - - Specifies the unsigned integer join option. - - - JoinDomain - AccountCreate - Win9XUpgrade - UnsecuredJoin - PasswordPass - DeferSPNSet - JoinWithNewName - JoinReadOnly - InstallInvoke - - - - OUPath - - Specifies the organization unit (OU) path for AD domain join operation. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - New-AzureServiceADDomainExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - Version - - Specifies the extension version. - - String - - - X509Certificate - - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - DomainName - - Specifies the AD domain name. - - String - - - Restart - - Specifies whether to restart the computer if the join operation succeeds. - - - - Credential - - Specifies the credentials to use to join the AD domain. Credentials include a user name and password. - - PSCredential - - - UnjoinDomainCredential - - Specifies the credentials (user name and password) to unjoin the AD domain. - - PSCredential - - - JoinOption - - Specifies the join option enumeration. - - UInt32 - - - OUPath - - Specifies the organization unit (OU) path for AD domain join operation. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - New-AzureServiceADDomainExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - WorkgroupName - - Specifies the workgroup name. - - String - - - Restart - - Specifies whether to restart the computer if the join operation succeeds. - - - - Credential - - Specifies the credentials to use to join the AD domain. Credentials include a user name and password. - - PSCredential - - - Version - - Specifies the extension version. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + AzureProfile + - - CertificateThumbprint - - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - - String - - String - - - none - - - Credential - - Specifies the credentials to use to join the AD domain. Credentials include a user name and password. - - PSCredential - - PSCredential - - - none - - - DomainName - - Specifies the AD domain name. - - String - - String - - - none - - - JoinOption - - Specifies the join option enumeration. - - UInt32 - - UInt32 - - - none - - - Options - - Specifies the unsigned integer join option. - - JoinOptions - - JoinOptions - - - none - - - OUPath - - Specifies the organization unit (OU) path for AD domain join operation. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - Restart + + Force - Specifies whether to restart the computer if the join operation succeeds. + Use this flag to bypass warning messages when removing the Reserved IP association. SwitchParameter SwitchParameter - none + + - - Role + + PipelineVariable - Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. + Not Specified - String[] + string - String[] + string - none + + - - ThumbprintAlgorithm + + Profile - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + - String + AzureProfile - String + AzureProfile - none + + - - UnjoinDomainCredential + + ReservedIPName - Specifies the credentials (user name and password) to unjoin the AD domain. + + - PSCredential + string - PSCredential + string - none + + - - Version + + ServiceName - Specifies the extension version. + + - String + string - String + string - none + + - - WorkgroupName + + Slot - Specifies the workgroup name. + + - String + string - String + string - none + Production - - X509Certificate + + VirtualIPName - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Use VirtualIPName parameter to remove the association from a given virtual IP. - X509Certificate2 + string - X509Certificate2 + string - none + + + - - - - - + + + @@ -15896,263 +14072,231 @@ PS C:\> New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "Contoso - - - - - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Specify an AD domain configuration + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>$ExtensionCfg = New-AzureServiceADDomainExtensionConfig -Role WorkerRole1 -DomainName $Domain -Credential $Cred -JoinOption 35; - -PS C:\> New-AzureDeployment -ServiceName $CloudSvc -Slot "Production" -Package $Pkg -Configuration $Config -ExtensionConfiguration $ExtensionCfg; - + +Remove-AzureReservedIPAssociation -ReservedIPName resip14 -ServiceName piptestwesteurope - This command generates a configuration for the AD domain extension. - - - - - - - - - - + Description + ----------- + resip14 will be disassociated from service piptestwesteurope. piptestwesteurope will be assigned a new dynamic VIP. + + + + + + + + + + + + + + + + + + - Get-AzureServiceADDomainExtension - - - - Set-AzureServiceADDomainExtension + https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx - + + - New-AzureServiceDiagnosticsExtensionConfig + + Add-AzureVirtualIP + - Generates a configuration for a diagnostics extension for specified role(s) or all roles. + Add a virtual IP to your Cloud Service. +Add-AzureVirtualIP [-ServiceName] <string> [-VirtualIPName] <string> [-Profile <AzureProfile>] [<CommonParameters>] + - + + - New - AzureServiceDiagnosticsExtensionConfig - + Add + AzureVirtualIP + + - The New-AzureServiceDiagnosticsExtensionConfig cmdlet generates a configuration for a diagnostics extension for specified roles or all roles. + The Add-AzureVirtualIP cmdlet adds a new virtual IP (VIP) to your service. the new vitual IP has a name but is not allocated an IP address. +The IP address is only allocated when you associate an endpoint to the VIP. See Add-AzureEndpoint for more details +Your subscription will only be charged for extra VIPs once they are associated with an endpoint. + - New-AzureServiceDiagnosticsExtensionConfig - - Role - - Specifies an optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint - - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - - String - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - StorageContext - - Specifies an Azure storage context. - - AzureStorageContext - - - DiagnosticsConfigurationPath - - Specifies the diagnostics configuration path. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - New-AzureServiceDiagnosticsExtensionConfig - - Role - - Specifies an optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - StorageContext - - Specifies an Azure storage context. - - AzureStorageContext - - - DiagnosticsConfigurationPath - - Specifies the diagnostics configuration path. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - + Add-AzureVirtualIP + - - CertificateThumbprint - - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - - String - - String - - - none - - - DiagnosticsConfigurationPath + + InformationAction - Specifies the diagnostics configuration path. + Not Specified + The following values are permitted for this object type. - String + ActionPreference - String + ActionPreference - none + + + + + SilentlyContinue + + + + + + + Stop + + + + + + + Continue + + + + + + + Inquire + + + + + + - - Profile + + InformationVariable - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + string - AzureProfile + string - none + + - - Role + + PipelineVariable - Specifies an optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. + Not Specified - String[] + string - String[] + string - none + + - - StorageContext + + Profile - Specifies an Azure storage context. + + - AzureStorageContext + AzureProfile - AzureStorageContext + AzureProfile - none + + - - ThumbprintAlgorithm + + ServiceName - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Enter the name of a cloud service. This parameter is required. - String + string - String + string - none + + - - X509Certificate + + VirtualIPName - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Enter the name of your virtual IP. This parameter is required. - X509Certificate2 + string - X509Certificate2 + string - none + + + - - - - - + + + @@ -16160,358 +14304,307 @@ PS C:\> New-AzureDeployment -ServiceName $CloudSvc -Slot "Production" -Packag - - - - - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Create the Azure Diagnostics extension for all roles in the cloud service + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>$WadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML - + +Add-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" + +<Output>OperationDescription OperationId OperationStatus +-------------------- ----------- --------------- +Add-AzureVirtualIP 4bd7b638-d2e7-216f-ba38-5221233d70ce Succeeded - This command creates the Azure Diagnostics extension for all of the roles in the cloud service. - - - - - - - - - - - Example 2: Create the Azure Diagnostics extension for a role - + Description + ----------- + Add a virtual IP to your service + + + + + + - - PS C:\>$WadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML -Role "WebRole1" - - - This command creates the Azure Diagnostics extension for the role WebRole01 in the cloud service. - - - + + + - Get-AzureServiceDiagnosticsExtension - - - - Set-AzureServiceDiagnosticsExtension + + - + + - New-AzureServiceExtensionConfig + + Remove-AzureVirtualIP + - Creates a cloud service extension configuration for a deployment. + Deletes a virtual IP from your Cloud Service. +Remove-AzureVirtualIP [-ServiceName] <string> [-VirtualIPName] <string> [-Force] [-Profile <AzureProfile>] [<CommonParameters>] + - + + - New - AzureServiceExtensionConfig - + Remove + AzureVirtualIP + + - The New-AzureServiceExtensionConfig cmdlet creates a cloud service extension configuration for a deployment. + The Remove-AzureVirtualIP cmdlet deletes a new virtual IP (VIP) to your Cloud Service. The operation succeeds only if the virtual IP has no endpoints associated to it. + - New-AzureServiceExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint - - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - - String - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - ExtensionName - - Specifies the name of the extension. - - String - - - ProviderNamespace - - Specifies the Extension's Provider Namespace. - - String - - - PublicConfiguration - - Specifies the public configuration text. - - String - - - PrivateConfiguration - - Specifies the private configuration text. - - String - - - Version - - Specifies the extension version. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - New-AzureServiceExtensionConfig - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm + Remove-AzureVirtualIP + + ServiceName - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + - String + string - - ExtensionName + + VirtualIPName - Specifies the name of the extension. + + - String + string - - ProviderNamespace + + Force - Specifies the Extension's Provider Namespace. + + - String - - PublicConfiguration + + InformationAction - Specifies the public configuration text. + Not Specified - String + + SilentlyContinue + Stop + Continue + Inquire + - - PrivateConfiguration + + InformationVariable - Specifies the private configuration text. + Not Specified - String + string - - Version + + PipelineVariable - Specifies the extension version. + Not Specified - String + string - + Profile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + AzureProfile + - - CertificateThumbprint + + Force - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + + - String + SwitchParameter - String - - - none - - - ExtensionName - - Specifies the name of the extension. - - String - - String - - - none - - - PrivateConfiguration - - Specifies the private configuration text. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile + SwitchParameter - none + + - - ProviderNamespace + + InformationAction - Specifies the Extension's Provider Namespace. + Not Specified + The following values are permitted for this object type. - String + ActionPreference - String + ActionPreference - none + + + + + SilentlyContinue + + + + + + + Stop + + + + + + + Continue + + + + + + + Inquire + + + + + + - - PublicConfiguration + + InformationVariable - Specifies the public configuration text. + Not Specified - String + string - String + string - none + + - - Role + + PipelineVariable - Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Not Specified - String[] + string - String[] + string - none + + - - ThumbprintAlgorithm + + Profile - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + - String + AzureProfile - String + AzureProfile - none + + - - Version + + ServiceName - Specifies the extension version. + + - String + string - String + string - none + + - - X509Certificate + + VirtualIPName - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + - X509Certificate2 + string - X509Certificate2 + string - none + + + - - - - - + + + @@ -16519,291 +14612,252 @@ PS C:\> New-AzureDeployment -ServiceName $CloudSvc -Slot "Production" -Packag - - - - - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Create an extension configuration + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>New-AzureServiceExtensionConfig -ExtensionName 'RDP' -Version '1.0' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; - + +Remove-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" - This command specifies an extension configuration. - - - - - - - - - - - Example 2: Create an extension configuration for a role - + Description + ----------- + Remove a virtual IP from your Cloud Service + + + + + + - - PS C:\>New-AzureServiceExtensionConfig -Role WebRole1 -ExtensionName 'RDP' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; - - - This command specifies an extension configuration for the role WebRole1. - - - + + + - Get-AzureServiceExtension - - - - Set-AzureServiceExtension + + - + + - New-AzureServiceRemoteDesktopExtensionConfig + New-AzureService - Generates a remote desktop extension configuration for a deployment. + Creates a new Microsoft Azure service. New - AzureServiceRemoteDesktopExtensionConfig + AzureService - The New-AzureServiceRemoteDesktopExtensionConfig cmdlet generates a configuration for a remote desktop extension for a deployment. + + The New-AzureService cmdlet creates a new Microsoft Azure service in the current subscription. - New-AzureServiceRemoteDesktopExtensionConfig - - Role - - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint + New-AzureService + + ServiceName - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + Specifies the name of the new service. The name must be unique to the subscription. String - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - Credential + + AffinityGroup - Specifies the credentials to enable for remote desktop. Credentials include a user name and password. + Specifies the affinity group associated with the subscription. An affinity group is required if the Location isn't specified. - PSCredential + String - - Expiration + + Label - Specifies a DateTime object that allows the user to specify when the user account expires. + Specifies a label for the service. The label may be up to 100 characters in length. - DateTime + String - - Version + + Description - Specifies the extension version. + Specifies a description for the service. The description may be up to 1024 characters in length. - String + String - - Profile + + ReverseDnsFqdn - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - New-AzureServiceRemoteDesktopExtensionConfig - - Role - - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm + New-AzureService + + ServiceName - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of the new service. The name must be unique to the subscription. - String + String - - Credential + + Location - Specifies the credentials to enable for remote desktop. Credentials include a user name and password. + Specifies the location for the service. A location is required if there isn't a specified Affinity Group. - PSCredential + String - - Expiration + + Label - Specifies a DateTime object that allows the user to specify when the user account expires. + Specifies a label for the service. The label may be up to 100 characters in length. - DateTime + String - - Version + + Description - Specifies the extension version. + Specifies a description for the service. The description may be up to 1024 characters in length. - String + String - - Profile + + ReverseDnsFqdn - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - - CertificateThumbprint + + ServiceName - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + Specifies the name of the new service. The name must be unique to the subscription. String String - none - - - Credential - - Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - - PSCredential - - PSCredential - - - none - - - Expiration - - Specifies a DateTime object that allows the user to specify when the user account expires. - - DateTime - - DateTime - - - none + + - - Profile + + AffinityGroup - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the affinity group associated with the subscription. An affinity group is required if the Location isn't specified. - AzureProfile + String - AzureProfile + String - none + + - - Role + + Label - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies a label for the service. The label may be up to 100 characters in length. - String[] + String - String[] + String - none + Service name - - ThumbprintAlgorithm + + Description - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a description for the service. The description may be up to 1024 characters in length. - String + String String - none + + - - Version + + ReverseDnsFqdn - Specifies the extension version. + + - String + String String - none + + - - X509Certificate + + Location - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies the location for the service. A location is required if there isn't a specified Affinity Group. - X509Certificate2 + String - X509Certificate2 + String - none + + @@ -16811,15 +14865,13 @@ PS C:\> New-AzureDeployment -ServiceName $CloudSvc -Slot "Production" -Packag - - + - + + - - @@ -16828,950 +14880,672 @@ PS C:\> New-AzureDeployment -ServiceName $CloudSvc -Slot "Production" -Packag - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Generate a remote desktop extension configuration + -------------------------- Example 1 -------------------------- - PS C:\>$rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred - + PS C:\> C:\PS>New-AzureService -ServiceName "MySvc1" -Label "MyTestService" -Location "South Central US" - This command generates a remote desktop extension configuration for the specified credentials. - - + This command creates a new service named "MySvc1" in the South Central US location. - + + - Example 2: Generate a remote desktop extension configuration for a specified role + -------------------------- Example 2 -------------------------- - PS C:\>$rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred -Role "WebRole01" - + PS C:\> C:\PS>New-AzureService -ServiceName "MySvc1" -AffinityGroup NorthRegion - This command generates a remote desktop extension configuration for the specified credentials and the WebRole01 role. - - + This command creates a new service named "MySvc1" using the NorthRegion affinity group. - + + - Set-AzureServiceRemoteDesktopExtension - + Get-AzureService + + + + + Remove-AzureService + + + + + Set-AzureService + + - + + - New-AzureService + New-AzureServiceADDomainExtensionConfig - Creates an Azure service. + This cmdlet generates the configuration for AD Domain extension for cloud services. New - AzureService + AzureServiceADDomainExtensionConfig - The New-AzureService cmdlet creates a new Azure service in the current subscription. + + This cmdlet generates the configuration for AD Domain extension for cloud services. - New-AzureService - - ServiceName + New-AzureServiceADDomainExtensionConfig + + Role - Specifies the name of the new service. The name must be unique to the subscription. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + X509Certificate + + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + + ThumbprintAlgorithm + + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. String - - AffinityGroup + + DomainName - Specifies the affinity group associated with the subscription. If you do not specify the Location parameter, an affinity group is required. + The AD domain name. String - - Label + + Restart - Specifies a label for the service. The label may be up to 100 characters in length. + Whether to restart the computer if the join operation succeeded. - String + SwitchParameter - - Description + + Credential - Specifies a description for the service. The description may be up to 1024 characters in length. + The credentials (user name/password) to join the AD domain. - String + PSCredential - - ReverseDnsFqdn + + UnjoinDomainCredential - Specifies the fully qualified domain name for reverse DNS. + The credentials (user name/password) to unjoin the AD domain. - String + PSCredential - - Profile + + Options - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The unsigned integer join option. - AzureProfile + JoinOptions - - - New-AzureService - - ServiceName + + OUPath - Specifies the name of the new service. The name must be unique to the subscription. + The OU path for AD domain join operation. String - - Location + + Version - Specifies the location for the service. A location is required if there isn't a specified Affinity Group. + + String - - Label + + + New-AzureServiceADDomainExtensionConfig + + Role - Specifies a label for the service. The label may be up to 100 characters in length. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - String + String[] - - Description + + X509Certificate - Specifies a description for the service. The description may be up to 1024 characters in length. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - - ReverseDnsFqdn + + ThumbprintAlgorithm - Specifies the fully qualified domain name for reverse DNS. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - Profile + + DomainName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The AD domain name. - AzureProfile + String - - - - - AffinityGroup - - Specifies the affinity group associated with the subscription. If you do not specify the Location parameter, an affinity group is required. - - String - - String - - - none - - - Description - - Specifies a description for the service. The description may be up to 1024 characters in length. - - String - - String - - - none - - - Label - - Specifies a label for the service. The label may be up to 100 characters in length. - - String - - String - - - none - - - Location - - Specifies the location for the service. A location is required if there isn't a specified Affinity Group. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ReverseDnsFqdn - - Specifies the fully qualified domain name for reverse DNS. - - String - - String - - - none - - - ServiceName - - Specifies the name of the new service. The name must be unique to the subscription. - - String - - String - - - none - - - - - - - - - + + Restart - + Whether to restart the computer if the join operation succeeded. - - - - - - - - - - - - - - + SwitchParameter + + + Credential - + The credentials (user name/password) to join the AD domain. - - - - - - - - - - - - Example 1: Create a service - - - - - PS C:\>New-AzureService -ServiceName "MySvc01" -Label "MyTestService" -Location "South Central US" - - - This command creates a new service named MySvc01 in the South Central US location. - - - - - - - - - - - Example 2: Create a service in an affinity group - - - - - PS C:\>New-AzureService -ServiceName "MySvc01" -AffinityGroup NorthRegion - - - This command creates a new service named MySvc01 using the NorthRegion affinity group. - - - - - - - - - - - - - Get-AzureService - - - - Set-AzureService - - - - - - - New-AzureSSHKey - - Creates a SSH Key object to insert an existing certificate into a new Linux-based Azure virtual machines. - - - - - New - AzureSSHKey - - - - The New-AzureSSHKey cmdlet creates an SSH Key object for a certificate that has already been added to Azure. This SSH Key object can then be used by New-AzureProvisioningConfig when creating the configuration object for a new virtual machine using New-AzureVM, or when creating a new virtual machine with New-AzureQuickVM. When included as part of a virtual machine creation script, this adds the specified SSH Public Key or Key Pair to the new virtual machine. - - - - New-AzureSSHKey - - KeyPair + PSCredential + + + UnjoinDomainCredential + + The credentials (user name/password) to unjoin the AD domain. + + PSCredential + + + JoinOption - Specifies that this cmdlet creates an object for inserting an SSH Key Pair into the new virtual machine configuration. + The join option enumeration. + UInt32 - - Fingerprint + + OUPath - Specifies the fingerprint of the certificate. + The OU path for AD domain join operation. String - - Path + + Version - Specifies the path to store the SSH Public Key or Key Pair. + + String - New-AzureSSHKey - - PublicKey + New-AzureServiceADDomainExtensionConfig + + Role - Specifies that this cmdlet creates an object for inserting an SSH Public Key into the new virtual machine configuration. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + String[] - - Fingerprint + + X509Certificate - Specifies the fingerprint of the certificate. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + + ThumbprintAlgorithm + + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. String - - Path + + WorkgroupName - Specifies the path to store the SSH Public Key or Key Pair. + The workgroup name. String + + Restart + + Whether to restart the computer if the join operation succeeded. + + SwitchParameter + + + Credential + + The credentials (user name/password) to join the AD domain. + + PSCredential + - - - - Fingerprint - - Specifies the fingerprint of the certificate. - - String - - String - - - none - - - KeyPair - - Specifies that this cmdlet creates an object for inserting an SSH Key Pair into the new virtual machine configuration. - - SwitchParameter - - SwitchParameter - - - none - - - Path - - Specifies the path to store the SSH Public Key or Key Pair. - - String - - String - - - none - - - PublicKey - - Specifies that this cmdlet creates an object for inserting an SSH Public Key into the new virtual machine configuration. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - + + New-AzureServiceADDomainExtensionConfig + + Role - + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - - - - - - - - - - - - - + String[] + + + CertificateThumbprint - + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - - - - - - - - - - - - Example 1: Create a certificate setting object - - - - - PS C:\>$myLxCert = New-AzureSSHKey -Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" -Path "/home/username/.ssh/authorized_keys" - - - This command creates a certificate setting object for an existing certificate and then stores the object in a variable for later use. - - - - - - - - - - - Example 2: Add a certificate to a service - - - - - PS C:\>Add-AzureCertificate -ServiceName "MySvc" -CertToDeploy "C:\temp\MyLxCert.cer" -$myLxCert = New-AzureSSHKey ?Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" -Path "/home/username/.ssh/authorized_keys" -New-AzureVMConfig -Name "MyVM2" -InstanceSize Small -ImageName $LxImage ` - | Add-AzureProvisioningConfig -Linux -LinuxUser $lxUser -SSHPublicKeys $myLxCert -Password 'pass@word1' ` - | New-AzureVM -ServiceName "MySvc" - - - This command adds a certificate to an Azure service, and then creates a new Linux virtual machine that uses the certificate. - - - - - - - - - - - - - Add-AzureProvisioningConfig - - - - New-AzureVMConfig - - - - New-AzureVM - - - - New-AzureQuickVM - - - - - - - New-AzureStorageAccount - - Creates a new storage account in an Azure subscription. - - - - - New - AzureStorageAccount - - - - The New-AzureStorageAccount cmdlet creates an account that provides access to Azure storage services. A storage account is a globally unique resource within the storage system. The account is the parent namespace for the Blob, Queue, and Table services. - - + String + + + ThumbprintAlgorithm + + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + WorkgroupName + + The workgroup name. + + String + + + Restart + + Whether to restart the computer if the join operation succeeded. + + SwitchParameter + + + Credential + + The credentials (user name/password) to join the AD domain. + + PSCredential + + - New-AzureStorageAccount - - StorageAccountName + New-AzureServiceADDomainExtensionConfig + + Role + + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + CertificateThumbprint - Specifies a name for the storage account. The storage account name must be unique to Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. String - - Description + + ThumbprintAlgorithm - Specifies a description for the storage account. The description may be up to 1024 characters in length. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - Label + + DomainName - Specifies a label for the storage account. The label may be up to 100 characters in length. + The AD domain name. - String + String - - Profile + + Restart - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Whether to restart the computer if the join operation succeeded. - AzureProfile + SwitchParameter - - Type + + Credential - Specifies the type of the storage account. Valid values are: - --- Standard_LRS --- Standard_ZRS --- Standard_GRS --- Standard_RAGRS --- Premium_LRS - -If this parameter is not specified, the default value is Standard_GRS. - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + The credentials (user name/password) to join the AD domain. - String + PSCredential - - AffinityGroup + + UnjoinDomainCredential + + The credentials (user name/password) to unjoin the AD domain. + + PSCredential + + + JoinOption + + The join option enumeration. + + UInt32 + + + OUPath + + The OU path for AD domain join operation. + + String + + + Version - Specifies the name of an existing affinity group in the current subscription. You can specify either the Location or AffinityGroup parameter, but not both. + + String - New-AzureStorageAccount - - StorageAccountName + New-AzureServiceADDomainExtensionConfig + + Role + + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + CertificateThumbprint - Specifies a name for the storage account. The storage account name must be unique to Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. String - - Description + + ThumbprintAlgorithm - Specifies a description for the storage account. The description may be up to 1024 characters in length. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - Label + + DomainName - Specifies a label for the storage account. The label may be up to 100 characters in length. + The AD domain name. - String + String - - Profile + + Restart - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Whether to restart the computer if the join operation succeeded. - AzureProfile + SwitchParameter - - Type + + Credential - Specifies the type of the storage account. Valid values are: - --- Standard_LRS --- Standard_ZRS --- Standard_GRS --- Standard_RAGRS --- Premium_LRS - -If this parameter is not specified, the default value is Standard_GRS. - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + The credentials (user name/password) to join the AD domain. - String + PSCredential - - Location + + UnjoinDomainCredential - Specifies the Azure data center location where the storage account is created. You can include either the Location or AffinityGroup parameter, but not both. + The credentials (user name/password) to unjoin the AD domain. + + PSCredential + + + Options + + The unsigned integer join option. + + JoinOptions + + + OUPath + + The OU path for AD domain join operation. + + String + + + Version + + + String - - AffinityGroup + + Role - Specifies the name of an existing affinity group in the current subscription. You can specify either the Location or AffinityGroup parameter, but not both. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - String + String[] - String + String[] - none + + - - Description + + X509Certificate - Specifies a description for the storage account. The description may be up to 1024 characters in length. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - String + X509Certificate2 - none + + - - Label + + ThumbprintAlgorithm - Specifies a label for the storage account. The label may be up to 100 characters in length. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - none + + - - Location + + DomainName - Specifies the Azure data center location where the storage account is created. You can include either the Location or AffinityGroup parameter, but not both. + The AD domain name. String String - none + + - - Profile + + Restart - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Whether to restart the computer if the join operation succeeded. - AzureProfile + SwitchParameter - AzureProfile + SwitchParameter - none + + - - StorageAccountName + + Credential - Specifies a name for the storage account. The storage account name must be unique to Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. + The credentials (user name/password) to join the AD domain. - String + PSCredential - String + PSCredential - none + + - - Type + + UnjoinDomainCredential - Specifies the type of the storage account. Valid values are: - --- Standard_LRS --- Standard_ZRS --- Standard_GRS --- Standard_RAGRS --- Premium_LRS - -If this parameter is not specified, the default value is Standard_GRS. - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + The credentials (user name/password) to unjoin the AD domain. - String + PSCredential - String + PSCredential - none + + - - - + + Options + + The unsigned integer join option. + + JoinOptions - - - - - - - + JoinOptions + + + + + + OUPath - - + The OU path for AD domain join operation. - - - - + String - - - - - - - + String + + + + + + Version - - - - - - - Example 1: Create a storage account for a specified affinity group - - - - - PS C:\>New-AzureStorageAccount -StorageAccountName "azure01" -Label "AzureOne" -AffinityGroup "prodapps" - - - This command creates a storage account for a specified affinity group. - - - - - - - - - - - Example 1: Create a storage account in a specified location - - - - - PS C:\>New-AzureStorageAccount -StorageAccountName "azure02" -Label "AzureTwo" -Location "North Central US" - - - This command creates a storage account in a specified location. - - - - - - - - - - - - - Get-AzureStorageAccount - - - - Set-AzureStorageAccount - - - - - - - New-AzureStorageKey - - Regenerates storage keys for an Azure storage account. - - - - - New - AzureStorageKey - - - - The New-AzureStorageKey cmdlet regenerates the primary or secondary key for an Azure Storage account. It returns an object that contains the storage account name, primary key, and secondary key as properties. - - - - New-AzureStorageKey - - KeyType - - Specifies which key to regenerate. Valid values are: Primary and Secondary. - - - Primary - Secondary - - - - StorageAccountName - - Specifies the name of the Azure Storage account for which to regenerate a key. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - KeyType - - Specifies which key to regenerate. Valid values are: Primary and Secondary. - String String - none + + - - Profile + + JoinOption - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The join option enumeration. - AzureProfile + UInt32 - AzureProfile + UInt32 - none + + - - StorageAccountName + + WorkgroupName - Specifies the name of the Azure Storage account for which to regenerate a key. + The workgroup name. String String - none + + + + + CertificateThumbprint + + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + + String + + String + + + + + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + string + + string + + + + @@ -17779,432 +15553,881 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - StorageServiceKeys - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Regenerate a primary storage key - - - - - PS C:\>New-AzureStorageKey -KeyType "Primary" -StorageAccountName "ContosoStore01" - - - This command regenerates the primary storage key for the ContosoStore01 storage account. - - - - - - - - - - - Example 2: Regenerate a secondary storage key and save it in a variable + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$ContosoStoreKey = New-AzureStorageKey -KeyType "Secondary" -StorageAccountName "ContosoStore01" - + PS C:\> $extensionCfg = New-AzureServiceADDomainExtensionConfig -Role WorkerRole1 -DomainName $domain -Credential $cred -JoinOption 35; + +New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Configuration $config -ExtensionConfiguration $extensionCfg; - This command regenerate the secondary storage key for the ContosoStore01 storage account and stores the updated storage account key information in the $ContosoStoreKey. - - + Description - + ----------- - Get-AzureStorageKey - + Unknown + + - + + - New-AzureVMConfig + New-AzureServiceDiagnosticsExtensionConfig - Creates an Azure virtual machine configuration object. + This cmdlet generates configuration of diagnostics extension for specified role(s) or all roles. New - AzureVMConfig + AzureServiceDiagnosticsExtensionConfig - The New-AzureVMConfig cmdlet creates an Azure virtual machine configuration object. You can use this object to perform a new deployment and add a new virtual machine to an existing deployment. + + This cmdlet generates configuration of diagnostics extension for specified role(s) or all roles. - New-AzureVMConfig - - Name + New-AzureServiceDiagnosticsExtensionConfig + + Role - Specifies the name of the virtual machine. + An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String + String[] - - InstanceSize - - Specifies the size of the instance. - The acceptable values for this parameter are: - --- ExtraSmall --- Small --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 --- A8 --- A9 --- Basic_A0 --- Basic_A1 --- Basic_A2 --- Basic_A3 --- Basic_A4 --- Standard_D1 --- Standard_D2 --- Standard_D3 --- Standard_D4 --- Standard_D11 --- Standard_D12 --- Standard_D13 --- Standard_D14 - - String - - - HostCaching + + X509Certificate - Specifies the host caching mode for the operating system disk. - Valid values are: - --- ReadOnly --- ReadWrite + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - ReadWrite - ReadOnly - + X509Certificate2 - - AvailabilitySetName + + ThumbprintAlgorithm - Specifies the name of the availability set. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - Label + + StorageContext - Specifies a label to assign to the virtual machine. + + - String + AzureStorageContext - - ImageName + + DiagnosticsConfigurationPath - Specifies the name of the virtual machine image to use for the operating system disk. + + String - - DiskLabel + + + New-AzureServiceDiagnosticsExtensionConfig + + Role - Specifies a label for the operating system disk. + An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String + String[] - - MediaLocation + + CertificateThumbprint - Specifies the Azure storage location for the new virtual machine disk. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - String + String - - Profile + + ThumbprintAlgorithm - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - AzureProfile + String - - - New-AzureVMConfig - - Name + + StorageContext - Specifies the name of the virtual machine. + + - String + AzureStorageContext - - InstanceSize + + DiagnosticsConfigurationPath - Specifies the size of the instance. - The acceptable values for this parameter are: - --- ExtraSmall --- Small --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 --- A8 --- A9 --- Basic_A0 --- Basic_A1 --- Basic_A2 --- Basic_A3 --- Basic_A4 --- Standard_D1 --- Standard_D2 --- Standard_D3 --- Standard_D4 --- Standard_D11 --- Standard_D12 --- Standard_D13 --- Standard_D14 - - String - - - HostCaching - - Specifies the host caching mode for the operating system disk. - Valid values are: - --- ReadOnly --- ReadWrite - - - ReadWrite - ReadOnly - - - - AvailabilitySetName - - Specifies the name of the availability set. - - String - - - Label - - Specifies a label to assign to the virtual machine. - - String - - - DiskName - - Specifies a name for the operating system disk. + + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - AvailabilitySetName + + Role - Specifies the name of the availability set. + An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String + String[] - String + String[] - none + + - - DiskLabel + + X509Certificate - Specifies a label for the operating system disk. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - String + X509Certificate2 - none + + - - DiskName + + ThumbprintAlgorithm - Specifies a name for the operating system disk. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. String String - none + + - - HostCaching + + StorageContext - Specifies the host caching mode for the operating system disk. - Valid values are: - --- ReadOnly --- ReadWrite + + - String + AzureStorageContext - String + AzureStorageContext - none + + - - ImageName + + DiagnosticsConfigurationPath - Specifies the name of the virtual machine image to use for the operating system disk. + + String String - none + + - - InstanceSize + + CertificateThumbprint - Specifies the size of the instance. - The acceptable values for this parameter are: - --- ExtraSmall --- Small --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 --- A8 --- A9 --- Basic_A0 --- Basic_A1 --- Basic_A2 --- Basic_A3 --- Basic_A4 --- Standard_D1 --- Standard_D2 --- Standard_D3 --- Standard_D4 --- Standard_D11 --- Standard_D12 --- Standard_D13 --- Standard_D14 + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. String String - none - - - Label - - Specifies a label to assign to the virtual machine. - - String - - String - - - none - - - MediaLocation - - Specifies the Azure storage location for the new virtual machine disk. - - String - - String - - - none - - - Name - - Specifies the name of the virtual machine. + + + + + DiagnosticsConfiguration + + Configuration for Microsoft Azure diagnostics. The schema is: +<?xml version="1.0" encoding="utf-8"?> +<xs:schema id="DiagnosticsConfigSchema" + targetNamespace="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" + elementFormDefault="qualified" + xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" + xmlns:wad="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" + xmlns:mstns="http://tempuri.org/XMLSchema.xsd" + xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:simpleType name="PositiveDuration"> + <xs:restriction base="xs:duration"> + <xs:minInclusive value="PT0S" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="LogLevel"> + <xs:restriction base="xs:string"> + <xs:enumeration value="Undefined" /> + <xs:enumeration value="Verbose" /> + <xs:enumeration value="Information" /> + <xs:enumeration value="Warning" /> + <xs:enumeration value="Error" /> + <xs:enumeration value="Critical" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="ContainerName"> + <xs:restriction base="xs:string"> + <xs:pattern value="[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="locale"> + <xs:restriction base="xs:string"> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="displayName"> + <xs:restriction base="xs:string"> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="AbsolutePathWithEnvironmentExpansion"> + <xs:restriction base="xs:string"> + <xs:pattern value="([a-zA-Z]:\)?([^&lt;&gt;:&quot;/|?*]+)*(\)?" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="RelativePathWithEnvironmentExpansion"> + <xs:restriction base="xs:string"> + <xs:pattern value="([^&lt;&gt;:&quot;/\|?*]+)(\([^&lt;&gt;:&quot;/\|?*]+))*(\)?" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="PerformanceCounterPath"> + <xs:restriction base="xs:string"> + <xs:pattern value="\.*" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="EventNameType"> + <xs:restriction base="xs:string"> + <xs:pattern value="[a-zA-Z][_a-zA-Z0-9]{0,59}" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="CrashDumpType" > + <xs:restriction base="xs:string"> + <xs:enumeration value="Mini"/> + <xs:enumeration value="Full"/> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="NamedElementNameString"> + <xs:restriction base="xs:string"> + <xs:pattern value="^[a-zA-Z_][^\\/\:\*\?\&quot;\&lt;\&gt;\|]*(?&lt;![\.\s])$" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="format"> + <xs:restriction base="xs:string"> + <xs:enumeration value="Manifest" /> + <xs:enumeration value="EventSource" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="directoryQuotaPercentage"> + <xs:restriction base="xs:integer"> + <xs:minInclusive value="0"/> + <xs:maxInclusive value="100"/> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="guidType"> + <xs:annotation> + <xs:documentation> + A GUID. Brackets (and only brakets) before and/or after are ignored. e.g. {12345678-1234-1234-1234-123456789abc}, {12345678-1234-1234-1234-123456789abc, 12345678-1234-1234-1234-123456789abc} and 12345678-1234-1234-1234-123456789abc are valid. + </xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$"/> + </xs:restriction> + </xs:simpleType> + + <xs:attributeGroup name="BasicConfiguration"> + <xs:attribute name="scheduledTransferPeriod" type="PositiveDuration" use="optional" default="PT0S"> + <xs:annotation> + <xs:documentation> + The interval between scheduled transfers for this data, rounded up to the nearest minute. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:attributeGroup> + + <xs:attributeGroup name="ETWConfiguration"> + <xs:attribute name="scheduledTransferPeriod" type="PositiveDuration" use="optional" default="PT0S"> + <xs:annotation> + <xs:documentation> + The interval between scheduled transfers for this data, rounded up to the nearest minute. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="scheduledTransferLogLevelFilter" type="LogLevel" use="optional" default="Undefined"> + <xs:annotation> + <xs:documentation> + The minimum log severity to transfer. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="provider" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation> + The provider guid or class name for event source + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="scheduledTransferKeywordFilter" type="xs:unsignedLong" use="optional" default="0" > + <xs:annotation> + <xs:documentation> + The keyword to filter by + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:attributeGroup> + + <xs:attributeGroup name="LogLevel"> + <xs:attribute name="scheduledTransferLogLevelFilter" type="LogLevel" use="optional" default="Undefined"> + <xs:annotation> + <xs:documentation> + The minimum log severity to transfer. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:attributeGroup> + + <xs:attributeGroup name="DirectoryAttributes"> + <xs:attribute name="containerName" type="wad:ContainerName" use="required"> + <xs:annotation> + <xs:documentation> + The name of the container where the content of the directory is to be transferred. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:attributeGroup> + + <xs:attributeGroup name="CrashDumpConfiguration"> + <xs:attribute name="directoryQuotaPercentage" type="directoryQuotaPercentage" use="optional" default="10"> + <xs:annotation> + <xs:documentation> + The percentage of directory quota used by crashdumps + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="dumpType" type="CrashDumpType" use="optional" default="Mini"> + <xs:annotation> + <xs:documentation> + The type of crashdump + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="containerName" type="wad:ContainerName" use="optional" default="wad-crashdumps"> + <xs:annotation> + <xs:documentation> + The blob container to store the crashdumps + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:attributeGroup> + + <xs:complexType name="LogsBase"> + <xs:attributeGroup ref="BasicConfiguration" /> + </xs:complexType> + + <xs:complexType name="EtwEventsBase"> + <xs:attributeGroup ref="ETWConfiguration" /> + </xs:complexType> + + <xs:complexType name ="CrashDumpsBase"> + <xs:attributeGroup ref="CrashDumpConfiguration"/> + </xs:complexType> + + <xs:complexType name="EtwManifestProviderConfiguration"> + <xs:complexContent> + <xs:extension base="EtwEventsBase"> + <xs:sequence> + <xs:element maxOccurs="unbounded" name="Event" minOccurs="0"> + <xs:complexType> + <xs:attribute name="id" type="xs:int" use="required"> + <xs:annotation> + <xs:documentation> + The id of the ETW event that is to be collected + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="eventDestination" type="EventNameType" use="optional"> + <xs:annotation> + <xs:documentation> + The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Event'+'MD5 of the provider'+EventId#. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + </xs:element> + <xs:element name="DefaultEvents" minOccurs="0" maxOccurs="1"> + <xs:complexType> + <xs:attribute name="eventDestination" type="EventNameType" use="optional"> + <xs:annotation> + <xs:documentation> + The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Default'+'MD5 of the provider'+EventId#. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="EtwEventSourceProviderConfiguration"> + <xs:complexContent> + <xs:extension base="EtwEventsBase"> + <xs:sequence> + <xs:element maxOccurs="unbounded" name="Event" minOccurs="0"> + <xs:complexType> + <xs:attribute name="id" type="xs:int" use="required"> + <xs:annotation> + <xs:documentation> + The id of the ETW event that is to be collected + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="eventDestination" type="EventNameType" use="optional"> + <xs:annotation> + <xs:documentation> + The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Event'+'MD5 of the provider'+EventId#. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + </xs:element> + <xs:element name="DefaultEvents" minOccurs="0" maxOccurs="1"> + <xs:complexType> + <xs:attribute name="eventDestination" type="EventNameType" use="optional"> + <xs:annotation> + <xs:documentation> + The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Default'+'MD5 of the provider'+EventId#. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="EtwProviders"> + <xs:sequence maxOccurs="unbounded"> + <xs:element name="EtwEventSourceProviderConfiguration" type="EtwEventSourceProviderConfiguration" minOccurs="0" > + <xs:annotation> + <xs:documentation> + ETW collection by event source + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="EtwManifestProviderConfiguration" type="EtwManifestProviderConfiguration" minOccurs="0"> + <xs:annotation> + <xs:documentation> + ETW collection by manifest + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="CrashDumpConfiguration"> + <xs:attribute name="processName" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation> + The name of the process to to monitor for crashes. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + + <xs:complexType name="CrashDumps"> + <xs:complexContent> + <xs:extension base="CrashDumpsBase"> + <xs:sequence maxOccurs="unbounded"> + <xs:element name="CrashDumpConfiguration" type="CrashDumpConfiguration"> + <xs:annotation> + <xs:documentation> + The crashdump to collect + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="DiagnosticInfrastructureLogs"> + <xs:complexContent> + <xs:extension base="LogsBase"> + <xs:attributeGroup ref="LogLevel" /> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + <xs:complexType name="DirectoryBase" /> + + <xs:complexType name="DirectoryAbsolute"> + <xs:complexContent> + <xs:extension base="DirectoryBase"> + <xs:attribute name="path" type="AbsolutePathWithEnvironmentExpansion" use="required"> + <xs:annotation> + <xs:documentation> + The absolute path to the directory to monitor. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="expandEnvironment" type="xs:boolean" use="required"> + <xs:annotation> + <xs:documentation> + If true, then environment variables in the path will be expanded. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="DirectoryLocalResource"> + <xs:complexContent> + <xs:extension base="DirectoryBase"> + <xs:attribute name="relativePath" type="RelativePathWithEnvironmentExpansion" use="required"> + <xs:annotation> + <xs:documentation> + The path relative to the local resource to monitor. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="name" type="NamedElementNameString" use="required"> + <xs:annotation> + <xs:documentation> + The local resource that contains the directory to monitor. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="DirectoryConfiguration"> + <xs:choice> + <xs:element name="Absolute" type="DirectoryAbsolute"> + <xs:annotation> + <xs:documentation> + The absolute path to the directory to monitor. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="LocalResource" type="DirectoryLocalResource"> + <xs:annotation> + <xs:documentation> + The path relative to a local resource to monitor. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:choice> + <xs:attributeGroup ref="DirectoryAttributes" /> + </xs:complexType> + + <xs:complexType name="SpecialLogDirectory"> + <xs:attributeGroup ref="DirectoryAttributes" /> + </xs:complexType> + + <xs:complexType name="DataSources"> + <xs:sequence> + <xs:element name="DirectoryConfiguration" type="DirectoryConfiguration" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation> + The directory of log files to monitor. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="Directories"> + <xs:complexContent> + <xs:extension base="LogsBase"> + <xs:all> + <xs:element name="IISLogs" type="SpecialLogDirectory" minOccurs="0"> + <xs:annotation> + <xs:documentation> + The IIS log directory. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="FailedRequestLogs" type="SpecialLogDirectory" minOccurs="0"> + <xs:annotation> + <xs:documentation> + The failed request log directory. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="DataSources" type="DataSources" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Additional log directories. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:all> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="annotation"> + <xs:attribute name="displayName" type="displayName" use="required"> + <xs:annotation> + <xs:documentation> + The display name for the performance counter. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="locale" type="locale" use="optional" default="en-US"> + <xs:annotation> + <xs:documentation> + The locale for the performance counter diplay name. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + + <xs:complexType name="PerformanceCounterConfiguration"> + <xs:sequence minOccurs="0"> + <xs:element maxOccurs="unbounded" name="annotation" type="annotation"> + <xs:annotation> + <xs:documentation> + The display name and locale for the performance counter + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + <xs:attribute name="counterSpecifier" type="PerformanceCounterPath" use="required"> + <xs:annotation> + <xs:documentation> + The path to the performance counter to collect. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="sampleRate" type="PositiveDuration" use="required"> + <xs:annotation> + <xs:documentation> + The rate at which the performance counter should be sampled. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="unit" type="xs:string" use="optional"> + <xs:annotation> + <xs:documentation> + The unit for the performance counter for display purposes. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + + <xs:complexType name="PerformanceCounters"> + <xs:complexContent> + <xs:extension base="LogsBase"> + <xs:sequence maxOccurs="unbounded"> + <xs:element name="PerformanceCounterConfiguration" type="PerformanceCounterConfiguration"> + <xs:annotation> + <xs:documentation> + The performance counter to collect. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + + + <xs:complexType name="DataSource"> + <xs:attribute name="name" type="xs:string" use="required"> + <xs:annotation> + <xs:documentation> + An XPath expression specifying the logs to collect. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + + <xs:complexType name="WindowsEventLog"> + <xs:complexContent> + <xs:extension base="LogsBase"> + <xs:sequence maxOccurs="unbounded"> + <xs:element name="DataSource" type="DataSource"> + <xs:annotation> + <xs:documentation> + The event log to monitor. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="DiagnosticMonitorConfiguration"> + <xs:all> + <xs:element name="DiagnosticInfrastructureLogs" type="DiagnosticInfrastructureLogs" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Configures the logs generated by the underlying diagnostics infrastructure. The diagnostic infrastructure logs are useful for troubleshooting the diagnostics system itself. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="Directories" type="Directories" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Describes the configuration of a directory to which file-based logs are written. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="PerformanceCounters" type="PerformanceCounters" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Configures performance counter collection. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="WindowsEventLog" type="WindowsEventLog" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Configures Windows event log collection. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="EtwProviders" type="EtwProviders" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Configures ETW event collection. + </xs:documentation> + </xs:annotation> + </xs:element> + <xs:element name="CrashDumps" type="CrashDumps" minOccurs="0"> + <xs:annotation> + <xs:documentation> + Configures crashdump collection. + </xs:documentation> + </xs:annotation> + </xs:element> + </xs:all> + + <xs:attribute name="overallQuotaInMB" type="xs:unsignedInt" use="optional" default="5120"> + <xs:annotation> + <xs:documentation> + The total amount of file system storage allocated for all logging buffers. + </xs:documentation> + </xs:annotation> + </xs:attribute> + <xs:attribute name="useProxyServer" type="xs:boolean" use="optional" default="true"> + <xs:annotation> + <xs:documentation> + Force the Monitoring Agent to use the specified IE proxy server if specified. + </xs:documentation> + </xs:annotation> + </xs:attribute> + </xs:complexType> + + <xs:element name="PublicConfig"> + <xs:complexType> + <xs:all> + <xs:element name="WadCfg"> + <xs:complexType> + <xs:sequence> + <xs:element name="DiagnosticMonitorConfiguration" type="DiagnosticMonitorConfiguration" minOccurs="1" maxOccurs="1" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="LocalResourceDirectory" minOccurs="0" maxOccurs="1" type="DirectoryAbsolute" /> + <xs:element name="StorageAccount" minOccurs="0" maxOccurs="1" type="xs:string" /> + </xs:all> + </xs:complexType> + </xs:element> +</xs:schema> - String + xmldocument - String + xmldocument - none + + - - Profile + + StorageAccountName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The name of the storage account diagnostics will use to store diagnostics data such as performance counter data and file logs. - AzureProfile + string - AzureProfile + string - none + + @@ -18212,15 +16435,13 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - @@ -18229,387 +16450,329 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a Windows virtual machine configuration + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$Image = (Get-AzureVMImage)[4].ImageName -C:\PS> New-AzureVMConfig -Name "MyVM1" -InstanceSize ExtraSmall -ImageName $Image | Add-AzureProvisioningConfig -Windows -Password $AdminPassword | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "Datadisk1" -LUN 0 | New-AzureVM –ServiceName "MySvc1" - + PS C:\> $wadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML - This command creates a Windows virtual machine configuration with operating system disk, data disk and provisioning configuration. This configuration is then used to create a new virtual machine. - - + Description - + -----------Creates an object that has the service extension object default for all roles that will be installed with the deployment and the role configuration. - Example 2: Create a Linux virtual machine configuration + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>$Image = (Get-AzureVMImage)[7].ImageName -C:\PS> New-AzureVMConfig -Name "MyVM1" -InstanceSize ExtraSmall -ImageName $Image | Add-AzureProvisioningConfig –Linux –LinuxUser $LinuxUser -Password $AdminPassword | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "Datadisk1" -LUN 0 | New-AzureVM –ServiceName "MySvc1" - + PS C:\> $wadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML -Role "WebRole1" - This command creates a new Linux virtual machine configuration with operating system disk, data disk and provisioning configuration. This configuration is then used to create a new virtual machine. - - + Description - + -----------Creates an object that has the service extension object for a specific role that will be installed with the deployment and the role configuration. - Azure Service Cmdlets - + Unknown + + - + + - New-AzureVMImageDiskConfigSet + New-AzureServiceExtensionConfig - Creates a disk configuration set object. + This cmdlet creates a cloud service extension configuration for a deployment. New - AzureVMImageDiskConfigSet + AzureServiceExtensionConfig - The New-AzureVMImageDiskConfigSet cmdlet creates a disk configuration set object that is passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the virtual machine image. + + This cmdlet creates a cloud service extension configuration for a deployment. - New-AzureVMImageDiskConfigSet - - - - - - - - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - - + New-AzureServiceExtensionConfig + + Role - + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - - - - - - - - - - - Example 1: Create a disk configuration set object - - - - - PS C:\>$Disk = New-AzureDiskConfigSet -PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite -PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -Name "Test" -HostCaching "ReadWrite" -LUN 0 -PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description "Test1" -DiskConfigSet $Disk; - - - This command creates a disk configuration set object and stores the results in the variable named $Disk. After the disk configuration is created, it is used to set the OSDiskConfig and DataDiskConfig. Then the virtual machine is updated with the configuration. - - - - - - - - - - - - - Get-AzureVMImageDiskConfigSet - - - - Set-AzureVMImageOSDiskConfig - - - - Set-AzureVMImageDataDiskConfig - - - - - - - New-AzureVMSqlServerAutoBackupConfig - - Creates a configuration object for SQL Server automatic backup. - - - - - New - AzureVMSqlServerAutoBackupConfig - - - - The New-AzureVMSqlServerAutoBackupConfig cmdlet creates a configuration object for SQL Server automatic backup. - - - - New-AzureVMSqlServerAutoBackupConfig - - Enable + String[] + + + X509Certificate - Indicates that automated backup for the SQL Server virtual machine is enabled. If you use this parameter, automated backup sets a backup schedule for all current and new databases. This updates your Managed Backup settings to follow this schedule. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + X509Certificate2 - - RetentionPeriodInDays + + ThumbprintAlgorithm + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - Int32 + String - - EnableEncryption + + ExtensionName + String - - CertificatePassword + + ProviderNamespace - Specifies a password to encrypt the certificate that is used to perform SQL Server encrypted backups. + The Extension's Provider Namespace. - SecureString + String - - StorageUri + + PublicConfiguration - Specifies a URI to the blob storage account. + The public configuration text. - Uri + String - - StorageKey + + PrivateConfiguration - Specifies the storage key of the blob storage account. + The private configuration text. - SecureString + String - - Profile + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String - New-AzureVMSqlServerAutoBackupConfig - - Enable + New-AzureServiceExtensionConfig + + Role - Indicates that automated backup for the SQL Server virtual machine is enabled. If you use this parameter, automated backup sets a backup schedule for all current and new databases. This updates your Managed Backup settings to follow this schedule. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + String[] - - RetentionPeriodInDays + + CertificateThumbprint + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - Int32 + String - - EnableEncryption + + ThumbprintAlgorithm - - + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + String - - CertificatePassword + + ExtensionName - Specifies a password to encrypt the certificate that is used to perform SQL Server encrypted backups. + + - SecureString + String - - StorageContext + + ProviderNamespace - Specifies the storage account to be used to store backups. Default is the storage account associated with the SQL Server virtual machine. + The Extension's Provider Namespace. - AzureStorageContext + String - - StorageUri + + PublicConfiguration - Specifies a URI to the blob storage account. + The public configuration text. - Uri + String - - StorageKey + + PrivateConfiguration - Specifies the storage key of the blob storage account. + The private configuration text. - SecureString + String - - Profile + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String - - CertificatePassword + + Role - Specifies a password to encrypt the certificate that is used to perform SQL Server encrypted backups. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - SecureString + String[] - SecureString + String[] - none + + - - Enable + + X509Certificate - Indicates that automated backup for the SQL Server virtual machine is enabled. If you use this parameter, automated backup sets a backup schedule for all current and new databases. This updates your Managed Backup settings to follow this schedule. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - SwitchParameter + X509Certificate2 - SwitchParameter + X509Certificate2 - none + + + + + ThumbprintAlgorithm + + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + String + + + + - - EnableEncryption + + ExtensionName - SwitchParameter + String - SwitchParameter + String - none + + - - Profile + + ProviderNamespace - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension's Provider Namespace. - AzureProfile + String - AzureProfile + String - none + + - - RetentionPeriodInDays + + PublicConfiguration + The public configuration text. - Int32 + String - Int32 + String - none + + - - StorageContext + + PrivateConfiguration - Specifies the storage account to be used to store backups. Default is the storage account associated with the SQL Server virtual machine. + The private configuration text. - AzureStorageContext + String - AzureStorageContext + String - none + + - - StorageKey + + Version - Specifies the storage key of the blob storage account. + The Extension Version. - SecureString + String - SecureString + String - none + + - - StorageUri + + CertificateThumbprint - Specifies a URI to the blob storage account. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - Uri + String - Uri + String - none + + @@ -18617,15 +16780,13 @@ PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description " - - + - + + - - @@ -18634,239 +16795,275 @@ PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description " - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create an auto-backup configuration using storage URI and account key - - - - - PS C:\>$ABS = New-AzureVMSqlServerAutoBackupConfig -Enable -RetentionPeriod 10 -StorageUri $StorageUrl -StorageKey $StorageAccountKeySecure -Enable : True -EnableEncryption : False -RetentionPeriodInDays : 10 - - - This command creates an auto-backup configuration object by specifying storage URL and account key. - - - - - - - - - - - Example 2: Create an auto-backup configuration using storage context + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$ABS = New-AzureVMSqlServerAutoBackupConfig -StorageContext $StorageContext -Enable -RetentionPeriod 10 -Enable : True -EnableEncryption : False -RetentionPeriodInDays : 10 - + PS C:\> New-AzureServiceExtensionConfig -ExtensionName 'RDP' -Version '1.0' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; - This command creates an auto-backup configuration object by specifying storage context. - - + Description - + -----------Create the Remote Desktop Extension configuration in version 1.0 for all roles in the cloud service. - Example 3: Create an auto-backup configuration using storage context with encryption and password + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>$ABS = New-AzureVMSqlServerAutoBackupConfig -StorageContext $StorageContext -Enable -RetentionPeriod 10 -EnableEncryption -CertificatePassword $CertPasswd -Enable : True -EnableEncryption : True -RetentionPeriodInDays : 10 - + PS C:\> New-AzureServiceExtensionConfig -Role WebRole1 -ExtensionName 'RDP' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; - This command creates an auto-backup configuration object by specifying Storage context and enabling encryption option with password. The certificatepassword ist stored in the variable named $CertPasswd. - - + Description - + -----------Create the Remote Desktop Extension configuration for the 'WebRole1' role in the cloud service. - New-AzureVMSqlServerAutoPatchingConfig - + Unknown + + - + + - New-AzureVMSqlServerAutoPatchingConfig + New-AzureServiceRemoteDesktopExtensionConfig - Creates a configuration object for virtual machine automatic patching. + This cmdlets generates configuration of remote desktop extension for any deployment. New - AzureVMSqlServerAutoPatchingConfig + AzureServiceRemoteDesktopExtensionConfig - The New-AzureVMSqlServerAutoPatchingConfig cmdlet creates a configuration object for virtual machine automatic patching. + + This cmdlets generates configuration of remote desktop extension for any deployment. - New-AzureVMSqlServerAutoPatchingConfig - - DayOfWeek + New-AzureServiceRemoteDesktopExtensionConfig + + Role - Specifies the day of the week when updates should be installed. - The acceptable values for this parameter are: - --- Sunday --- Monday --- Tuesday --- Wednesday --- Thursday --- Friday --- Saturday --- Everyday + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - Sunday - Monday - Tuesday - Wednesday - Thursday - Friday - Saturday - Everyday - + String[] - - Enable + + X509Certificate - Indicates that automated patching for the virtual machine is enabled. If you enable automated patching the cmdlet will put Windows Update into interactive mode. If you disable automated patching, Windows Update settings will not change. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + X509Certificate2 - - MaintenanceWindowDuration + + ThumbprintAlgorithm - Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - Int32 + String - - MaintenanceWindowStartingHour + + Credential - Specifies the hour of the day when maintenance window starts. This time defines when updates start installing and is rounded to the hour. + The credentials (user name/password) to enable for remote desktop. - Int32 + PSCredential - - PatchCategory + + Expiration + + A date time object that allows the user to specify when the user account will expire. + + DateTime + + + Version + + + + + String + + + + New-AzureServiceRemoteDesktopExtensionConfig + + Role + + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + + CertificateThumbprint + + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + + String + + + ThumbprintAlgorithm + + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + Credential + + The credentials (user name/password) to enable for remote desktop. + + PSCredential + + + Expiration + + A date time object that allows the user to specify when the user account will expire. + + DateTime + + + Version - Specifies whether important updates should be included. + + - String + String - - DayOfWeek + + Role - Specifies the day of the week when updates should be installed. - The acceptable values for this parameter are: - --- Sunday --- Monday --- Tuesday --- Wednesday --- Thursday --- Friday --- Saturday --- Everyday + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + String[] + + + + + + + X509Certificate + + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + X509Certificate2 + + + + + + + ThumbprintAlgorithm + + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - none + + - - Enable + + Credential - Indicates that automated patching for the virtual machine is enabled. If you enable automated patching the cmdlet will put Windows Update into interactive mode. If you disable automated patching, Windows Update settings will not change. + The credentials (user name/password) to enable for remote desktop. - SwitchParameter + PSCredential - SwitchParameter + PSCredential - none + + - - MaintenanceWindowDuration + + Expiration - Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. + A date time object that allows the user to specify when the user account will expire. - Int32 + DateTime - Int32 + DateTime - none + + - - MaintenanceWindowStartingHour + + Version - Specifies the hour of the day when maintenance window starts. This time defines when updates start installing and is rounded to the hour. + + - Int32 + String - Int32 + String - none + + - - PatchCategory + + CertificateThumbprint - Specifies whether important updates should be included. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - String + String String - none + + @@ -18874,828 +17071,531 @@ RetentionPeriodInDays : 10 - - + - + + - - - AutoPatchingSettings - - + + + - + + - This cmdlet returns object contains settings for automated patching. - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a configuration object to configure automatic patching + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$APS = New-AzureVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Thursday" -MaintenanceWindowStartingHour 11 -MaintenanceWindowDuration 120 -PatchCategory "Important" - Enable : True - DayOfWeek : Thursday - MaintenanceWindowStartingHour : 11 - MaintenanceWindowDuration : 120 - PatchCategory : Important - - + PS C:\> $rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred - This command creates configuration object that can be used to configure automatic patching using Set-AzureVMSqlServerExtension. - - + Description - + -----------Creates an object that has the service extension object default for all roles that will be installed with the deployment and the role configuration. + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> $rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred -Role "WebRole1" + + Description + + + + -----------Creates an object that has the service extension object for a specific role that will be installed with the deployment and the role configuration. - Set-AzureVMSqlServerExtension - - - - Remove-AzureVMSqlServerExtension - - - - Set-AzureVMSqlServerExtension - + Unknown + + - + + - New-AzureVM + New-AzureSSHKey - Creates an Azure virtual machine. + Creates a SSH Key object to insert an existing certificate into new Linux-based Microsoft Azure virtual machines. New - AzureVM + AzureSSHKey - The New-AzureVM cmdlet adds a new virtual machine to an existing Azure service, or creates a virtual machine and service in the current subscription if either the Location or AffinityGroup is specified. + + The New-AzureSSHKey cmdlet creates an SSH Key object for a certificate that has already been added to Microsoft Azure. This SSH Key object can then be used by New-AzureProvisioningConfig when creating the configuration object for a new virtual machine using New-AzureVM, or when creating a new virtual machine with New-AzureQuickVM. When included as part of a virtual machine creation script, this adds the specified SSH Public Key or Key Pair to the new virtual machine. - New-AzureVM - - AffinityGroup - - Specifies the Azure affinity group in which the cloud service resides. This parameter is required only when this cmdlet creates a cloud service. - - String - - - DeploymentLabel - - Specifies a label for the deployment. - - String - - - DeploymentName - - Specifies a deployment name. If not specified, this cmdlet uses the service name as the deployment name. - - String - - - DnsSettings - - Specifies a DNS Server object that defines the DNS settings for the new deployment. - - DnsServer[] - - - InternalLoadBalancerConfig - - Specifies an internal load balancer. This parameter is not used. - - InternalLoadBalancerConfig - - - Location - - Specifies the location that hosts the new service. If the service already exists, do not specify this parameter. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - ReservedIPName - - Specifies the name of the reserved IP address. - - String - - - ReverseDnsFqdn - - Specifies the fully-qualified domain name for reverse DNS. - - String - - - ServiceDescription - - Specifies a description for the new service. - - String - - - ServiceLabel - - Specifies a label for the new service. - - String - - - VNetName - - Specifies the virtual network name where this cmdlet deploys the virtual machine. - - String - - - WaitForBoot + New-AzureSSHKey + + KeyPair - Specifies that this cmdlet waits for the virtual machine to reach the ReadyRole state. This cmdlet fails if the virtual machine falls in one of the following states while waiting: FailedStartingVM, ProvisioningFailed, ProvisioningTimeout. + When specified, creates an object for inserting an SSH Key Pair into the new virtual machine configuration. + SwitchParameter - - ServiceName + + Fingerprint - Specifies the new or existing service name. - - - If the service does not exist, this cmdlet creates it for you. Use the Location or AffinityGroup parameter to specify where to create the service. - If the service exists, the Location or AffinityGroup parameter is not needed. + Specifies the fingerprint of the certificate. String - - VMs + + Path - Specifies a list of virtual machine objects to create. + Specifies the path to store the SSH Public Key or Key Pair. - PersistentVM[] + String - New-AzureVM - - DeploymentLabel - - Specifies a label for the deployment. - - String - - - DeploymentName - - Specifies a deployment name. If not specified, this cmdlet uses the service name as the deployment name. - - String - - - DnsSettings - - Specifies a DNS Server object that defines the DNS settings for the new deployment. - - DnsServer[] - - - InternalLoadBalancerConfig - - Specifies an internal load balancer. This parameter is not used. - - InternalLoadBalancerConfig - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - ReservedIPName - - Specifies the name of the reserved IP address. - - String - - - VNetName - - Specifies the virtual network name where this cmdlet deploys the virtual machine. - - String - - - WaitForBoot + New-AzureSSHKey + + PublicKey - Specifies that this cmdlet waits for the virtual machine to reach the ReadyRole state. This cmdlet fails if the virtual machine falls in one of the following states while waiting: FailedStartingVM, ProvisioningFailed, ProvisioningTimeout. + When specified, creates an object for inserting an SSH Public Key into the new virtual machine configuration. + SwitchParameter - - ServiceName + + Fingerprint - Specifies the new or existing service name. - - - If the service does not exist, this cmdlet creates it for you. Use the Location or AffinityGroup parameter to specify where to create the service. - If the service exists, the Location or AffinityGroup parameter is not needed. + Specifies the fingerprint of the certificate. String - - VMs + + Path - Specifies a list of virtual machine objects to create. + Specifies the path to store the SSH Public Key or Key Pair. - PersistentVM[] + String - - AffinityGroup - - Specifies the Azure affinity group in which the cloud service resides. This parameter is required only when this cmdlet creates a cloud service. - - String - - String - - - none - - - DeploymentLabel - - Specifies a label for the deployment. - - String - - String - - - none - - - DeploymentName - - Specifies a deployment name. If not specified, this cmdlet uses the service name as the deployment name. - - String - - String - - - none - - - DnsSettings - - Specifies a DNS Server object that defines the DNS settings for the new deployment. - - DnsServer[] - - DnsServer[] - - - none - - - InternalLoadBalancerConfig - - Specifies an internal load balancer. This parameter is not used. - - InternalLoadBalancerConfig - - InternalLoadBalancerConfig - - - none - - - Location - - Specifies the location that hosts the new service. If the service already exists, do not specify this parameter. - - String - - String - - - none - - - Profile + + KeyPair - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + When specified, creates an object for inserting an SSH Key Pair into the new virtual machine configuration. - AzureProfile + SwitchParameter - AzureProfile + SwitchParameter - none + + - - ReservedIPName + + Fingerprint - Specifies the name of the reserved IP address. + Specifies the fingerprint of the certificate. - String + String String - none + + - - ReverseDnsFqdn + + Path - Specifies the fully-qualified domain name for reverse DNS. + Specifies the path to store the SSH Public Key or Key Pair. - String + String String - none + + - - ServiceDescription + + PublicKey - Specifies a description for the new service. + When specified, creates an object for inserting an SSH Public Key into the new virtual machine configuration. - String + SwitchParameter - String + SwitchParameter - none + + - - ServiceLabel - - Specifies a label for the new service. - - String + + + - String + + + + + + - none - - - ServiceName - Specifies the new or existing service name. - - - If the service does not exist, this cmdlet creates it for you. Use the Location or AffinityGroup parameter to specify where to create the service. - If the service exists, the Location or AffinityGroup parameter is not needed. - String + + + + - String + + + + + + - none - - - VMs - Specifies a list of virtual machine objects to create. - - PersistentVM[] - - PersistentVM[] - - - none - - - VNetName - - Specifies the virtual network name where this cmdlet deploys the virtual machine. - - String - - String - - - none - - - WaitForBoot - - Specifies that this cmdlet waits for the virtual machine to reach the ReadyRole state. This cmdlet fails if the virtual machine falls in one of the following states while waiting: FailedStartingVM, ProvisioningFailed, ProvisioningTimeout. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a virtual machine for a Windows configuration - - - - - PS C:\>New-AzureVMConfig -Name "VirtualMachine07" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername PsTestAdmin | New-AzureVM -ServiceName "ContosoService" -AffinityGroup "Contoso" -WaitForBoot - - - This command creates a provisioning configuration based on a virtual machine configuration for the Windows operating system, and uses it to create a virtual machine in a specified affinity group. - - - - - - - - - - - Example 2: Create a virtual machine for a Linux configuration - - - - - PS C:\>New-AzureVMConfig -Name "SUSEVM02" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[7].ImageName | Add-AzureProvisioningConfig -Linux -LinuxUser "RootMain" -Password "password" -AdminUsername PsTestAdmin | New-AzureVM - - - This command creates a provisioning configuration based on a virtual machine configuration for Linux, and uses it to create a virtual machine in a specified affinity group. - - - - - - - - - - - Example 3: Create a virtual machine and add a data disk + -------------------------- Example 1 -------------------------- - PS C:\>$Images = Get-AzureVMImage -PS C:\> $Image = $Images[4] -PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -InstanceSize ExtraSmall -ImageName $myImage.ImageName | Add-AzureProvisioningConfig -Windows -Password "password" | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "DataDisk50" -LUN 0 - + PS C:\> C:\PS>$myLxCert = New-AzureSSHKey –Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –Path "/home/username/.ssh/authorized_keys" - The first two commands get available images by using the Get-AzureVMImage cmdlet, and stores one of them in the $Image variable. - This command creates a provisioning configuration based on a virtual machine configuration for the Windows operating system, and uses it to create a virtual machine with an Azure data disk. - - + This command creates a certificate setting object for an existing certificate and then stores the object in a variable for later use. - + + - Example 4: Create a virtual machine with a reserved IP address + -------------------------- Example 2 -------------------------- - PS C:\>New-AzureVMConfig -Name "VirtualMachine06" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername "AdminMain" | New-AzureVM -ServiceName "ContosoService02" -AffinityGroup "Contoso" -ReservedIPName $ipName - + PS C:\> C:\PS>Add-AzureCertificate –ServiceName "MySvc" –CertToDeploy "C:\temp\MyLxCert.cer" + C:\PS>$myLxCert = New-AzureSSHKey –Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –Path "/home/username/.ssh/authorized_keys" + C:\PC>New-AzureVMConfig -Name "MyVM2" -InstanceSize Small -ImageName $LxImage ` + | Add-AzureProvisioningConfig -Linux -LinuxUser $lxUser -SSHPublicKeys $myLxCert -Password 'pass@word1' ` + | New-AzureVM -ServiceName "MySvc" - This command creates a provisioning configuration based on a virtual machine configuration for the Windows operating system, and uses it to create a virtual machine with a reserved IP address. - - + This command adds a certificate to the Microsoft Azure service, and then creates a new Linux virtual machine that uses the certificate. - + + - Add-AzureDataDisk - + Add-AzureProvisioningConfig + + - Add-AzureProvisioningConfig - + New-AzureVMConfig + + - Get-AzureVMImage - + New-AzureVM + + - New-AzureVMConfig - + New-AzureQuickVM + + - + + - Publish-AzureVMDscConfiguration + New-AzureStorageAccount - Publishes a desired state configuration script to Azure blob storage. + Creates a new storage account in a Microsoft Azure subscription. - Publish - AzureVMDscConfiguration + New + AzureStorageAccount - The Publish-AzureVMDscConfiguration cmdlet publishes a desired state configuration script to Azure blob storage, which later can be applied to Azure virtual machines using the Set-AzureVMDscExtension cmdlet. + + The New-AzureStorageAccount cmdlet creates an account that provides access to Microsoft Azure storage services. A storage account is a globally unique resource within the storage system. The account is the parent namespace for the Blob, Queue, and Table services. - Publish-AzureVMDscConfiguration - - ConfigurationPath + New-AzureStorageAccount + + StorageAccountName - Specifies the path of a file that contains one or more configurations. The file can be a Windows PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) that contains a set of Windows PowerShell modules, with each module in a separate directory. + Specifies a name for the storage account. The storage account name must be unique to Microsoft Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. String - - ConfigurationArchivePath - - Specifies the path of a local .zip file that this cmdlet writes the configuration archive. The configuration script is not uploaded to Azure blob storage if you use this parameter. - - String - - - Force + + Label - Forces the command to run without asking for user confirmation. + Specifies a label for the storage account. The label may be up to 100 characters in length. + String - - Profile + + Description - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a description for the storage account. The description may be up to 1024 characters in length. - AzureProfile + String - - Confirm + + AffinityGroup - Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + Specifies the name of an existing affinity group in the current subscription. You can specify either a Location or an AffinityGroup parameter, but not both. + String - - WhatIf + + Type - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + Specifies the type of the storage account. Valid values are + Standard_LRS + Standard_ZRS + Standard_GRS + Standard_RAGRS + Premium_LRS + + If this parameter is not specified, a default value of Standard_GRS is used + + Note: + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + String - Publish-AzureVMDscConfiguration - - ConfigurationPath + New-AzureStorageAccount + + StorageAccountName - Specifies the path of a file that contains one or more configurations. The file can be a Windows PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) that contains a set of Windows PowerShell modules, with each module in a separate directory. + Specifies a name for the storage account. The storage account name must be unique to Microsoft Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. String - - ContainerName - - Specifies the name of the Azure storage container the configuration is uploaded to. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - StorageContext + + Label - Specifies the Azure storage context that provides the security settings used to upload the configuration script to the container specified by the ContainerName parameter. This context provides write access to the container. + Specifies a label for the storage account. The label may be up to 100 characters in length. - AzureStorageContext + String - - StorageEndpointSuffix + + Description - Specifies the suffix for the storage end-point, for instance, core.contoso.net + Specifies a description for the storage account. The description may be up to 1024 characters in length. - String + String - - Confirm + + Location - Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + Specifies the Microsoft Azure data center location where the storage account is created. You can include either a Location or an AffinityGroup parameter, but not both. + String - - WhatIf + + Type - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + Specifies the type of the storage account. Valid values are + Standard_LRS + Standard_ZRS + Standard_GRS + Standard_RAGRS + Premium_LRS + + If this parameter is not specified, a default value of Standard_GRS is used + + Note: + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + String - - ConfigurationArchivePath + + StorageAccountName - Specifies the path of a local .zip file that this cmdlet writes the configuration archive. The configuration script is not uploaded to Azure blob storage if you use this parameter. + Specifies a name for the storage account. The storage account name must be unique to Microsoft Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. - String + String String - none + + - - ConfigurationPath + + Label - Specifies the path of a file that contains one or more configurations. The file can be a Windows PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) that contains a set of Windows PowerShell modules, with each module in a separate directory. + Specifies a label for the storage account. The label may be up to 100 characters in length. String String - none + + - - ContainerName + + Description - Specifies the name of the Azure storage container the configuration is uploaded to. + Specifies a description for the storage account. The description may be up to 1024 characters in length. - String + String String - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - StorageContext + + AffinityGroup - Specifies the Azure storage context that provides the security settings used to upload the configuration script to the container specified by the ContainerName parameter. This context provides write access to the container. + Specifies the name of an existing affinity group in the current subscription. You can specify either a Location or an AffinityGroup parameter, but not both. - AzureStorageContext + String - AzureStorageContext + String - none + + - - StorageEndpointSuffix + + Type - Specifies the suffix for the storage end-point, for instance, core.contoso.net + Specifies the type of the storage account. Valid values are + Standard_LRS + Standard_ZRS + Standard_GRS + Standard_RAGRS + Premium_LRS + + If this parameter is not specified, a default value of Standard_GRS is used + + Note: + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. - String + String String - none + + - - Confirm + + Location - Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + Specifies the Microsoft Azure data center location where the storage account is created. You can include either a Location or an AffinityGroup parameter, but not both. - SwitchParameter + String - SwitchParameter + String - false + + - - WhatIf + + PipelineVariable - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + Not Specified - SwitchParameter + string - SwitchParameter + string - false + + @@ -19703,15 +17603,13 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - @@ -19720,145 +17618,134 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Publish a state configuration script to blob storage + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 - + PS C:\> New-AzureStorageAccount -StorageAccountName "azure1" -Label "AzureOne" -AffinityGroup "prodapps" - This command creates a .zip package for the given script and any dependent resource modules and uploads it to Azure storage. - - + Description - + -----------Creates a new storage account named "azure1" and assigns it to the "prodapps" affinity group. - Example 2: Publish a state configuration script to a local file + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 -ConfigurationArchivePath .\MyConfiguration.ps1.zip - + PS C:\> New-AzureStorageAccount -StorageAccountName "azuretwo" -Label "AzureTwo" -Location "North Central US" - This command creates a .zip package for the given script and any dependent resource modules and stores it in the local file .\MyConfiguration.ps1.zip. - - + Description - + -----------Creates a new storage account named "azuretwo" in the "North Central US" data center location. - Set-AzureVMDscExtension - + Unknown + + - + + - Remove-AzureAclConfig + New-AzureStorageKey - Removes an ACL configuration object from an Azure virtual machine configuration. + Regenerates storage keys for a Microsoft Azure storage account. - Remove - AzureAclConfig + New + AzureStorageKey - The Remove-AzureAclConfig cmdlet removes an access control list (ACL) configuration object from an Azure virtual machine configuration. + + The New-AzureStorageKey cmdlet regenerates the primary or secondary key for a Microsoft Azure storage account. It returns an object with the storage account name, primary key, and secondary key as properties. - Remove-AzureAclConfig - - EndpointName + New-AzureStorageKey + + KeyType - Specifies the name of the endpoint from which this cmdlet removes the ACL configuration. + Specifies which key to regenerate. Supported values are "Primary" and "Secondary". String - - Profile + + StorageAccountName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the Microsoft Azure storage account to regenerate a key for. - AzureProfile - - - VM - - Specifies the virtual machine from which this cmdlet removes an ACL configuration. - - IPersistentVM + String - - EndpointName + + KeyType - Specifies the name of the endpoint from which this cmdlet removes the ACL configuration. + Specifies which key to regenerate. Supported values are "Primary" and "Secondary". String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - VM + + StorageAccountName - Specifies the virtual machine from which this cmdlet removes an ACL configuration. + Specifies the name of the Microsoft Azure storage account to regenerate a key for. - IPersistentVM + String - IPersistentVM + String - none + + @@ -19866,435 +17753,462 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - - - - + StorageServiceKeys + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove an ACL configuration + -------------------------- Example 1 -------------------------- + + + + + PS C:\> New-AzureStorageKey –KeyType "Primary" –StorageAccountName "mystore1" + + This command regenerate the primary storage key for the "mystore1" storage account. + + + + + + + + + + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Remove-AzureAclConfig -EndpointName "Web" | Update-AzureVM - + PS C:\> $myStoreKey = New-AzureStorageKey –KeyType "Secondary" –StorageAccountName "mystore1" - This command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the current cmdlet by using the pipeline operator. That cmdlet removes the ACL configuration for the endpoint named Web. The command passes the result to the Update-AzureVM cmdlet, which updates the virtual machine. - - + This command regenerate the secondary storage key for the "mystore1" storage account and stores the updated storage account key information in $myStoreKey. - + + - - Get-AzureAclConfig - - - - Get-AzureVM - - - - New-AzureAclConfig - - - - Set-AzureAclConfig - - - - Update-AzureVM - - - + + - Remove-AzureAffinityGroup + New-AzureVM - Deletes an affinity group in a subscription. + Creates a new Microsoft Azure virtual machine. - Remove - AzureAffinityGroup + New + AzureVM - The Remove-AzureAffinityGroup cmdlet deletes an Azure affinity group in the current subscription. You cannot delete an affinity group that has any members. You must first delete all the members of an affinity group. + + The New-AzureVM cmdlet adds a new virtual machine to an existing Microsoft Azure service, or creates a new virtual machine and service in the current subscription if either the -Location or -AffinityGroup is specified. - Remove-AzureAffinityGroup - - Name + New-AzureVM + + ServiceName - Specifies the name of the affinity group that this cmdlet deletes. + Specifies the new or existing service name. + + If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. + If the service exists, the -Location or -AffinityGroup parameter is not needed. String - - Profile + + DeploymentLabel + + Specifies a label for the deployment + + String + + + DeploymentName + + Specifies a deployment name. If not specified, the service name will be used as the deployment name. + + String + + + VNetName + + Specifies the virtual network name where the new virtual machine will be deployed. + + String + + + DnsSettings + + Specifies a DNS Server object that defines the DNS settings for the new deployment. + + DnsServer[] + + + InternalLoadBalancerConfig + + Not Specified + + InternalLoadBalancerConfig + + + VMs + + A list of virtual machine objects to create. + + PersistentVM[] + + + WaitForBoot + + Waits for VM to reach "ReadyRole" state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + + SwitchParameter + + + ReservedIPName + + Reserved IP Name. + + String + + + + New-AzureVM + + ServiceName + + Specifies the new or existing service name. + + If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. + If the service exists, the -Location or -AffinityGroup parameter is not needed. + + String + + + Location + + Specifies the location where the new service will be hosted. This parameter should not be used if you are using a service that already exists. + + String + + + AffinityGroup + + Specifies the Microsoft Azure affinity group the cloud service will reside in. Only valid when creating a new cloud service. + + String + + + ServiceLabel + + Specifies a label for the new service. + + String + + + ReverseDnsFqdn + + + + + String + + + ServiceDescription + + Specifies a description for the new service. + + String + + + DeploymentLabel + + Specifies a label for the deployment + + String + + + DeploymentName + + Specifies a deployment name. If not specified, the service name will be used as the deployment name. + + String + + + VNetName + + Specifies the virtual network name where the new virtual machine will be deployed. + + String + + + DnsSettings + + Specifies a DNS Server object that defines the DNS settings for the new deployment. + + DnsServer[] + + + InternalLoadBalancerConfig + + Not Specified + + InternalLoadBalancerConfig + + + VMs + + A list of virtual machine objects to create. + + PersistentVM[] + + + WaitForBoot + + Waits for VM to reach "ReadyRole" state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + + SwitchParameter + + + ReservedIPName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Reserved IP Name. - AzureProfile + String - - Name + + ServiceName - Specifies the name of the affinity group that this cmdlet deletes. + Specifies the new or existing service name. + + If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. + If the service exists, the -Location or -AffinityGroup parameter is not needed. String String - none + + - - Profile + + DeploymentLabel - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a label for the deployment - AzureProfile + String - AzureProfile + String - none + + - - - + + DeploymentName + + Specifies a deployment name. If not specified, the service name will be used as the deployment name. + + String - - - - - - - + String + + + + + + VNetName - - + Specifies the virtual network name where the new virtual machine will be deployed. - - - - + String - - - - - - - + String + + + + + + DnsSettings - - + Specifies a DNS Server object that defines the DNS settings for the new deployment. - - - - - - - Example 1: Remove an affinity group - - - - - PS C:\>Remove-AzureAffinityGroup -Name "South01" - - - This command deletes the South01 affinity group in the current subscription. - - - - - - - - - - - - - Get-AzureAffinityGroup - - - - New-AzureAffinityGroup - - - - Set-AzureAffinityGroup - - - - - - - Remove-AzureAvailabilitySet - - Removes an availability set from an Azure virtual machine. - - - - - Remove - AzureAvailabilitySet - - - - The Remove-AzureAvailabilitySet cmdlet removes an availability set from an Azure virtual machine. - - - - Remove-AzureAvailabilitySet - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the virtual machine from which this cmdlet removes an availability set. - - IPersistentVM - - - - - - Profile + DnsServer[] + + DnsServer[] + + + + + + + InternalLoadBalancerConfig - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + InternalLoadBalancerConfig - AzureProfile + InternalLoadBalancerConfig - none + + - - VM + + VMs - Specifies the virtual machine from which this cmdlet removes an availability set. + A list of virtual machine objects to create. - IPersistentVM + PersistentVM[] - IPersistentVM + PersistentVM[] - none + + - - - + + WaitForBoot + + Waits for VM to reach "ReadyRole" state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + + SwitchParameter - - - - - - - + SwitchParameter + + + + + + ReservedIPName - - + Reserved IP Name. - - - - + String - - - - - - - + String + + + + + + Location - - + Specifies the location where the new service will be hosted. This parameter should not be used if you are using a service that already exists. - - - - - - - 1: - - - - - - - - - - - - - - - - - - - - Set-AzureAvailabilitySet - - - - - - - Remove-AzureCertificate - - Removes a certificate from an Azure service. - - - - - Remove - AzureCertificate - - - - The Remove-AzureCertificate cmdlet removes a certificate from an Azure service. - - - - Remove-AzureCertificate - - ServiceName - - Specifies the name of the Azure service from which this cmdlet removes a certificate. - - String - - - ThumbprintAlgorithm - - Specifies the algorithm that is used to create the certificate thumbprint. - - String - - - Thumbprint - - Specifies the thumbprint of the certificate that this cmdlet removes. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Profile + String + + String + + + + + + + AffinityGroup - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the Microsoft Azure affinity group the cloud service will reside in. Only valid when creating a new cloud service. - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + ServiceLabel - Specifies the name of the Azure service from which this cmdlet removes a certificate. + Specifies a label for the new service. String String - none + + - - Thumbprint + + ReverseDnsFqdn - Specifies the thumbprint of the certificate that this cmdlet removes. + + String String - none + + - - ThumbprintAlgorithm + + ServiceDescription - Specifies the algorithm that is used to create the certificate thumbprint. + Specifies a description for the new service. String String - none + + @@ -20302,221 +18216,423 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - ManagementOperationContext - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a certificate from a service + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> New-AzureVMConfig -Name "MyNewVM" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName ` + | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername PsTestAdmin` + | New-AzureVM -ServiceName "MySvc2" -AffinityGroup "Contoso" -WaitForBoot + + Description + + + + -----------This example creates a new Microsoft Azure virtual machine, "MyNewVM", and a new Microsoft Azure service, "MySvc2". Optional WaitForBoot flag blocks New-AzureVM till the VM boots. + Description + + + + + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Remove-AzureCertificate -ServiceName "ContosoService" -Thumbprint '5383CE0343CB6563281CA97C1D4D712209CFFA97' - + PS C:\> New-AzureVMConfig -Name "MySUSEVM2" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[7].ImageName ` + | Add-AzureProvisioningConfig -Linux -LinuxUser $lxUser -Password $adminPassword -AdminUsername PsTestAdmin` + | New-AzureVM - This command removes the certificate object that has the specified thumbprint from the cloud service. - - + Description - + -----------This example adds a new Linux virtual machine to an existing service. - Example 2: Remove all certificates from a service + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Get-AzureCertificate -ServiceName "ContosoService" | Remove-AzureCertificate - + PS C:\> $Images = Get-AzureVMImage + $myImage = $Images[4] + $myVM = New-AzureVMConfig -Name "MyVM2" -InstanceSize ExtraSmall -ImageName $myImage.ImageName ` + | Add-AzureProvisioningConfig -Windows -Password $adminPassword ` + | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "DataDisk50" -LUN 0 - This command gets all the certificates from the service named ContosoService by using the Get-AzureCertificate cmdlet. The command passes each certificate to the current cmdlet by using the pipeline operator. That cmdlet removes each certificate from the cloud service. - - + Description - + -----------This example builds a new virtual machine configuration and then creates the virtual machine with New-AzureVM. - Example 3: Remove all certificates from a service that use a specific thumbprint algorithm + -------------------------- EXAMPLE 4 -------------------------- - PS C:\>Get-AzureCertificate -ServiceName "ContosoService" -ThumbprintAlgorithm "sha1" | Remove-AzureCertificate - + PS C:\> New-AzureVMConfig -Name "MyNewVM" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName ` + | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername PsTestAdmin` + | New-AzureVM -ServiceName "MySvc2" -AffinityGroup "Contoso" -ReservedIPName $ipName - This command gets all the certificates from the service named ContosoService that use the sha1 thumbprint algorithm. The command passes each certificate to the current cmdlet, which removes each certificate. - - + Description - + -----------This example creates a new Microsoft Azure virtual machine, "MyNewVM", and a new Microsoft Azure service, "MySvc2", using a reserved IP on the VM deployment - Add-AzureCertificate - - - - Get-AzureCertificate - - - - New-AzureCertificateSetting - + Unknown + + - + + - Remove-AzureDataDisk + + New-AzureVMConfig + - Removes a data disk from an Azure virtual machine. + Creates a new Windows Azure virtual machine configuration object. - + + - Remove - AzureDataDisk - + New + AzureVMConfig + + - The Remove-AzureDataDisk cmdlet removes a data disk from an Azure virtual machine. By default, this cmdlet does not remove the data disk blob from the storage account. + The New-AzureVMConfig cmdlet creates a new virtual machine configuration object. This object can then be used to perform a new deployment, as well as to add a new virtual machine to an existing deployment. + - Remove-AzureDataDisk - - LUN + New-AzureVMConfig + + Name - Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. + Specifies the name of the virtual machine. - Int32 + string - - DeleteVHD + + InstanceSize - Indicates that this cmdlet removes the data disk and the virtual hard disk (VHD) from blob storage. + Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. + string - - Profile + + HostCaching - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the host caching mode for the operating system disk. Supported values are: "ReadOnly" and "ReadWrite". - AzureProfile + string - - VM + + AvailabilitySetName - Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the name of the availability set. - IPersistentVM + string - - - - - DeleteVHD + + Label + + Specifies a label to assign to the virtual machine. + + string + + + DiskName + + Specifies a name for the operating system disk. + + string + + + MediaLocation + + Specifies the Windows Azure storage location for the new virtual machine disk. + + string + + + PipelineVariable + + Not Specified + + string + + + + New-AzureVMConfig + + Name + + Specifies the name of the virtual machine. + + string + + + InstanceSize + + Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. + + string + + + HostCaching + + Specifies the host caching mode for the operating system disk. Supported values are: "ReadOnly" and "ReadWrite". + + string + + + AvailabilitySetName + + Specifies the name of the availability set. + + string + + + Label + + Specifies a label to assign to the virtual machine. + + string + + + ImageName + + Specifies the name of the virtual machine image to use for the operating system disk. + + string + + + DiskLabel + + Specifies a label for the operating system disk. + + string + + + MediaLocation + + Specifies the Windows Azure storage location for the new virtual machine disk. + + string + + + PipelineVariable + + Not Specified + + string + + + + + + + AvailabilitySetName - Indicates that this cmdlet removes the data disk and the virtual hard disk (VHD) from blob storage. + Specifies the name of the availability set. - SwitchParameter + string - SwitchParameter + string - none + + - - LUN + + DiskLabel - Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. + Specifies a label for the operating system disk. - Int32 + string - Int32 + string - none + + - - Profile + + DiskName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a name for the operating system disk. - AzureProfile + string - AzureProfile + string - none + + - - VM + + HostCaching - Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the host caching mode for the operating system disk. Supported values are: "ReadOnly" and "ReadWrite". - IPersistentVM + string - IPersistentVM + string - none + + + + + ImageName + + Specifies the name of the virtual machine image to use for the operating system disk. + + string + + string + + + + + + + InstanceSize + + Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. + + string + + string + + + + + + + Label + + Specifies a label to assign to the virtual machine. + + string + + string + + + + + + + MediaLocation + + Specifies the Windows Azure storage location for the new virtual machine disk. + + string + + string + + + + + + + Name + + Specifies the name of the virtual machine. + + string + + string + + + + + + + PipelineVariable + + Not Specified + + string + + string + + + + + - - - - - + + + @@ -20526,377 +18642,280 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Remove a data disk + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Remove-AzureDataDisk -LUN 0 - + + - This command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet removes the data disk that has the LUN 0. - - + Description + ----------- + + Description + + + + + + + + + - + + - Example 2: Remove a data disk and the virtual hard disk file + + -------------------------- EXAMPLE 2 -------------------------- + - - + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Remove-AzureDataDisk -LUN 0 -DeleteVHD | Update-AzureVM - + + - This command gets the virtual machine named VirtualMachine07 in the service named ContosoService. The command passes the virtual machine to the current cmdlet. The current cmdlet removes the data disk that has the LUN 0. The command includes the DeleteVHD parameter. Therefore, it also deletes the underlying virtual hard disk. The command updates the virtual machine to reflect your changes by using the Update-AzureVM cmdlet. - - + Description + ----------- + + Description + + + + + + + + + - + + + - Add-AzureDataDisk - - - - Get-AzureDataDisk - - - - Get-AzureVM - - - - Set-AzureDataDisk - - - - Update-AzureVM + + - + + - Remove-AzureDeployment + New-AzureVMImageDiskConfigSet - Deletes a deployment of a cloud service. + This cmdlet returns a new object for disk configuration set, which would be passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the VM Image. - Remove - AzureDeployment + New + AzureVMImageDiskConfigSet - The Remove-AzureDeployment cmdlet deletes a deployment of an Azure cloud service. To delete a deployment, first suspend it. + + This cmdlet returns a new object for disk configuration set, which would be passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the VM Image. - Remove-AzureDeployment - - ServiceName - - Specifies the name of the service for which this cmdlet deletes a deployment. - - String - - - Slot - - Specifies the deployment environment from which this cmdlet deletes the deployment. Valid values are: Staging and Production. The default value is Production. - - - Staging - Production - - - - DeleteVHD - - Specifies that this cmdlet removes the deployment and the virtual hard disks (VHDs) from blob storage. - - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - + New-AzureVMImageDiskConfigSet - - DeleteVHD - - Specifies that this cmdlet removes the deployment and the virtual hard disks (VHDs) from blob storage. - - SwitchParameter - - SwitchParameter - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter + + + - SwitchParameter + + + + + + - none - - - Profile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureProfile + + + + - AzureProfile + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + + + - none - - - ServiceName - Specifies the name of the service for which this cmdlet deletes a deployment. - - String - - String - - - none - - - Slot - - Specifies the deployment environment from which this cmdlet deletes the deployment. Valid values are: Staging and Production. The default value is Production. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - ManagementOperationContext - - - - - - - - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a deployment - - - - - PS C:\>Remove-AzureDeployment -ServiceName "ContosoService" - - - This command removes the deployment of the Azure service named ContosoService. Because this command does not specify a slot, it removes the service from the production environment. - - - - - - - - - - - Example 2: Remove a deployment and virtual hard disks + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Remove-AzureDeployment -ServiceName "ContosoService" -DeleteVHD - + PS C:\> $s = New-AzureDiskConfigSet + # returns DiskConfigSet object; + + $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite + # returns DiskConfigSet object; + + $s = Set-AzureDataDiskConfig -DiskConfig $s -Name 'test' -HostCaching 'ReadWrite' -LUN 0 + # returns DiskConfigSet object + + # Final step - Update the VM Image + + Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1 -DiskConfigSet $s; + + # OR + + $s | Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1; - This command removes the deployment of the service named ContosoService from the production environment. The command also removes the underlying virtual hard disks. - - + Description - + ----------- - Get-AzureDeployment - - - - Get-AzureDeploymentEvent - - - - Move-AzureDeployment - - - - New-AzureDeployment - - - - Set-AzureDeployment - + Unknown + + - + + - Remove-AzureDisk + New-AzureVNetGateway - Removes a disk from the Azure disk repository. + Creates a new Microsoft Azure Virtual Network Gateway to the specified Microsoft Azure virtual network. - Remove - AzureDisk + New + AzureVNetGateway - The Remove-AzureDisk cmdlet removes a disk from the Azure disk repository in the current subscription. By default, this cmdlet does not delete the virtual hard disk (VHD) file from blob storage. To delete the VHD, specify the DeleteVHD parameter. + + The New-AzureVNetGateway cmdlet creates a new virtual network gateway for the specified Microsoft Azure virtual network. A virtual network gateway is a VPN endpoint for connecting to a Microsoft Azure virtual network.After the virtual network gateway has been created, you can get the shared key to allow you to configure the VPN device at the local network site to authenticate to the gateway with the Get-AzureVNetGatewayKey cmdlet. - Remove-AzureDisk - - DiskName + New-AzureVNetGateway + + VNetName - Specifies the name of the data disk in the disk repository that this cmdlet removes. + Specifies the name of the virtual network for which the gateway is created. String - - DeleteVHD - - Indicates that this cmdlet removes the VHD from blob storage. - - - - Profile + + GatewayType - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + GatewayType - - DeleteVHD - - Indicates that this cmdlet removes the VHD from blob storage. - - SwitchParameter - - SwitchParameter - - - none - - - DiskName + + VNetName - Specifies the name of the data disk in the disk repository that this cmdlet removes. + Specifies the name of the virtual network for which the gateway is created. String String - none + + - - Profile + + GatewayType - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + GatewayType - AzureProfile + GatewayType - none + + @@ -20904,15 +18923,13 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - @@ -20921,186 +18938,386 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a disk - - - - - PS C:\>Remove-AzureDisk -DiskName "ContosoDataDisk" - - - This command removes the disk named ContosoDataDisk disk from the disk repository. The command does not delete the VHD. - - - - - - - - - - - Example 2: Remove and delete a disk + -------------------------- Example 1 -------------------------- - PS C:\>Remove-AzureDisk -DiskName "ContosoDataDisk" -DeleteVHD - + PS C:\> C:\PS>New-AzureVNetGateway –VNetName "MyProdNet" - This command removes the disk named ContosoDataDisk disk from the disk repository. This command specifies the DeleteVHD parameter. Therefore, the command deletes the VHD from Azure Storage. - - + This command creates a new VPN endpoint for the "MyProdNet" network. - + + - - Add-AzureDisk - - - - Get-AzureDisk - - - - Update-AzureDisk - - - + + + - Remove-AzureDns + + Publish-AzureVMDscConfiguration + - Removes a DNS server from an Azure service. + Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureVMDscExtension cmdlet. - + + - Remove - AzureDns - + Publish + AzureVMDscConfiguration + + - The Remove-AzureDns cmdlet removes a DNS server from an Azure service. + Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureVMDscExtension cmdlet. + - Remove-AzureDns - - Name + Publish-AzureVMDscConfiguration + + ConfigurationPath - Specifies the name of the DNS server that this cmdlet removes. + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) containing a set of PowerShell modules, each module in a separate directory. - String + string - - ServiceName + + AdditionalPath - Specifies the name of the service from which this cmdlet removes a DNS server. + Path to a file or a directory to include in the configuration archive - String + string[] + + + ConfigurationArchivePath + + Path to a local ZIP file to write the configuration archive to. + +When this parameter is used, the configuration script is not uploaded to Azure blob storage. + + string + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration + + string - + Force - Forces the command to run without asking for user confirmation. + By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. - - Profile + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive + + + + Confirm + + Prompts you for confirmation before executing the command. + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + + + PassThru + + Outputs the blob url for configuration archive path + + + + + Publish-ASMVMDscConfiguration + + ConfigurationPath + + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) containing a set of PowerShell modules, each module in a separate directory. + + string + + + AdditionalPath + + Path to a file or a directory to include in the configuration archive + + string[] + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration + + string + + + ContainerName + + Name of the Azure Storage Container the configuration is uploaded to. + + string + + + Force + + By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive + + + + StorageContext + + The Azure Storage Context that provides the security settings used to upload the configuration script to the container specified by ContainerName. This context should provide write access to the container. + + + AzureStorageContext + + + StorageEndpointSuffix + + Suffix for the storage end point, e.g. core.windows.net + + string + + + Confirm + + Prompts you for confirmation before executing the command. + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + + + PassThru - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Outputs the blob url for configuration archive path - AzureProfile + - - Force + + AdditionalPath - Forces the command to run without asking for user confirmation. + Path to a file or a directory to include in the configuration archive - SwitchParameter + string[] - SwitchParameter + string[] - none + + - - Name + + ConfigurationArchivePath - Specifies the name of the DNS server that this cmdlet removes. + Path to a local ZIP file to write the configuration archive to. + +When this parameter is used, the configuration script is not uploaded to Azure blob storage. - String + string - String + string - none + + - - Profile + + ConfigurationDataPath - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Path to a .psd1 file that specifies the data for the Configuration - AzureProfile + string - AzureProfile + string - none + + - - ServiceName + + ConfigurationPath - Specifies the name of the service from which this cmdlet removes a DNS server. + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) containing a set of PowerShell modules, each module in a separate directory. - String + string - String + string - none + + + + + ContainerName + + Name of the Azure Storage Container the configuration is uploaded to. + + string + + string + + + windows-powershell-dsc + + + Force + + By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + SwitchParameter + + SwitchParameter + + + + + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive. + + SwitchParameter + + SwitchParameter + + + + + + + StorageContext + + The Azure Storage Context that provides the security settings used to upload the configuration script to the container specified by ContainerName. This context should provide write access to the container. + + + AzureStorageContext + + AzureStorageContext + + + + + + + StorageEndpointSuffix + + Suffix for the storage end point, e.g. core.windows.net + + string + + string + + + + + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + SwitchParameter + + + + + + PassThru + + Outputs the blob url for configuration archive path + + SwitchParameter + + SwitchParameter + + + + + - - - - - + + + @@ -21108,139 +19325,258 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - - - - + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Remove a DNS server from a service + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + +Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 + + Description + ----------- + This command creates a ZIP package for the given script and any dependent resource modules and uploads it to Azure Storage. + +By default the command does no produce any output; use the -Verbose option to display an indication of the operations performed by the command + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + +Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 -ConfigurationArchivePath .\MyConfiguration.ps1.zip + + + Description + ----------- + This command creates a ZIP package for the given script and any dependent resource modules and stores it in the local file .\MyConfiguration.ps1.zip. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 3 -------------------------- + + + C:\PS> + + +Publish-AzureVMDscConfiguration -ConfigurationPath 'C:\Sample.ps1 -SkipDependencyDetection + + Description + ----------- + Use -SkipDependencyDetection to skip adding modules to the configuration archive + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 4 -------------------------- + + C:\PS> + + +Publish-AzureVMDscConfiguration -ConfigurationPath C:\Sample.ps1 -ConfigurationDataPath 'C:\SampleData.psd1' + + Description + ----------- + Adding configuration data to the archive + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 5 -------------------------- + + + C:\PS> - PS C:\>Remove-AzureDns -ServiceName "ContosoService" -Name "Dns07" - + +Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPath @("C:\ContentDir1", "C:\File.txt") -ConfigurationDataPath "C:\SampleData.psd1" - This command removes the DNS server named Dns07 from ContosoService. - - + Description + ----------- + Adding additional content (files or directories) used by the configuration + + + + + + + + - + + + - Add-AzureDns - - - - Get-AzureDns - - - - New-AzureDns - - - - Set-AzureDns + + - + + - Remove-AzureEndpoint + Remove-AzureAclConfig - Deletes an endpoint from an Azure virtual machine. + Remove the ACL configuration object from an existing Azure VM configuration. Remove - AzureEndpoint + AzureAclConfig - The Remove-AzureEndpoint cmdlet deletes an endpoint from an Azure virtual machine object. + + The Remove-AzureAclConfig cmdlet removes the ACL configuration object from an existing Azure VM configuration. - Remove-AzureEndpoint - - Name + Remove-AzureAclConfig + + EndpointName - Specifies the name of the endpoint that this cmdlet deletes from the virtual machine. + Specifies the name of the endpoint. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM - Specifies the virtual machine from which this cmdlet deletes an endpoint. + Specifies the virtual machine object for which the endpoint will be created. IPersistentVM - - Name + + EndpointName - Specifies the name of the endpoint that this cmdlet deletes from the virtual machine. + Specifies the name of the endpoint. String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - + VM - Specifies the virtual machine from which this cmdlet deletes an endpoint. + Specifies the virtual machine object for which the endpoint will be created. IPersistentVM IPersistentVM - none + + @@ -21248,15 +19584,13 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - @@ -21265,123 +19599,109 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove an endpoint + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirutalMachine01" | Remove-AzureEndpoint -Name "HttpIn" | Update-AzureVM - + PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "myservice" -Name "MyVM" | Remove-AzureAclConfig -EndpointName "Web" | Update-AzureVM - This command retrieves the configuration of a virtual machine named VirtualMachine01 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet removes an endpoint named HttpIn. The command passes the virtual machine object to the Update-AzureVM cmdlet, which implements your changes. - - + This command will remove the ACL configuration from "MyVM". - + + - Add-AzureEndpoint - - - - Get-AzureEndpoint - - - - Get-AzureVM - + New-AzureAclConfig + + - Set-AzureEndpoint - + Get-AzureAclConfig + + - Update-AzureVM - + Set-AzureAclConfig + + - + + - Remove-AzureInternalLoadBalancer + Remove-AzureAffinityGroup - Removes an internal load balancer configuration. + Deletes an affinity group in the specified subscription. Remove - AzureInternalLoadBalancer + AzureAffinityGroup - The Remove-AzureInternalLoadBalancer cmdlet removes the internal load balancer configuration from an Azure service. If any endpoint currently refers to the internal load balancer, this cmdlet cannot remove the configuration. + + The Remove-AzureAffinityGroup cmdlet deletes an affinity group in the subscription. You can't delete an affinity group that has any members. You must first delete all the members of an affinity group and then use Remove-AzureAffinityGroup to delete the affinity group. - Remove-AzureInternalLoadBalancer - - ServiceName + Remove-AzureAffinityGroup + + Name - Specifies the name of the service from which this cmdlet removes an internal load balancer. + Specifies the name of the affinity group to delete. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ServiceName + + Name - Specifies the name of the service from which this cmdlet removes an internal load balancer. + Specifies the name of the affinity group to delete. String String - none + + @@ -21389,79 +19709,85 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove an internal load balancer configuration + -------------------------- Example 1 -------------------------- - PS C:\>Remove-AzureInternalLoadBalancer -ServiceName "ContosoService" - + PS C:\> C:\PS>Remove-AzureAffinityGroup -name "South1" - This command removes the internal load balancer configuration for the service named ContosoService. - - + This command deletes the 'South1' affinity group in the current subscription. - + + - Add-AzureInternalLoadBalancer - - - - Get-AzureInternalLoadBalancer - + Get-AzureAffinityGroup + + - New-AzureInternalLoadBalancerConfig - + New-AzureAffinityGroup + + - Set-AzureInternalLoadBalancer - + Set-AzureAffinityGroup + + - + + - Remove-AzureNetworkInterfaceConfig + Remove-AzureAvailabilitySet @@ -21470,67 +19796,41 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta Remove - AzureNetworkInterfaceConfig + AzureAvailabilitySet + + + - Remove-AzureNetworkInterfaceConfig - - Name - - - String - - - Profile - - - AzureProfile - - + Remove-AzureAvailabilitySet + VM + + IPersistentVM - - Name - - - String - - String - - - none - - - Profile - - - AzureProfile - - AzureProfile - - - none - - + VM + + IPersistentVM IPersistentVM - none + + @@ -21538,10 +19838,10 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + @@ -21553,127 +19853,118 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - 1: - - - - - PS C:\> - - - - - - - - - - - - - - - Add-AzureNetworkInterfaceConfig - - - - Get-AzureNetworkInterfaceConfig - - - - Set-AzureNetworkInterfaceConfig - - - + + - Remove-AzureNetworkSecurityGroupConfig + Remove-AzureCertificate - - + Deletes the specified certificate from the Microsoft Azure service. Remove - AzureNetworkSecurityGroupConfig + AzureCertificate + + + - Remove-AzureNetworkSecurityGroupConfig - - NetworkSecurityGroupName + Remove-AzureCertificate + + ServiceName + Specifies the Microsoft Azure service with which the certificate is associated. - String + String - - Profile + + ThumbprintAlgorithm + Specifies the algorithm used to create the certificate thumbprint. - AzureProfile + String - - VM + + Thumbprint + Specifies the thumbprint that identifies the certificate. - IPersistentVM + String - - NetworkSecurityGroupName + + ServiceName + Specifies the Microsoft Azure service with which the certificate is associated. - String + String String - none + + - - Profile + + ThumbprintAlgorithm + Specifies the algorithm used to create the certificate thumbprint. - AzureProfile + String - AzureProfile + String - none + + - - VM + + Thumbprint + Specifies the thumbprint that identifies the certificate. - IPersistentVM + String - IPersistentVM + String - none + + @@ -21681,10 +19972,10 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + @@ -21694,127 +19985,180 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - - - + ManagementOperationContext + - + + - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - 1: + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Remove-AzureCertificate -ServiceName "MyService" -Thumbprint '5383CE0343CB6563281CA97C1B5D712209CFFA97' + + This command removes the certificate object identified by the specified thumbprint from the specified cloud service. + + + + + + + + + + -------------------------- Example 2 -------------------------- - PS C:\> - + PS C:\> C:\PS>Get-Certificate -ServiceName "MyService" | Remove-AzureCertificate + This command removes all certificates from the specified cloud service. + + + + + + + + + + -------------------------- Example 3 -------------------------- + - - + + PS C:\> C:\PS>Get-Certificate –ServiceName "MyService" -ThumbprintAlgorithm "sha1" ` + | Remove-AzureCertificate + + This command removes all certificates that use the "sha1" thumbprint algorithm from the specified cloud service. - + + - Set-AzureNetworkSecurityGroupConfig - + Add-AzureCertificate + + + + + Get-AzureCertificate + + - + + - Remove-AzurePublicIP + Remove-AzureDataDisk - Removes Public IP configuration from an Azure virtual machine. + Removes a data disk from a virtual machine object. Remove - AzurePublicIP + AzureDataDisk - The Remove-AzurePublicIP cmdlet removes Public IP configuration from an Azure virtual machine. + + The Remove-AzureDataDisk cmdlet detaches a data disk from a virtual machine. The data disk blob is not removed from the storage account. - Remove-AzurePublicIP - - PublicIPName + Remove-AzureDataDisk + + LUN - Specifies the Public IP name. + Specifies the slot where the data disk to be detached is currently mounted. - String + Int32 - - Profile + + DeleteVHD - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specify to remove the data disk and the underlying disk blob. - AzureProfile + SwitchParameter - + VM - Specifies the virtual machine from which this cmdlet removes Public IP configuration. + Specifies the slot where the data disk to be detached is currently mounted. IPersistentVM - - Profile + + LUN - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the slot where the data disk to be detached is currently mounted. - AzureProfile + Int32 - AzureProfile + Int32 - none + + - - PublicIPName + + DeleteVHD - Specifies the Public IP name. + Specify to remove the data disk and the underlying disk blob. - String + SwitchParameter - String + SwitchParameter - none + + - + VM - Specifies the virtual machine from which this cmdlet removes Public IP configuration. + Specifies the slot where the data disk to be detached is currently mounted. IPersistentVM IPersistentVM - none + + @@ -21822,215 +20166,198 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM - - + + + - + + - - - - - - - Example 1: Remove Public IP configuration + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Get-AzureVM -ServiceName MyDemoService01 -Name MyDemoVM01 | Remove-AzureDataDisk -LUN 0 + + Description + + + + -----------This command gets the virtual machine object with the name "MyDemoVM01" running on the "MyDemoService01" cloud service, and then detaches the data disk at LUN 0 from virtual machine object. + + + + + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Remove-AzurePublicIP | Update-AzureVM - + PS C:\> Get-AzureVM -ServiceName MyDemoService01 -Name MyDemoVM01 | Remove-AzureDataDisk -LUN 0 -DeleteVHD | Update-AzureVM + +This command gets the virtual machine object with the name "MyDemoVM01" running on the "MyDemoService01" cloud service, then detaches the data disk at LUN 0 from virtual machine object. It also updates the VM in the cloud and then delete the underlying VHD(s). - This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet removes Public IP configuration from the virtual machine. The command passes the virtual machine to the Update-AzureVM cmdlet, which implements your changes. - - + Description - + ----------- - Get-AzurePublicIP - - - - Get-AzureVM - - - - Set-AzurePublicIP - + Add-AzureDataDisk + + - Update-AzureVM - + Set-AzureDataDisk + + - + + - Remove-AzureReservedIPAssociation + Remove-AzureDeployment - Removes the association from the reserved IP address to the VM or cloud service. + Deletes the specified deployment of a Microsoft Azure service. Remove - AzureReservedIPAssociation + AzureDeployment - The Remove-AzureReservedIPAssociation cmdlet disassociates a reserved IP address from a virtual machine (VM) or Cloud Service. When the operation completes, the reserved IP address is free and the VM/VIP gets a dynamic public IP Address from the Azure Inventory. + + The Remove-AzureDeployment cmdlet deletes the specified deployment of a Microsoft Azure cloud service. The deployment should be in the suspended state. - Remove-AzureReservedIPAssociation - - ReservedIPName - - Specifies the name of the reserved IP address. - - String - - + Remove-AzureDeployment + ServiceName - Specifies the name of the service. + Specifies the name of the service whose deployment will be deleted. String - - VirtualIPName - - Specifies a virtual IP address from which to remove the association with a service or VM. - - String - - + Slot - Specifies the deployment environment. The acceptable values for this parameter are: Production, Staging. + Specifies the deployment environment from which the deployment of the specified Microsoft Azure service will be deleted. Choices are Staging or Production. If no slot is specified, the production environment is assumed. - - Staging - Production - + String - - Force + + DeleteVHD - Forces the command to run without asking for user confirmation. - Use this flag to bypass warning messages when removing the reserved IP association. + Specify to remove the deployment and the underlying disk blob(s). + SwitchParameter - - Profile + + Force - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + SwitchParameter - - Force - - Forces the command to run without asking for user confirmation. - Use this flag to bypass warning messages when removing the reserved IP association. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ReservedIPName + + ServiceName - Specifies the name of the reserved IP address. + Specifies the name of the service whose deployment will be deleted. String String - none + + - - ServiceName + + Slot - Specifies the name of the service. + Specifies the deployment environment from which the deployment of the specified Microsoft Azure service will be deleted. Choices are Staging or Production. If no slot is specified, the production environment is assumed. String String - none + + - - Slot + + DeleteVHD - Specifies the deployment environment. The acceptable values for this parameter are: Production, Staging. + Specify to remove the deployment and the underlying disk blob(s). - String + SwitchParameter - String + SwitchParameter - none + + - - VirtualIPName + + Force - Specifies a virtual IP address from which to remove the association with a service or VM. + + - String + SwitchParameter - String + SwitchParameter - none + + @@ -22038,141 +20365,166 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + ManagementOperationContext + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a reserved IP association + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Remove-AzureDeployment -ServiceName "myservice" + + This command removes the deployment of the Microsoft Azure service "myservice" from the production environment. + + + + + + + + + + -------------------------- Example 2 -------------------------- - PS C:\>Remove-AzureReservedIPAssociation -ReservedIPName "ResIp14" -ServiceName "PipTestWestEurope" - + PS C:\> C:\PS>Remove-AzureDeployment -ServiceName "myservice" -DeleteVHD - This command disassociates the reserved IP address named ResIp14 from the service named PipTestWestEurope. PipTestWestEurope will be assigned a new dynamic VIP. - - + This command removes the deployment of the Microsoft Azure service "myservice" from the production environment, and the underlying VHD(s). - + + - Set-AzureReservedIPAssociation - + Get-AzureDeployment + + + + + Move-AzureDeployment + + + + + New-AzureDeployment + + + + + Set-AzureDeployment + + - + + - Remove-AzureReservedIP + Remove-AzureDisk - Removes a reserved IP address by its name. + Removes a disk from the Microsoft Azure disk repository. Remove - AzureReservedIP + AzureDisk - The Remove-AzureReservedIP cmdlet removes a reserved IP address by its name. + + The Remove-AzureDisk cmdlet removes a disk from the Microsoft Azure disk repository in the current subscription. + By default, this does not delete the associated physical VHD file from the blob storage location. To delete the associated physical VHD, specify the DeleteVHD parameter. - Remove-AzureReservedIP - - ReservedIPName + Remove-AzureDisk + + DiskName - Specifies the name of the reserved IP address. + Name of the data disk in the disk repository to remove. String - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile + + DeleteVHD - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Removes the underlying VHD from blob storage. - AzureProfile + SwitchParameter - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Profile + + DiskName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Name of the data disk in the disk repository to remove. - AzureProfile + String - AzureProfile + String - none + + - - ReservedIPName + + DeleteVHD - Specifies the name of the reserved IP address. + Removes the underlying VHD from blob storage. - String + SwitchParameter - String + SwitchParameter - none + + @@ -22180,15 +20532,13 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - @@ -22197,201 +20547,182 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a reserved IP address by its name + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Remove-AzureDisk -DiskName "MyDataDisk" + + This example removes the "MyDataDisk" disk from the disk repository but does not remove the VHD from Microsoft Azure storage. + + + + + + + + + + -------------------------- Example 2 -------------------------- - PS C:\>Remove-AzureReservedIP -ReservedIPName $name - + PS C:\> C:\PS>Remove-AzureDisk -DiskName "MyDataDisk" –DeleteVHD - This command removes a reserved IP address by its name. - - + This example removes the "MyDataDisk" disk from the disk repository and also removes the VHD from Microsoft Azure storage. - + + - Get-AzureReservedIP - + Add-AzureDisk + + - New-AzureReservedIP - + Get-AzureDisk + + - Set-AzureReservedIPAssociation - + Update-AzureDisk + + - + + - Remove-AzureServiceADDomainExtension + Remove-AzureDns - Removes the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. + Removes a DNS server to an existing cloud service. Remove - AzureServiceADDomainExtension + AzureDns - The Remove-AzureServiceADDomainExtension cmdlet removes the cloud service Active Directory (AD) domain extension applied on all roles or named roles at a certain deployment slot. + + The Remove-AzureDns cmdlet removes the specified DNS server from a cloud service. - Remove-AzureServiceADDomainExtension - - ServiceName - - Specifies the name of an Azure service. - - String - - - Slot + Remove-AzureDns + + Name - Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + Specifies the name of the DNS server to be removed - - Production - Staging - + String - - Role + + ServiceName - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified, the AD domain configuration is applied as the default configuration for all roles. + Specifies the name of the cloud service - String[] + String - - Profile + + Force - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile - - - - Remove-AzureServiceADDomainExtension - - ServiceName - - Specifies the name of an Azure service. - - String - - - Slot - - Specifies the environment of the deployment to modify. Valid values are: Production or Staging. - - - Production - Staging - - - - UninstallConfiguration - - Indicates that this cmdlet uninstalls all AD domain configurations from the cloud service. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + SwitchParameter - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - Role + + Name - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified, the AD domain configuration is applied as the default configuration for all roles. + Specifies the name of the DNS server to be removed - String[] + String - String[] + String - none + + - + ServiceName - Specifies the name of an Azure service. + Specifies the name of the cloud service - String + String String - none + + - - Slot + + Force - Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + + - String + SwitchParameter - String + SwitchParameter - none + + - - UninstallConfiguration + + PipelineVariable - Indicates that this cmdlet uninstalls all AD domain configurations from the cloud service. + + - SwitchParameter + string - SwitchParameter + string - none + + @@ -22399,261 +20730,132 @@ PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -Insta - - + - + + - - - - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove an AD domain extension - - - - - PS C:\>Remove-AzureServiceADDomainExtension -ServiceName $Svc - - - This command removes the extension specified by the $Svc variable. - - - - - - - - - - - Example 2: Remove an AD Domain extension for a specified role + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Remove-AzureServiceADDomainExtension -ServiceName $Svc -Role "WebRole1" - + PS C:\> Remove-AzureDns -ServiceName "myservice" -Name "mydns" - This command removes the service extension for the specified role. - - + Description - + -----------This command removes the DNS server "mydns" from the specified cloud service - Get-AzureServiceADDomainExtension - + Unknown + + - + + - Remove-AzureServiceAntimalwareExtension + Remove-AzureEndpoint - Removes the antimalware configuration from a cloud service. + Deletes an endpoint from a Microsoft Azure virtual machine object. Remove - AzureServiceAntimalwareExtension + AzureEndpoint - The Remove-AzureServiceAntimalwareExtension cmdlet removes the antimalware configuration and any associated antimalware monitoring from the Microsoft Antimalware extension associated with a cloud service. + + The Remove-AzureEndpoint cmdlet deletes an endpoint from a specified virtual machine object. - Remove-AzureServiceAntimalwareExtension - - ServiceName - - Specifies the name of the cloud service. - - String - - - Slot - - Specifies a deployment slot. Valid values are: - - --- Production - --- Staging - - -The default value is Production. - - - Production - Staging - - - - Role - - Specifies an array of roles. The default value is all roles. - - String[] - - - EndpointSuffix - - Specifies the storage endpoint suffix. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Remove-AzureServiceAntimalwareExtension - - ServiceName + Remove-AzureEndpoint + + Name - Specifies the name of the cloud service. + Specifies the name of the endpoint to be deleted from the virtual machine. String - - Slot - - Specifies a deployment slot. Valid values are: - - --- Production - --- Staging - - -The default value is Production. - - - Production - Staging - - - - EndpointSuffix - - Specifies the storage endpoint suffix. - - String - - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the virtual machine object from which the endpoint will be deleted. - AzureProfile + IPersistentVM - - EndpointSuffix - - Specifies the storage endpoint suffix. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - Role - - Specifies an array of roles. The default value is all roles. - - String[] - - String[] - - - none - - - ServiceName + + Name - Specifies the name of the cloud service. + Specifies the name of the endpoint to be deleted from the virtual machine. String String - none + + - - Slot + + VM - Specifies a deployment slot. Valid values are: - - --- Production - --- Staging - - -The default value is Production. + Specifies the virtual machine object from which the endpoint will be deleted. - String + IPersistentVM - String + IPersistentVM - none + + @@ -22661,15 +20863,13 @@ The default value is Production. - - + - + + - - @@ -22678,81 +20878,44 @@ The default value is Production. - - + - + + - - - - + + + + - + + - This cmdlet removes only the configuration associated with the specified role. It does not uninstall or remove any already running instances of the Microsoft Antimalware extension from roles. To return these roles to a start state that does not have Microsoft Antimalware running, first remove the configuration by using this cmdlet, and then reimage or redeploy the service. + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - Example 1: Remove the extension - - - - - PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - - This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03. - - - - - - - - - - - Example 2: Remove the extension for the Staging slot - - - - - PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging" - - - This command removes the antimalware extension and monitoring of associated antimalware events from all roles in the staging slot of the service named ContosoService03. - - - - - - - - - - - Example 3: Remove the extension for a specified slot and role + -------------------------- Example 1 -------------------------- - PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Production" -Role "web role" - + PS C:\> Get-AzureVM –ServiceName "MyService" –Name “MyVM” | Remove-AzureEndpoint –Name "HttpIn" | Update-AzureVM - This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03 in the specified slot and role. - - + This command deletes the endpoint "HttpIn" from the "MyVM" virtual machine. - + + @@ -22760,159 +20923,56 @@ The default value is Production. Online Version: - http://go.microsoft.com/fwlink/?LinkID=402841 - - - Set-AzureServiceAntimalwareExtension - + + - + + - Remove-AzureServiceDiagnosticsExtension + Remove-AzureInternalLoadBalancer - Removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + Remove-AzureInternalLoadBalancer [-ServiceName] <string> [<CommonParameters>] Remove - AzureServiceDiagnosticsExtension + AzureInternalLoadBalancer - The Remove-AzureServiceDiagnosticsExtension cmdlet removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + + The Remove-AzureInternalLoadbalancer cmdlet removes the internal load balancer configuration from a deployment, if there are endpoints still referring to the internal load balancer the remove operation will fail - Remove-AzureServiceDiagnosticsExtension - - ServiceName - - Specifies the Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Valid values are Production or Staging. - - - Production - Staging - - - - Role - - Specifies an optional array of roles for which to specify the remote desktop configuration. If you do not specify this parameter, the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Remove-AzureServiceDiagnosticsExtension - + Remove-AzureInternalLoadBalancer + ServiceName - Specifies the Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Valid values are Production or Staging. - - - Production - Staging - - - - UninstallConfiguration - - Indicates that this cmdlet uninstalls all RDP configurations from the cloud service. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - Role - - Specifies an optional array of roles for which to specify the remote desktop configuration. If you do not specify this parameter, the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - none - - + ServiceName - Specifies the Azure service name of the deployment. - - String - - String - - - none - - - Slot - - Specifies the environment of the deployment to modify. Valid values are Production or Staging. + + - String + String String - none - - - UninstallConfiguration - - Indicates that this cmdlet uninstalls all RDP configurations from the cloud service. - - SwitchParameter - - SwitchParameter - - - none + + @@ -22920,285 +20980,136 @@ The default value is Production. - - + - + + - - - - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove the diagnostic extension for a service - - - - - PS C:\>Remove-AzureServiceDiagnosticsExtension -ServiceName $Svc - - - This command removes the diagnostic extension for a specified role. - - - - - - - - - - - Example 2: Remove the diagnostic extension for a service in a specified role + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Remove-AzureServiceDiagnosticsExtension -ServiceName $Svc -Role "WebRole01" - + PS C:\> Remove-AzureInternalLoadBalancer -ServiceName "ILBInVNet" - This command removes the diagnostic extension for a specified role. - - + Description - + -----------Removes the Internal load balancer configuration from the deployment. - Get-AzureServiceDiagnosticsExtension - - - - Set-AzureServiceDiagnosticsExtension - + Unknown + + - + + - Remove-AzureServiceExtension + Remove-AzurePublicIP - Removes cloud service extensions that are applied on a deployment. + Remove-AzurePublicIP [[-PublicIPName] <string>] -VM <IPersistentVM> [<CommonParameters>] Remove - AzureServiceExtension + AzurePublicIP - The Remove-AzureServiceExtension cmdlet removes cloud service extensions that are applied on a deployment. + + Removed Public IP configuration from the virtual machine. - Remove-AzureServiceExtension - - ServiceName - - Specifies the cloud service name. - - String - - - Slot - - Specifies the environment of the deployment to modify. Valid values are Production or Staging. - - - Production - Staging - - - - Role - - Specifies an optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. - - String[] - - - ExtensionName - - Specifies the extension name. - - String - - - ProviderNamespace - - Specifies the extension provider namespace. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Remove-AzureServiceExtension - - ServiceName - - Specifies the cloud service name. - - String - - - Slot - - Specifies the environment of the deployment to modify. Valid values are Production or Staging. - - - Production - Staging - - - - ExtensionName - - Specifies the extension name. - - String - - - ProviderNamespace + Remove-AzurePublicIP + + PublicIPName - Specifies the extension provider namespace. + + String - - UninstallConfiguration - - Indicates that this cmdlet uninstalls all configurations from the cloud service. - - - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + IPersistentVM - - ExtensionName - - Specifies the extension name. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ProviderNamespace + + PublicIPName - Specifies the extension provider namespace. + + String String - none - - - Role - - Specifies an optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. - - String[] - - String[] - - - none - - - ServiceName - - Specifies the cloud service name. - - String - - String - - - none - - - Slot - - Specifies the environment of the deployment to modify. Valid values are Production or Staging. - - String - - String - - - none + + - - UninstallConfiguration + + VM - Indicates that this cmdlet uninstalls all configurations from the cloud service. + + - SwitchParameter + IPersistentVM - SwitchParameter + IPersistentVM - none + + @@ -23206,233 +21117,132 @@ The default value is Production. - - + - + + - - - - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a service extension - - - - - PS C:\>Remove-AzureServiceExtension -ServiceName $Svc -Slot "Production" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" - - - This command removes a service extension. - - - - - - - - - - - Example 2: Remove a service extension and uninstall all configurations + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Remove-AzureServiceExtension -ServiceName $Svc -Slot "Production" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" -UninstallConfiguration - + PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Remove-AzurePublicIP | Update-AzureVM - This command removes a service extension and uninstalls all configurations. - - + Description - + -----------Removes the public ip configuration from the virtual machine. - Get-AzureServiceExtension - - - - Set-AzureServiceExtension - + Unknown + + - + + - Remove-AzureServiceRemoteDesktopExtension + Remove-AzureReservedIP - Removes the cloud service remote desktop extension applied on all roles or named roles at a specified deployment slot. + Remove the Reserved IP by its name. Remove - AzureServiceRemoteDesktopExtension + AzureReservedIP - The Remove-AzureServiceRemoteDesktopExtension cmdlet removes the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. + + Remove the reserved IP by its name. - Remove-AzureServiceRemoteDesktopExtension - - ServiceName - - Specifies the Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - - Production - Staging - - - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Remove-AzureServiceRemoteDesktopExtension - - ServiceName - - Specifies the Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - - Production - Staging - - - - UninstallConfiguration + Remove-AzureReservedIP + + ReservedIPName - Specifies that this cmdlet uninstalls all RDP configurations from the cloud service. + Reserved IP Name + String - - Profile + + Force - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + SwitchParameter - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - Role - - Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - none - - - ServiceName - - Specifies the Azure service name of the deployment. - - String - - String - - - none - - - Slot + + ReservedIPName - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Reserved IP Name - String + String String - none + + - - UninstallConfiguration + + Force - Specifies that this cmdlet uninstalls all RDP configurations from the cloud service. + Not Specified - SwitchParameter + SwitchParameter SwitchParameter - none + + @@ -23440,15 +21250,13 @@ The default value is Production. - - + - + + - - @@ -23457,126 +21265,178 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove the remote desktop extension - - - - - PS C:\>Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc - - - This command removes the remote desktop extension. - - - - - - - - - - - Example 2: Remove the remote desktop extension from a specified role + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc -Role "WebRole1" - + PS C:\> Remove-AzureReservedIP -ReservedIPName $name - This command removes the remote desktop extension from a specified role. - - + Description - + -----------Deletes the Reserved IP from the Subscription by name - Set-AzureServiceRemoteDesktopExtension - + Unknown + + - + + - Remove-AzureStaticVNetIP + Remove-AzureServiceADDomainExtension - Removes the static virtual network IP address information from a virtual machine object, if any. + This cmdlet removes the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. Remove - AzureStaticVNetIP + AzureServiceADDomainExtension - The Remove-AzureStaticVNetIP cmdlet removes the static virtual network (VNet) IP address information from a virtual machine object, if any. + + This cmdlet removes the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. - Remove-AzureStaticVNetIP - - Profile + Remove-AzureServiceADDomainExtension + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - - VM + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + String + + + Role - Specifies a persistent virtual machine object. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - IPersistentVM + String[] + + + + Remove-AzureServiceADDomainExtension + + ServiceName + + + + + String + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + String + + + UninstallConfiguration + + If specified uninstall all AD Domain configurations from the cloud service. + + SwitchParameter - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - AzureProfile + String - none + + - - VM + + Slot - Specifies a persistent virtual machine object. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - IPersistentVM + String - IPersistentVM + String - none + + + + + Role + + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + String[] + + + + + + + UninstallConfiguration + + If specified uninstall all AD Domain configurations from the cloud service. + + SwitchParameter + + SwitchParameter + + + + @@ -23584,15 +21444,13 @@ The default value is Production. - - + - + + - - @@ -23601,103 +21459,202 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - 1: + -------------------------- EXAMPLE 1 -------------------------- + PS C:\> Remove-AzureServiceADDomainExtension -ServiceName $svc + Description + + + + -----------Removing the configured AD domain extension from all roles of a cloud service. + + + + + -------------------------- EXAMPLE 2 -------------------------- + - - + + PS C:\> Remove-AzureServiceADDomainExtension -ServiceName $svc -Role "WebRole1" + + Description - + -----------Removing the configured AD domain extension from the role 'WebRole1' of a cloud service. - Get-AzureStaticVNetIP - - - - Set-AzureStaticVNetIP - + Unknown + + - + + - Remove-AzureStorageAccount + Remove-AzureServiceAntimalwareExtension - Deletes the specified storage account from a subscription. + Removes the antimalware configuration from a cloud service. Remove - AzureStorageAccount + AzureServiceAntimalwareExtension - The Remove-AzureStorageAccount cmdlet removes an account from an Azure subscription. + + The Remove-AzureServiceAntimalwareExtension cmdlet removes the antimalware configuration and any associated antimalware monitoring from the Microsoft Antimalware extension associated with a cloud service. - Remove-AzureStorageAccount - - StorageAccountName + Remove-AzureServiceAntimalwareExtension + + ServiceName - Specifies the name of the storage account to remove. + Specifies the name of the cloud service. String - - Profile + + Slot + + Specifies a deployment slot. Valid values are: + +-- Production +-- Staging + +The default value is Production. + + String + + + Role + + Specifies an array of roles. The default value is all roles. + + String[] + + + EndpointSuffix + + Specifies the storage endpoint suffix. + + String + + + + Remove-AzureServiceAntimalwareExtension + + ServiceName + + Specifies the name of the cloud service. + + String + + + Slot + + Specifies a deployment slot. Valid values are: + +-- Production +-- Staging + +The default value is Production. + + String + + + EndpointSuffix - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the storage endpoint suffix. - AzureProfile + String - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the cloud service. - AzureProfile + String - AzureProfile + String none - - StorageAccountName + + Slot + + Specifies a deployment slot. Valid values are: + +-- Production +-- Staging + +The default value is Production. + + String + + String + + + none + + + Role + + Specifies an array of roles. The default value is all roles. + + String[] + + String[] + + + none + + + EndpointSuffix - Specifies the name of the storage account to remove. + Specifies the storage endpoint suffix. String @@ -23712,15 +21669,13 @@ The default value is Production. - - + - + + - - @@ -23729,152 +21684,213 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + This cmdlet removes only the configuration associated with the specified role. It does not uninstall or remove any already running instances of the Microsoft Antimalware extension from roles. To return these roles to a start state that does not have Microsoft Antimalware running, first remove the configuration by using this cmdlet, and then reimage or redeploy the service. + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a storage account + -------------------------- Example 1: Remove the extension -------------------------- + + + + + PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" + + This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03. + + + + + + + + + + -------------------------- Example 2: Remove the extension for the Staging slot -------------------------- + + + + + PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging" + + This command removes the antimalware extension and monitoring of associated antimalware events from all roles in the staging slot of the service named ContosoService03. + + + + + + + + + + -------------------------- Example 3: Remove the extension for a specified slot and role -------------------------- - PS C:\>Remove-AzureStorageAccount -StorageAccountName "ContosoStore01" - + PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Production" -Role "web role" - This command removes the ContosoStore01 storage account from the specified subscription. - - + This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03 in the specified slot and role. - + + - Get-AzureStorageAccount - - - - New-AzureStorageAccount - + Online Version: + http://go.microsoft.com/fwlink/?LinkID=402841 - Set-AzureStorageAccount - + Set-AzureServiceAntimalwareExtension + + - + + - Remove-AzureVirtualIP + Remove-AzureServiceDiagnosticsExtension - Deletes a virtual IP address from your Cloud Service. + This cmdlet removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. Remove - AzureVirtualIP + AzureServiceDiagnosticsExtension - The Remove-AzureVirtualIP cmdlet deletes a virtual IP (VIP) from an Azure service. The operation succeeds only if the virtual IP has no endpoints associated with it. + + This cmdlet removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. - Remove-AzureVirtualIP - + Remove-AzureServiceDiagnosticsExtension + ServiceName - Specifies the name of the service from which to remove a virtual IP address. + Specifies the Microsoft Azure service name of the deployment. String - - VirtualIPName + + Slot - Specifies the name of the virtual IP address to remove. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". String - - Force + + Role - Forces the command to run without asking for user confirmation. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + String[] - - Profile + + + Remove-AzureServiceDiagnosticsExtension + + ServiceName + + Specifies the Microsoft Azure service name of the deployment. + + String + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + String + + + UninstallConfiguration - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + If specified uninstall all RDP configurations from the cloud service. - AzureProfile + SwitchParameter - - Force + + ServiceName - Forces the command to run without asking for user confirmation. + Specifies the Microsoft Azure service name of the deployment. - SwitchParameter + String - SwitchParameter + String - none + + - - Profile + + Slot - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + Role - Specifies the name of the service from which to remove a virtual IP address. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String + String[] - String + String[] - none + + - - VirtualIPName + + UninstallConfiguration - Specifies the name of the virtual IP address to remove. + If specified uninstall all RDP configurations from the cloud service. - String + SwitchParameter - String + SwitchParameter - none + + @@ -23882,123 +21898,260 @@ The default value is Production. - - + - + + - - - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a virtual IP address from a service + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Remove-AzureServiceDiagnosticsExtension -ServiceName $svc + + Description + + + + -----------Removing the configured diagnostics extension from all roles of a cloud service. + + + + + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Remove-AzureVirtualIP -VirtualIPName "Vip01" -ServiceName "ContosoService03" - + PS C:\> Remove-AzureServiceDiagnosticsExtension -ServiceName $svc -Role "WebRole1" - This command removes a virtual IP address from a service. - - + Description - + -----------Removing the configured diagnostics extension from the role 'WebRole1' of a cloud service. - Add-AzureVirtualIP - + Unknown + + - + + - Remove-AzureVMAccessExtension + Remove-AzureServiceExtension - Removes the VMAccess extension applied on a virtual machine. + This cmdlet removes given cloud service extensions that are applied on a deployment. Remove - AzureVMAccessExtension + AzureServiceExtension - The Remove-AzureVMAccessExtension cmdlet removes the VMAccess extension applied on a virtual machine. + + This cmdlet removes given cloud service extensions that are applied on a deployment. - Remove-AzureVMAccessExtension - - Profile + Remove-AzureServiceExtension + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The cloud service name. - AzureProfile + String - - VM + + Slot - Specifies the persistent virtual machine object that this cmdlet removes the VMAccess extension from. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - IPersistentVM + String - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile + + Role + + An optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. + + String[] + + + ExtensionName + + The Extension Name. + + String + + + ProviderNamespace + + The Extension Provider Namespace. + + String + + + + Remove-AzureServiceExtension + + ServiceName + + The cloud service name. + + String + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + String + + + ExtensionName + + The Extension Name. + + String + + + ProviderNamespace + + The Extension Provider Namespace. + + String + + + UninstallConfiguration + + If specified uninstall all configurations from the cloud service. + + SwitchParameter + + + + + + ServiceName + + The cloud service name. + + String + + String - none + + - - VM + + Slot - Specifies the persistent virtual machine object that this cmdlet removes the VMAccess extension from. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - IPersistentVM + String - IPersistentVM + String - none + + + + + Role + + An optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. + + String[] + + String[] + + + + + + + ExtensionName + + The Extension Name. + + String + + String + + + + + + + ProviderNamespace + + The Extension Provider Namespace. + + String + + String + + + + + + + UninstallConfiguration + + If specified uninstall all configurations from the cloud service. + + SwitchParameter + + SwitchParameter + + + + @@ -24006,15 +22159,13 @@ The default value is Production. - - + - + + - - @@ -24023,111 +22174,191 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a VMAccess extension from a virtual machine + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Remove-AzureServiceExtension -ServiceName $svc -Slot Production -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions + + Description + + + + -----------Remove the existing RDP extension applied on all roles. + + + + + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Remove-AzureVMAccessExtension -VM $VM; - + PS C:\> Remove-AzureServiceExtension -ServiceName $svc -Slot Production -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions -UninstallConfiguration - This command removes a VMAccess extension from a virtual machine. - - + Description - + -----------Remove the existing RDP extension applied on all roles, and uninstall it from the cloud service. - Get-AzureVMAccessExtension - - - - Set-AzureVMAccessExtension - + Unknown + + - + + - Remove-AzureVMBGInfoExtension + Remove-AzureServiceRemoteDesktopExtension - Removes the BGInfo extension applied on a virtual machine. + This cmdlet removes the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. Remove - AzureVMBGInfoExtension + AzureServiceRemoteDesktopExtension - The Remove-AzureVMBGInfoExtension cmdlet removes the BGInfo extension applied on a virtual machine. + + This cmdlet removes the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. - Remove-AzureVMBGInfoExtension - - Profile + Remove-AzureServiceRemoteDesktopExtension + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the Microsoft Azure service name of the deployment. - AzureProfile + String - - VM + + Slot - Specifies the persistent virtual machine object. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - IPersistentVM + String + + + Role + + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + + + Remove-AzureServiceRemoteDesktopExtension + + ServiceName + + Specifies the Microsoft Azure service name of the deployment. + + String + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + String + + + UninstallConfiguration + + If specified uninstall all RDP configurations from the cloud service. + + SwitchParameter - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the Microsoft Azure service name of the deployment. - AzureProfile + String - AzureProfile + String - none + + - - VM + + Slot - Specifies the persistent virtual machine object. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - IPersistentVM + String - IPersistentVM + String - none + + + + + Role + + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + String[] + + + + + + + UninstallConfiguration + + If specified uninstall all RDP configurations from the cloud service. + + SwitchParameter + + SwitchParameter + + + + @@ -24135,15 +22366,13 @@ The default value is Production. - - + - + + - - @@ -24152,111 +22381,114 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove the BGInfo extension on a virtual machine + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc + + Description + + + + -----------Removing the configured remote desktop extension from all roles of a cloud service. + + + + + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Remove-AzureVMBGInfoExtension -VM $VM; - + PS C:\> Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc -Role "WebRole1" - This command removes the BGInfo extension applied on a virtual machine. - - + Description - + -----------Removing the configured remote desktop extension from the role 'WebRole1' of a cloud service. - Get-AzureVMBGInfoExtension - - - - Set-AzureVMBGInfoExtension - + Unknown + + - + + - Remove-AzureVMChefExtension + Remove-AzureStaticVNetIP - Removes the Chef extension applied on the virtual machine. + Remove the static VNet IP address information from a VM object, if any. Remove - AzureVMChefExtension + AzureStaticVNetIP - The Remove-AzureVMChefExtension cmdlet deletes the Chef extension applied on the virtual machine. + + Remove the static VNet IP address information from a VM object, if any. - Remove-AzureVMChefExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + Remove-AzureStaticVNetIP + VM - Specifies the persistent virtual machine object. + Persistent VM object. IPersistentVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM - Specifies the persistent virtual machine object. + Persistent VM object. IPersistentVM IPersistentVM - none + + @@ -24264,15 +22496,13 @@ The default value is Production. - - + - + + - - @@ -24281,115 +22511,82 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - Example 1: Remove the Chef extension applied on the specified virtual machine - - - - - PS C:\>Remove-AzureVMChefExtension -VM $VM; - - - This command removes the Chef extension applied on the virtual machine. - - - - - - - - - - Get-AzureVMChefExtension - - - - Set-AzureVMChefExtension - - - - Azure Service Cmdlets - + Unknown + + - + + - Remove-AzureVMCustomScriptExtension + Remove-AzureStorageAccount - Removes the custom script extension from a virtual machine. + Deletes the specified storage account from a subscription. Remove - AzureVMCustomScriptExtension + AzureStorageAccount - The Remove-AzureVMCustomScriptExtension cmdlet removes the custom script extension from a virtual machine. + + The Remove-AzureStorageAccount cmdlet removes an account from a Microsoft Azure subscription. - Remove-AzureVMCustomScriptExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM + Remove-AzureStorageAccount + + StorageAccountName - Specifies the persistent virtual machine object. + The name of the storage account to be removed. - IPersistentVM + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM + + StorageAccountName - Specifies the persistent virtual machine object. + The name of the storage account to be removed. - IPersistentVM + String - IPersistentVM + String - none + + @@ -24397,15 +22594,13 @@ The default value is Production. - - + - + + - - @@ -24414,115 +22609,149 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a virtual machine custom script extension + -------------------------- Example 1 -------------------------- - PS C:\> Remove-AzureVMCustomScriptExtension -VM $VM; - + PS C:\> C:\PS>Remove-AzureStorageAccount -StorageAccountName "mystore1" - This command removes the Azure virtual machine custom script extension from the specified virtual machine as stored in the variable $VM. - - + This command removes the "mystore1" storage account from the specified subscription. - + + - Get-AzureVMCustomScriptExtension - + New-AzureStorageAccount + + - Set-AzureVMCustomScriptExtension - + Set-AzureStorageAccount + + - Azure Service Cmdlets - + Get-AzureStorageAccount + + - + + - Remove-AzureVMDiagnosticsExtension + Remove-AzureVM - Removes the Azure Diagnostics extension from a virtual machine. + Removes a Microsoft Azure virtual machine. Remove - AzureVMDiagnosticsExtension + AzureVM - The Remove-AzureVMDiagnosticsExtension cmdlet removes a Microsoft Azure Diagnostics extension from a virtual machine. You must pass the output of this cmdlet to the Update-AzureVM cmdlet. + + The Remove-AzureVM cmdlet deletes a Microsoft Azure virtual machine. This process doesn’t delete the underlying .vhd files of the disks mounted on that virtual machine. - Remove-AzureVMDiagnosticsExtension - - Profile + Remove-AzureVM + + Name - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the virtual machine being removed. - AzureProfile + String - - VM + + DeleteVHD - Specifies the persistent virtual machine object. + Specify to remove the VM and the underlying disk blob(s). - IPersistentVM + SwitchParameter + + + ServiceName + + Specifies the Microsoft Azure service name from which the virtual machine is being removed. + + String - - Profile + + Name - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the virtual machine being removed. - AzureProfile + String - AzureProfile + String - none + + - - VM + + DeleteVHD - Specifies the persistent virtual machine object. + Specify to remove the VM and the underlying disk blob(s). - IPersistentVM + SwitchParameter - IPersistentVM + SwitchParameter - none + + + + + ServiceName + + Specifies the Microsoft Azure service name from which the virtual machine is being removed. + + String + + String + + + + @@ -24530,15 +22759,13 @@ The default value is Production. - - + - + + - - @@ -24547,151 +22774,140 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove the Azure Diagnostics extension from a virtual machine + -------------------------- Example 1 -------------------------- - PS C:\>Remove-AzureVMDiagnosticsExtension -VM $VM | Update-AzureVM - + PS C:\> C:\PS>Remove-AzureVM -ServiceName "MySvc1" -Name "MyVM" - This command removes the Azure Diagnostics extension from a virtual machine. - - + This command removes the "MyVM" virtual machine running in the "MySvc1" service. - + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> Remove-AzureVM -ServiceName "MySvc1" -Name "MyVM" -DeleteVHD + + Description + + + + -----------This command removes the "MyVM" virtual machine running in the "MySvc1" service, and the underlying VHD(s). - Get-AzureVMDiagnosticsExtension - + New-AzureVMConfig + + - Set-AzureVMDiagnosticsExtension - + Restart-AzureVM + + + + + Start-AzureVM + + + + + Stop-AzureVM + + Update-AzureVM - + + + + + New-AzureVM + + - + + - Remove-AzureVMDscExtension + Remove-AzureVMAccessExtension - Removes an Azure DSC extension from a virtual machine. + This cmdlet removes the VMAcess extension (if any) applied on the VM. Remove - AzureVMDscExtension + AzureVMAccessExtension - The Remove-AzureVMDscExtension cmdlet removes an Azure DSC extension from a virtual machine. The output of this cmdlet needs to be piped to the Update-AzureVM cmdlet. + + This cmdlet removes the VMAcess extension (if any) applied on the VM. - Remove-AzureVMDscExtension - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + Remove-AzureVMAccessExtension + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - - Confirm - - Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. - - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM IPersistentVM - none - - - Confirm - - Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. - - SwitchParameter - - SwitchParameter - - - false - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - false + + @@ -24699,15 +22915,13 @@ The default value is Production. - - + - + + - - @@ -24716,224 +22930,98 @@ The default value is Production. - - + - - + + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a DSC extension from a virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Remove-AzureVMDscExtension -VM $VM | Update-AzureVM - + PS C:\> Remove-AzureVMAccessExtension -VM $vm; - This command removes an Azure DSC extension from a virtual machine. - - + Description - + -----------This cmdlet removes the VMAcess extension (if any) applied on the VM. - Get-AzureVMDscExtension - - - - Set-AzureVMDscExtension - - - - Update-AzureVM - + Unknown + + - + + - Remove-AzureVMExtension + Remove-AzureVMBGInfoExtension - Removes resource extensions from a virtual machine. + This cmdlet removes the BGInfo extension (if any) applied on the VM. Remove - AzureVMExtension + AzureVMBGInfoExtension - The Remove-AzureVMExtension cmdlet removes resource extensions from a virtual machine. + + This cmdlet removes the BGInfo extension (if any) applied on the VM. - Remove-AzureVMExtension - - ExtensionName - - Specifies the extension name that this cmdlet removes. - - String - - - Publisher - - Specifies the extension publisher. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - - - Remove-AzureVMExtension - - ReferenceName - - Specifies the reference name of the extension. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - - - Remove-AzureVMExtension - - RemoveAll - - Indicates that this cmdlet removes all resource extensions from the virtual machine. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + Remove-AzureVMBGInfoExtension + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - - ExtensionName - - Specifies the extension name that this cmdlet removes. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - Publisher - - Specifies the extension publisher. - - String - - String - - - none - - - ReferenceName - - Specifies the reference name of the extension. - - String - - String - - - none - - - RemoveAll - - Indicates that this cmdlet removes all resource extensions from the virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM IPersistentVM - none + + @@ -24941,15 +23029,13 @@ The default value is Production. - - + - + + - - @@ -24958,163 +23044,98 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove an extension using a specific name and publisher - - - - - PS C:\>$VM = Remove-AzureVMExtension -VM $VM -ExtensionName $EXT -Publisher $PUB; - - - This command removes an extension with the specified name and publisher. - - - - - - - - - - - Example 2: Remove all extensions from a specific virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$VM = Remove-AzureVMExtension -VM $VM -RemoveAll; - + PS C:\> Remove-AzureVMBGInfoExtension -VM $vm; - This command removes all extensions from the specified virtual machine as stored in the variable $VM. - - + Description - + -----------This cmdlet removes the BGInfo extension (if any) applied on the VM. - Get-AzureVMExtension - - - - Set-AzureVMExtension - - - - Azure Service Cmdlets - + Unknown + + - + + - Remove-AzureVMImageDataDiskConfig + Remove-AzureVMCustomScriptExtension - Removes the data disk configuration from the DiskConfigSet object. + Remove Azure VM Custom Script Extension from a VM. Remove - AzureVMImageDataDiskConfig + AzureVMCustomScriptExtension - The Remove-AzureVMImageDataDiskConfig cmdlet removes the data disk configuration from the DiskConfigSet object. + + Remove Azure VM Custom Script Extension from a VM. - Remove-AzureVMImageDataDiskConfig - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and data disk objects. - - VirtualMachineImageDiskConfigSet - - - DataDiskName - - Specifies the name of the data disk that this cmdlet removes. - - String - - - - Remove-AzureVMImageDataDiskConfig - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and data disk objects. - - VirtualMachineImageDiskConfigSet - - - Lun + Remove-AzureVMCustomScriptExtension + + VM - Specifies the slot where the data drive is mounted in the virtual machine. + The persistent VM object. - Int32 + IPersistentVM - - DataDiskName - - Specifies the name of the data disk that this cmdlet removes. - - String - - String - - - none - - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and data disk objects. - - VirtualMachineImageDiskConfigSet - - VirtualMachineImageDiskConfigSet - - - none - - - Lun + + VM - Specifies the slot where the data drive is mounted in the virtual machine. + The persistent VM object. - Int32 + IPersistentVM - Int32 + IPersistentVM - none + + @@ -25122,110 +23143,117 @@ The default value is Production. - - + - + + - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove the data disk configuration from the DiskConfigSet object + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$Disk = New-AzureDiskConfigSet -PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -HostCaching ReadWrite -PS C:\> Remove-AzureVMImageDataDiskConfig -DiskConfig $Disk - + PS C:\> Remove-AzureVMCustomScriptExtension -VM $vm; - This example creates a DiskConfigSet, configures it, then removes the data disk. - - + Description - + -----------Remove Azure VM Custom Script Extension from a VM. - Set-AzureVMImageDataDiskConfig - - - - Azure Service Cmdlets - + Unknown + + - + + - Remove-AzureVMImageOSDiskConfig + Remove-AzureVMDiagnosticsExtension - Removes the operating system disk configuration from the DiskConfigSet object. + + Remove - AzureVMImageOSDiskConfig + AzureVMDiagnosticsExtension - The Remove-AzureVMImageOSDiskConfig cmdlet removes the operating system disk configuration from the DiskConfigSet object. + + + - Remove-AzureVMImageOSDiskConfig - - DiskConfig + Remove-AzureVMDiagnosticsExtension + + VM - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. + + - VirtualMachineImageDiskConfigSet + IPersistentVM - - DiskConfig + + VM - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. + + - VirtualMachineImageDiskConfigSet + IPersistentVM - VirtualMachineImageDiskConfigSet + IPersistentVM - none + + @@ -25233,158 +23261,137 @@ PS C:\> Remove-AzureVMImageDataDiskConfig -DiskConfig $Disk - - + - + + - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - Example 1: Remove the operating system disk configuration from a DiskConfigSet - - - - - PS C:\> $Disk = New-AzureDiskConfigSet -PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite -PS C:\> Remove-AzureVMImageOSDiskConfig -DiskConfig $Disk - - - This command removes the operating system disk configuration from the DiskConfigSet object - - - - - - - - - - - Set-AzureVMImageOSDiskConfig - - - + + - Remove-AzureVMImage + + Remove-AzureVMDscExtension + - Removes an operating system image from the image repository. + Removes DSC extension handler from a given virtual machine(s) in a cloud service. Output of this cmdlet needs to be piped to Update-AzureVM cmdlet. To get detailed output -Verbose flag need to be specified. - + + Remove - AzureVMImage - + AzureVMDscExtension + + - The Remove-AzureVMImage cmdlet removes an operating system image from the image repository. By default, this cmdlet does not delete the associated physical image blob from the storage account. To delete the associated virtual hard drive (VHD), use the DeleteVHD parameter. + Removes DSC extension handler from a given virtual machine(s) in a cloud service. Output of this cmdlet needs to be piped to Update-AzureVM cmdlet. To get detailed output -Verbose flag need to be specified. + - Remove-AzureVMImage - - ImageName - - Specifies the operating system or virtual machine image to remove from the image repository. - - String - - - DeleteVHD - - Indicates that this cmdlet deletes the physical VHD image blob from the storage account. - - - - Profile + Remove-AzureVMDscExtension + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The persistent VM object. - AzureProfile + IPersistentVM + - - DeleteVHD + + VM - Indicates that this cmdlet deletes the physical VHD image blob from the storage account. + The persistent VM object. - SwitchParameter + IPersistentVM - SwitchParameter + IPersistentVM - none + + - - ImageName + + Confirm - Specifies the operating system or virtual machine image to remove from the image repository. + Prompts you for confirmation before executing the command. - String + switchparameter - String + switchparameter - none + + - - Profile + + WhatIf - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Describes what would happen if you executed the command without actually executing the command. - AzureProfile + switchparameter - AzureProfile + switchparameter - none + + + - - - - - + + + @@ -25394,176 +23401,219 @@ PS C:\> Remove-AzureVMImageOSDiskConfig -DiskConfig $Disk - - - - - - + +- +- +- +- - - - - +- +- + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + - Example 1: Remove an image from the image repository - - - - - PS C:\>Remove-AzureVMImage -ImageName "Image001" - - - This command removes the image named Image001 from the image repository. - - - - - - - - - - - Example 2: Remove an image from the image repository and also the VHD - - - - - PS C:\>Remove-AzureVMImage -ImageName " Image001" -DeleteVHD - - - This command removes the image named Image001 from the image repository and also deletes the physical VHD image from the storage account. - - - - - - - - - - - Example 3: Set a subscription context and then remove all the images + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$SubsId = &amp;lt;MySubscriptionID&amp;gt; -PS C:\> $Cert = Get-AzureCertificate cert:\LocalMachine\MY\&amp;lt;CertificateThumbprint&amp;gt; -PS C:\>Get-AzureVMImage ` -| Where-Object {$_.Label -match "Beta" }` -| Foreach-Object {Remove-AzureVMImage -ImageName $_.name } - + PS C:\> Remove-AzureVMDscExtension -VM $vm | Update-AzureVM - This command sets the subscription context and then removes all the images from the image repository whose Label includes the name Beta. - - + Description - + -----------Remove Azure VM DSC Extension from a VM. - Add-AzureVMImage - - - - Get-AzureVMImage - - - - Save-AzureVMImage - - - - Update-AzureVMImage - + Unknown + + - + + - Remove-AzureVMMicrosoftAntimalwareExtension + Remove-AzureVMExtension - Removes the Microsoft Antimalware extension from a virtual machine. + This cmdlet removes resource extensions from VMs. Remove - AzureVMMicrosoftAntimalwareExtension + AzureVMExtension - The Remove-AzureVMMicrosoftAntimalwareExtension cmdlet removes the Microsoft Antimalware extension from a virtual machine. If monitoring was turned on, this cmdlet also removes the collection of Microsoft Antimalware events. + + This cmdlet removes resource extensions from VMs. - Remove-AzureVMMicrosoftAntimalwareExtension - - Profile + Remove-AzureVMExtension + + ExtensionName + + The Extension Name. + + String + + + Publisher - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Publisher. - AzureProfile + String - + VM - Specifies the virtual machine as an IPersistentVM object. + + + + IPersistentVM + + + + Remove-AzureVMExtension + + ReferenceName + + The extension's reference name. + + String + + + VM + + + + + IPersistentVM + + + + Remove-AzureVMExtension + + RemoveAll + + Specify to remove all extensions. + + SwitchParameter + + + VM + + + IPersistentVM - - Profile + + ExtensionName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Name. - AzureProfile + String - AzureProfile + String - none + + + + + Publisher + + The Extension Publisher. + + String + + String + + + + - + VM - Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM IPersistentVM - none + + + + + ReferenceName + + The extension's reference name. + + String + + String + + + + + + + RemoveAll + + Specify to remove all extensions. + + SwitchParameter + + SwitchParameter + + + + - IPersistentVM - - + + + - + + - - @@ -25572,129 +23622,134 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - + + + + - + + - To avoid interfering with monitoring for other applications or services, this cmdlet removes only the collection of Microsoft Antimalware events. It does not change other application configurations or the default monitoring configuration. + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - Example 1: Remove a Antimalware extension + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Remove-AzureVMMicrosoftAntimalwareExtension | Update-AzureVM - + PS C:\> $vm = Remove-AzureVMExtension -VM $vm -ExtensionName $ext -Publisher $pub; - This command removes the Microsoft Antimalware extension. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. Remove-AzureVMMicrosoftAntimalwareExtension removes the extension. The command passes the result to the Update-AzureVM cmdlet to update the virtual machine. - - + Description - + -----------Remove a given extension with the name and publisher - - - - Online Version: - http://go.microsoft.com/fwlink/?LinkID=402842 - - - Get-AzureVMMicrosoftAntimalwareExtension - - - - Set-AzureVMMicrosoftAntimalwareExtension - - - - Get-AzureVM - - + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> $vm = Remove-AzureVMExtension -VM $vm -RemoveAll; + + Description + + + + -----------Remove all extensions. + + + + + - Update-AzureVM - + Unknown + + - + + - Remove-AzureVMPuppetExtension + Remove-AzureVMImage - Removes the Puppet extension applied on a virtual machine. + Removes an OS or VM image from the Image Repository. Remove - AzureVMPuppetExtension + AzureVMImage - The Remove-AzureVMPuppetExtension cmdlet removes the Puppet extension applied on a virtual machine. + + Removes an OS or VM image from the Image Repository. - Remove-AzureVMPuppetExtension - - Profile + Remove-AzureVMImage + + ImageName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the OS or VM image to remove from the image repository. - AzureProfile + String - - VM + + DeleteVHD - Specifies the persistent virtual machine object. + When specified, the physical VHD image blob is deleted from the storage account. - IPersistentVM + SwitchParameter - - Profile + + ImageName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the OS or VM image to remove from the image repository. - AzureProfile + String - AzureProfile + String - none + + - - VM + + DeleteVHD - Specifies the persistent virtual machine object. + When specified, the physical VHD image blob is deleted from the storage account. - IPersistentVM + SwitchParameter - IPersistentVM + SwitchParameter - none + + @@ -25702,15 +23757,13 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - @@ -25719,111 +23772,202 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove the Puppet extension applied on a virtual machine + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Remove-AzureVMImage -ImageName MyOSImage + + Description + + + + -----------This command removes the "MyOSImage" image from the image repository. + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> Remove-AzureVMImage -ImageName MyOSImage -DeleteVHD + + Description + + + + -----------This command removes the "MyOSImage" image from the image repository and also deletes the physical VHD image from the storage account. + + + + + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Remove-AzureVMPuppetExtension -VM $VM; - + PS C:\> $subsId = &amp;lt;MySubscriptionID&amp;gt; +$cert = Get-AzureCertificate cert:\LocalMachine\MY\&amp;lt;CertificateThumbprint&amp;gt; +Get-AzureVMImage ` + | Where-Object {$_.Label -match "Beta" }` + | Foreach-Object {Remove-AzureVMImage -ImageName $_.name } - This command removes the Puppet extension applied on the specified virtual machine. - - + Description - + -----------This command sets the subscription context and then removes all the images from the image repository whose Label includes "Beta". - Get-AzureVMPuppetExtension - + Add-AzureVMImage + + - Set-AzureVMPuppetExtension - + Get-AzureVMImage + + + + + Update-AzureVMImage + + - + + - Remove-AzureVMSqlServerExtension + Remove-AzureVMImageDataDiskConfig - Removes an Azure virtual machine SQL Server extension from a virtual machine object. + This cmdlet removes the Data Disk Config from the DiskConfigSet object Remove - AzureVMSqlServerExtension + AzureVMImageDataDiskConfig - The Remove-AzureVMSqlServerExtension cmdlet removes an Azure virtual machine SQL Server extension from a virtual machine object. + + + - Remove-AzureVMSqlServerExtension - - Profile + Remove-AzureVMImageDataDiskConfig + + DiskConfig - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + VirtualMachineImageDiskConfigSet - - VM + + DataDiskName + + + + + String + + + + Remove-AzureVMImageDataDiskConfig + + DiskConfig - Specifies the persistent virtual machine object that this cmdlet removes the extension from. + + - IPersistentVM + VirtualMachineImageDiskConfigSet + + + Lun + + + + + Int32 - - Profile + + DiskConfig - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + VirtualMachineImageDiskConfigSet - AzureProfile + VirtualMachineImageDiskConfigSet - none + + - - VM + + DataDiskName - Specifies the persistent virtual machine object that this cmdlet removes the extension from. + + - IPersistentVM + String - IPersistentVM + String - none + + + + + Lun + + + + + Int32 + + Int32 + + + + @@ -25831,304 +23975,236 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - 1: + -------------------------- EXAMPLE 1 -------------------------- + PS C:\> $s = New-AzureDiskConfigSet + # returns DiskConfigSet object; + + $s = Set-AzureDataDiskConfig -DiskConfig $s -HostCaching ReadWrite + # returns DiskConfigSet object; + + Remove-AzureVMImageDataDiskConfig -DiskConfig $s + # removes the Data DiskConfig object from the DiskConfigSet object - - + Description - + ----------- - Get-AzureVMSqlServerExtension - - - - Set-AzureVMSqlServerExtension - + Unknown + + - + + - Remove-AzureVM + Remove-AzureVMImageOSDiskConfig - Removes an Azure virtual machine. + This cmdlet removes the OS Disk Config from the DiskConfigSet object Remove - AzureVM + AzureVMImageOSDiskConfig - The Remove-AzureVM cmdlet deletes an Azure virtual machine. This process does not delete the underlying .vhd files of the disks mounted on that virtual machine. + + + - Remove-AzureVM - - ServiceName - - Specifies the name of the Azure service from which the virtual machine is being removed. - - String - - - Name - - Specifies the name of the virtual machine being removed. - - String - - - DeleteVHD - - Specifies whether this cmdlet removes the virtual machine and the underlying disk blobs. - - - - Profile + Remove-AzureVMImageOSDiskConfig + + DiskConfig - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The disk config object that encapsulates the OS Disk and Data Disk objects. - AzureProfile + VirtualMachineImageDiskConfigSet - - DeleteVHD + + DiskConfig - Specifies whether this cmdlet removes the virtual machine and the underlying disk blobs. + The disk config object that encapsulates the OS Disk and Data Disk objects. - SwitchParameter + VirtualMachineImageDiskConfigSet - SwitchParameter + VirtualMachineImageDiskConfigSet - none + + - - Name - - Specifies the name of the virtual machine being removed. - - String + + + - String + + + + + + - none - - - Profile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ServiceName - - Specifies the name of the Azure service from which the virtual machine is being removed. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a virtual machine from a service - - - - - PS C:\>Remove-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine03" - - - This command removes the virtual machine named VirtualMachine03 that runs in the ContosoService03 service. - - - - - - - - - - - Example 2: Remove a virtual machine and delete the .vhd files + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Remove-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine04" -DeleteVHD - + PS C:\> $s = New-AzureDiskConfigSet + # returns DiskConfigSet object; + + $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite + # returns DiskConfigSet object; + + Remove-AzureVMImageOSDiskConfig -DiskConfig $s + # removes the OS DiskConfig object from the DiskConfigSet object - This command removes the VirtualMachine04 virtual machine that runs in the ContosoService03 service, and specifies to remove the .vhd files using the DeleteVHD parameter. - - + Description - + ----------- - New-AzureVM - - - - New-AzureVMConfig - - - - Restart-AzureVM - - - - Start-AzureVM - - - - Stop-AzureVM - - - - Update-AzureVM - + Unknown + + - + + - Remove-AzureVNetConfig + Remove-AzureVMMicrosoftAntimalwareExtension - Deletes the network configuration from the current Azure subscription. + Removes the Microsoft Antimalware extension from a virtual machine. Remove - AzureVNetConfig + AzureVMMicrosoftAntimalwareExtension - The Remove-AzureVNetConfig cmdlet removes all virtual network settings from the current Azure subscription. + + The Remove-AzureVMMicrosoftAntimalwareExtension cmdlet removes the Microsoft Antimalware extension from a virtual machine. If monitoring was turned on, this cmdlet also removes the collection of Microsoft Antimalware events. - Remove-AzureVNetConfig - - Profile + Remove-AzureVMMicrosoftAntimalwareExtension + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the virtual machine as an IPersistentVM object. - AzureProfile + IPersistentVM - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the virtual machine as an IPersistentVM object. - AzureProfile + IPersistentVM - AzureProfile + IPersistentVM none @@ -26137,17 +24213,14 @@ PS C:\>Get-AzureVMImage ` - - - - + IPersistentVM + - + + - - @@ -26156,194 +24229,117 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - + + + + + + + + + To avoid interfering with monitoring for other applications or services, this cmdlet removes only the collection of Microsoft Antimalware events. It does not change other application configurations or the default monitoring configuration. + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Remove a virtual network configuration from the current subscription + -------------------------- Example 1: Remove the extension -------------------------- - PS C:\>Remove-AzureVNetConfig - + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Remove-AzureVMMicrosoftAntimalwareExtension | Update-AzureVM - This command removes the virtual network configuration from the current subscription. - - + This command removes the Microsoft Antimalware extension. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. Remove-AzureVMMicrosoftAntimalwareExtension removes the extension. The command passes the result to the Update-AzureVM cmdlet to update the virtual machine. - + + - Get-AzureVNetConfig - + Online Version: + http://go.microsoft.com/fwlink/?LinkID=402842 - Get-AzureVNetSite - + Get-AzureVM + + - Set-AzureVNetConfig - + Update-AzureVM + + + + + Get-AzureVMMicrosoftAntimalwareExtension + + + + + Set-AzureVMMicrosoftAntimalwareExtension + + - + + - Reset-AzureRoleInstance + Remove-AzureVMPuppetExtension - Requests a reboot or reimage of a single role instance or all role instances of a specific role. + This cmdlet removes the Puppet extension (if any) applied on the VM. - Reset - AzureRoleInstance + Remove + AzureVMPuppetExtension - The Reset-AzureRoleInstance cmdlet requests a reboot or a reimage of a role instance that is running in a deployment. This operation executes synchronously. When you reboot a role instance, Azure takes the instance offline, restarts the underlying operating system for that instance, and brings the instance back online. Any data that is written to the local disk persists across reboots. Any data that is in-memory is lost. - Reimaging a role instance results in different behavior depending on the type of role. For a web or worker role, when the role is reimaged, Azure takes the role offline and writes a fresh installation of the Azure guest operating system to the virtual machine. The role is then brought back online. For a VM role, when the role is reimaged, Azure takes the role offline, reapplies the custom image that you provided for it, and brings the role back online. - Azure attempts to maintain data in any local storage resources when the role is reimaged; however, in case of a transient hardware failure, the local storage resource may be lost. If your application requires that data persist, writing to a durable data source, such as an Azure drive, is recommended. Any data that is written to a local directory other than that defined by the local storage resource will be lost when the role is reimaged. + + This cmdlet removes the Puppet extension (if any) applied on the VM. - Reset-AzureRoleInstance - - ServiceName - - Specifies the name of the service. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Reboot - - Specifies that this cmdlet reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - - - - Reimage - - Specifies that this cmdlet reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - - - - InstanceName - - Specifies the name of the role instance to reimage or reboot. - - String - - - Slot + Remove-AzureVMPuppetExtension + + VM - Specifies the deployment environment where the role instances run. Valid values are: Production and Staging. You can include either the DeploymentName or Slot parameter, but not both. + The persistent VM object. - - Staging - Production - + IPersistentVM - - InstanceName - - Specifies the name of the role instance to reimage or reboot. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - Reboot - - Specifies that this cmdlet reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - - SwitchParameter - - SwitchParameter - - - none - - - Reimage - - Specifies that this cmdlet reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - - SwitchParameter - - SwitchParameter - - - none - - - ServiceName - - Specifies the name of the service. - - String - - String - - - none - - - Slot + + VM - Specifies the deployment environment where the role instances run. Valid values are: Production and Staging. You can include either the DeploymentName or Slot parameter, but not both. + The persistent VM object. - String + IPersistentVM - String + IPersistentVM - none + + @@ -26351,15 +24347,13 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - @@ -26368,200 +24362,394 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + - Example 1: Reboot a role instance + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>ReSet-AzureRoleInstance -ServiceName "MySvc01" -Slot "Staging" -InstanceName "MyWebRole_IN_0" -Reboot - + PS C:\> Remove-AzureVMPuppetExtension -VM $vm; - This command reboots the role instance named MyWebRole_IN_0 in the staging deployment of the MySvc01 service. - - + Description - + -----------This cmdlet removes the Puppet extension (if any) applied on the VM. + + + + Unknown + + + + + + + + + Remove-AzureVNetConfig + + Deletes the network configuration from the current Microsoft Azure subscription. + + + + + Remove + AzureVNetConfig + + + + + The Remove-AzureVNetConfig cmdlet removes all virtual network settings from the current Microsoft Azure subscription. + + + + Remove-AzureVNetConfig + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + - Example 2: Reimage a role instance + -------------------------- Example 1 -------------------------- - PS C:\>ReSet-AzureRoleInstance -ServiceName "MySvc01" -Slot "Staging" -Reimage - + PS C:\> C:\PS>Remove-AzureVNetConfig - This command reimages the role instances in the staging deployment of the MySvc01 cloud service. - - + This command removes the virtual network configuration from the current subscription. - + + + + + + Get-AzureVNetConfig + + + + + Get-AzureVNetSite + + + + + Set-AzureVNetConfig + + + + + + + + + Remove-AzureVNetGateway + + Removes the Microsoft Azure virtual network gateway to the specified virtual network. + + + + + Remove + AzureVNetGateway + + + + + The Remove-AzureVNetGateway cmdlet removes the virtual network gateway to the specified Microsoft Azure virtual network. A virtual network gateway is a VPN endpoint for connecting to a virtual network. If you remove the virtual network gateway, the underlying virtual network is unaffected and still in place, allowing you to create a new gateway with New-VNetGateway. However, the shared key for the gateway will be different, requiring reconfiguration of the VPN device at the local network site. + + + + Remove-AzureVNetGateway + + VNetName + + Specifies the name of the virtual network to remove the gateway from. + + String + + + + + + VNetName + + Specifies the name of the virtual network to remove the gateway from. + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + - Example 3: Reimage all role instances + -------------------------- Example 1 -------------------------- - PS C:\>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot "Production" -Reimage - + PS C:\> C:\PS>Remove-AzureVNetGateway –VNetName "MyProdNet" - This command reimages all role instances in the production deployment of the MySvc01 service. - - + This command removes the virtual network gateway (VPN endpoint) from the "MyProdNet" virtual network. - + + - - Set-AzureRole - - - + + - Restart-AzureVM + Reset-AzureRoleInstance - Restarts an Azure virtual machine. + Requests a reboot or reimage of a single role instance or all role instances of a specific role. - Restart - AzureVM + Reset + AzureRoleInstance - The Restart-AzureVM cmdlet requests a restart of an Azure virtual machine. + + The ReSet-AzureRoleInstance cmdlet requests a reboot or a reimage of a role instance that is running in a deployment. This operation executes synchronously. When you reboot a role instance, Microsoft Azure takes the instance offline, restarts the underlying operating system for that instance, and brings the instance back online. Any data that is written to the local disk persists across reboots. Any data that is in-memory is lost. Reimaging a role instance results in different behavior depending on the type of role. For a web or worker role, when the role is reimaged, Microsoft Azure takes the role offline and writes a fresh installation of the Microsoft Azure guest operating system to the virtual machine. The role is then brought back online. For a VM role, when the role is reimaged, Microsoft Azure takes the role offline, reapplies the custom image that you provided for it, and brings the role back online. + Microsoft Azure attempts to maintain data in any local storage resources when the role is reimaged; however, in case of a transient hardware failure, the local storage resource may be lost. If your application requires that data persist, writing to a durable data source, such as a Microsoft Azure drive, is recommended. Any data that is written to a local directory other than that defined by the local storage resource will be lost when the role is reimaged. - Restart-AzureVM - + Reset-AzureRoleInstance + ServiceName - Specifies the name of the Azure service that contains the virtual machine to restart. + Specifies the name of the service. String - - Name + + Slot - Specifies the name of the virtual machine to restart. + The deployment environment where the role instances are running. Supported values are "Production" and "Staging". You can include either a DeploymentName or Slot parameter, but not both. String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Restart-AzureVM - - ServiceName + + InstanceName - Specifies the name of the Azure service that contains the virtual machine to restart. + Specifies the name of the role instance to reimage or reboot. String - - Profile + + Reboot - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + If this parameter is specified, reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - AzureProfile + SwitchParameter - - VM + + Reimage - Specifies a virtual machine object that identifies the virtual machine to restart. + If this parameter is specified, reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - PersistentVM + SwitchParameter - - Name + + ServiceName - Specifies the name of the virtual machine to restart. + Specifies the name of the service. String String - none + + - - Profile + + Slot - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The deployment environment where the role instances are running. Supported values are "Production" and "Staging". You can include either a DeploymentName or Slot parameter, but not both. - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + InstanceName - Specifies the name of the Azure service that contains the virtual machine to restart. + Specifies the name of the role instance to reimage or reboot. String String - none + + - - VM + + Reboot - Specifies a virtual machine object that identifies the virtual machine to restart. + If this parameter is specified, reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - PersistentVM + SwitchParameter - PersistentVM + SwitchParameter - none + + + + + Reimage + + If this parameter is specified, reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. + + SwitchParameter + + SwitchParameter + + + + @@ -26569,15 +24757,13 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - @@ -26586,88 +24772,294 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Restart a virtual machine + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot Staging -InstanceName "MyWebRole_IN_0" –reboot + + This command reboots the "MyWebRole_IN_0" role instance in the staging deployment of the "MySvc1" service. + + + + + + + + + + -------------------------- Example 2 -------------------------- - PS C:\>Restart-AzureVM -ServiceName "MyService01" -Name "MyVM" - + PS C:\> C:\PS>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot Staging –Reimage - This command restarts the VirtualMachine27 virtual machine running in the Azure service named Service01. - - + This command reimages the role instances in the staging deployment of the MyTodo cloud service. - + + - Example 2: Restart a virtual machine by using a virtual machine object + -------------------------- Example 3 -------------------------- - PS C:\>Get-AzureVM -ServiceName "MyService01" -Name "VirtualMachine27" | Restart-AzureVM - + PS C:\> C:\PS>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot "Production –Reimage - This command retrieves the virtual machine object for the virtual machine named MyVM and then restarts it. - - + This command reimages all role instances in the production deployment of the "MySvc1" service. - + + - - Get-AzureVM - + + + + + + Restart-AzureVM + + Restarts a Microsoft Azure virtual machine. + + + + + Restart + AzureVM + + + + + The Restart-AzureVM cmdlet requests a reboot of a virtual machine. + + + + Restart-AzureVM + + Name + + Specifies the name of the virtual machine to restart. + + String + + + ServiceName + + Specifies the name of the Microsoft Azure service that contains the virtual machine to restart. + + String + + + + Restart-AzureVM + + VM + + A virtual machine object that identifies the virtual machine to restart. + + PersistentVM + + + ServiceName + + Specifies the name of the Microsoft Azure service that contains the virtual machine to restart. + + String + + + + + + Name + + Specifies the name of the virtual machine to restart. + + String + + String + + + + + + + ServiceName + + Specifies the name of the Microsoft Azure service that contains the virtual machine to restart. + + String + + String + + + + + + + VM + + A virtual machine object that identifies the virtual machine to restart. + + PersistentVM + + PersistentVM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Restart-AzureVM -ServiceName "myservice1" –Name "MyVM" + + This command restarts the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service. + + + + + + + + + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVM -ServiceName "myservice1" -Name "MyVM" | Restart-AzureVM + + This command retrieves the virtual machine object for the virtual machine whose name is "MyVM" and then restarts it. + + + + + + + + + + + + Get-AzureVM + + Remove-AzureVM - + + Start-AzureVM - + + Stop-AzureVM - + + Update-AzureVM - + + - + + Save-AzureVhd - Enables download of .vhd images. + + @@ -26677,127 +25069,114 @@ PS C:\>Get-AzureVMImage ` - The Save-AzureVhd cmdlet enables download of .vhd images from a blob where they are stored to a file. It has parameters to configure the download process by specifying the number of downloader threads that are used or overwriting the file which already exists in the specified file path. - Save-AzureVhd does not do any VHD format conversion and the blob is downloaded as it is. + + The Save-AzureVhd cmdlet allows to download VHD images stored in a blob in to a file. It has parameters to configure the download process such as specifying the number of downloader threads that will be used or overwriting the file which already exists in the specified file path. Save-AzureVhd doesn't do any VHD format conversion and the blob is downloaded as it is. Save-AzureVhd - + Source - Specifies the Uniform Resource Identifier (URI) to the blob in azure_2. + Uri to the blob in Microsoft Azure. Uri - + LocalFilePath - Specifies the local file path. + + FileInfo - + NumberOfThreads - Specifies the number of download threads that this cmdlet uses during download. + Determines the number of download threads that will be used during download. - Int32 + Int32 - + StorageKey - Specifies the storage key of the blob storage account. If it is not provided, Save-AzureVhd attempts to determine the storage key of the account in SourceUri from Azure. + Storage key of the blob storage account. If it is not provided, Save-AzureVhd tries to determine the storage key of the account in Source Uri from Microsoft Azure Cloud. - String + String - + OverWrite - Specifies that this cmdlet deletes the file specified by LocalFilePath file if it exists. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Determines to delete the file specified by LocalFilePath file if it exists. - AzureProfile + SwitchParameter - - LocalFilePath - - Specifies the local file path. - - FileInfo - - FileInfo - - - none - - - NumberOfThreads + + Source - Specifies the number of download threads that this cmdlet uses during download. + Uri to the blob in Microsoft Azure. - Int32 + Uri - Int32 + Uri - none + + - - OverWrite + + LocalFilePath - Specifies that this cmdlet deletes the file specified by LocalFilePath file if it exists. + + - SwitchParameter + FileInfo - SwitchParameter + FileInfo - none + 2 - - Profile + + NumberOfThreads - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Determines the number of download threads that will be used during download. - AzureProfile + Int32 - AzureProfile + Int32 - none + 8 - - Source + + StorageKey - Specifies the Uniform Resource Identifier (URI) to the blob in azure_2. + Storage key of the blob storage account. If it is not provided, Save-AzureVhd tries to determine the storage key of the account in Source Uri from Microsoft Azure Cloud. - Uri + String - Uri + String - none + + - - StorageKey + + OverWrite - Specifies the storage key of the blob storage account. If it is not provided, Save-AzureVhd attempts to determine the storage key of the account in SourceUri from Azure. + Determines to delete the file specified by LocalFilePath file if it exists. - String + SwitchParameter - String + SwitchParameter - none + + @@ -26805,15 +25184,13 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - @@ -26822,111 +25199,109 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Download a VHD file + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" - + PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd - This command downloads a .vhd file. - - + Description - + -----------Downloads the specified blob to the specified local file path. - Example 2: Download a VHD file and overwrite the local file + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -Overwrite - + PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -Overwrite - This command downloads a .vhd file and overwrites any file in the destination path. - - + Description - + -----------Overwrite options tells to delete if local file exists. - Example 3: Download a VHD file and specify the number of threads + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -NumberOfThreads 32 - + PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -NumberOfThreads 32 - This command downloads a .vhd file and specifies the number of threads. - - + Description - + -----------NumberOfThreads allows to override the default number of threads, which is 8, used to download. - Example 4: Download a VHD file and specify the storage key + -------------------------- EXAMPLE 4 -------------------------- - PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -StorageKey "zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw==" - - + PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -StorageKey zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw== - This command downloads a .vhd file and specifies the storage key. - - + Description - + -----------If storage key is specified, Save-AzureVhd doesn't attempt to get the storage key from Microsoft Azure Cloud and uses the provided the key in download. - Add-AzureVhd - + Unknown + + - + + Save-AzureVMImage - Captures and saves the image of a stopped Azure virtual machine. + Save OS or VM images from existing VMs. For capturing a VM Image, use the -OSState parameter. @@ -26936,138 +25311,127 @@ PS C:\>Get-AzureVMImage ` - The Save-AzureVMImage cmdlet captures and saves the image of a stopped Azure virtual machine. For Windows virtual machines, run the Sysprep tool to prepare the image before it is captured. After the image is captured, the virtual machine is deleted. + + Save OS or VM images from existing VMs Save-AzureVMImage - + ServiceName - Specifies the name of the Azure service. + The Service Name. String - + Name - Specifies the name of the source virtual machine. + The VM Name. String - + ImageName - Specifies the name of the virtual machine image. + Not Specified String - + ImageLabel - Specifies the label of the virtual machine image. + Not Specified - String + String - + OSState - Specifies the operation system state for the virtual machine image. Use this parameter if you intend to capture a virtual machine image to Azure. - Valid values are: - --- Generalized --- Specialized - - - Generalized - Specialized - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The OS State for VM Image only: 'Generalized' or 'Specialized'. The use of this parameter indicates your intent to capture VM Image to Azure. - AzureProfile + String - - ImageLabel + + ServiceName - Specifies the label of the virtual machine image. + The Service Name. - String + String String - none + + - - ImageName + + Name - Specifies the name of the virtual machine image. + The VM Name. String String - none + + - - Name + + ImageName - Specifies the name of the source virtual machine. + Not Specified String String - none + + - - OSState + + ImageLabel - Specifies the operation system state for the virtual machine image. Use this parameter if you intend to capture a virtual machine image to Azure. - Valid values are: - --- Generalized --- Specialized + Not Specified - String + String String - none + + - - Profile + + OSState - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The OS State for VM Image only: 'Generalized' or 'Specialized'. The use of this parameter indicates your intent to capture VM Image to Azure. - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + PipelineVariable - Specifies the name of the Azure service. + Not Specified - String + string - String + string - none + + @@ -27075,15 +25439,13 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - @@ -27092,65 +25454,93 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Save an existing virtual machine and then delete it from a deployment + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> + + Description + + + + -----------Description + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> + + Description + + + + -----------Description + + + + + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Save-AzureVMImage -ServiceName "MyService" -Name "MyVM" -NewImageName "MyBaseImage" -NewImageLabel "MyBaseVM" - + PS C:\> - This command captures an existing virtual machine and deletes it from the deployment. - - + Description - + -----------Description - Add-AzureVMImage - - - - Get-AzureVMImage - - - - Remove-AzureVMImage - - - - Update-AzureVMImage - + Unknown + + - + + Set-AzureAclConfig - Modifies an ACL configuration object. + Sets the ACL configuration object on an existing Azure VM configuration. @@ -27160,242 +25550,249 @@ PS C:\>Get-AzureVMImage ` - The Set-AzureAclConfig cmdlet modifies an access control list (ACL) configuration object from an existing Azure virtual machine configuration. + + The Set-AzureAclConfig cmdlet sets the ACL configuration object from an existing Azure VM configuration. Set-AzureAclConfig - + + AddRule + + Indicates that a rule should be added. + + SwitchParameter + + Action - Specifies the action for the rule that this cmdlet adds or modifies. Valid values are: Permit and Deny. + Specifies this rules action. Must be either Permit or Deny. - - Permit - Deny - + String - + RemoteSubnet - Specifies the remote subnet for the rule that this cmdlet adds or modifies. Specifies an address in Classless Interdomain Routing (CIDR) format. + Specifies the remote subnet for this rule. Must be a valid CIDR Address. String - + Order - Specifies the processing order for the rule that this cmdlet adds or modifies. + Specifies the processing order for this rule. - Int32 + Int32 - + Description - Specifies a description for the rule that this cmdlet adds or modifies. + A description for this rule. - String + String - + ACL - Specifies an ACL configuration object that this cmdlet modifies. + The ACL configuration object to add this rule to. NetworkAclObject - - AddRule - - Indicates that this cmdlet adds a rule to the ACL configuration. - - Set-AzureAclConfig - + + RemoveRule + + Indicates that a rule should be removed. + + SwitchParameter + + RuleId - Specifies the ID of the rule that this cmdlet removes or modifies for the ACL configuration. + Specifies the rule ID to remove from the given ACL configuration. Int32 - + ACL - Specifies an ACL configuration object that this cmdlet modifies. + The ACL configuration object to add this rule to. NetworkAclObject - - RemoveRule - - Indicates that this cmdlet removes a rule from the ACL configuration. - - Set-AzureAclConfig - - Action + + SetRule - Specifies the action for the rule that this cmdlet adds or modifies. Valid values are: Permit and Deny. + Indicates that a rule should be changed. - - Permit - Deny - + SwitchParameter - + RuleId - Specifies the ID of the rule that this cmdlet removes or modifies for the ACL configuration. + Specifies the rule ID to remove from the given ACL configuration. Int32 - + + Action + + Specifies this rules action. Must be either Permit or Deny. + + String + + RemoteSubnet - Specifies the remote subnet for the rule that this cmdlet adds or modifies. Specifies an address in Classless Interdomain Routing (CIDR) format. + Specifies the remote subnet for this rule. Must be a valid CIDR Address. String - + Order - Specifies the processing order for the rule that this cmdlet adds or modifies. + Specifies the processing order for this rule. - Int32 + Int32 - + Description - Specifies a description for the rule that this cmdlet adds or modifies. + A description for this rule. - String + String - + ACL - Specifies an ACL configuration object that this cmdlet modifies. + The ACL configuration object to add this rule to. NetworkAclObject - - SetRule - - Indicates that this cmdlet modifies a rule in the ACL configuration. - - - - ACL + + AddRule - Specifies an ACL configuration object that this cmdlet modifies. + Indicates that a rule should be added. - NetworkAclObject + SwitchParameter - NetworkAclObject + SwitchParameter - none + + - + Action - Specifies the action for the rule that this cmdlet adds or modifies. Valid values are: Permit and Deny. + Specifies this rules action. Must be either Permit or Deny. String String - none + + - - AddRule + + RemoteSubnet - Indicates that this cmdlet adds a rule to the ACL configuration. + Specifies the remote subnet for this rule. Must be a valid CIDR Address. - SwitchParameter + String - SwitchParameter + String - none + + - - Description + + Order - Specifies a description for the rule that this cmdlet adds or modifies. + Specifies the processing order for this rule. - String + Int32 - String + Int32 - none + + - - Order + + Description - Specifies the processing order for the rule that this cmdlet adds or modifies. + A description for this rule. - Int32 + String - Int32 + String - none + + - - RemoteSubnet + + ACL - Specifies the remote subnet for the rule that this cmdlet adds or modifies. Specifies an address in Classless Interdomain Routing (CIDR) format. + The ACL configuration object to add this rule to. - String + NetworkAclObject - String + NetworkAclObject - none + + - + RemoveRule - Indicates that this cmdlet removes a rule from the ACL configuration. + Indicates that a rule should be removed. - SwitchParameter + SwitchParameter SwitchParameter - none + + - + RuleId - Specifies the ID of the rule that this cmdlet removes or modifies for the ACL configuration. + Specifies the rule ID to remove from the given ACL configuration. Int32 Int32 - none + + - + SetRule - Indicates that this cmdlet modifies a rule in the ACL configuration. + Indicates that a rule should be changed. - SwitchParameter + SwitchParameter SwitchParameter - none + + @@ -27403,15 +25800,13 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - @@ -27420,121 +25815,111 @@ PS C:\>Get-AzureVMImage ` - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a rule to a new ACL configuration + -------------------------- Example 1 -------------------------- - PS C:\>$Acl = New-AzureAclConfig -PS C:\> Set-AzureAclConfig -AddRule -ACL $Acl -Action Permit -RemoteSubnet "172.0.0.0/8" -Order 100 -Description "Permit ACL rule" - + PS C:\> C:\PS> $acl = New-AzureAclConfig +C:\PS> Set-AzureAclConfig -AddRule -ACL $acl Permit 172.0.0.0/8 100 "Rule Description" - The first command creates an ACL configuration, and then stores it in the $Acl variable. - The second command adds a new rule to the configuration stored in $Acl. The command specifies an action, subnet, order, and description for the rule. - - + This command will create a new ACL configuration and add a new rule to the configuration. - + + - Example 2: Modify a rule in an ACL configuration + -------------------------- Example 2 -------------------------- - PS C:\>$Acl = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureAclConfig -EndpointName "Web" -PS C:\> Set-AzureAclConfig -SetRule -RuleId 0 -ACL $Acl -Order 102 -Description "Web endpoint rule" -PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Set-AzureEndpoint -ACL $Acl -Name "Web" | Update-AzureVM - + PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Get-AzureAclConfig -EndpointName "Web" +C:\PS> Set-AzureAclConfig –SetRule -ID 0 -ACL $acl -Order 102 -Description "New Description" +C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -ACL $acl -Name "Web" | Update-AzureVM - The first command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the Get-AzureAclConfig cmdlet by using the pipeline operator. That cmdlet gets the ACL configuration for the endpoint named Web. The command stores that ACL configuration object in the $Acl variable. - The second command modifies the rule that has the ID of 0. The command changes the order and the description of the rule. - The final command sets the ACL configuration object for that virtual machine by using the Set-AzureEndpoint cmdlet. The command also updates that virtual machine. - - + This command will get the ACL Configuration of the endpoint "Web" on "MyVM" and set the Order of the first ACL rule to 102, and change it's description, then update the VM. - + + - Example 3: Remove a rule from an ACL configuration + -------------------------- Example 3 -------------------------- - PS C:\>$Acl = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureAclConfig -EndpointName "Web" -PS C:\> Set-AzureAclConfig -RemoveRule -ID 0 -ACL $Acl -PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Set-AzureEndpoint -ACL $Acl -Name "Web" | Update-AzureVM - + PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Get-AzureAclConfig -EndpointName "Web" +C:\PS> Set-AzureAclConfig –RemoveRule -ID 0 -ACL $acl +C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -ACL $acl -Name "Web" | Update-AzureVM - The first command stores an ACL configuration object in the $Acl variable. This is the same as the previous example. - The second command removes the rule that has the ID 0 from the ACL configuration in $Acl. - The final command sets the ACL configuration object for the virtual machine and updates that virtual machine. This is the same as the previous example. - - + This command will get the ACL Configuration of the endpoint "Web" on "MyVM" and remove the first ACL rule, then update the VM. - + + - - Get-AzureAclConfig - - - - Get-AzureVM - - New-AzureAclConfig - + + Remove-AzureAclConfig - - - - Set-AzureEndpoint - + + - Update-AzureVM - + Get-AzureAclConfig + + - + + Set-AzureAffinityGroup - Modifies properties of an affinity group. + Updates the properties of a Microsoft Azure affinity group. @@ -27544,89 +25929,74 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - The Set-AzureAffinityGroup cmdlet modifies properties of an Azure affinity group. You can change the label and the description. + + The Set-AzureAffinityGroup cmdlet updates properties of the specified affinity group. The properties that can be changed are the Label and the Description. Set-AzureAffinityGroup - + Name - Specifies the name of the affinity group that this cmdlet modifies. + Specifies the name of the affinity group to change the properties of. String - - Description - - Specifies the description of the affinity group. The description can be up to 1024 characters long. - - String - - - Profile + + Label - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a label for the affinity group. The label can be up to 100 characters in length. - AzureProfile + String - - Label + + Description - Specifies a label for the affinity group. The label can be up to 100 characters long. + Specifies the description of the affinity group. The description can be up to 1024 characters in length. String - - Description + + Name - Specifies the description of the affinity group. The description can be up to 1024 characters long. + Specifies the name of the affinity group to change the properties of. - String + String String - none + + - + Label - Specifies a label for the affinity group. The label can be up to 100 characters long. + Specifies a label for the affinity group. The label can be up to 100 characters in length. String String - none + + - - Name + + Description - Specifies the name of the affinity group that this cmdlet modifies. + Specifies the description of the affinity group. The description can be up to 1024 characters in length. String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + @@ -27634,15 +26004,13 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - @@ -27651,37 +26019,44 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Modify an affinity group + -------------------------- Example 1 -------------------------- - PS C:\>Set-AzureAffinityGroup -Name "South01" -Label "SouthUSProduction" -Description "Production applications for Southern US locations" - + PS C:\> C:\PS>Set-AzureAffinityGroup -Name "MyGroup1" -Label "SouthUSProduction" -Description "Production applications for Southern US locations" - This command modifies the label of the affinity group named South01 to be SouthUSProduction The command also modifies the description. - - + This command sets the label of the affinity group MyGroup1 to "SouthUSProduction" and sets the description to "Production applications for Southern US locations" - + + @@ -27689,23 +26064,27 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureAffinityGroup - + + New-AzureAffinityGroup - + + Remove-AzureAffinityGroup - + + - + + Set-AzureAvailabilitySet - Sets the name of the availability set on an Azure virtual machine. + Sets the availability set name of an Azure VM after deployment. @@ -27715,70 +26094,67 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - The Set-AzureAvailabilitySet cmdlet sets the name of the availability set on an Azure virtual machine after deployment. + + The Set-AzureAvailabilitySet cmdlet sets the availability set name of an Azure VM after deployment. Set-AzureAvailabilitySet - + AvailabilitySetName - Specifies the name of the availability set to which the virtual machine belongs. + Name of the availability set on the virtual machine String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM - Specifies the virtual machine configuration that this cmdlet modifies. + An Azure VM configuration to modify. IPersistentVM - + AvailabilitySetName - Specifies the name of the availability set to which the virtual machine belongs. + Name of the availability set on the virtual machine String String - none + + - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + An Azure VM configuration to modify. - AzureProfile + IPersistentVM - AzureProfile + IPersistentVM - none + + - - VM + + PipelineVariable - Specifies the virtual machine configuration that this cmdlet modifies. + Not Specified - IPersistentVM + string - IPersistentVM + string - none + + @@ -27786,15 +26162,13 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - @@ -27803,57 +26177,61 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Modify the name of an availability set + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine24" | Set-AzureAvailabilitySet -Name "AvailabilitySet14" | Update-AzureVM - + PS C:\> Get-AzureVM -ServiceName "MyAzureCS" -Name "MyVM" | Set-AzureAvailabilitySetName "MyASet" | Update-AzureVM - The first command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the current cmdlet by using the pipeline operator. That cmdlet modifies the name of the availability set for that virtual machine. The command updates the virtual machine. - - + Description - + -----------Adds the VM to an availability set "MyAset" - Get-AzureVM - - - - Remove-AzureAvailabilitySet - + Unknown + + - + + Set-AzureDataDisk - Modifies the host caching of an existing data disk on an Azure virtual machine. + Sets the host-cache mode on an existing data disk object. @@ -27863,156 +26241,124 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - The Set-AzureDataDisk cmdlet modifies the cache attributes of an existing data disk on an Azure virtual machine. Specify which data disk to update by its logical unit number (LUN). + + The Set-AzureDataDisk cmdlet updates the cache attributes of an existing data disk object on a Microsoft Azure virtual machine. The possible host caching values are: None, ReadOnly, and ReadWrite. You can specify which data disk to update by specifying its logical unit number (LUN). Set-AzureDataDisk - - DiskName + + HostCaching - Specifies the name of the data disk configuration that this cmdlet modifies. + Sets the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. String - - ResizedSizeInGB + + LUN - Specifies the new size, in gigabytes, for the data disk. The new size must be larger than the current size. + Numerical value that defines the slot where the data drive is mounted in the virtual machine. Int32 - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM - Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + The virtual machine where the data disk is mounted. IPersistentVM Set-AzureDataDisk - - HostCaching - - Specifies the host level caching settings of the disk. Valid values are: - --- None --- ReadOnly --- ReadWrite - - - None - ReadOnly - ReadWrite - - - - LUN + + DiskName - Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. + The Name of the DataDiskConfiguration being referenced to. - Int32 + string - - Profile + + ResizedSizeInGB - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Resize the new data disk to a larger size. - AzureProfile + int - + VM - Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + The virtual machine where the data disk is mounted. IPersistentVM - + DiskName - Specifies the name of the data disk configuration that this cmdlet modifies. + The Name of the DataDiskConfiguration being referenced to. - String + string - String + string - none + + - + HostCaching - Specifies the host level caching settings of the disk. Valid values are: - --- None --- ReadOnly --- ReadWrite + Sets the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. String String - none + + - + LUN - Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. + Numerical value that defines the slot where the data drive is mounted in the virtual machine. Int32 Int32 - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - + ResizedSizeInGB - Specifies the new size, in gigabytes, for the data disk. The new size must be larger than the current size. + Resize the new data disk to a larger size. - Int32 + int - Int32 + int - none + + - + VM - Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + The virtual machine where the data disk is mounted. IPersistentVM IPersistentVM - none + + @@ -28020,15 +26366,13 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - @@ -28037,56 +26381,65 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Modify the host caching for a data disk + -------------------------- Example 1 -------------------------- - PS C:\>Get-AzureVM "ContosoService" | Set-AzureDataDisk -VM "VirtualMachine07" -LUN 2 -HostCaching ReadOnly | Update-AzureVM - + PS C:\> C:\PS>Get-AzureVM "myservice" ` + | Set-AzureDataDisk -VM "MyVM" -LUN 2 -HostCaching ReadOnly | Update-AzureVM - This command gets the virtual machines that run on the service named ContosoService by using the Get-AzureVM cmdlet. The command passes them to the current cmdlet by using the pipeline operator. That cmdlet sets the data disk at LUN 2 of the virtual machine named VirtualMachine07 to use ReadOnly host caching. The command updates the virtual machine to reflect your changes by using the Update-AzureVM cmdlet. - - + This command gets the virtual machines running on the "myservice" cloud service, and then sets the data disk at LUN 2 of the "MyVM" virtual machine to use ReadOnly host caching. - + + - Example 2: Modify the host caching for all data disks on a virtual machine + -------------------------- Example 2 -------------------------- - PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Get-AzureDataDisk | Set-AzureDataDisk -HostCaching ReadWrite | Update-AzureVM - + PS C:\> C:\PS>Get-AzureVM "myservice" -Name "MyVM" ` + | Get-AzureDataDisk ` + | Set-AzureDataDisk -HostCaching ReadWrite ' + | Update-AzureVM - This command gets an object for the virtual machine named VirtualMachine07 on the ContosoService cloud service. The command passes it to the Get-AzureDataDisk cmdlet, which gets the data disks for that virtual machine. The current cmdlet then sets the host caching mode of each data disks to ReadWrite. The command updates the virtual machine to reflect your changes. - - + This command gets an object representing the "MyVM" virtual machine running on the "myservice" cloud service, gets an object or objects representing all the data disks on the virtual machine, and then sets the host caching mode of those data disks to ReadWrite. - + + @@ -28094,31 +26447,27 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Add-AzureDataDisk - + + Get-AzureVM - - - - Get-AzureDataDisk - - - - Remove-AzureDataDisk - + + Update-AzureVM - + + - + + Set-AzureDeployment - Modifies the status, configuration settings, or upgrade mode of a deployment. + Sets status, upgrade mode, and configuration settings of a Microsoft Azure deployment. @@ -28128,361 +26477,323 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - The Set-AzureDeployment cmdlet modifies the status, configuration settings, or upgrade mode of an Azure deployment. You can change the status of the deployment to either Running or Suspended. You can change the .cscfg file for the deployment. You can set the upgrade mode and update configuration files. Use the Set-AzureWalkUpgradeDomain cmdlet to initiate an upgrade. + + The Set-AzureDeployment cmdlet sets the status, configuration settings, or upgrade mode of a Microsoft Azure deployment. + With the -Status parameter, you can change the status of the deployment to either "Running" or "Suspended". With the -Config parameter, you can update the .cscfg file, and with the -Upgrade parameter, you set the upgrade mode and update configuration files. Use the Set-AzureWalkUpgradeDomain cmdlet to actually initiate the upgrade. Set-AzureDeployment - - Config + + Upgrade - Specifies that this cmdlet modifies the configuration of the deployment. + When specified, requests an upgrade to the Microsoft Azure deployment. + SwitchParameter - + ServiceName - Specifies the name of the Azure service of the deployment. + Specifies the Microsoft Azure service name of the deployment. String - - Configuration + + Package - Specifies the full path of a .cscfg configuration file. You can specify a configuration file for an upgrade or configuration change. + Specifies the full path to the upgrade package (.cspkg) file. String - - Slot - - Specifies the environment of the deployment to modify. Valid values are: Production and Staging. - - - Staging - Production - - - - ExtensionConfiguration - - Specifies an array of extension configuration objects. - - ExtensionConfigurationInput[] - - - Profile + + Configuration - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the path to the new configuration (.cscfg) file when performing an upgrade or configuration change. - AzureProfile + String - - - Set-AzureDeployment - - Upgrade + + Slot - Specifies that this cmdlet upgrades the deployment. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + String - - ExtensionConfiguration + + Mode - Specifies an array of extension configuration objects. + Specifies the mode of upgrade. Supported values are: "Auto", "Manual", and "Simultaneous". - ExtensionConfigurationInput[] + String - - ServiceName + + Label - Specifies the name of the Azure service of the deployment. + Specifies a new label for the upgraded deployment. String - - Package + + RoleName - Specifies the full path of an upgrade package file. + Specifies the name of the role to upgrade. String - - Configuration + + Force - Specifies the full path of a .cscfg configuration file. You can specify a configuration file for an upgrade or configuration change. + When specified, sets the upgrade to a forced upgrade. - String + SwitchParameter - - Slot + + ExtensionConfiguration - Specifies the environment of the deployment to modify. Valid values are: Production and Staging. + When specified, requests an upgrade to the Microsoft Azure deployment. - - Staging - Production - + ExtensionConfigurationInput[] - - Mode + + + Set-AzureDeployment + + Config - Specifies the mode of upgrade. Valid values are: - --- Auto --- Manual --- Simultaneous + When specified, modifies the .cscfg file for the deployment. - - Auto - Manual - Simultaneous - + SwitchParameter - - Label + + ServiceName - Specifies a label for the upgraded deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - - RoleName + + Configuration - Specifies the name of the role to upgrade. + Specifies the path to the new configuration (.cscfg) file when performing an upgrade or configuration change. - String + String - - Force + + Slot - Indicates that cmdlet performs a forced upgrade. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + String - - Profile + + ExtensionConfiguration - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + When specified, requests an upgrade to the Microsoft Azure deployment. - AzureProfile + ExtensionConfigurationInput[] Set-AzureDeployment - - ServiceName - - Specifies the name of the Azure service of the deployment. - - String - - + Status - Specifies that this cmdlet changes the status of the deployment. + When specified, requests a status change for the Microsoft Azure deployment. + SwitchParameter - - NewStatus + + ServiceName - Specifies the target status for the deployment. Valid values are: Running and Suspended. + Specifies the Microsoft Azure service name of the deployment. - - Running - Suspended - + String - + Slot - Specifies the environment of the deployment to modify. Valid values are: Production and Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Staging - Production - + String - - Profile + + NewStatus - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the target status for the deployment. Supported values are "Running" or "Suspended". - AzureProfile + String - - Config + + Upgrade - Specifies that this cmdlet modifies the configuration of the deployment. + When specified, requests an upgrade to the Microsoft Azure deployment. - SwitchParameter + SwitchParameter SwitchParameter - none + + - - Configuration + + ServiceName - Specifies the full path of a .cscfg configuration file. You can specify a configuration file for an upgrade or configuration change. + Specifies the Microsoft Azure service name of the deployment. String String - none + + - - ExtensionConfiguration + + Package - Specifies an array of extension configuration objects. + Specifies the full path to the upgrade package (.cspkg) file. - ExtensionConfigurationInput[] + String - ExtensionConfigurationInput[] + String - none + + - - Force + + Configuration - Indicates that cmdlet performs a forced upgrade. + Specifies the path to the new configuration (.cscfg) file when performing an upgrade or configuration change. - SwitchParameter + String - SwitchParameter + String - none + + - - Label + + Slot - Specifies a label for the upgraded deployment. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - String + String String - none + + - + Mode - Specifies the mode of upgrade. Valid values are: - --- Auto --- Manual --- Simultaneous + Specifies the mode of upgrade. Supported values are: "Auto", "Manual", and "Simultaneous". - String + String String - none + + - - NewStatus + + Label - Specifies the target status for the deployment. Valid values are: Running and Suspended. + Specifies a new label for the upgraded deployment. String String - none + + - - Package + + RoleName - Specifies the full path of an upgrade package file. + Specifies the name of the role to upgrade. String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - - RoleName + + Force - Specifies the name of the role to upgrade. + When specified, sets the upgrade to a forced upgrade. - String + SwitchParameter - String + SwitchParameter - none + + - - ServiceName + + ExtensionConfiguration - Specifies the name of the Azure service of the deployment. + When specified, requests an upgrade to the Microsoft Azure deployment. - String + ExtensionConfigurationInput[] - String + ExtensionConfigurationInput[] - none + + - - Slot + + Config - Specifies the environment of the deployment to modify. Valid values are: Production and Staging. + When specified, modifies the .cscfg file for the deployment. - String + SwitchParameter - String + SwitchParameter - none + + - + Status - Specifies that this cmdlet changes the status of the deployment. + When specified, requests a status change for the Microsoft Azure deployment. - SwitchParameter + SwitchParameter SwitchParameter - none + + - - Upgrade + + NewStatus - Specifies that this cmdlet upgrades the deployment. + Specifies the target status for the deployment. Supported values are "Running" or "Suspended". - SwitchParameter + String - SwitchParameter + String - none + + @@ -28490,15 +26801,13 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - @@ -28507,94 +26816,91 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Change the status of a deployment + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureDeployment -Status -ServiceName "ContosoService" -Slot "Production" -NewStatus "Running" - + PS C:\> Set-AzureDeployment -Status -ServiceName "MySvc1" -Slot "Production" -NewStatus "Running" - This command sets the status of the deployment for the service named ContosoService in the production environment to Running. - - + Description - + -----------This command sets the status of the deployment in the production environment to Running. - Example 2: Assign a different configuration file to a deployment + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Set-AzureDeployment -Config -ServiceName "ContosoService" -Slot "Staging" -Configuration "C:\Temp\MyServiceConfig.Cloud.csfg" - + PS C:\> Set-AzureDeployment -Config -ServiceName "MySvc1" -Slot "Staging" -Configuration "C:\Temp\MyServiceConfig.Cloud.csfg" - This command assigns a different configuration file for the deployment for the service named ContosoService in the staging environment. - - + Description - + -----------This command updates the deployment in the staging environment with a new configuration file. - Example 3: Set the upgrade mode to Auto + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Set-AzureDeployment -Upgrade -ServiceName "ContosoService" -Mode Auto -Package "C:\packages\ContosoApp.cspkg" -Configuration "C:\Config\ContosoServiceConfig.Cloud.csfg" - + PS C:\> Set-AzureDeployment -Upgrade -ServiceName "MySvc1" -Mode Auto -Package "C:\Temp\MyApp.cspkg" -Configuration "C:\Temp\MyServiceConfig.Cloud.csfg" - This command sets the upgrade mode to Auto, and specifies an upgrade package and a new configuration file. - - + Description - + -----------This command sets the upgrade mode to Auto and specifies an upgrade package and a new configuration file. - Example 4: Install extension configuration in a service + -------------------------- EXAMPLE 4 -------------------------- - PS C:\>Set-AzureDeployment -Config -ServiceName "ContosoService" -Mode "Automatic" -Package "https://contosostorage.blob.core.windows.net/container06/ContosoPackage.cspkg" -Configuration "C:\packages\ContosoConfiguration.cscfg" -Slot "Production" -ExtensionConfiguration "C:\packages\ContosoExtensionConfig.cscfg" - + PS C:\> Set-AzureDeployment –ServiceName –Mode Automatic $svc -Package $pkg -Configuration $cnfg -Slot Production -ExtensionConfiguration $wadConfig - This command installs the extension configuration in the specified Cloud Service and applies them on roles. - - + Description - + -----------This example installs the extension configuration in the specified Cloud Service and applies them on roles. @@ -28602,35 +26908,32 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureDeployment - - - - Get-AzureDeploymentEvent - + + Move-AzureDeployment - + + New-AzureDeployment - + + Remove-AzureDeployment - - - - Set-AzureWalkUpgradeDomain - + + - + + Set-AzureDns - Modifies the IP address of a DNS server. + Updates the IP Address of the specified DNS server. @@ -28640,89 +26943,88 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - The Set-AzureDns cmdlet modifies the IP address of a DNS server for an Azure service. + + The Set-AzureDns cmdlets updates the IP Address of the specified DNS server. Set-AzureDns - + Name - Specifies the name of the DNS server that this cmdlet modifies. + Specifies the name of the DNS server to be updated String - + IPAddress - Specifies the new IP address of the DNS server. + Specifies the IP address of the DNS server String - + ServiceName - Specifies the name of the service for which this cmdlet modifies the address of the DNS server. + Specifies the name of the cloud service String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - IPAddress + + Name - Specifies the new IP address of the DNS server. + Specifies the name of the DNS server to be updated String String - none + + - - Name + + IPAddress - Specifies the name of the DNS server that this cmdlet modifies. + Specifies the IP address of the DNS server String String - none + + - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the cloud service - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + PipelineVariable - Specifies the name of the service for which this cmdlet modifies the address of the DNS server. + + - String + string - String + string - none + + @@ -28730,15 +27032,13 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | - - + - + + - - @@ -28746,349 +27046,356 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Modify the IP address of a DNS server + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureDns -ServiceName "ContosoService" -IPAddress 10.1.2.5 -Name "Dns07" - + PS C:\> Set-AzureDns -ServiceName "myservice" -IPAddress 10.1.2.5 -Name "mydns" - This command modifies the IP address of the DNS server named Dns07 for the service named ContosoService. - - + Description - + -----------This command updates the IP Address of the DNS server "mydns" - Add-AzureDns - - - - Get-AzureDns - - - - New-AzureDns - - - - Remove-AzureDns - + Unknown + + - + + - Set-AzureEndpoint + + Set-AzureEndpoint + - Modifies an endpoint assigned to a virtual machine. + The Set-AzureInputEndpoint cmdlet updates an existing endpoint assigned to a virtual machine. You can specify updates to an endpoint that is not load balanced, which only a single virtual machine uses. - + + Set AzureEndpoint - + + - The Set-AzureEndpoint cmdlet modifies an endpoint assigned to an Azure virtual machine. You can specify changes to an endpoint that is not load balanced. + + + Set-AzureEndpoint - + Name Specifies the name of the endpoint. - String + string - + Protocol - Specifies the protocol of the endpoint. Valid values are: - --- tcp --- udp + Specifies the protocol of the endpoint. Acceptable values are "tcp" or "udp". - - tcp - udp - + string - + LocalPort - Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. + Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. - Int32 + int - + + VM + + Specifies the virtual machine object for which the endpoint will be created. + + IPersistentVM + + ACL - Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoint. + An ACL to apply to the endpoint on update. - NetworkAclObject + NetworkAclObject - + DirectServerReturn - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + - Boolean + System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - + IdleTimeoutInMinutes - Specifies the TCP idle time-out period, in minutes, for the endpoint. + TCP Idle timeout in minutes - Int32 + int - + InternalLoadBalancerName - Specifies the name of the internal load balancer. + Not Specified - String + string - + LoadBalancerDistribution - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + + Load Balancer distribution algorithm -The default value is none. + The value can be + sourceIP: 2 tuple affinity (Source IP, Destination IP) + sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) + none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value + - - sourceIP - sourceIPProtocol - none - + string - - Profile + + PipelineVariable - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + string - + PublicPort - Specifies the public port that the endpoint uses. + + - Int32 + System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - + VirtualIPName - Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. - String - - - VM - - Specifies the virtual machine to which the endpoint belongs. - - IPersistentVM + string + - + ACL - Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoint. + An ACL to apply to the endpoint on update. - NetworkAclObject + NetworkAclObject NetworkAclObject - none + + - + DirectServerReturn - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + - Boolean + System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - Boolean + System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - none + + - + IdleTimeoutInMinutes - Specifies the TCP idle time-out period, in minutes, for the endpoint. + TCP Idle timeout in minutes - Int32 + int - Int32 + int - none + + - + InternalLoadBalancerName - Specifies the name of the internal load balancer. + Not Specified - String + string - String + string - none + + - + LoadBalancerDistribution - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + + Load Balancer distribution algorithm -The default value is none. + The value can be + sourceIP: 2 tuple affinity (Source IP, Destination IP) + sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) + none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value + - String + string - String + string - none + + - + LocalPort - Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. + Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. - Int32 + int - Int32 + int - none + + - + Name Specifies the name of the endpoint. - String + string - String + string - none + + - - Profile + + PipelineVariable - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Not Specified - AzureProfile + string - AzureProfile + string - none + + - + Protocol - Specifies the protocol of the endpoint. Valid values are: - --- tcp --- udp + Specifies the protocol of the endpoint. Acceptable values are "tcp" or "udp". - String + string - String + string - none + + - + PublicPort - Specifies the public port that the endpoint uses. + + - Int32 + System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - Int32 + System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - none + + - + VirtualIPName - Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. - String + string - String + string - none + + - + VM - Specifies the virtual machine to which the endpoint belongs. + Specifies the virtual machine object for which the endpoint will be created. IPersistentVM IPersistentVM - none + + + - - - - - + + + @@ -29097,73 +27404,82 @@ The default value is none. System.Object - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Modify an endpoint to listen on a port + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirutalMachine01" | Set-AzureEndpoint -Name "Web" -PublicPort 443 -LocalPort 443 -Protocol tcp | Update-AzureVM - + + Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -Name "Web" -PublicPort 443 -LocalPort 443 -Protocol "tcp" | Update-AzureVM + - This command retrieves the configuration of a virtual machine named VirtualMachine01 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet modifies the endpoint named Web to listen on port 443. The command passes the virtual machine object to the Update-AzureVM cmdlet, which implements your changes. - - + Description + ----------- + This command updates the input endpoint named "Web" assigned to the virtual machine "MyVM" to listen on Port 443 + + + + + + + + - + + + - Add-AzureEndpoint - - - - Add-AzureVirtualIP - - - - Get-AzureEndpoint - - - - Get-AzureVM - - - - Remove-AzureEndpoint - - - - Update-AzureVM + + - + + Set-AzureInternalLoadBalancer - Modifies an internal load balancer configuration in an Azure service. + + @@ -29173,163 +27489,149 @@ The default value is none. - The Set-AzureInternalLoadBalancer cmdlet modifies an internal load balancer configuration in an Azure service. For a virtual network, you can specify a subnet or the IP address of the internal load balancer. + + + Set-AzureInternalLoadBalancer - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet modifies. + + String - + ServiceName - Specifies the name of the service in which this cmdlet modifies an internal load balancer. + + String - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - Set-AzureInternalLoadBalancer - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet modifies. + + String - + ServiceName - Specifies the name of the service in which this cmdlet modifies an internal load balancer. + + String - + SubnetName - Specifies the name of the subnet for an internal load balancer. + + String - - Profile + + StaticVNetIPAddress - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + IPAddress Set-AzureInternalLoadBalancer - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet modifies. + + String - + ServiceName - Specifies the name of the service in which this cmdlet modifies an internal load balancer. + + String - + SubnetName - Specifies the name of the subnet for an internal load balancer. + + String - - StaticVNetIPAddress - - Specifies the virtual network IP address for an internal load balancer. - - IPAddress - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet modifies. + + String String - none + + - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - AzureProfile + String - none + + - - ServiceName + + SubnetName - Specifies the name of the service in which this cmdlet modifies an internal load balancer. + + String String - none + + - + StaticVNetIPAddress - Specifies the virtual network IP address for an internal load balancer. + + IPAddress IPAddress - none - - - SubnetName - - Specifies the name of the subnet for an internal load balancer. - - String - - String - - - none + + @@ -29337,15 +27639,13 @@ The default value is none. - - + - + + - - @@ -29354,687 +27654,448 @@ The default value is none. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - 1: - - - - - - - - - - - - - - - - - - Add-AzureInternalLoadBalancer - - - - Get-AzureInternalLoadBalancer - - - - New-AzureInternalLoadBalancerConfig - - - - Remove-AzureInternalLoadBalancer - - - + + - Set-AzureLoadBalancedEndpoint + + Set-AzureLoadBalancedEndpoint + - Modifies all of the endpoints in a load balancer set within an Azure service. + Updates all of the endpoints in a given load balancer set within a Windows Azure Service. - + + Set AzureLoadBalancedEndpoint - + + - The Set-AzureLoadBalancedEndpoint cmdlet modifies all of the endpoints in a load balancer set in an Azure service. + The Set-AzureLoadBalancedEndpoint cmdlet updates all of the endpoints in a given load balancer set within a Windows Azure Service. + Set-AzureLoadBalancedEndpoint - + ServiceName - Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. - - String - - - ACL - - Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. - - NetworkAclObject - - - DirectServerReturn - - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - - Boolean - - - IdleTimeoutInMinutes - - Specifies the TCP idle time-out period, in minutes, for the endpoints. - - Int32 - - - InternalLoadBalancerName - - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. - - String - - - LoadBalancerDistribution - - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol - -The default value is none. - - - sourceIP - sourceIPProtocol - none - - - - LocalPort - - Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. - - Int32 - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Protocol - - Specifies the protocol of the endpoints. Valid values are: - --- TCP --- UDP + Specifies the name of the Windows Azure service containing the endpoint that will be modified. - - TCP - UDP - + string - - PublicPort + + LBSetName - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + Specifies the name of the load balancer set to update. - Int32 + string - - VirtualIPName + + ProbePath - Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. + Specifies relative path to the HTTP Probe. - String + string - - LBSetName + + ProbeProtocolHTTP - Specifies the name of the load balancer set that this cmdlet updates. + Specifies that a HTTP Probe should be used. - String - - - Set-AzureLoadBalancedEndpoint - - ServiceName + + ProbeProtocolTCP - Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. + Specifies that a TCP Probe should be used. - String - + ACL - Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. + An ACL to apply to the endpoint on update. - NetworkAclObject + NetworkAclObject - + DirectServerReturn - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + Enable/Disable Direct Server Return. - Boolean + Boolean - + IdleTimeoutInMinutes - Specifies the TCP idle time-out period, in minutes, for the endpoints. + TCP Idle timeout in minutes - Int32 + int - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. + The Internal Load Balancer Name. - String + string - + LoadBalancerDistribution - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + + Load Balancer distribution algorithm -The default value is none. + The value can be + sourceIP: 2 tuple affinity (Source IP, Destination IP) + sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) + none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value + - - sourceIP - sourceIPProtocol - none - + string - + LocalPort - Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. - - Int32 - - - ProbeIntervalInSeconds - - Specifies the probe polling interval, in seconds, for the endpoints. - - Int32 - - - ProbePort - - Specifies the port that the load balancer probe uses. - - Int32 - - - ProbeTimeoutInSeconds - - Specifies the probe polling time-out in seconds. - - Int32 - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Protocol - - Specifies the protocol of the endpoints. Valid values are: - --- TCP --- UDP - - - TCP - UDP - - - - PublicPort - - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - - Int32 - - - VirtualIPName - - Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. + Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. - String + int - - LBSetName - - Specifies the name of the load balancer set that this cmdlet updates. - - String - - - ProbeProtocolTCP - - Specifies that the load balancer endpoints use a TCP Probe. - - - - - Set-AzureLoadBalancedEndpoint - - ServiceName - - Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. - - String - - - ACL - - Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. - - NetworkAclObject - - - DirectServerReturn - - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - - Boolean - - - IdleTimeoutInMinutes - - Specifies the TCP idle time-out period, in minutes, for the endpoints. - - Int32 - - - InternalLoadBalancerName - - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. - - String - - - LoadBalancerDistribution - - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol - -The default value is none. - - - sourceIP - sourceIPProtocol - none - - - - LocalPort + + PipelineVariable - Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. + Not Specified - Int32 + string - + ProbeIntervalInSeconds - Specifies the probe polling interval, in seconds, for the endpoints. + Specifies the probe polling interval in seconds. - Int32 + int - + ProbePort - Specifies the port that the load balancer probe uses. + Specifies the port that the load balancer probe will use. If not specified, Windows Azure will assign the endpoints local port. - Int32 + int - + ProbeTimeoutInSeconds - Specifies the probe polling time-out in seconds. - - Int32 - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the probe polling timeout in seconds. - AzureProfile + int - + Protocol - Specifies the protocol of the endpoints. Valid values are: - --- TCP --- UDP + Specifies the protocol of the endpoint. Acceptable values are "TCP" or "UDP". - - TCP - UDP - + string - + PublicPort - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + Specifies the public port that the endpoint will use. If not specified, Windows Azure will assign an available free port. - Int32 + int - + VirtualIPName - Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. - - String - - - LBSetName - - Specifies the name of the load balancer set that this cmdlet updates. - - String - - - ProbePath - - Specifies the relative path of the HTTP Probe. - - String - - - ProbeProtocolHTTP - - Specifies that the load balancer endpoints use an HTTP Probe. + Use this parameter to update your load balancer to use a specific VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. + string + - + ACL - Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. + An ACL to apply to the endpoint on update. - NetworkAclObject + NetworkAclObject NetworkAclObject - none + + - + DirectServerReturn - Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + Enable/Disable Direct Server Return. - Boolean + Boolean Boolean - none + + - + IdleTimeoutInMinutes - Specifies the TCP idle time-out period, in minutes, for the endpoints. + TCP Idle timeout in minutes - Int32 + int - Int32 + int - none + + - + InternalLoadBalancerName - Specifies the name of the internal load balancer that this cmdlet includes in the configuration. + The Internal Load Balancer Name. - String + string - String + string - none + + - + LBSetName - Specifies the name of the load balancer set that this cmdlet updates. + Specifies the name of the load balancer set to update. - String + string - String + string - none + + - + LoadBalancerDistribution - Specifies the load balancer distribution algorithm. Valid values are: - --- sourceIP. A two tuple affinity: Source IP, Destination IP --- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol --- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + + Load Balancer distribution algorithm -The default value is none. + The value can be + sourceIP: 2 tuple affinity (Source IP, Destination IP) + sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) + none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value + - String + string - String + string - none + + - + LocalPort - Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. + Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. - Int32 + int - Int32 + int - none + + - + + PipelineVariable + + Not Specified + + string + + string + + + + + + ProbeIntervalInSeconds - Specifies the probe polling interval, in seconds, for the endpoints. + Specifies the probe polling interval in seconds. - Int32 + int - Int32 + int - none + + - + ProbePath - Specifies the relative path of the HTTP Probe. + Specifies relative path to the HTTP Probe. - String + string - String + string - none + + - + ProbePort - Specifies the port that the load balancer probe uses. + Specifies the port that the load balancer probe will use. If not specified, Windows Azure will assign the endpoints local port. - Int32 + int - Int32 + int - none + + - + ProbeProtocolHTTP - Specifies that the load balancer endpoints use an HTTP Probe. + Specifies that a HTTP Probe should be used. - SwitchParameter + SwitchParameter SwitchParameter - none + + - + ProbeProtocolTCP - Specifies that the load balancer endpoints use a TCP Probe. + Specifies that a TCP Probe should be used. - SwitchParameter + SwitchParameter SwitchParameter - none + + - + ProbeTimeoutInSeconds - Specifies the probe polling time-out in seconds. - - Int32 - - Int32 - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the probe polling timeout in seconds. - AzureProfile + int - AzureProfile + int - none + + - + Protocol - Specifies the protocol of the endpoints. Valid values are: - --- TCP --- UDP + Specifies the protocol of the endpoint. Acceptable values are "TCP" or "UDP". - String + string - String + string - none + + - + PublicPort - Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + Specifies the public port that the endpoint will use. If not specified, Windows Azure will assign an available free port. - Int32 + int - Int32 + int - none + + - + ServiceName - Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. + Specifies the name of the Windows Azure service containing the endpoint that will be modified. - String + string - String + string - none + + - + VirtualIPName - Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. + Use this parameter to update your load balancer to use a specific VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. - String + string - String + string - none + + + - - - - - + + + @@ -30044,214 +28105,188 @@ The default value is none. - - - - - + + + + - - - Example 1: Modify the endpoints in a load balancer set - - - + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> - PS C:\>Set-AzureLoadBalancedEndpoint -ServiceName "ContosoService" -LBSetName "LBSet01" -Protocol "TCP" -LocalPort 80 -ProbeProtocolTCP -ProbePort 8080 - + + Set-AzureLoadBalancedEndpoint -ServiceName "MyService" -LBSetName "LBSet1" -Protocol tcp -LocalPort 80 -ProbeProtocolTCP -ProbePort 8080 + - This command modifies all endpoints in the load balancer set named LBSet01 to use the TCP protocol and private port 80. The command sets the load balancer probe to use the TCP protocol on port 8080. - - + Description + ----------- + This command will update all endpoints in the load balancer set "LBSet1" to use the TCP protocol and private port 80, and will set the load balancer probe to use the TCP protocol on port 8080. + + + + + + + + - + + - Example 2: Specify a different virtual IP + + -------------------------- EXAMPLE 2 -------------------------- + - - + C:\PS> - PS C:\>Set-AzureLoadBalancedEndpoint -ServiceName "ContosoService" -LBSetName "LBSet02" -VirtualIPName "Vip01" - + + Set-AzureLoadBalancedEndpoint -ServiceName myService -LBSetName myLBSet -VirtualIPName Vip1 + - This command modifies the load balancer that has the load balancer set name to use a virtual IP named Vip01. - - + Description + ----------- + You can update your load balancer to use a different VIP. For instance, if you run this command, you will change the load balancing set to use a VIP named Vip1 + + + + + + + + - + + + - Add-AzureVirtualIP - - - - Set-AzureInternalLoadBalancer + + - + + - Set-AzureNetworkInterfaceConfig + Set-AzureOSDisk - - + Updates the host-cache mode of a Microsoft Azure virtual machine operating system disk. Set - AzureNetworkInterfaceConfig + AzureOSDisk + + The Set-AzureOSDisk cmdlet updates the host-cache mode of a virtual machine's operating system disk. The supported host cache modes are "ReadOnly" and "ReadWrite".Caution: Running Set-AzureOSDisk on a running virtual machine will cause the virtual machine to reboot. - Set-AzureNetworkInterfaceConfig - - Name - - - String - - - SubnetName + Set-AzureOSDisk + + HostCaching + Specifies the host cache attribute for the operating system disk. Acceptable values are: "ReadOnly" and "ReadWrite". String - - StaticVNetIPAddress - - - String - - - NetworkSecurityGroup - - - String - - - IPForwarding - - - - Enabled - Disabled - - - - Profile + + VM + Specifies the virtual machine for which to update the operating system disk. - AzureProfile + IPersistentVM - - VM + + ResizedSizeInGB + Resize the new OSVirtualHardDisk to a larger size. ResizedSizeInGB must be larger than the underlying OS Image's LogicalSizeInGB. - IPersistentVM + int - - IPForwarding - - - String - - String - - - none - - - Name + + HostCaching + Specifies the host cache attribute for the operating system disk. Acceptable values are: "ReadOnly" and "ReadWrite". String String - none - - - NetworkSecurityGroup - - - String - - String - - - none - - - Profile - - - AzureProfile - - AzureProfile - - - none - - - StaticVNetIPAddress - - - String - - String - - - none + + - - SubnetName + + VM + Specifies the virtual machine for which to update the operating system disk. - String + IPersistentVM - String + IPersistentVM - none + + - - VM + + ResizedSizeInGB + Resize the new OSVirtualHardDisk to a larger size. ResizedSizeInGB must be larger than the underlying OS Image's LogicalSizeInGB. - IPersistentVM + int - IPersistentVM + int - none + + @@ -30259,10 +28294,10 @@ The default value is none. - - + - + + @@ -30274,127 +28309,202 @@ The default value is none. - - + - + + - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - 1: + -------------------------- Example 1 -------------------------- - PS C:\> - + PS C:\> C:\PS>Get-AzureVM -ServiceName $mySvc1 -name "MyTestVM2" | Set-AzureOSDisk –HostCaching "ReadOnly" + This command sets the host cache mode of the operating system disk of the VM named "MyTestVM2" to ReadOnly. + + + + + + + + + + -------------------------- Example 2 -------------------------- + - - + + PS C:\> C:\PS>$myVM2 = Get-AzureVM -ServiceName $mySvc1 -name "MyTestVM2" + C:\PS>Set-AzureOSDisk "ReadWrite" –VM $myVM2 + + This command updates the host-cache mode of the operating system disk attached to the VM named "MyTestVM2" to ReadWrite. - + + - Add-AzureNetworkInterfaceConfig - + Get-AzureOSDisk + + - Get-AzureNetworkInterfaceConfig - + Add-AzureVMImage + + - Remove-AzureNetworkInterfaceConfig - + Get-AzureVMImage + + + + + Get-AzureVM + + + + + Update-AzureVM + + - + + - Set-AzureNetworkSecurityGroupConfig + Set-AzurePublicIP - - + Set-AzurePublicIP [-PublicIPName] <string> [[-IdleTimeoutInMinutes] <int>] [[-DomainNameLabel] <string>] -VM <IPersistentVM> [<CommonParameters>] Set - AzureNetworkSecurityGroupConfig + AzurePublicIP + + Adds a new Public IP to the virtual machine. The public ip is really assigned when the virtual machine is updated. An optional DomainNameLabel will automatically create a corresponding DNS entry for the public IP. - Set-AzureNetworkSecurityGroupConfig - - NetworkSecurityGroupName + Set-AzurePublicIP + + PublicIPName + + String - - Profile + + IdleTimeoutInMinutes + + TCP Idle timeout in minutes + + Nullable`1[Int32] + + + DomainNameLabel + The name to use when creating a corresponding DNS entry for a public IP address - AzureProfile + String - + VM + + IPersistentVM - - NetworkSecurityGroupName + + PublicIPName + + String String - none + + - - Profile + + IdleTimeoutInMinutes + TCP Idle timeout in minutes - AzureProfile + Nullable`1[Int32] - AzureProfile + Nullable`1[Int32] - none + + + + + DomainNameLabel + + + + + String + + String + + + + - + VM + + IPersistentVM IPersistentVM - none + + @@ -30402,10 +28512,10 @@ The default value is none. - - + - + + @@ -30415,185 +28525,207 @@ The default value is none. - - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM + - + + - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - 1: + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Set-AzurePublicIP -PublicIPName ftpip | Update-AzureVM + + Description + + + + -----------Requests for a public IP to be assigned to the virtual machine. The public ip allocation happens during update VM. + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername xyz -Password abcd123! | Set-AzurePublicIP -PublicIPName "ftpip" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" + + Description + + + + -----------Requests for a public IP to be assigned during VM creation. + + + + + -------------------------- EXAMPLE 3 -------------------------- - PS C:\> - + PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Set-AzurePublicIP -PublicIPName ftpip -DomainNameLabel ipname | Update-AzureVM + Description + + + + -----------Requests for a public IP to be assigned to the virtual machine. The public ip allocation happens during update VM. + + + + + -------------------------- EXAMPLE 4 -------------------------- + - - + + PS C:\> New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername xyz -Password abcd123! | Set-AzurePublicIP -PublicIPName "ftpip" -DomainNameLabel ipname | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" + + Description - + -----------Requests for a public IP to be assigned during VM creation and for the public IP address to be created with a corresponding DNS entry. - Remove-AzureNetworkSecurityGroupConfig - + Unknown + + - + + - Set-AzureOSDisk + Set-AzureRole - Modifies the host cache mode of an Azure virtual machine. + Sets the number of instances of a Microsoft Azure role to run. Set - AzureOSDisk + AzureRole - The Set-AzureOSDisk cmdlet modifies the host cache mode of the operating system disk of an Azure virtual machine. The supported host cache modes are ReadOnly and ReadWrite. If you run this cmdlet on a virtual machine that is running, that virtual machine restarts. + + The Set-AzureRole cmdlet sets the number of instances of a specified role to run in a Microsoft Azure deployment. - Set-AzureOSDisk - - HostCaching - - Specifies the host cache attribute for the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite - - - ReadOnly - ReadWrite - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the virtual machine for which this cmdlet modifies the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - - IPersistentVM - - - - Set-AzureOSDisk - - HostCaching + Set-AzureRole + + ServiceName - Specifies the host cache attribute for the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite + Specifies the name of the Microsoft Azure service. - - ReadOnly - ReadWrite - + String - - ResizedSizeInGB + + Slot - Specifies a new size, in gigabytes, for the operating system disk. The size must be larger than the current size. + Specifies the deployment environment of the deployment to be modified. Choices are "Production" or "Staging". - Int32 + String - - Profile + + RoleName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the name of the role to set the number of instances for. - AzureProfile + String - - VM + + Count - Specifies the virtual machine for which this cmdlet modifies the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the number of role instances to run. - IPersistentVM + Int32 - - HostCaching + + ServiceName - Specifies the host cache attribute for the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite + Specifies the name of the Microsoft Azure service. String String - none + + - - Profile + + Slot - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the deployment environment of the deployment to be modified. Choices are "Production" or "Staging". - AzureProfile + String - AzureProfile + String - none + + - - ResizedSizeInGB + + RoleName - Specifies a new size, in gigabytes, for the operating system disk. The size must be larger than the current size. + Specifies the name of the role to set the number of instances for. - Int32 + String - Int32 + String - none + + - - VM + + Count - Specifies the virtual machine for which this cmdlet modifies the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + Specifies the number of role instances to run. - IPersistentVM + Int32 - IPersistentVM + Int32 - none + + @@ -30601,15 +28733,13 @@ The default value is none. - - + - + + - - @@ -30618,205 +28748,156 @@ The default value is none. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Set the host cache mode to ReadOnly by using the pipeline - - - - - PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine02" | Set-AzureOSDisk -HostCaching "ReadOnly" - - - This command gets the virtual machine named VirtualMachine02 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet sets the host cache mode of the operating system disk of that virtual machine to be ReadOnly. - - - - - - - - - - - Example 2: Set the host cache mode to ReadWrite + -------------------------- Example 1 -------------------------- - PS C:\>$VM = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine02" -PS C:\> Set-AzureOSDisk "ReadWrite" -VM $myVM2 - + PS C:\> C:\PS>Set-AzureRole –ServiceName "MySvc1" –Slot "Production" –RoleName "MyTestRole3" –Count 3 - The first command gets the virtual machine named VirtualMachine02 in the service named ContosoService, and then stores it in the variable. - The second command sets the host cache mode of the operating system disk of that virtual machine to be ReadWrite. - - + This command sets the "MyTestRole3" role running in production on the "MySvc1" service to three instances. - + + - - Add-AzureVMImage - - - - Get-AzureOSDisk - - - - Get-AzureVM - - - - Get-AzureVMImage - - - - Set-AzureDataDisk - - - - Update-AzureVM - - - + + - Set-AzurePublicIP + Set-AzureService - Adds a Public IP to an Azure virtual machine. + Sets or updates the label and description of the specified Microsoft Azure service. Set - AzurePublicIP + AzureService - The Set-AzurePublicIP cmdlet adds a Public IP to an Azure virtual machine. If you run this cmdlet for an existing virtual machine, update the virtual machine to implement your changes. You can specify a domain name label to create a corresponding DNS entry for the public IP. + + The Set-AzureService cmdlet assigns a label and description to a service in the current subscription. - Set-AzurePublicIP - - PublicIPName + Set-AzureService + + ServiceName - Specifies the Public IP name. + Specifies the name of the Microsoft Azure service to be updated. String - - IdleTimeoutInMinutes - - Specifies the TCP idle time-out period in minutes. - - Int32 - - - DomainNameLabel + + Label - Specifies the name to use for a corresponding DNS entry for the public IP address. + Sets a label for the Microsoft Azure service. The label may be up to 100 characters in length. - String + String - - Profile + + Description - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Sets a description for the Microsoft Azure service. The description may be up to 1024 characters in length. - AzureProfile + String - - VM + + ReverseDnsFqdn - Specifies the virtual machine to which this cmdlet adds Public IP. + + - IPersistentVM + String - - DomainNameLabel + + ServiceName - Specifies the name to use for a corresponding DNS entry for the public IP address. + Specifies the name of the Microsoft Azure service to be updated. - String + String String - none - - - IdleTimeoutInMinutes - - Specifies the TCP idle time-out period in minutes. - - Int32 - - Int32 - - - none + + - - Profile + + Label - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Sets a label for the Microsoft Azure service. The label may be up to 100 characters in length. - AzureProfile + String - AzureProfile + String - none + + - - PublicIPName + + Description - Specifies the Public IP name. + Sets a description for the Microsoft Azure service. The description may be up to 1024 characters in length. String String - none + + - - VM + + ReverseDnsFqdn - Specifies the virtual machine to which this cmdlet adds Public IP. + + - IPersistentVM + String - IPersistentVM + String - none + + @@ -30824,1289 +28905,766 @@ PS C:\> Set-AzureOSDisk "ReadWrite" -VM $myVM2 - - + - + + - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM - - + ManagementOperationContext + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a Public IP to an existing virtual machine - - - - - PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Set-AzurePublicIP -PublicIPName "ftpip" | Update-AzureVM - - - This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet adds the Public IP name ftpip. The command passes the virtual machine to the Update-AzureVM cmdlet, which implements your changes. - - - - - - - - - - - Example 2: Add a Public IP to a new virtual machine - - - - - PS C:\>New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -AdminUsername "AdminMain" -Password "password" | Set-AzurePublicIP -PublicIPName "ftpip" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" - - - This command creates a virtual machine configuration object by using the New-AzureVMConfig cmdlet. The command passes that object to the Add-AzureProvisioningConfig cmdlet, which provides additional configuration. The current cmdlet adds the Public IP name ftpip. The command passes the configuration to the New-AzureVM cmdlet, which creates the virtual machine. - - - - - - - - - - - Example 3: Add a Public IP and label to an existing virtual machine - - - - - PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Set-AzurePublicIP -PublicIPName "ftpip" -DomainNameLabel "ipname" | Update-AzureVM - - - This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet adds the Public IP name ftpip and the label ipname. The command updates the virtual machine, which implements your changes. - - - - - - - - - - - Example 4: Add a Public IP and label to a new virtual machine + -------------------------- Example 1 -------------------------- - PS C:\>New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername "AdminMain" -Password "password" | Set-AzurePublicIP -PublicIPName "ftpip" -DomainNameLabel "ipname" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" - + PS C:\> C:\PS>Set-AzureService -ServiceName "MySvc1" -Label "MyTestSvc1" -Description "My service for testing out new configurations" - This command creates a virtual machine configuration object, and then passes that object to Add-AzureProvisioningConfig, which provides additional configuration. The current cmdlet adds the Public IP name ftpip and the label ipname. The command creates the virtual machine. - - + This command sets the label to "MyTestSvc1" and the description to "My service for testing out new configurations" for the "MyTestSvc1" service. - + + - Get-AzurePublicIP - - - - Get-AzureVM - - - - New-AzureVM - - - - New-AzureVMConfig - + Get-AzureService + + - Remove-AzurePublicIP - + New-AzureService + + - Update-AzureVM - + Remove-AzureService + + - + + - Set-AzureReservedIPAssociation + Set-AzureServiceADDomainExtension - Associates a reserved IP address with an existing virtual machine or cloud service. + Set AD Domain Extension for Cloud Service Set - AzureReservedIPAssociation + AzureServiceADDomainExtension - The Set-AzureReservedIPAssociation cmdlet associates a reserved IP address with the Virtual IP address (VIP) of a running virtual machine or cloud service. The reserved IP address must not be in use at the time of invocation of this cmdlet, and must be in the same region as the virtual machine or cloud service. - - - The operation takes about 30 seconds to complete, after which the virtual machine or service is accessible using the reserved IP address. + + Set AD Domain Extension for Cloud Service - Set-AzureReservedIPAssociation - - ReservedIPName + Set-AzureServiceADDomainExtension + + ServiceName - Specifies the name of the reserved IP address to associate with a virtual machine or service. + The cloud service name. String - - ServiceName + + Slot - Specifies the name of the service that has the deployment with which to associate the reserved IP address. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - String + String - - VirtualIPName + + Role - Specifies the name of an existing VIP to associate with a reserved IP. See Add-AzureVirtualIP to add VIPs to your cloud service. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - String + String[] - - Slot + + X509Certificate - Specifies the deployment slot. The acceptable values for this parameter are: - --- Staging --- Production + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - Staging - Production - + X509Certificate2 - - Profile + + ThumbprintAlgorithm - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - AzureProfile + String - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ReservedIPName - - Specifies the name of the reserved IP address to associate with a virtual machine or service. - - String - - String - - - none - - - ServiceName - - Specifies the name of the service that has the deployment with which to associate the reserved IP address. - - String - - String - - - none - - - Slot - - Specifies the deployment slot. The acceptable values for this parameter are: - --- Staging --- Production - - String - - String - - - none - - - VirtualIPName - - Specifies the name of an existing VIP to associate with a reserved IP. See Add-AzureVirtualIP to add VIPs to your cloud service. - - String - - String - - - none - - - - - - - - - + + DomainName - + The AD domain name. - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - + String + + + Restart - + Whether to restart the computer if the join operation succeeded. - - - - - - - - - - - - Example 1: Set a reserved IP association - - - - - PS C:\>Set-AzureReservedIPAssociation -ReservedIPName "ResIp14" -ServiceName "PipTestWestEurope" - - - This command assigns the reserved IP address named ResIp14 to the service PipTestWestEurope. ResIp14 is a reserved IP in the West Europe region. - - - - - - - - - - - - - Remove-AzureReservedIPAssociation - - - - - - - Set-AzureRole - - Sets the number of instances of an Azure role to run. - - - - - Set - AzureRole - - - - The Set-AzureRole cmdlet sets the number of instances of a specified role to run in an Azure deployment. - - + SwitchParameter + + + Credential + + The credentials (user name/password) to join the AD domain. + + PSCredential + + + UnjoinDomainCredential + + The credentials (user name/password) to unjoin the AD domain. + + PSCredential + + + Options + + The unsigned integer join option. + + JoinOptions + + + OUPath + + The OU path for AD domain join operation. + + String + + + Version + + + + + String + + - Set-AzureRole - + Set-AzureServiceADDomainExtension + ServiceName - Specifies the name of the Azure service. + The cloud service name. String - + Slot - Specifies the deployment environment of the deployment to modify. The acceptable values for this parameter are: - --- Production --- Staging + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Staging - Production - + String - - RoleName + + Role + + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + X509Certificate + + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + + ThumbprintAlgorithm - Specifies the name of the role for which to set the number of instances. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. String - - Count + + DomainName - Specifies the number of role instances to run. + The AD domain name. - Int32 + String - - Profile + + Restart - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Whether to restart the computer if the join operation succeeded. - AzureProfile + SwitchParameter - - - - - Count - - Specifies the number of role instances to run. - - Int32 - - Int32 - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - RoleName - - Specifies the name of the role for which to set the number of instances. - - String - - String - - - none - - - ServiceName - - Specifies the name of the Azure service. - - String - - String - - - none - - - Slot - - Specifies the deployment environment of the deployment to modify. The acceptable values for this parameter are: - --- Production --- Staging - - String - - String - - - none - - - - - - - - - + + Credential - + The credentials (user name/password) to join the AD domain. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: Set the number of instances for a role - - - - - PS C:\>Set-AzureRole -ServiceName "MySvc01" -Slot "Production" -RoleName "MyTestRole03" -Count 3 - - - This command sets the MyTestRole03 role that is running in production on the MySvc01 service to have three instances. - - - - - - - - - - - - - Get-AzureRole - - - - - - - Set-AzureServiceADDomainExtension - - Enables an AD Domain extension for a cloud service. - - - - - Set - AzureServiceADDomainExtension - - - - The Set-AzureServiceADDomainExtension cmdlet enables an AD (Active Directory) Domain extension for a cloud service. - - - - Set-AzureServiceADDomainExtension - - ServiceName - - Specifies the cloud service name. - - String - - - Slot - - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - - - Production - Staging - - - - Role - - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] + PSCredential - - CertificateThumbprint + + UnjoinDomainCredential - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + The credentials (user name/password) to unjoin the AD domain. - String + PSCredential - - ThumbprintAlgorithm + + JoinOption - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + The join option enumeration. - String + UInt32 - - WorkgroupName + + OUPath - Specifies the workgroup name. + The OU path for AD domain join operation. String - - Restart - - Specifies whether to restart the computer if the join operation succeeds. - - - - Credential - - Specifies the credentials to join the AD domain. Credentials include a user name and password. - - PSCredential - - + Version - Specifies the extension version. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String Set-AzureServiceADDomainExtension - + ServiceName - Specifies the cloud service name. - - String - - - Options - - Specifies the unsigned integer join option. - - - JoinDomain - AccountCreate - Win9XUpgrade - UnsecuredJoin - PasswordPass - DeferSPNSet - JoinWithNewName - JoinReadOnly - InstallInvoke - - - - OUPath - - Specifies the Organization Unit (OU) path for the AD domain join operation. + The cloud service name. - String - - - Version - - Specifies the extension version. - - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - String[] + String[] - - CertificateThumbprint + + X509Certificate - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - DomainName + + WorkgroupName - Specifies the AD domain name. + The workgroup name. String - + Restart - Specifies whether to restart the computer if the join operation succeeds. + Whether to restart the computer if the join operation succeeded. + SwitchParameter - + Credential - Specifies the credentials to join the AD domain. Credentials include a user name and password. - - PSCredential - - - UnjoinDomainCredential - - Specifies the credentials (user name and password) to unjoin the AD domain. - - PSCredential - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The credentials (user name/password) to join the AD domain. - AzureProfile + PSCredential Set-AzureServiceADDomainExtension - + ServiceName - Specifies the cloud service name. - - String - - - JoinOption - - Specifies the join option enumeration. - - UInt32 - - - OUPath - - Specifies the Organization Unit (OU) path for the AD domain join operation. - - String - - - Version - - Specifies the extension version. + The cloud service name. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - String[] + String[] - + CertificateThumbprint - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. String - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - DomainName + + WorkgroupName - Specifies the AD domain name. + The workgroup name. String - + Restart - Specifies whether to restart the computer if the join operation succeeds. + Whether to restart the computer if the join operation succeeded. + SwitchParameter - + Credential - Specifies the credentials to join the AD domain. Credentials include a user name and password. - - PSCredential - - - UnjoinDomainCredential - - Specifies the credentials (user name and password) to unjoin the AD domain. - - PSCredential - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The credentials (user name/password) to join the AD domain. - AzureProfile + PSCredential Set-AzureServiceADDomainExtension - + ServiceName - Specifies the cloud service name. + The cloud service name. - String - - - Options - - Specifies the unsigned integer join option. - - - JoinDomain - AccountCreate - Win9XUpgrade - UnsecuredJoin - PasswordPass - DeferSPNSet - JoinWithNewName - JoinReadOnly - InstallInvoke - - - - OUPath - - Specifies the Organization Unit (OU) path for the AD domain join operation. - - String - - - Version - - Specifies the extension version. - - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - String[] + String[] - - X509Certificate + + CertificateThumbprint - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - + DomainName - Specifies the AD domain name. + The AD domain name. String - + Restart - Specifies whether to restart the computer if the join operation succeeds. + Whether to restart the computer if the join operation succeeded. + SwitchParameter - + Credential - Specifies the credentials to join the AD domain. Credentials include a user name and password. + The credentials (user name/password) to join the AD domain. - PSCredential + PSCredential - + UnjoinDomainCredential - Specifies the credentials (user name and password) to unjoin the AD domain. + The credentials (user name/password) to unjoin the AD domain. - PSCredential + PSCredential - - Profile + + JoinOption + + The join option enumeration. + + UInt32 + + + OUPath + + The OU path for AD domain join operation. + + String + + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String Set-AzureServiceADDomainExtension - + ServiceName - Specifies the cloud service name. + The cloud service name. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - String[] + String[] - - X509Certificate + + CertificateThumbprint - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - WorkgroupName + + DomainName - Specifies the workgroup name. + The AD domain name. String - + Restart - Specifies whether to restart the computer if the join operation succeeds. + Whether to restart the computer if the join operation succeeded. + SwitchParameter - + Credential - Specifies the credentials to join the AD domain. Credentials include a user name and password. - - PSCredential - - - Version - - Specifies the extension version. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The credentials (user name/password) to join the AD domain. - AzureProfile + PSCredential - - - Set-AzureServiceADDomainExtension - - ServiceName + + UnjoinDomainCredential - Specifies the cloud service name. + The credentials (user name/password) to unjoin the AD domain. - String + PSCredential - - JoinOption + + Options - Specifies the join option enumeration. + The unsigned integer join option. - UInt32 + JoinOptions - + OUPath - Specifies the Organization Unit (OU) path for the AD domain join operation. + The OU path for AD domain join operation. - String + String - + Version - Specifies the extension version. - - String - - - Slot - - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - - - Production - Staging - - - - Role - - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - DomainName - - Specifies the AD domain name. + + String - - Restart - - Specifies whether to restart the computer if the join operation succeeds. - - - - Credential - - Specifies the credentials to join the AD domain. Credentials include a user name and password. - - PSCredential - - - UnjoinDomainCredential - - Specifies the credentials (user name and password) to unjoin the AD domain. - - PSCredential - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - CertificateThumbprint + + ServiceName - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + The cloud service name. String String - none - - - Credential - - Specifies the credentials to join the AD domain. Credentials include a user name and password. - - PSCredential - - PSCredential - - - none + + - - DomainName + + Slot - Specifies the AD domain name. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". String String - none + + - - JoinOption + + Role - Specifies the join option enumeration. + An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - UInt32 + String[] - UInt32 + String[] - none + + - - Options + + X509Certificate - Specifies the unsigned integer join option. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - JoinOptions + X509Certificate2 - JoinOptions + X509Certificate2 - none + + - - OUPath + + ThumbprintAlgorithm - Specifies the Organization Unit (OU) path for the AD domain join operation. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - none + + - - Profile + + DomainName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The AD domain name. - AzureProfile + String - AzureProfile + String - none + + - + Restart - Specifies whether to restart the computer if the join operation succeeds. + Whether to restart the computer if the join operation succeeded. SwitchParameter SwitchParameter - none + + - - Role + + Credential - Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + The credentials (user name/password) to join the AD domain. - String[] + PSCredential - String[] + PSCredential - none + + - - ServiceName + + UnjoinDomainCredential - Specifies the cloud service name. + The credentials (user name/password) to unjoin the AD domain. - String + PSCredential - String + PSCredential - none + + - - Slot + + Options - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + The unsigned integer join option. - String + JoinOptions - String + JoinOptions - none + + - - ThumbprintAlgorithm + + OUPath - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + The OU path for AD domain join operation. - String + String String - none + + - - UnjoinDomainCredential + + Version - Specifies the credentials (user name and password) to unjoin the AD domain. + + - PSCredential + String - PSCredential + String - none + + - - Version + + JoinOption - Specifies the extension version. + The join option enumeration. - String + UInt32 - String + UInt32 - none + + - + WorkgroupName - Specifies the workgroup name. + The workgroup name. String String - none + + - - X509Certificate + + CertificateThumbprint - Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - X509Certificate2 + String - none + + @@ -32114,15 +29672,13 @@ PS C:\> Set-AzureOSDisk "ReadWrite" -VM $myVM2 - - + - + + - - @@ -32131,56 +29687,41 @@ PS C:\> Set-AzureOSDisk "ReadWrite" -VM $myVM2 - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - 1: - - - - - - - - - - - - - - - - - Get-AzureServiceADDomainExtension - - - - Remove-AzureServiceADDomainExtension - - - - New-AzureServiceADDomainExtensionConfig - + Unknown + + - + + Set-AzureServiceAntimalwareExtension @@ -32194,247 +29735,198 @@ PS C:\> Set-AzureOSDisk "ReadWrite" -VM $myVM2 - The Set-AzureServiceAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a cloud service. You can specify values that override and supplement values in the XML configuration, such as the storage account context. + + The Set-AzureServiceAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a cloud service. You can specify values that override and supplement values in the XML configuration, such as storage account context. Set-AzureServiceAntimalwareExtension - + ServiceName Specifies the name of the cloud service. String - + Slot Specifies a deployment slot. Valid values are: - -- Production - -- Staging - The default value is Production. - - Production - Staging - + String - + Role Specifies an array of roles. The default value is all roles. - String[] + String[] - + AntimalwareConfiguration - Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - + Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + <AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> - XmlDocument + XmlDocument - + Monitoring Specifies whether to collect Microsoft Antimalware events. Valid values are: --- ON. Collect Microsoft Antimalware events to storage context. - +-- ON. Collect Microsoft Antimalware events to storage context. -- OFF. Do not collect Microsoft Antimalware events. - - ON - OFF - + String - + StorageContext Specifies an Azure storage context for Microsoft Antimalware monitoring. - AzureStorageContext - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + AzureStorageContext Set-AzureServiceAntimalwareExtension - + ServiceName Specifies the name of the cloud service. String - + Slot Specifies a deployment slot. Valid values are: - -- Production - -- Staging - The default value is Production. - - Production - Staging - + String - + Role Specifies an array of roles. The default value is all roles. - String[] + String[] - + AntimalwareConfiguration - Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - + Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + <AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> - XmlDocument + XmlDocument - + Monitoring Specifies whether to collect Microsoft Antimalware events. Valid values are: --- ON. Collect Microsoft Antimalware events to storage context. - +-- ON. Collect Microsoft Antimalware events to storage context. -- OFF. Do not collect Microsoft Antimalware events. - - ON - OFF - + String - + StorageContext Specifies an Azure storage context for Microsoft Antimalware monitoring. - AzureStorageContext - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + AzureStorageContext - - AntimalwareConfiguration + + ServiceName - Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - -<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> + Specifies the name of the cloud service. - XmlDocument + String - XmlDocument + String none - - Monitoring + + Slot - Specifies whether to collect Microsoft Antimalware events. Valid values are: + Specifies a deployment slot. Valid values are: --- ON. Collect Microsoft Antimalware events to storage context. +-- Production +-- Staging --- OFF. Do not collect Microsoft Antimalware events. +The default value is Production. - String + String String none - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + Role Specifies an array of roles. The default value is all roles. - String[] + String[] String[] none - - ServiceName + + AntimalwareConfiguration - Specifies the name of the cloud service. + Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> - String + XmlDocument - String + XmlDocument none - - Slot + + Monitoring - Specifies a deployment slot. Valid values are: - - --- Production - --- Staging - + Specifies whether to collect Microsoft Antimalware events. Valid values are: -The default value is Production. +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. - String + String String none - + StorageContext Specifies an Azure storage context for Microsoft Antimalware monitoring. - AzureStorageContext + AzureStorageContext AzureStorageContext @@ -32447,15 +29939,13 @@ The default value is Production. - - + - + + - - @@ -32464,84 +29954,84 @@ The default value is Production. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Enable the extension + -------------------------- Example 1: Enable the extension -------------------------- - PS C:\> [System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument + PS C:\>[System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -AntimalwareConfiguration $XmlConfig -Operation succeeded - +Operation succeeded The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. - - - + The third command enables the Microsoft Antimalware extension for the service named ContosoService03, by using the configuration stored in $XmlConfig. Because the command does not specify the Slot parameter, the cmdlet uses the default value, Production. - Example 2: Enable the extension for the Staging slot + -------------------------- Example 2: Enable the extension for the Staging slot -------------------------- - PS C:\> [System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument + PS C:\>[System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging" -AntimalwareConfiguration $XmlConfig -Operation succeeded - +Operation succeeded The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. - - - + The third command enables the Microsoft Antimalware extension for the service named ContosoService03, by using the configuration stored in $XmlConfig. This command specifies a value of Staging for the Slot parameter. - Example 3: Enable the extension with monitoring + -------------------------- Example 3: Enable the extension with monitoring -------------------------- - PS C:\>System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument + PS C:\>[System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') PS C:\> $StorageContext = New-AzureStorageContext -StorageAccountName "contosostoragemain" -StorageAccountKey (Get-AzureStorageKey -StorageAccountName "Contosostoragemain").Primary -PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -AntimalwareConfiguration $XmlConfig -Monitoring ON -StorageContext $StorageContext - +PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -AntimalwareConfiguration $XmlConfig -Monitoring ON -StorageContext $StorageContext The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. - - - + The third command creates an AzureStorageContext object by using the New-AzureStorageContext cmdlet, and then stores it in the $StorageContext variable.The final command enables the Microsoft Antimalware extension for the service named ContosoService03, by using the configuration stored in $XmlConfig. This command also specifies a value of ON for the Monitoring parameter and specifies the Azure storage context stored in $StorageContext. The values specified by these parameters override any corresponding values for these parameters that were specified within the XML configuration. @@ -32551,21 +30041,29 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" Online Version: http://go.microsoft.com/fwlink/?LinkID=402843 + + New-AzureStorageContext + + + Get-AzureServiceAntimalwareConfig - + + Remove-AzureServiceAntimalwareExtension - + + - + + Set-AzureServiceDiagnosticsExtension - Enables Azure Diagnostics extension on specified roles or all roles on a deployed service or at deployment. + This cmdlet enables diagnostics extension on specified role(s) or all roles on a deployed service or at deployment. @@ -32575,271 +30073,231 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - The Set-AzureServiceDiagnosticsExtension cmdlet enables Azure Diagnostics extension on specified roles or all roles on a deployed service or at deployment. + + This cmdlet enables diagnostics extension on specified role(s) or all roles on a deployed service or at deployment. Set-AzureServiceDiagnosticsExtension - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the Azure Diagnostics configuration. If you do not specify this parameter, the diagnostics configuration is applied as the default configuration for all roles. + An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String[] + String[] - - CertificateThumbprint + + X509Certificate - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - + StorageContext - Specifies an Azure storage context. + + AzureStorageContext - + DiagnosticsConfigurationPath - Specifies the configuration for Azure Diagnostics. You can download the schema by using the following command: - (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - - String - - - Version - - Specifies the version of the extension. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Configuration for Microsoft Azure diagnostics. You can download the schema by doing: + (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' + - AzureProfile + String Set-AzureServiceDiagnosticsExtension - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the Azure Diagnostics configuration. If you do not specify this parameter, the diagnostics configuration is applied as the default configuration for all roles. + An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String[] + String[] - - X509Certificate + + CertificateThumbprint - Specifies an X.509 certificate that, when specified, is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - + StorageContext - Specifies an Azure storage context. + + AzureStorageContext - + DiagnosticsConfigurationPath - Specifies the configuration for Azure Diagnostics. You can download the schema by using the following command: - (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - - String - - - Version - - Specifies the version of the extension. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Configuration for Microsoft Azure diagnostics. You can download the schema by doing: + (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' + - AzureProfile + String - - CertificateThumbprint + + ServiceName - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + Specifies the Microsoft Azure service name of the deployment. - String + String String - none + + - - DiagnosticsConfigurationPath + + Slot - Specifies the configuration for Azure Diagnostics. You can download the schema by using the following command: - (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - String + String String - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none + + - + Role - Specifies an optional array of roles for which to specify the Azure Diagnostics configuration. If you do not specify this parameter, the diagnostics configuration is applied as the default configuration for all roles. + An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String[] + String[] String[] - none + + - - ServiceName + + X509Certificate - Specifies the Azure service name of the deployment. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - String + X509Certificate2 - none + + - - Slot + + ThumbprintAlgorithm - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - none + + - + StorageContext - Specifies an Azure storage context. + + AzureStorageContext AzureStorageContext - none + + - - ThumbprintAlgorithm + + DiagnosticsConfigurationPath - Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + Configuration for Microsoft Azure diagnostics. You can download the schema by doing: + (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' + - String + String String - none + + - - Version + + CertificateThumbprint - Specifies the version of the extension. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - String + String String - none - - - X509Certificate - - Specifies an X.509 certificate that, when specified, is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - X509Certificate2 - - - none + + @@ -32847,15 +30305,13 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - + - + + - - @@ -32864,76 +30320,77 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Enable Azure Diagnostics extension + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureServiceDiagnosticsExtension -ServiceName $Svc -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML - + PS C:\> Set-AzureServiceDiagnosticExtension -ServiceName $svc -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML - This command enables the Azure Diagnostics extension for all roles. - - + Description - + -----------Setting default diagnostic configuration for all roles. - Example 2: Enable Azure Diagnostics extension for a specified role + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Set-AzureServiceDiagnosticsExtension -ServiceName $Svc -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML -Role "WebRole01" - + PS C:\> Set-AzureServiceDiagnosticExtension -ServiceName $svc -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML -Role "WebRole1" - This command enables the Azure Diagnostics extension for a specified role. - - + Description - + -----------Setting diagnostic configuration for WebRole1. - Get-AzureServiceDiagnosticsExtension - - - - Remove-AzureServiceDiagnosticsExtension - + Unknown + + - + + Set-AzureServiceExtension - Adds a cloud service extension to a deployment. + This cmdlet adds a cloud service extension to a deployment. @@ -32943,320 +30400,303 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - The Set-AzureServiceExtension cmdlet adds a cloud service extension to a deployment. + + This cmdlet adds a cloud service extension to a deployment. Set-AzureServiceExtension - + ServiceName - Specifies the Azure service name of the deployment. - - String - - - Version - - Specifies the extension version. + Specifies the Microsoft Azure service name of the deployment. String - + Slot - Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String[] + String[] - - CertificateThumbprint + + X509Certificate - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - + ThumbprintAlgorithm - Specifies the thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - + ExtensionName - Specifies the extension name. + + String - + ProviderNamespace - Specifies the extension provider namespace. + The Extension's Provider Namespace. String - + PublicConfiguration - Specifies the public configuration text. + The public configuration text. String - + PrivateConfiguration - Specifies the private configuration text. + The private configuration text. String - - Profile + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String Set-AzureServiceExtension - + ServiceName - Specifies the Azure service name of the deployment. - - String - - - Version - - Specifies the extension version. + Specifies the Microsoft Azure service name of the deployment. String - + Slot - Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String[] + String[] - - X509Certificate + + CertificateThumbprint - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - + ThumbprintAlgorithm - Specifies the thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - + ExtensionName - Specifies the extension name. + + String - + ProviderNamespace - Specifies the extension provider namespace. + The Extension's Provider Namespace. String - + PublicConfiguration - Specifies the public configuration text. + The public configuration text. String - + PrivateConfiguration - Specifies the private configuration text. + The private configuration text. String - - Profile + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String - - CertificateThumbprint + + ServiceName - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + Specifies the Microsoft Azure service name of the deployment. String String - none + + - - ExtensionName + + Slot - Specifies the extension name. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". String String - none + + - - PrivateConfiguration + + Role - Specifies the private configuration text. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String + String[] - String + String[] - none + + - - Profile + + X509Certificate - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - AzureProfile + X509Certificate2 - AzureProfile + X509Certificate2 - none + + - - ProviderNamespace + + ThumbprintAlgorithm - Specifies the extension provider namespace. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. String String - none + + - - PublicConfiguration + + ExtensionName - Specifies the public configuration text. + + String String - none - - - Role - - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - none + + - - ServiceName + + ProviderNamespace - Specifies the Azure service name of the deployment. + The Extension's Provider Namespace. - String + String String - none + + - - Slot + + PublicConfiguration - Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + The public configuration text. - String + String String - none + + - - ThumbprintAlgorithm + + PrivateConfiguration - Specifies the thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + The private configuration text. - String + String String - none + + - + Version - Specifies the extension version. + The Extension Version. String String - none + + - - X509Certificate + + CertificateThumbprint - Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - X509Certificate2 + String - none + + @@ -33264,15 +30704,13 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - + - + + - - @@ -33281,76 +30719,77 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a cloud service to a deployment + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureServiceExtension -Service $Svc -Slot "Production" -ExtensionName "RDP" -Version "1.0" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" -PublicConfiguration $P1 -PrivateConfiguration $P2; - + PS C:\> Set-AzureServiceExtension -Service $svc -Slot Production -ExtensionName 'RDP' -Version '1.0' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; - This command adds a cloud service to a deployment. - - + Description - + -----------Set the Remote Desktop Extension in version 1.0 for all roles in the cloud service. - Example 2: Add a cloud service to a deployment for a specified role + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Set-AzureServiceExtension -Service $Svc -Slot "Production" -Role "WebRole1" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" -PublicConfiguration $P1 -PrivateConfiguration $P2; - + PS C:\> Set-AzureServiceExtension -Service $svc -Slot Production -Role WebRole1 -ExtensionName 'RDP' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; - This command adds a cloud service to a deployment for a specified role. - - + Description - + -----------Set the Remote Desktop Extension for the 'WebRole1' role in the cloud service. - Get-AzureServiceExtension - - - - Remove-AzureServiceExtension - + Unknown + + - + + Set-AzureServiceRemoteDesktopExtension - Enables remote desktop extension on specified role(s) or all roles on a deployed service or at deployment. + This cmdlet enables remote desktop extension on specified role(s) or all roles on a deployed service or at deployment. @@ -33360,268 +30799,249 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - The Set-AzureServiceRemoteDesktopExtension cmdlet enables remote desktop extension on specified roles or all roles on a deployed service or at deployment. + + This cmdlet enables remote desktop extension on specified role(s) or all roles on a deployed service or at deployment. Set-AzureServiceRemoteDesktopExtension - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production, Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified, the remote desktop configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String[] + String[] - - CertificateThumbprint + + X509Certificate - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - + Credential - Specifies the credentials to enable for remote desktop. Credentials include a user name and password. + The credentials (user name/password) to enable for remote desktop. PSCredential - + Expiration - Specifies a date time object that allows the user to specify when the user account expires. + A date time object that allows the user to specify when the user account will expire. - DateTime + DateTime - + Version - Specifies the extension version. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String Set-AzureServiceRemoteDesktopExtension - + ServiceName - Specifies the Azure service name of the deployment. + Specifies the Microsoft Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production, Staging. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - Production - Staging - + String - + Role - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified, the remote desktop configuration is applied as the default configuration for all roles. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String[] + String[] - - X509Certificate + + CertificateThumbprint - Specifies an x509 certificate that is automatically uploaded to the cloud service and used for encrypting the private configuration of the extension. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - + ThumbprintAlgorithm - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - + Credential - Specifies the credentials to enable for remote desktop. Credentials include a user name and password. + The credentials (user name/password) to enable for remote desktop. PSCredential - + Expiration - Specifies a date time object that allows the user to specify when the user account expires. + A date time object that allows the user to specify when the user account will expire. - DateTime + DateTime - + Version - Specifies the extension version. + + - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile + String - - CertificateThumbprint + + ServiceName - Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + Specifies the Microsoft Azure service name of the deployment. String String - none - - - Credential - - Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - - PSCredential - - PSCredential - - - none + + - - Expiration + + Slot - Specifies a date time object that allows the user to specify when the user account expires. + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - DateTime + String - DateTime + String - none + + - - Profile + + Role - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - AzureProfile + String[] - AzureProfile + String[] - none + + - - Role + + X509Certificate - Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified, the remote desktop configuration is applied as the default configuration for all roles. + An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String[] + X509Certificate2 - String[] + X509Certificate2 - none + + - - ServiceName + + ThumbprintAlgorithm - Specifies the Azure service name of the deployment. + Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - none + + - - Slot + + Credential - Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production, Staging. + The credentials (user name/password) to enable for remote desktop. - String + PSCredential - String + PSCredential - none + + - - ThumbprintAlgorithm + + Expiration - Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + A date time object that allows the user to specify when the user account will expire. - String + DateTime - String + DateTime - none + + - + Version - Specifies the extension version. + + - String + String String - none + + - - X509Certificate + + CertificateThumbprint - Specifies an x509 certificate that is automatically uploaded to the cloud service and used for encrypting the private configuration of the extension. + A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - X509Certificate2 + String - X509Certificate2 + String - none + + @@ -33629,15 +31049,13 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - + - + + - - @@ -33646,183 +31064,134 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Enable remote desktop extension + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds - + PS C:\> Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds - This command enables the remote desktop extension for the specified service. - - + Description - + -----------Setting default remote desktop configuration for all roles. - Example 2: Enable remote desktop extension for a specified role + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds -Role "WebRole1" - + PS C:\> Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds -Role "WebRole1" - This command enables the remote desktop extension for the specified service and role. - - + Description - + -----------Setting remote desktop configuration for WebRole1. - Get-AzureServiceRemoteDesktopExtension - + Unknown + + - + + - Set-AzureService + Set-AzureStaticVNetIP - Sets or updates the label and description of the specified Microsoft Azure service. + Set the static VNet IP address information to a VM object. Set - AzureService + AzureStaticVNetIP - The Set-AzureService cmdlet assigns a label and description to a service in the current subscription. + + Set the static VNet IP address information to a VM object. - Set-AzureService - - ServiceName + Set-AzureStaticVNetIP + + IPAddress - Specifies the name of the Azure service to update. + Static VNet IP Address String - - Label - - Specifies a label for the Azure service. The label may be up to 100 characters in length. - - String - - - Description - - Specifies a description for the Azure service. The description may be up to 1024 characters in length. - - String - - - ReverseDnsFqdn - - Specifies the fully qualified domain name for reverse DNS. - - String - - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Persistent VM object. - AzureProfile + IPersistentVM - - Description - - Specifies a description for the Azure service. The description may be up to 1024 characters in length. - - String - - String - - - none - - - Label - - Specifies a label for the Azure service. The label may be up to 100 characters in length. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ReverseDnsFqdn + + IPAddress - Specifies the fully qualified domain name for reverse DNS. + Static VNet IP Address - String + String String - none + + - - ServiceName + + VM - Specifies the name of the Azure service to update. + Persistent VM object. - String + IPersistentVM - String + IPersistentVM - none + + @@ -33830,414 +31199,260 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - + - + + - - - ManagementOperationContext - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Update the label and description for a service + -------------------------- EXAMPLE 1 -------------------------- - PS C:\> C:\PS>Set-AzureService -ServiceName "MySvc1" -Label "MyTestSvc1" -Description "My service for testing out new configurations" - + PS C:\> # Prerequisite: VNet has been set up with SubNet + # Set-AzureVNetConfig -ConfigurationPath $vnetConfigPath; + + $vm = New-AzureVMConfig -Name $vmname -ImageName $img -InstanceSize $sz | Add-AzureProvisioningConfig -Windows -Password $pwd -AdminUsername $usr; + $vm = Set-AzureSubNet -VM $vm -SubNetNames $sn; + Set-AzureStaticVNETIP -IPAddress $ip -VM $vm; + New-AzureVM -ServiceName $svc -VMs $vm -VNETName $vnetName -Location $loc; - This command sets the label to "MyTestSvc1" and the description to "My service for testing out new configurations" for the MyTestSvc1 service. - - + Description - + ----------- - Get-AzureService - - - - New-AzureService - + Unknown + + - + + - Set-AzureStaticVNetIP + Set-AzureStorageAccount - Sets the static VNet IP address information for a virtual machine object. + Updates the properties of a storage account in a Microsoft Azure subscription. Set - AzureStaticVNetIP + AzureStorageAccount - The Set-AzureStaticVNetIP cmdlet sets the static virtual network (VNet) IP address information for a virtual machine object. + + The Set-AzureStorageAccount cmdlet updates the properties of a Microsoft Azure storage account in the current subscription. Properties that can be set are: "Label", "Description", "Type" and "GeoReplicationEnabled". - Set-AzureStaticVNetIP - - IPAddress + Set-AzureStorageAccount + + StorageAccountName - Specifies the static VNet IP address + Specifies the name of the storage account to be updated. String - - Profile + + Label - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a label for the storage account. The label may be up to 100 characters in length. - AzureProfile + String - - VM + + Description + + Specifies a description for the storage account. The description may be up to 1024 characters in length. + + String + + + GeoReplicationEnabled - Specifies a persistent virtual machine object for which to set the static VNet IP address. + Specifies whether the storage account is created with the geo-replication enabled. - IPersistentVM + Nullable`1[Boolean] + + + + Set-AzureStorageAccount + + StorageAccountName + + Specifies the name of the storage account to be updated. + + String + + + Label + + Specifies a label for the storage account. The label may be up to 100 characters in length. + + String + + + Description + + Specifies a description for the storage account. The description may be up to 1024 characters in length. + + String + + + Type + + Specifies the type of the storage account. Valid values are + + Standard_LRS + Standard_ZRS + Standard_GRS + Standard_RAGRS + Premium_LRS + + If this parameter is not specified, a default value of Standard_GRS is used + + Note: + The GeoReplicationEnabled parameter functionality is the same as specifying Standard_GRS in Type parameter + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + + String - - IPAddress + + StorageAccountName - Specifies the static VNet IP address + Specifies the name of the storage account to be updated. String String - none + + - - Profile + + Label - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a label for the storage account. The label may be up to 100 characters in length. - AzureProfile + String - AzureProfile + String - none + + - - VM + + Description - Specifies a persistent virtual machine object for which to set the static VNet IP address. + Specifies a description for the storage account. The description may be up to 1024 characters in length. - IPersistentVM + String - IPersistentVM + String - none + + - - - + + GeoReplicationEnabled + + Specifies whether the storage account is created with the geo-replication enabled. + + Nullable`1[Boolean] - - - - - - - - - - - - - - - - - - - - - - - - + Nullable`1[Boolean] + + + + + + Type - - - - - - - - - - Example 1: Set the virtual network IP address associated with a virtual machine - - - - - PS C:\># Prerequisite: VNet has been set up with SubNet - # Set-AzureVNetConfig -ConfigurationPath $vnetConfigPath; + Specifies the type of the storage account. Valid values are - $vm = New-AzureVMConfig -Name $vmname -ImageName $img -InstanceSize $sz | Add-AzureProvisioningConfig -Windows -Password $pwd -AdminUsername $usr; - $vm = Set-AzureSubNet -VM $vm -SubNetNames $sn; - Set-AzureStaticVNetIP -IPAddress $ip -VM $vm; - New-AzureVM -ServiceName $svc -VMs $vm -VNetName $vnetName -Location $loc; - - - The first command sets the configuration path for a virtual network. - The second command creates a virtual machine configuration. - The third command sets the subnet for the virtual machine. - The fourth command sets the IP address for the virtual machine. - The fifth command creates a virtual machine using the virtual machine. - - - - - - - - - - - - - Get-AzureStaticVNetIP - - - - Test-AzureStaticVNetIP - - - - - - - Set-AzureStorageAccount - - Updates the properties of a storage account in an Azure subscription. - - - - - Set - AzureStorageAccount - - - - The Set-AzureStorageAccount cmdlet updates the properties of an Azure storage account in the current subscription. Properties that can be set are: Label, Description, Type and GeoReplicationEnabled. - - - - Set-AzureStorageAccount - - StorageAccountName - - Specifies the name of the storage account that this cmdlet modifies. - - String - - - Description - - Specifies a description for the storage account. The description may be up to 1024 characters long. - - String - - - GeoReplicationEnabled - - Specifies whether the storage account is created with the geo-replication enabled. - - Boolean - - - Label - - Specifies a label for the storage account. The label may be up to 100 characters long. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Set-AzureStorageAccount - - StorageAccountName - - Specifies the name of the storage account that this cmdlet modifies. - - String - - - Description - - Specifies a description for the storage account. The description may be up to 1024 characters long. - - String - - - Label - - Specifies a label for the storage account. The label may be up to 100 characters long. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Type - - Specifies the type of the storage account. Valid values are: + Standard_LRS + Standard_ZRS + Standard_GRS + Standard_RAGRS + Premium_LRS --- Standard_LRS --- Standard_ZRS --- Standard_GRS --- Standard_RAGRS --- Premium_LRS + If this parameter is not specified, a default value of Standard_GRS is used -If this parameter is not specified, the default value is Standard_GRS. - The effect of specifying the GeoReplicationEnabled parameter is the same as specifying Standard_GRS in the Type parameter. - - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. - - String - - - - - - Description - - Specifies a description for the storage account. The description may be up to 1024 characters long. - - String - - String - - - none - - - GeoReplicationEnabled - - Specifies whether the storage account is created with the geo-replication enabled. - - Boolean - - Boolean - - - none - - - Label - - Specifies a label for the storage account. The label may be up to 100 characters long. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - StorageAccountName - - Specifies the name of the storage account that this cmdlet modifies. + Note: + The GeoReplicationEnabled parameter functionality is the same as specifying Standard_GRS in Type parameter + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. String String - none + + - - Type + + PipelineVariable - Specifies the type of the storage account. Valid values are: - --- Standard_LRS --- Standard_ZRS --- Standard_GRS --- Standard_RAGRS --- Premium_LRS - -If this parameter is not specified, the default value is Standard_GRS. - The effect of specifying the GeoReplicationEnabled parameter is the same as specifying Standard_GRS in the Type parameter. - - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + Not Specified - String + string - String + string - none + + @@ -34245,116 +31460,107 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - - - - + New-AzureStorageAccount, Get-AzureStorageAccount, Remove-AzureStorageAccount + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Update the label for a storage account + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureStorageAccount -StorageAccountName "ContosoStorage01" -Label "ContosoAccnt" -Description "Contoso storage account" - + PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -Label "QATestAccnt" -Description "QA test storage account" - This command updates the Label and Description properties for the storage account named ContosoStorage01. - - + Description - + -----------This command updates the label and description of the 'qatest1' storage account in the specified subscription. - Example 2: Enable geo-replication for a storage account + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Set-AzureStorageAccount -StorageAccountName "ContosoStorage01" -GeoReplicationEnabled $False - + PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -GeoReplicationEnabled $false - This command sets the GeoReplicationEnabled property to $False for the storage account named ContosoStorage01. - - + Description - + -----------This command disables the geo-replication of the 'qatest1' storage account in the specified subscription. - Example 3: Disable geo-replication for a storage account + -------------------------- EXAMPLE 3 -------------------------- - PS C:\>Set-AzureStorageAccount -StorageAccountName "ContosoStorage01" -GeoReplicationEnabled $True - + PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -GeoReplicationEnabled $true - This command sets the GeoReplicationEnabled property to $True for the storage account named ContosoStorage01. - - + Description - + -----------This command enables the geo-replication of the 'qatest1' storage account in the specified subscription. - Get-AzureStorageAccount - - - - New-AzureStorageAccount - - - - Remove-AzureStorageAccount - + Unknown + + - + + Set-AzureSubnet - Defines the subnet list for an Azure virtual machine. + Defines the subnet list for a Microsoft Azure virtual machine. @@ -34364,26 +31570,20 @@ If this parameter is not specified, the default value is Standard_GRS. + The Set-AzureSubnet cmdlet sets the subnet list for a virtual machine configuration. Use with New-AzureVM to set the subnets for a virtual machine. Set-AzureSubnet - + SubnetNames - Specifies an array that contains the list of subnet names. + Specifies the list of subnet names. String[] - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + VM Specifies the virtual machine object. @@ -34393,31 +31593,20 @@ If this parameter is not specified, the default value is Standard_GRS. - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + SubnetNames - Specifies an array that contains the list of subnet names. + Specifies the list of subnet names. String[] String[] - none + + - + VM Specifies the virtual machine object. @@ -34427,7 +31616,8 @@ If this parameter is not specified, the default value is Standard_GRS. IPersistentVM - none + + @@ -34435,15 +31625,13 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - @@ -34452,37 +31640,47 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a subnet to a virtual machine configuration + -------------------------- Example 1 -------------------------- - PS C:\>New-AzureVMConfig -Name "VirtualMachine04" -ImageName $image -InstanceSize "Small" | Add-AzureProvisioningConfig -Windows -Password "password" | Set-AzureSubnet "PubSubnet","PrivSubnet" | New-AzureVM -ServiceName "ContosoService03" - + PS C:\> C:\PS>New-AzureVMConfig –Name "MyVM" –ImageName $image –InstanceSize "Small" ` + | Add-AzureProvisioningConfig –Windows –Password $passwd ` + | Set-AzureSubnet "PubSubnet","PrivSubnet" ` + | New-AzureVM –ServiceName "MySvc" - This command adds a subnet to the virtual machine configuration, and then creates the virtual machine named VirtualMachine04. - - + This example adds a subnet to the virtual machine configuration and then creates the virtual machine "MyVM". - + + @@ -34490,23 +31688,22 @@ If this parameter is not specified, the default value is Standard_GRS. Get-AzureVM - - - - New-AzureVM - + + Update-AzureVM - + + - + + Set-AzureVMAccessExtension - Sets the VMAccess extension for a virtual machine. + This cmdlet sets the VMAccess extension for the VM. @@ -34516,259 +31713,254 @@ If this parameter is not specified, the default value is Standard_GRS. - The Set-AzureVMAccessExtension cmdlet sets the VMAccess extension for the virtual machine. + + This cmdlet sets the VMAccess extension for the VM. Set-AzureVMAccessExtension - - Disable + + UserName - Indicates that this cmdlet sets the Extension State to Disable. + The user name for resetting the VM's credential. + String - - ReferenceName + + Password - Specifies the reference name of the access extension. - This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + The password for resetting the VM's credential. - String + String - - Version + + ReferenceName - Specifies the version of the extension. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String - - ForceUpdate + + Version - Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. + The Extension Version. + String - - Profile + + ForceUpdate - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Re-apply a configuration to an extension when the configuration has not been updated. - AzureProfile - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM Set-AzureVMAccessExtension - - UserName + + Disable - Specifies the user name that this cmdlet uses to reset the virtual machine's credential. + To Set the Extension State to 'Disable'. - String + SwitchParameter - - Password - - Specifies the password for resetting the virtual machine's credential. - - String - - + ReferenceName - Specifies the reference name of the access extension. - This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String - + Version - Specifies the version of the extension. + The Extension Version. - String + String - + ForceUpdate - Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Re-apply a configuration to an extension when the configuration has not been updated. - AzureProfile - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM Set-AzureVMAccessExtension - + Uninstall - Indicates whether this cmdlet uninstalls the access extension. + Not Specified + SwitchParameter - + ReferenceName - Specifies the reference name of the access extension. - This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String - + Version - Specifies the version of the extension. + The Extension Version. - String + String - + ForceUpdate - Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Re-apply a configuration to an extension when the configuration has not been updated. - AzureProfile - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - - Disable + + UserName - Indicates that this cmdlet sets the Extension State to Disable. + The user name for resetting the VM's credential. - SwitchParameter + String - SwitchParameter + String - none + + - - ForceUpdate + + Password - Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. + The password for resetting the VM's credential. - SwitchParameter + String - SwitchParameter + String - none + + - - Password + + ReferenceName - Specifies the password for resetting the virtual machine's credential. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String String - none + + - - Profile + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String - AzureProfile + String - none + + - - ReferenceName + + VM - Specifies the reference name of the access extension. - This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + The persistent VM object. - String + IPersistentVM - String + IPersistentVM - none + + - - Uninstall + + Disable - Indicates whether this cmdlet uninstalls the access extension. + To Set the Extension State to 'Disable'. - SwitchParameter + SwitchParameter SwitchParameter - none + + - - UserName + + Uninstall - Specifies the user name that this cmdlet uses to reset the virtual machine's credential. + Not Specified - String + SwitchParameter - String + SwitchParameter - none + + - - Version + + ForceUpdate - Specifies the version of the extension. + Re-apply a configuration to an extension when the configuration has not been updated. - String + SwitchParameter - String + SwitchParameter - none + + - - VM + + PipelineVariable - Specifies the persistent virtual machine object. + Not Specified - IPersistentVM + string - IPersistentVM + string - none + + @@ -34776,15 +31968,13 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - @@ -34793,57 +31983,63 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Set the VMAccess extension applied to a specified virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureVMAccessExtension -VM $VM -UserName $User -Password $PWD; - + PS C:\> - This command sets the VMAccess extension applied to the specified virtual machine as stored in the variable $VM. - - + Description - + -----------Description - Get-AzureVMAccessExtension - - - - Remove-AzureVMAccessExtension - + Unknown + + - + + Set-AzureVMBGInfoExtension - Sets the BGInfo extension for a virtual machine. + This cmdlet sets the BGInfo extension for the VM. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. @@ -34853,159 +32049,157 @@ If this parameter is not specified, the default value is Standard_GRS. - The Set-AzureVMBGInfoExtension cmdlet sets the BGInfo extension for a virtual machine. + + This cmdlet sets the BGInfo extension for the VM. Set-AzureVMBGInfoExtension - + Disable - Indicates that this cmdlet disables the extension state. + To Set the Extension State to 'Disable'. + SwitchParameter - + ReferenceName - Specifies the reference name of the BGInfo extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. You can specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned by the Get-AzureVM cmdlet. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String - + Version - Specifies the version of the BGInfo extension. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM Set-AzureVMBGInfoExtension - + Uninstall - Indicates that this cmdlet uninstalls the BGInfo extension. + Not Specified + SwitchParameter - + ReferenceName - Specifies the reference name of the BGInfo extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. You can specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned by the Get-AzureVM cmdlet. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String - + Version - Specifies the version of the BGInfo extension. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Extension Version. - AzureProfile + String - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - + Disable - Indicates that this cmdlet disables the extension state. + To Set the Extension State to 'Disable'. SwitchParameter SwitchParameter - none + + - - Profile + + ReferenceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - AzureProfile + String - AzureProfile + String - none + + - - ReferenceName + + Version - Specifies the reference name of the BGInfo extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. You can specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned by the Get-AzureVM cmdlet. + The Extension Version. - String + String String - none + + - - Uninstall + + VM - Indicates that this cmdlet uninstalls the BGInfo extension. + The persistent VM object. - SwitchParameter + IPersistentVM - SwitchParameter + IPersistentVM - none + + - - Version + + Uninstall - Specifies the version of the BGInfo extension. + Not Specified - String + SwitchParameter - String + SwitchParameter - none + + - - VM + + PipelineVariable - Specifies the persistent virtual machine object. + Not Specified - IPersistentVM + string - IPersistentVM + string - none + + @@ -35013,15 +32207,13 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - @@ -35030,438 +32222,484 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Set the BGInfo extension for a virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureVMBGInfoExtension -VM $VM - + PS C:\> - This command sets the BGInfo extension for the specified virtual machine as stored in the variable $VM. - - + Description - + -----------Description - Get-AzureVMBGInfoExtension - - - - Remove-AzureVMBGInfoExtension - + Unknown + + - + + - Set-AzureVMChefExtension + Set-AzureVMCustomScriptExtension - Adds the Chef extension to the virtual machine. + Set Azure VM Custom Script Extension Information. Set - AzureVMChefExtension + AzureVMCustomScriptExtension - The Set-AzureVMChefExtension cmdlet adds the Chef extension to the virtual machine. + + Set Azure VM Custom Script Extension Information. - Set-AzureVMChefExtension - - AutoUpdateChefClient + Set-AzureVMCustomScriptExtension + + ReferenceName + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + String - - BootstrapOptions + + Version + The Extension Version. - String + String - - ChefServerUrl + + ContainerName + The container name within the storage account. - String + String - - ClientRb + + FileName - Specifies the full path of the Chef client.rb. + The names of the blob files in the specified container. - String + String[] - - DeleteChefConfig + + StorageAccountName - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. + The storage account name in the current subscription. + String - - BootstrapVersion + + StorageEndpointSuffix - Specifies the version of chef-client to be installed with the extension. + The storage service endpoint. + String - - OrganizationName + + StorageAccountKey - Specifies the organization name of the Chef extension. + The storage account key - String + String - - Profile + + Run - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The command to run by the extension on the VM, currently only "powershell.exe" is supported. - AzureProfile + String - - RunList + + Argument - Specifies the Chef node run list. + Argument for the command to run on the VM. String - - ValidationClientName + + ForceUpdate - - + Re-apply a configuration to an extension when the configuration has not been updated. - String - - Version + + VM - Specifies the version number of the Chef extension. + The persistent VM object. - String + IPersistentVM - - ValidationPem + + + Set-AzureVMCustomScriptExtension + + ReferenceName - Specifies the Chef validator .pem file path + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. String - - VM + + Version - Specifies the persistent virtual machine object. + The Extension Version. - IPersistentVM + String - - Windows + + Disable - Indicates that this cmdlet creates a Windows virtual machine. + To Set the Extension State to 'Disable'. + SwitchParameter - - - Set-AzureVMChefExtension - - AutoUpdateChefClient + + ForceUpdate + Re-apply a configuration to an extension when the configuration has not been updated. - - BootstrapOptions + + VM + The persistent VM object. - String + IPersistentVM - - ChefServerUrl + + + Set-AzureVMCustomScriptExtension + + ReferenceName + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String - - ClientRb + + Version - Specifies the full path of the Chef client.rb. + The Extension Version. String - - DeleteChefConfig + + Uninstall - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. + Not Specified + SwitchParameter - - BootstrapVersion + + ForceUpdate - Specifies the version of chef-client to be installed with the extension. + Re-apply a configuration to an extension when the configuration has not been updated. - - OrganizationName + + VM - Specifies the organization name of the Chef extension. + The persistent VM object. - String + IPersistentVM - - Profile + + + Set-AzureVMCustomScriptExtension + + ReferenceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - AzureProfile + String - - RunList + + Version - Specifies the Chef node run list. + The Extension Version. String - - ValidationClientName + + FileUri - - + The URLs of the blob files. - String + String[] - - Version + + Run - Specifies the version number of the Chef extension. + The command to run by the extension on the VM, currently only "powershell.exe" is supported. - String + String - - Linux + + Argument - Indicates that this cmdlet creates a Linux based virtual machine. + Argument for the command to run on the VM. + String - - ValidationPem + + ForceUpdate - Specifies the Chef validator .pem file path + Re-apply a configuration to an extension when the configuration has not been updated. - String - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM - - AutoUpdateChefClient + + ReferenceName + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - SwitchParameter + String - SwitchParameter + String - none + + - - BootstrapOptions + + Version + The Extension Version. - String + String String - none + + - - ChefServerUrl + + ContainerName + The container name within the storage account. - String + String String - none + + - - ClientRb + + FileName - Specifies the full path of the Chef client.rb. + The names of the blob files in the specified container. - String + String[] - String + String[] - none + + - - DeleteChefConfig + + StorageAccountName - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. + The storage account name in the current subscription. - SwitchParameter + String - SwitchParameter + String - none + + - - BootstrapVersion + + StorageEndpointSuffix - Specifies the version of chef-client to be installed with the extension. + The storage service endpoint. - String + String String - none + + - - Linux + + StorageAccountKey - Indicates that this cmdlet creates a Linux based virtual machine. + The storage account key - SwitchParameter + String - SwitchParameter + String - none + + - - OrganizationName + + Run - Specifies the organization name of the Chef extension. + The command to run by the extension on the VM, currently only "powershell.exe" is supported. - String + String String - none + + - - Profile + + Argument - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Argument for the command to run on the VM. - AzureProfile + String - AzureProfile + String - none + + - - RunList + + VM - Specifies the Chef node run list. + The persistent VM object. - String + IPersistentVM - String + IPersistentVM - none + + - - ValidationClientName + + Disable - - + To Set the Extension State to 'Disable'. - String + SwitchParameter - String + SwitchParameter - none + + - - ValidationPem + + Uninstall - Specifies the Chef validator .pem file path + Not Specified - String + SwitchParameter - String + SwitchParameter - none + + - - Version + + FileUri - Specifies the version number of the Chef extension. + The URLs of the blob files. - String + String[] - String + String[] - none + + - - VM + + ForceUpdate - Specifies the persistent virtual machine object. + Re-apply a configuration to an extension when the configuration has not been updated. - IPersistentVM + SwitchParameter - IPersistentVM + SwitchParameter - none + + - - Windows + + PipelineVariable - Indicates that this cmdlet creates a Windows virtual machine. + Not Specified - SwitchParameter + string - SwitchParameter + string - none + + @@ -35469,15 +32707,13 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - @@ -35486,546 +32722,275 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Add a Chef extension to a Windows virtual machine - - - - - PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ClientRb "C:\\client.rb" -RunList "Apache" -Windows; - - - This command adds a Chef extension to a Windows virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. - - - - - - - - - - - Example 2: Add a Chef extension to a Windows virtual machine with bootstrapping - - - - - PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -BootstrapOptions '{"chef_node_name":"your_node_name","chef_server_url":"https://api.opscode.com/organizations/some-org", "validation_client_name":"some-org-validator"}' -RunList "Apache" -Windows; - - - This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and runs Apache on it. After bootstrapping, the virtual machine refers to the BootstrapOptions specified in JSON format. - - - - - - - - - - - Example 3: Add a Chef extension to a Windows virtual machine and install Apache and GIT + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -ValidationClientName "MyOrg-Validator" -RunList "apache, git" -Windows; - + PS C:\> $x = Set-AzureVMCustomScriptExtension -VM $x -ContainerName 'test' -FileName 'script1.ps1','script2.ps1' -Run 'script1.ps1' -Argument 'arg1 arg2'; + + New-AzureVM -Location 'West US' -ServiceName $svc -VM $x; - This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and have Apache and GIT installed. If you do not provide the client.rb, you need to provide the Chef server URL and validation client name. - - + Description - + ----------- - Example 4: Add a Chef extension to a Linux virtual machine + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -OrganizationName "MyOrg" -Linux; - + PS C:\> Set-AzureVMCustomScriptExtension -VM $vm -FileUri 'http://foo1.blob.core.windows.net/bar/script1.ps1','http://foo2.blob.core.windows.net/baz/script2.ps1' -Run 'script1.ps1' -Argument 'arg1 arg2'; + + Update-AzureVM -ServiceName $svc -Name $name -VM vm; - This command adds the Chef extension to a Linux virtual machine. When the virtual machine launches, it is bootstrapped with Chef. If you do not provide the client.rb, you need to provide the Chef server URL and organization. - - + Description - + ----------- - Get-AzureVMChefExtension - - - - Remove-AzureVMChefExtension - - - - Azure Service Cmdlets - + Unknown + + - + + - Set-AzureVMCustomScriptExtension + Set-AzureVMDiagnosticsExtension - Sets information for an Azure virtual machine custom script extension. + + Set - AzureVMCustomScriptExtension + AzureVMDiagnosticsExtension - The Set-AzureVMCustomScriptExtension cmdlet sets information for an Azure virtual machine custom script extension. + + + - Set-AzureVMCustomScriptExtension - - ReferenceName - - Specifies the reference name for the extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - - ForceUpdate - - Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. - - - - Version - - Specifies the version of the custom script extension. - - String - - - ContainerName + Set-AzureVMDiagnosticsExtension + + DiagnosticsConfigurationPath - Specifies the container name within the storage account. + + String - - FileName - - Specifies a string array that contains the names of the blob files in the specified container. - - String[] - - - StorageAccountName - - Specifies the storage account name in the current subscription. - - String - - - StorageEndpointSuffix - - Specifies the storage service endpoint. - - String - - - StorageAccountKey - - Specifies the storage account key - - String - - - Run - - Specifies the command this cmdlet runs by the extension on the virtual machine. Only "powershell.exe" is supported. - - String - - - Argument - - Specifies a string that supplies an argument that this cmdlet runs on the virtual machine. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - - - Set-AzureVMCustomScriptExtension - - ReferenceName - - Specifies the reference name for the extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - - ForceUpdate + + StorageContext - Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. + + + AzureStorageContext - + Version - Specifies the version of the custom script extension. - - String - - - FileUri - - Specifies a string array that contains the URLs of the blob files. - - String[] - - - Run - - Specifies the command this cmdlet runs by the extension on the virtual machine. Only "powershell.exe" is supported. - - String - - - Argument - - Specifies a string that supplies an argument that this cmdlet runs on the virtual machine. + + - String + String - - Profile + + Disable - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + SwitchParameter - + VM - Specifies the persistent virtual machine object. + + IPersistentVM - Set-AzureVMCustomScriptExtension - - ReferenceName + Set-AzureVMDiagnosticsExtension + + DiagnosticsConfigurationPath - Specifies the reference name for the extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + - String + String - - ForceUpdate + + StorageContext - Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. + + + AzureStorageContext - + Version - Specifies the version of the custom script extension. + + - String + String - + Disable - Indicates that this cmdlet disables the extension state. + + + SwitchParameter - - Profile + + ReferenceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + String - + VM - Specifies the persistent virtual machine object. - - IPersistentVM - - - - Set-AzureVMCustomScriptExtension - - ReferenceName - - Specifies the reference name for the extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - - ForceUpdate - - Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. - - - - Version - - Specifies the version of the custom script extension. - - String - - - Uninstall - - Indicates that this cmdlet uninstalls the custom script extension from the virtual machine. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the persistent virtual machine object. + + IPersistentVM - - Argument - - Specifies a string that supplies an argument that this cmdlet runs on the virtual machine. - - String - - String - - - none - - - ContainerName + + DiagnosticsConfigurationPath - Specifies the container name within the storage account. + + String String - none - - - Disable - - Indicates that this cmdlet disables the extension state. - - SwitchParameter - - SwitchParameter - - - none + + - - FileName + + StorageContext - Specifies a string array that contains the names of the blob files in the specified container. + + - String[] + AzureStorageContext - String[] + AzureStorageContext - none + + - - FileUri + + Version - Specifies a string array that contains the URLs of the blob files. + + - String[] + String - String[] + String - none + + - - ForceUpdate + + Disable - Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. + + SwitchParameter SwitchParameter - none + + - - Profile + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile + IPersistentVM - AzureProfile + IPersistentVM - none + + - + ReferenceName - Specifies the reference name for the extension. - This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - String - - - none - - - Run - - Specifies the command this cmdlet runs by the extension on the virtual machine. Only "powershell.exe" is supported. - - String - - String - - - none - - - StorageAccountKey - - Specifies the storage account key - - String - - String - - - none - - - StorageAccountName - - Specifies the storage account name in the current subscription. - - String - - String - - - none - - - StorageEndpointSuffix - - Specifies the storage service endpoint. - - String - - String - - - none - - - Uninstall - - Indicates that this cmdlet uninstalls the custom script extension from the virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - Version - - Specifies the version of the custom script extension. + + - String + String String - none - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - IPersistentVM - - - none + + @@ -36033,15 +32998,13 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - @@ -36050,290 +33013,381 @@ If this parameter is not specified, the default value is Standard_GRS. - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - - Example 1: Set information for a virtual machine custom script extension - - - - - PS C:\>$VM = Set-AzureVMCustomScriptExtension -VM $VM -ContainerName "Container01" -FileName "script1.ps1","script2.ps1" -Run "script1.ps1" -Argument "arg1 arg2"; -PS C:\> New-AzureVM -Location "West US" -ServiceName $SVC -VM $VM; - - - This command sets information for a virtual machine custom script extension. - - - - - - - - - - - Example 2: Set information for a virtual machine custom script extension using a file path - - - - - PS C:\>Set-AzureVMCustomScriptExtension -VM $VM -FileUri "http://www.blob.core.contoso.net/bar/script1.ps1","http://www.blob.core.contoso.net/baz/script2.ps1" -Run "script1.ps1" -Argument "arg1 arg2"; -PS C:\> Update-AzureVM -ServiceName $SVC -Name $Name -VM VM; - - - This command sets information for a virtual machine custom script extension using multiple file URLs. - - - - - - - - - - - Get-AzureVMCustomScriptExtension - - - - Remove-AzureVMCustomScriptExtension - - - - Get-AzureVM - - - + + - Set-AzureVMDiagnosticsExtension + Set-AzureVMDscExtension - Configures the Azure Diagnostics extension on a virtual machine. + Configure the Windows PowerShell Desired State Configuration extension on a VM. Set - AzureVMDiagnosticsExtension + AzureVMDscExtension - The Set-AzureVMDiagnosticsExtension cmdlet configures the Microsoft Azure Diagnostics extension on a virtual machine. + + Configure the Windows PowerShell Desired State Configuration extension on a VM. - Set-AzureVMDiagnosticsExtension - - DiagnosticsConfigurationPath + Set-AzureVMDscExtension + + ReferenceName - Specifies a path for the diagnostics configuration. + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. String - - StorageContext + + ConfigurationArgument - Specifies an Azure storage context. + A hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. +Supported types for values include: primitive types, string, array and PSCredential. - AzureStorageContext + Hashtable - - Version + + ConfigurationDataPath - Specifies the extension version as a string. + The path to a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. - String + String - - Disable + + ConfigurationArchive - Indicates that this cmdlet disables the diagnostics extension on the virtual machine. + The name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. + String - - Profile + + ConfigurationName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Name of the configuration script or module that will be invoked by the DSC Extension. + +The value of this parameter must be the name of one of the configurations functions contained in the scripts or modules packaged in the ConfigurationArchive. + +If omitted, this parameter will default to the name of the file given by the ConfigurationArchive parameter, excluding any extension, for example if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName will be "SalesWebSite". - AzureProfile + String - - VM + + ContainerName - Specifies the persistent virtual machine object. + Name of the Azure Storage Container where the ConfigurationArchive is located. - IPersistentVM + String - - - Set-AzureVMDiagnosticsExtension - - DiagnosticsConfigurationPath + + Force - Specifies a path for the diagnostics configuration. + By default Set-AzureVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them. - String + SwitchParameter - + StorageContext - Specifies an Azure storage context. + The Azure Storage Context that provides the security settings used to access the configuration script. This context should provide read access to the container specified by ContainerName. AzureStorageContext - + Version - Specifies the extension version as a string. + The specific version of the DSC Extension to use. If not given, it will default to "1.*" - String + String - - Disable + + StorageEndpointSuffix - Indicates that this cmdlet disables the diagnostics extension on the virtual machine. + The DNS endpoint suffix for all storage services, e.g. "core.windows.net". + String - - ReferenceName + + VM - Specifies the reference name for the diagnostics extension. + The persistent VM object. - String + IPersistentVM - - Profile + + DataCollection - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable - AzureProfile + string - - VM + + WhatIf - Specifies the persistent virtual machine object. + Describes what would happen if you executed the command without actually executing the command. - IPersistentVM + SwitchParameter + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + + WmfVersion + + Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". +A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. +A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + + string - - DiagnosticsConfigurationPath + + ReferenceName - Specifies a path for the diagnostics configuration. + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. String String - none + + - - Disable + + ConfigurationArgument - Indicates that this cmdlet disables the diagnostics extension on the virtual machine. + A hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. +Supported types for values include: primitive types, string, array and PSCredential. - SwitchParameter + Hashtable - SwitchParameter + Hashtable - none + + - - Profile + + ConfigurationDataPath - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The path to a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. - AzureProfile + String - AzureProfile + String - none + + - - ReferenceName + + ConfigurationArchive - Specifies the reference name for the diagnostics extension. + The name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. - String + String String - none + + + + + ConfigurationName + + Name of the configuration script or module that will be invoked by the DSC Extension. + +The value of this parameter must be the name of one of the configurations functions contained in the scripts or modules packaged in the ConfigurationArchive. + +If omitted, this parameter will default to the name of the file given by the ConfigurationArchive parameter, excluding any extension, for example if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName will be "SalesWebSite". + + String + + String + + + + + + + ContainerName + + Name of the Azure Storage Container where the ConfigurationArchive is located. + + String + + String + + + WindowsPowerShellDSC + + + Force + + By default Set-AzureVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them. + + SwitchParameter + + SwitchParameter + + + + - + StorageContext - Specifies an Azure storage context. + The Azure Storage Context that provides the security settings used to access the configuration script. This context should provide read access to the container specified by ContainerName. AzureStorageContext AzureStorageContext - none + + - + Version - Specifies the extension version as a string. + The specific version of the DSC Extension to use. If not given, it will default to "1.*" - String + String String - none + 1.* + + + StorageEndpointSuffix + + The DNS endpoint suffix for all storage services, e.g. "core.windows.net". + + String + + String + + + + - + VM - Specifies the persistent virtual machine object. + The persistent VM object. IPersistentVM IPersistentVM - none + + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + SwitchParameter + + + + + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + SwitchParameter + + + + + + + WmfVersion + + Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". +A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. +A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + + string + + string + + + latest + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + string + + + + - - + - + + - - @@ -36342,382 +33396,580 @@ PS C:\> Update-AzureVM -ServiceName $SVC -Name $Name -VM VM; - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a virtual machine with Azure Diagnostics extension applied + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$VM = New-AzureVMConfig -Name $VM -InstanceSize Small -ImageName $VMImage -PS C:\> $VM = Add-AzureProvisioningConfig -VM $VM -AdminUsername $Username -Password $Password -Windows -PS C:\> $VM = Set-AzureVMDiagnosticsExtension -DiagnosticsConfigurationPath $Config_Path -Version "1.*" -VM $VM -StorageContext $Storage_Context -PS C:\> New-AzureVM -Location $Location -ServiceName $Service_Name -VM $VM - + PS C:\> Set-AzureVMDscExtension -VM $vm -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Path = 'C:\MyDirectory' } + +DeploymentName : my-vm-svc +Name : my-vm +Label : +VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM +InstanceStatus : ReadyRole +IpAddress : 10.10.10.10 +InstanceStateDetails : +PowerState : Started +InstanceErrorCode : +InstanceFaultDomain : 0 +InstanceName : my-vm +InstanceUpgradeDomain : 0 +InstanceSize : Small +AvailabilitySetName : +DNSName : http://my-vm-svc.cloudapp.net/ +Status : ReadyRole +GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus +ResourceExtensionStatusList : {Microsoft.Compute.BGInfo} +PublicIPAddress : +PublicIPName : +ServiceName : my-vm-svc +OperationDescription : Get-AzureVM +OperationId : a0217a7af900c1f8a212299a3333cdbd6 +OperationStatus : OK - These commands enable the Azure Diagnostics extension on a virtual machine. - - + Description - + -----------This command configures the DSC extension on a VM. + +The "MyConfiguration.ps1.zip" package must have been previously uploaded to Azure storage using the Publish-AzureVMDscConfiguration command and includes the "MyConfiguration.ps1" script and the modules it depends on. + +The "MyConfiguration" argument indicates the specific DSC configuration within the script to execute. The -ConfigurationArgument parameter specifies a hashtable with the arguments that will be passed to the configuration function. - Example 2: Enable an Azure Diagnostics extension on an existing virtual machine + -------------------------- EXAMPLE 2 -------------------------- - PS C:\>$VM = Get-AzureVM -ServiceName $Service_Name -Name $VM_Name -PS C:\> $VM_Update = Set-AzureVMDiagnosticsExtension -DiagnosticsConfigurationPath $Config_Path -Version "1.*" -VM $VM -StorageContext $Storage_Context -PS C:\> Update-AzureVM -ServiceName $Service_Name -Name $VM_Name -VM $VM_Update.VM - + PS C:\> $vm | Set-AzureVMDscExtension -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Credential = Get-Credential } -ConfigurationDataPath MyConfigurationData.psd1 + + +DeploymentName : my-vm-svc +Name : my-vm +Label : +VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM +InstanceStatus : ReadyRole +IpAddress : 10.10.10.10 +InstanceStateDetails : +PowerState : Started +InstanceErrorCode : +InstanceFaultDomain : 0 +InstanceName : my-vm +InstanceUpgradeDomain : 0 +InstanceSize : Small +AvailabilitySetName : +DNSName : http://my-vm-svc.cloudapp.net/ +Status : ReadyRole +GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus +ResourceExtensionStatusList : {Microsoft.Compute.BGInfo, Microsoft.Powershell.DSC} +PublicIPAddress : +PublicIPName : +ServiceName : my-vm-svc +OperationDescription : Get-AzureVM +OperationId : a0217a7af900c1f8a212299a3333cdbd7 +OperationStatus : OK - The first command uses the Get-AzureVM cmdlet to get a virtual machine. - The second command uses the Set-AzureVMDiagnosticsExtension cmdlet to update the virtual machine configuration to include the Azure Diagnostics extension. - The final command applies the updated configuration to the virtual machine. - - + Description - + -----------You can pass -VM parameter from the pipeline. + +-ConfigurationArgument parameter supports PSCredential as a value. + +-ConfigurationDataPath parameter takes path to .psd1 file with ConfigurationData hashtable. - Get-AzureVMDiagnosticsExtension - - - - Remove-AzureVMDiagnosticsExtension - - - - Update-AzureVM - + Unknown + + - + + - Set-AzureVMDscExtension + Set-AzureVMExtension - Configures the DSC extension on a virtual machine. + This cmdlet sets resource extensions for VMs. Set - AzureVMDscExtension + AzureVMExtension - The Set-AzureVMDscExtension cmdlet configures the Desired State Configuration (DSC) extension on a virtual machine. + + This cmdlet sets resource extensions for VMs. - Set-AzureVMDscExtension - - ConfigurationArchive + Set-AzureVMExtension + + ExtensionName - Specifies the name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. + The Extension Name. String - - ConfigurationArgument + + Publisher + + The Extension's Publisher. + + String + + + Version + + The Extension Version. + + String + + + ReferenceName - Specifies a hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. - The acceptable values for this parameter are: + The extension's reference name. --- primitive types --- string --- array --- PSCredential + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - Hashtable + String - - ConfigurationDataPath + + PublicConfiguration - Specifies the path of a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. + The public configuration text. - String + String - - ConfigurationName + + PrivateConfiguration - Specifies the name of the configuration script or module that is invoked by the DSC extension. - The value of this parameter must be the name of one of the configuration functions contained in the scripts or modules packaged in ConfigurationArchive. - This cmdlet defaults to the name of the file given by the ConfigurationArchive parameter if you omit this parameter, excluding any extension. For instance, if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName is "SalesWebSite". + The private configuration text. - String + String - - ContainerName + + Disable - Specifies the name of the Azure storage container where the ConfigurationArchive is located. + To Set the Extension State to 'Disable'. - String + SwitchParameter - - Force + + Uninstall - Indicates that this cmdlet overwrites existing blobs. + Not Specified + SwitchParameter - - Profile + + ForceUpdate - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Re-apply a configuration to an extension when the configuration has not been updated. - AzureProfile - - ReferenceName + + VM - Specifies a user-defined string that can be used to refer to an extension. This parameter is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + - String + IPersistentVM - - StorageContext + + + Set-AzureVMExtension + + ExtensionName - Specifies the Azure storage context that provides the security settings used to access the configuration script. This context provides read access to the container specified by the ContainerName parameter. + The Extension Name. - AzureStorageContext + String - - StorageEndpointSuffix + + Publisher - Specifies the DNS endpoint suffix for all storage services, for instance, "core.contoso.net". + The Extension's Publisher. - String + String - + Version - Specifies the specific version of the DSC extension to use. The default value is set to "1.*" if this parameter is not specified. + The Extension Version. - String + String - - VM + + ReferenceName - Specifies the persistent virtual machine object. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - IPersistentVM + String - - Confirm + + PublicConfigPath - Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + Not Specified + String - - WhatIf + + PrivateConfigPath + + Not Specified + + String + + + Disable + + To Set the Extension State to 'Disable'. + + SwitchParameter + + + Uninstall + + Not Specified + + SwitchParameter + + + ForceUpdate + + Re-apply a configuration to an extension when the configuration has not been updated. + + + + VM - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + IPersistentVM - - - - ConfigurationArchive - - Specifies the name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. - - String - - String - - - none - - - ConfigurationArgument - - Specifies a hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. - The acceptable values for this parameter are: + + Set-AzureVMExtension + + ReferenceName + + The extension's reference name. --- primitive types --- string --- array --- PSCredential - - Hashtable - - Hashtable + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + + String + + + PublicConfigPath + + Not Specified + + String + + + PrivateConfigPath + + Not Specified + + String + + + Disable + + To Set the Extension State to 'Disable'. + + SwitchParameter + + + Uninstall + + Not Specified + + SwitchParameter + + + ForceUpdate + + Re-apply a configuration to an extension when the configuration has not been updated. + + + + VM + + + + + IPersistentVM + + + + Set-AzureVMExtension + + ReferenceName + + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + + String + + + PublicConfiguration + + The public configuration text. + + String + + + PrivateConfiguration + + The private configuration text. + + String + + + Disable + + To Set the Extension State to 'Disable'. + + SwitchParameter + + + Uninstall + + Not Specified + + SwitchParameter + + + ForceUpdate + + Re-apply a configuration to an extension when the configuration has not been updated. + + + + VM + + + + + IPersistentVM + + + + + + ExtensionName + + The Extension Name. + + String + + String - none + + - - ConfigurationDataPath + + Publisher - Specifies the path of a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. + The Extension's Publisher. - String + String String - none + + - - ConfigurationName + + Version - Specifies the name of the configuration script or module that is invoked by the DSC extension. - The value of this parameter must be the name of one of the configuration functions contained in the scripts or modules packaged in ConfigurationArchive. - This cmdlet defaults to the name of the file given by the ConfigurationArchive parameter if you omit this parameter, excluding any extension. For instance, if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName is "SalesWebSite". + The Extension Version. - String + String String - none + + - - ContainerName + + ReferenceName - Specifies the name of the Azure storage container where the ConfigurationArchive is located. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String String - none + + - - Force + + PublicConfiguration - Indicates that this cmdlet overwrites existing blobs. + The public configuration text. - SwitchParameter + String - SwitchParameter + String - none + + - - Profile + + PrivateConfiguration - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The private configuration text. - AzureProfile + String - AzureProfile + String - none + + - - ReferenceName + + Disable - Specifies a user-defined string that can be used to refer to an extension. This parameter is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + To Set the Extension State to 'Disable'. - String + SwitchParameter - String + SwitchParameter - none + + - - StorageContext + + Uninstall - Specifies the Azure storage context that provides the security settings used to access the configuration script. This context provides read access to the container specified by the ContainerName parameter. + Not Specified - AzureStorageContext + SwitchParameter - AzureStorageContext + SwitchParameter - none + + - - StorageEndpointSuffix + + VM - Specifies the DNS endpoint suffix for all storage services, for instance, "core.contoso.net". + + - String + IPersistentVM - String + IPersistentVM - none + + - - Version + + PublicConfigPath - Specifies the specific version of the DSC extension to use. The default value is set to "1.*" if this parameter is not specified. + Not Specified - String + String String - none + + - - VM + + PrivateConfigPath - Specifies the persistent virtual machine object. + Not Specified - IPersistentVM + String - IPersistentVM + String - none + + - - Confirm + + ForceUpdate - Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + Re-apply a configuration to an extension when the configuration has not been updated. SwitchParameter SwitchParameter - false + + - - WhatIf + + PipelineVariable - Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + Not Specified - SwitchParameter + string - SwitchParameter + string - false + + @@ -36725,15 +33977,13 @@ PS C:\> Update-AzureVM -ServiceName $Service_Name -Name $VM_Name -VM $VM_Upda - - + - + + - - @@ -36742,658 +33992,2324 @@ PS C:\> Update-AzureVM -ServiceName $Service_Name -Name $VM_Name -VM $VM_Upda - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Configure the DSC extension on a virtual machine - - - - - PS C:\>Set-AzureVMDscExtension -VM $VM -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Path = 'C:\MyDirectory' } -DeploymentName : my-vm-svc -Name : my-vm -Label : -VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM -InstanceStatus : ReadyRole -IpAddress : 10.10.10.10 -InstanceStateDetails : -PowerState : Started -InstanceErrorCode : -InstanceFaultDomain : 0 -InstanceName : my-vm -InstanceUpgradeDomain : 0 -InstanceSize : Small -AvailabilitySetName : -DNSName : http://my-vm-svc.cloudapp.net/ -Status : ReadyRole -GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus -ResourceExtensionStatusList : {Contoso.Compute.BGInfo} -PublicIPAddress : -PublicIPName : -ServiceName : my-vm-svc -OperationDescription : Get-AzureVM -OperationId : a0217a7af900c1f8a212299a3333cdbd6 -OperationStatus : OK - - - This command configures the DSC extension on a virtual machine. - The MyConfiguration.ps1.zip package must have been previously uploaded to Azure storage using the Publish-AzureVMDscConfiguration command and includes the MyConfiguration.ps1 script and the modules it depends on. - The MyConfiguration argument indicates the specific DSC configuration within the script to execute. The -ConfigurationArgument parameter specifies a hashtable with the arguments that is passed to the configuration function. - - - - - - - - - - - Example 2: Configure the DSC extension on a virtual machine using a path to the configuration data + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>$VM | Set-AzureVMDscExtension -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Credential = Get-Credential } -ConfigurationDataPath MyConfigurationData.psd1 -DeploymentName : my-vm-svc -Name : my-vm -Label : -VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM -InstanceStatus : ReadyRole -IpAddress : 10.10.10.10 -InstanceStateDetails : -PowerState : Started -InstanceErrorCode : -InstanceFaultDomain : 0 -InstanceName : my-vm -InstanceUpgradeDomain : 0 -InstanceSize : Small -AvailabilitySetName : -DNSName : http://my-vm-svc.cloudapp.net/ -Status : ReadyRole -GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus -ResourceExtensionStatusList : {Microsoft.Compute.BGInfo, Microsoft.Powershell.DSC} -PublicIPAddress : -PublicIPName : -ServiceName : my-vm-svc -OperationDescription : Get-AzureVM -OperationId : a0217a7af900c1f8a212299a3333cdbd7 -OperationStatus : OK - + PS C:\> - This command configures the DSC extension on a virtual machine using a path to the configuration data. - - + Description - + -----------Description - Get-AzureVMDscExtension - - - - Remove-AzureVMDscExtension - - - - Remove-AzureVMDscExtension - - - - Get-AzureVM - - - - Publish-AzureVMDscConfiguration - + Unknown + + - + + - Set-AzureVMExtension + Set-AzureVMImageDataDiskConfig - Sets resource extensions for virtual machines. + Allows you to update the Data Disk properties on the VM Image Set - AzureVMExtension + AzureVMImageDataDiskConfig - The Set-AzureVMExtension cmdlet sets resource extensions for virtual machines. + + + - Set-AzureVMExtension - - ExtensionName + Set-AzureVMImageDataDiskConfig + + DiskConfig - Specifies the extension name of the virtual machine. + The disk config object that encapsulates the OS Disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet - - PublicConfigKey + + DataDiskName + + - String + String - - ForceUpdate + + Lun - Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. + + + + Int32 + + + HostCaching + + + + + String + + + + + + DiskConfig + + The disk config object that encapsulates the OS Disk and Data Disk objects. + + VirtualMachineImageDiskConfigSet + + VirtualMachineImageDiskConfigSet + + + + + + + DataDiskName + + + + + String + + String + + + + + + + Lun + + + + + Int32 + + Int32 + + + + + + + HostCaching + + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> $s = New-AzureDiskConfigSet + # returns DiskConfigSet object; + + $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite + # returns DiskConfigSet object; + + $s = Set-AzureDataDiskConfig -DiskConfig $s -Name 'test' -HostCaching 'ReadWrite' -LUN 0 + # returns DiskConfigSet object + + # Final step - Update the VM Image + Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1 -DiskConfigSet $s; + + # OR + + $s | Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1; + + Description + + + + ----------- + + + + + + + Unknown + + + + + + + + + Set-AzureVMImageOSDiskConfig + + Allows you to update the OS Disk properties on the VM Image + + + + + Set + AzureVMImageOSDiskConfig + + + + + + + + + + Set-AzureVMImageOSDiskConfig + + DiskConfig + + + + + VirtualMachineImageDiskConfigSet + + + HostCaching + + + + + String + + + + + + DiskConfig + + + + + VirtualMachineImageDiskConfigSet + + VirtualMachineImageDiskConfigSet + + + + + + + HostCaching + + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> $s = New-AzureDiskConfigSet + # returns DiskConfigSet object; + + $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite + # returns DiskConfigSet object; + + $s = Set-AzureDataDiskConfig -DiskConfig $s -Name 'test' -HostCaching 'ReadWrite' -LUN 0 + # returns DiskConfigSet object + + # Final step - Update the VM Image + Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1 -DiskConfigSet $s; + + # OR + + $s | Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1; + + Description + + + + ----------- + + + + + + + Unknown + + + + + + + + + Set-AzureVMMicrosoftAntimalwareExtension + + Configures the Microsoft Antimalware extension for a virtual machine. + + + + + Set + AzureVMMicrosoftAntimalwareExtension + + + + + The Set-AzureVMMicrosoftAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a virtual machine. You can enable, disable, or uninstall the extension. + + + + Set-AzureVMMicrosoftAntimalwareExtension + + AntimalwareConfigFile + + Specifies the absolute path to the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +{ "AntimalwareEnabled": true } + + String + + + Version + + Specifies the extension version as a string. + + String + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. Valid values are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. + + String + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + + VM + + Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM + + + + Set-AzureVMMicrosoftAntimalwareExtension + + AntimalwareConfiguration + + Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + + { "AntimalwareEnabled": true }Microsoft Antimalware JSON configuration sample: + + { + "AntimalwareEnabled": true, + "RealtimeProtectionEnabled": true, + "ScheduledScanSettings": { + "isEnabled": true, + "day": 1, + "time": 120, + "scanType": "Full" + }, + "Exclusions": { + "Extensions": ".ext1;.ext2", + "Paths": "c:\excluded-path-1;c:\excluded-path-2", + "Processes": "excludedproc1.exe;excludedproc2.exe" + } + } + + Notes: + AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value + + RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true + + ScheduledScanSettings: + isEnabled=true/false + day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) + time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) + scanType="Quick" or "Full" (Default is Quick) + Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" + + Exclusions: + Multiple exclusions in the same list are specified by using semicolon delimiters. + If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. + + String + + + Version + + Specifies the extension version as a string. + + String + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. Valid values are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. + + String + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + + VM + + Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM + + + + Set-AzureVMMicrosoftAntimalwareExtension + + Version + + Specifies the extension version as a string. + + String + + + Disable + + Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. + + SwitchParameter + + + VM + + Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM + + + + Set-AzureVMMicrosoftAntimalwareExtension + + Uninstall + + Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. + + SwitchParameter + + + VM + + Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM + + + + Set-AzureVMMicrosoftAntimalwareExtension + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. Valid values are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. + String + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext - - PrivateConfigKey + + NoConfig - String + SwitchParameter - - Publisher + + VM + + Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM + + + + + + AntimalwareConfigFile + + Specifies the absolute path to the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +{ "AntimalwareEnabled": true } + + String + + String + + + none + + + Version + + Specifies the extension version as a string. + + String + + String + + + none + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. Valid values are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. + + String + + String + + + none + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + AzureStorageContext + + + none + + + VM + + Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM + + IPersistentVM + + + none + + + AntimalwareConfiguration + + Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + + { "AntimalwareEnabled": true }Microsoft Antimalware JSON configuration sample: + + { + "AntimalwareEnabled": true, + "RealtimeProtectionEnabled": true, + "ScheduledScanSettings": { + "isEnabled": true, + "day": 1, + "time": 120, + "scanType": "Full" + }, + "Exclusions": { + "Extensions": ".ext1;.ext2", + "Paths": "c:\excluded-path-1;c:\excluded-path-2", + "Processes": "excludedproc1.exe;excludedproc2.exe" + } + } + + Notes: + AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value + + RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true + + ScheduledScanSettings: + isEnabled=true/false + day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) + time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) + scanType="Quick" or "Full" (Default is Quick) + Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" + + Exclusions: + Multiple exclusions in the same list are specified by using semicolon delimiters. + If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. + + String + + String + + + none + + + Disable + + Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. + + SwitchParameter + + SwitchParameter + + + none + + + Uninstall + + Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. + + SwitchParameter + + SwitchParameter + + + none + + + NoConfig + + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1: Enable the extension by using a configuration file -------------------------- + + + + + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json' | Update-AzureVM + + This command enables the Microsoft Antimalware extension by using a configuration file. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. + + + + The AntimalwareConfigFile parameter specifies a configuration file for the Microsoft Antimalware extension. Set-AzureVMMicrosoftAntimalwareExtension applies the configuration that the file specifies to the virtual machine, and then passes the result to the Update-AzureVM cmdlet to update the virtual machine. + + + + + -------------------------- Example 2: Enable the extension and enable monitoring -------------------------- + + + + + PS C:\>$StorageContext = New-AzureStorageContext -StorageAccountName "contosostoragemain" -StorageAccountKey (Get-AzureStorageKey -StorageAccountName "Contosostoragemain").Primary +PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json" -Monitoring ON -StorageContext $StorageContext | Update-AzureVM + + The first command creates an AzureStorageContext object by using the New-AzureStorageContext cmdlet, and then stores it in the $StorageContext variable. + + + + The second command enables the Microsoft Antimalware extension, and enables monitoring. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet.The command specifies a value of ON for the Monitoring parameter and specifies the Azure storage context stored in $StorageContext, and then passes the result to the Update-AzureVM cmdlet. + + + + + -------------------------- Example 3: Enable the extension by specifying a configuration object -------------------------- + + + + + PS C:\>$config_string = [IO.File]::ReadAllText('C:\configuration\contosoVM.json') +PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfiguration $config_string | Update-AzureVM + + The first command creates a string object by reading a JSON configuration for the Microsoft Antimalware extension, and then storing it in the $config_string variable. + + + + The AntimalwareConfiguration parameter specifies the configuration information stored in $config_string. Set-AzureVMMicrosoftAntimalwareExtension applies that configuration to the virtual machine, and then passes the result to the Update-AzureVM cmdlet. + + + + + -------------------------- Example 4: Disable the extension -------------------------- + + + + + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Disable | Update-AzureVM + + This command disables the extension without removing it. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. + + + + Set-AzureVMMicrosoftAntimalwareExtension disables the Microsoft Antimalware extension for the virtual machine, and then passes the result to Update-AzureVM.To re-enabled the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension cmdlet without specifying the Disable parameter. + + + + + -------------------------- Example 5: Remove the extension -------------------------- + + + + + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Uninstall | Update-AzureVM + + This command removes the Microsoft Antimalware extension from the virtual machine. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. + + + + Set-AzureVMMicrosoftAntimalwareExtension uninstalls the extension. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. The command passes the result to Update-AzureVM. + + + + + + + Online Version: + http://go.microsoft.com/fwlink/?LinkID=402844 + + + Get-AzureVM + + + + + Update-AzureVM + + + + + New-AzureStorageContext + + + + + Get-AzureVMMicrosoftAntimalwareExtension + + + + + Remove-AzureVMMicrosoftAntimalwareExtension + + + + + + + + + Set-AzureVMPuppetExtension + + This cmdlet sets the Puppet extension for the VM. + + + + + Set + AzureVMPuppetExtension + + + + + This cmdlet sets the Puppet extension for the VM. + + + + Set-AzureVMPuppetExtension + + PuppetMasterServer - Specifies the publisher of the extension. + The FQDN of puppet master server.. String - + Version - Specifies the extension version. + The Extension Version. String - - ReferenceName + + Disable - Specifies the reference name of the extension. - This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + To Set the Extension State to 'Disable'. - String + SwitchParameter - - PublicConfiguration + + ReferenceName - Specifies the public configuration text. + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - String + String - - PrivateConfiguration + + VM - Specifies the private configuration text. + The persistent VM object. - String + IPersistentVM - - Disable + + + + + PuppetMasterServer + + The FQDN of puppet master server.. + + String + + String + + + + + + + Version + + The Extension Version. + + String + + String + + + + + + + Disable + + To Set the Extension State to 'Disable'. + + SwitchParameter + + SwitchParameter + + + + + + + ReferenceName + + The extension's reference name. + + This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + + String + + String + + + + + + + VM + + The persistent VM object. + + IPersistentVM + + IPersistentVM + + + + + + + PipelineVariable + + Not Specified + + string + + string + + + + + + + + + + + + - Indicates that this cmdlet disables the extension state. + + - - - Uninstall + + + + + + + + + + + - Indicates that this cmdlet uninstalls the resource extension from the virtual machine. + + - - - Profile + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> + + Description + + + + -----------Description + + + + + + + Unknown + + + + + + + + + Set-AzureVMSize + + Sets the size of a Microsoft Azure virtual machine. + + + + + Set + AzureVMSize + + + + + The Set-AzureVMSize cmdlet updates the size of a Virtual Machine. It has two parameters: "InstanceSize", which is the new size of the virtual machine, and "VM", which is a virtual machine object retrieved by using the Get-AzureVM cmdlet. The result of Set-AzureVMSize can be piped to the Update-AzureVM cmdlet or stored in a variable for later use. No actual change is made until Update-AzureVM is executed. + Note: This cmdlet will require the virtual machine to be re-provisioned and it might get a new IP address. + + + + Set-AzureVMSize + + InstanceSize - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the size of the machine. Supported values are "ExtraSmall", "Small", "Medium", "Large", "ExtraLarge", "A5", "A6",, "A7". - AzureProfile + String - + VM - Specifies the persistent virtual machine object. + Specifies the virtual machine to set the size of. IPersistentVM + + + + InstanceSize + + Specifies the size of the machine. Supported values are "ExtraSmall", "Small", "Medium", "Large", "ExtraLarge", "A5", "A6",, "A7". + + String + + String + + + + + + + VM + + Specifies the virtual machine to set the size of. + + IPersistentVM + + IPersistentVM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" | Set-AzureVMSize "Small" | Update-AzureVM + + Description + + + + -----------This example updates a virtual machine to "Small". size. + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> $MyVM = Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" | Set-AzureVMSize "Small" + Update-AzureVM -ServiceName "MySvc1" -Name "MyVM3 -VM $MyVM + + Description + + + + -----------This example uses an intermediate variable to perform the same function as Example 1. + + + + + + + Get-AzureVM + + + + + Update-AzureVM + + + + + + + + + Set-AzureVNetConfig + + Updates the virtual network settings for a Microsoft Azure cloud service. + + + + + Set + AzureVNetConfig + + + + + The Set-AzureVNetConfig cmdlet updates the network configuration for the current Microsoft Azure subscription by specifying a path to anetwork configuration file (.netcfg). The network configuration file defines DNS servers and subnets for cloud services within a subscription. + + - Set-AzureVMExtension - - PublicConfigKey + Set-AzureVNetConfig + + ConfigurationPath + Specifies the path and file name of a network configuration file (.netcfg). - String + String - - PrivateConfigKey + + + + + ConfigurationPath + + Specifies the path and file name of a network configuration file (.netcfg). + + String + + String + + + + + + + + + + + + - String - - - ForceUpdate + + + + + + + + + + + - Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. + + - - - ExtensionName + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" + + This command updates the network configuration of the current Microsoft Azure subscription to that in the local file "c:\temp\MyAzNets.netcfg". + + + + + + + + + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> C:\PS>$subsId = "5bea2bc2-88a5-44b8-abe1-3e76733b6783" + C:\PS>$cert = Get-Item cert:\LocalMachine\MY\82F105B2DA81149204A6257A9A91EC452B8C52C3 + C:\PS>Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" + + This example sets the Microsoft Azure subscription, and then updates the network configuration of that subscription using the configuration defined in the local file "c:\temp\MyAzNets.netcfg". + + + + + + + + + + + + Get-AzureVNetConfig + + + + + Get-AzureVNetSite + + + + + Remove-AzureVNetConfig + + + + + + + + + Set-AzureVNetGateway + + Enables or disables a Microsoft Azure Virtual Network Gateway. + + + + + Set + AzureVNetGateway + + + + + The Set-AzureVNetGateway cmdlet enables or disables a virtual network gateway for the specified Microsoft Azure virtual network. A virtual network gateway is a virtual private network (VPN) endpoint for connecting to a virtual network.The Set-AzureVNetGateway cmdlet supports two functional parameters: Connect and Disconnect. These parameters allow you to enable or disable the VPN connection between the specified LocalNetworkSiteName and the specified virtual network. + + + + Set-AzureVNetGateway + + Connect - Specifies the extension name of the virtual machine. + Enables the VPN connection between the specified virtual network and the local network site. - String + SwitchParameter - - Publisher + + VNetName - Specifies the publisher of the extension. + Specifies the name of the Microsoft Azure virtual network to connect or disconnect. String - - Version + + LocalNetworkSiteName - Specifies the extension version. + Specifies the name of the local network site for which the VPN connection will be enabled or disabled. String - - ReferenceName - - Specifies the reference name of the extension. - This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - - PublicConfigPath - - Specifies the public configuration path. - - String - - - PrivateConfigPath + + + Set-AzureVNetGateway + + Disconnect - Specifies the private configuration path. + Disables the VPN connection between the specified virtual network and the local network site. - String + SwitchParameter - - Disable + + VNetName - Indicates that this cmdlet disables the extension state. + Specifies the name of the Microsoft Azure virtual network to connect or disconnect. + String - - Uninstall + + LocalNetworkSiteName - Indicates that this cmdlet uninstalls the resource extension from the virtual machine. + Specifies the name of the local network site for which the VPN connection will be enabled or disabled. + String - - Profile + + + + + Connect + + Enables the VPN connection between the specified virtual network and the local network site. + + SwitchParameter + + SwitchParameter + + + + + + + VNetName + + Specifies the name of the Microsoft Azure virtual network to connect or disconnect. + + String + + String + + + + + + + LocalNetworkSiteName + + Specifies the name of the local network site for which the VPN connection will be enabled or disabled. + + String + + String + + + + + + + Disconnect + + Disables the VPN connection between the specified virtual network and the local network site. + + SwitchParameter + + SwitchParameter + + + + + + + Test + + + + + switchparameter + + switchparameter + + + + + + + + + + + + - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + - AzureProfile - - - VM + + + + + + + + + + + - Specifies the persistent virtual machine object. + + - IPersistentVM - - + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> Set-AzureVNetGateway -Connect –VnetName "MyProdNet" –LocalNetworkSiteName "MyBranchOffice" + + This command enables the virtual network gateway between the Microsoft Azure virtual network, "MyProdNet" and the VPN device for the local network site, "MyBranchOffice". + + + + + + + + + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> Set-AzureVNetGateway -Disconnect –VnetName "MyProdNet" –LocalNetworkSiteName "MyBranchOffice" + + This command disables the virtual network gateway between the Microsoft Azure virtual network, "MyProdNet" and the VPN device for the local network site "MyBranchOffice". + + + + + + + + + + + + + + + + Set-AzureVNetGatewayKey + + Sets the IPsec/IKE pre-shared key for the cross premises site-to-site VPN tunnel between the Azure virtual network and your on-premises local site. + + + + + Set + AzureVNetGatewayKey + + + + + Th Set-AzureVNetGatewayKey cmdlet sets the IPsec/IKE pre-shared key for the cross premises site-to-site VPN tunnel between the Azure virtual network and your on-premises local site. + + - Set-AzureVMExtension - - ForceUpdate - - Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. - - - - ReferenceName - - Specifies the reference name of the extension. - This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - - PublicConfigPath - - Specifies the public configuration path. - - String - - - PrivateConfigPath - - Specifies the private configuration path. - - String - - - Disable + Set-AzureVNetGatewayKey + + VNetName - Indicates that this cmdlet disables the extension state. + Specifies the name of the Azure virtual network. + String - - Uninstall + + LocalNetworkSiteName - Indicates that this cmdlet uninstalls the resource extension from the virtual machine. + Specifies the name of the local network site to which the VPN tunnel connects. + String - - PublicConfigKey + + SharedKey + Specifies the value of the new IPsec/IKE pre-shared key. The SharedKey is an alphanumeric string of 1-128 letters. - String + String - - PrivateConfigKey + + + + + VNetName + + Specifies the name of the Azure virtual network. + + String + + String + + + + + + + LocalNetworkSiteName + + Specifies the name of the local network site to which the VPN tunnel connects. + + String + + String + + + + + + + SharedKey + + Specifies the value of the new IPsec/IKE pre-shared key. The SharedKey is an alphanumeric string of 1-128 letters. + + String + + String + + + + + + + + + + + + - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM + + + + + + + + + + + - Specifies the persistent virtual machine object. + + - IPersistentVM - - + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Set-AzureVNetGatewayKey -VNetName "MyAzureVirtualNetwork" -LocalNetworkSiteName "MyOnPremSite" -SharedKey "a1b2c3d4" + + Description + + + + -----------This command sets the IPsec/IKE pre-shared key between your virtual network "MyAzureVirtualNetwork" and the on-premise site "MyOnPremSite" to "a1b2c3d4". + + + + + + + Unknown + + + + + + + + + Set-AzureWalkUpgradeDomain + + Walks the specified upgrade domain. + + + + + Set + AzureWalkUpgradeDomain + + + + + The Set-AzureWalkUpgradeDomain cmdlet initiates the actual upgrade of a Microsoft Azure deployment. The upgrade package and configuration are set by using the Set-AzureDeployment cmdlet with the -Upgrade switch. + + - Set-AzureVMExtension - - ForceUpdate - - Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. - - - - ReferenceName + Set-AzureWalkUpgradeDomain + + ServiceName - Specifies the reference name of the extension. - This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + Specifies the Microsoft Azure service name to upgrade. - String + String - - PublicConfiguration + + Slot - Specifies the public configuration text. + Specified the environment of the deployment to upgrade. Supported values are "Staging" and "Production". - String + String - - PrivateConfiguration + + DomainNumber - Specifies the private configuration text. + Specifies the upgrade domain to upgrade. - String + Int32 - - Disable + + + + + ServiceName + + Specifies the Microsoft Azure service name to upgrade. + + String + + String + + + + + + + Slot + + Specified the environment of the deployment to upgrade. Supported values are "Staging" and "Production". + + String + + String + + + + + + + DomainNumber + + Specifies the upgrade domain to upgrade. + + Int32 + + Int32 + + + + + + + + + + + + - Indicates that this cmdlet disables the extension state. + + - - - Uninstall + + + + + + + + + ManagementOperationContext + - Indicates that this cmdlet uninstalls the resource extension from the virtual machine. + + - - - PublicConfigKey + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> Set-AzureWalkUpgradeDomain –ServiceName "MySvc1" –slot "Production" –UpgradeDomain 2 + + This example initiates the upgrade of Upgrade Domain 2 of the production deployment of the "MySvc1" service + + + + + + + + + + + + + + + + Start-AzureVM + + Starts a Microsoft Azure virtual machine. + + + + + Start + AzureVM + + + + + The Start-AzureVM cmdlet requests the start of a Microsoft Azure virtual machine. + + + + Start-AzureVM + + Name + Specifies the name of the virtual machine to start. - String + String - - PrivateConfigKey + + ServiceName - - + Specifies the name of the Microsoft Azure service that contains the virtual machine to start. - String + String - - Profile + + + Start-AzureVM + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies a virtual machine object that identifies the virtual machine to start. - AzureProfile + PersistentVM - - VM + + ServiceName - Specifies the persistent virtual machine object. + Specifies the name of the Microsoft Azure service that contains the virtual machine to start. - IPersistentVM + String - - Disable - - Indicates that this cmdlet disables the extension state. - - SwitchParameter - - SwitchParameter - - - none - - - ExtensionName + + Name - Specifies the extension name of the virtual machine. + Specifies the name of the virtual machine to start. String String - none - - - ForceUpdate - - Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. - - SwitchParameter - - SwitchParameter - - - none + + - - PrivateConfigKey + + ServiceName - - + Specifies the name of the Microsoft Azure service that contains the virtual machine to start. - String + String String - none + + - - PrivateConfigPath + + VM - Specifies the private configuration path. + Specifies a virtual machine object that identifies the virtual machine to start. - String + PersistentVM - String + PersistentVM - none + + - - PrivateConfiguration - - Specifies the private configuration text. - - String + + + - String + + + + + + - none - - - Profile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureProfile + + + + - AzureProfile + + + + + + - none - - - PublicConfigKey - String - - String - - - none - - - PublicConfigPath + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Start-AzureVM -ServiceName "myservice1" -Name "MyVM" + + This command starts the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service. + + + + + + + + + + -------------------------- Example 2 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVM -ServiceName "myservice1" -Name "DatabaseServer" | Start-AzureVM + + This command retrieves the virtual machine object for the VM whose name is "DatabaseServer" and then requests a start for it. + + + + + + + + + + + + Get-AzureVM + + + + + Remove-AzureVM + + + + + Restart-AzureVM + + + + + Stop-AzureVM + + + + + Update-AzureVM + + + + + + + + + Stop-AzureVM + + Shuts down a Microsoft Azure virtual machine. + + + + + Stop + AzureVM + + + + + The Stop-AzureVM cmdlet requests a shutdown of a virtual machine. + + + + Stop-AzureVM + + Name + + Specifies the name of the virtual machine to shut down. + + Use a wildcard "*" to stop multiple VMs asynchronously. With a wild card, Stop-AzureVM cmdlet calls ShutdownRoles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of ShutdownRole operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx ). + + String + + + StayProvisioned + + Keeps the VM provisioned. + + SwitchParameter + + + Force + + Allows the deallocation of last VM in a deployment. + + SwitchParameter + + + ServiceName + + Specifies the name of the Microsoft Azure service that contains the virtual machine to shut down. + + String + + + + Stop-AzureVM + + VM + + Specifies a virtual machine object that identifies the virtual machine to shut down. + + PersistentVM + + + StayProvisioned + + Keeps the VM provisioned. + + SwitchParameter + + + Force + + Allows the deallocation of last VM in a deployment. + + SwitchParameter + + + ServiceName + + Specifies the name of the Microsoft Azure service that contains the virtual machine to shut down. + + String + + + + + + Name - Specifies the public configuration path. + Specifies the name of the virtual machine to shut down. + + Use a wildcard "*" to stop multiple VMs asynchronously. With a wild card, Stop-AzureVM cmdlet calls ShutdownRoles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of ShutdownRole operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx ). - String + String String - none + + - - PublicConfiguration + + StayProvisioned - Specifies the public configuration text. + Keeps the VM provisioned. - String + SwitchParameter - String + SwitchParameter - none + + - - Publisher + + Force - Specifies the publisher of the extension. + Allows the deallocation of last VM in a deployment. - String + SwitchParameter - String + SwitchParameter - none + + - - ReferenceName + + ServiceName - Specifies the reference name of the extension. - This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + Specifies the name of the Microsoft Azure service that contains the virtual machine to shut down. - String + String String - none - - - Uninstall - - Indicates that this cmdlet uninstalls the resource extension from the virtual machine. - - SwitchParameter - - SwitchParameter - - - none + + - - Version + + VM - Specifies the extension version. + Specifies a virtual machine object that identifies the virtual machine to shut down. - String + PersistentVM - String + PersistentVM - none + + - - VM + + PipelineVariable - Specifies the persistent virtual machine object. + Not Specified - IPersistentVM + string - IPersistentVM + string - none + + @@ -37401,15 +36317,13 @@ OperationStatus : OK - - + - + + - - @@ -37418,216 +36332,321 @@ OperationStatus : OK - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Create a virtual machine with resource extensions applied + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Stop-AzureVM -ServiceName "myservice1" -Name "MyVM" + + Description + + + + -----------This command shuts down the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service and deprovisions it. If it is the last VM in deployment, then confirmation pop-up window is displayed with a warning that deprovisioning will cause loss deployment VIP. + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> Get-AzureVM -ServiceName "myservice1" -Name "MyVM" | Stop-AzureVM + + Description + + + + -----------This command retrieves the virtual machine object for the VM whose name is "MyVM" and then shuts it down and deprovisions it. If it is the last VM in deployment, then confirmation pop-up window is displayed with a warning that deprovisioning will cause loss deployment VIP. + + + + + -------------------------- EXAMPLE 3 -------------------------- + + + + + PS C:\> Stop-AzureVM -ServiceName "myservice1" -Name "MyVM" -StayProvisioned + + Description + + + + -----------This command shuts down the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service and keeps the VM provisioned. + + + + + -------------------------- EXAMPLE 4 -------------------------- + + + + + PS C:\> Stop-AzureVM -ServiceName "myservice1" -Name "MyVM" -Force + + Description + + + + -----------This command shuts down the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service even if it is the last VM in the deployment. + + + + + -------------------------- EXAMPLE 5 -------------------------- - PS C:\>$X = New-AzureVMConfig -Name $VM -InstanceSize Small -ImageName $IMG;$X = Add-AzureProvisioningConfig -VM $X -Password $PWD -AdminUsername $USR -Windows;$X = Set-AzureVMExtension -VM $X -ExtensionName $Ext1 -Publisher $Publisher -Version $VER -PublicConfiguration $P1 -PrivateConfiguration $P2;$X = Set-AzureVMExtension -VM $X -ExtensionName $Ext2 -Publisher $Publisher -Version $VER -PublicConfiguration $P3 -PrivateConfiguration $P4;New-AzureVM -Location $LOC -ServiceName $SVC -VM $X; - + PS C:\> Stop-AzureVM -ServiceName "PSTestService" -Name "*" -Force - This command creates a virtual machine with resource extensions applied. - - + Description - + -----------This command shuts down multiple VMs asynchronously in the "PSTestService" - Get-AzureVMExtension - - - - Remove-AzureVMExtension - - - - Get-AzureVM - + Unknown + + - + + - Set-AzureVMImageDataDiskConfig + Test-AzureStaticVNetIP - Sets the Data Disk properties on the virtual machine image. + Test the availability of a static virtual network IP address, and get a list of suggestion if the queried one not available. - Set - AzureVMImageDataDiskConfig + Test + AzureStaticVNetIP - The Set-AzureVMImageDataDiskConfig cmdlet sets the Data Disk properties on the virtual machine image. + + Test the availability of a static virtual network IP address, and get a list of suggestion if the queried one not available. - Set-AzureVMImageDataDiskConfig - - DiskConfig + Test-AzureStaticVNetIP + + VNetName - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. + The Name of a Virtual Network. - VirtualMachineImageDiskConfigSet + String - - DataDiskName + + IPAddress - Specifies the name of the data disk that this cmdlet configures. + The query of static VNet IPAddress. String - - Lun + + + + + VNetName + + The Name of a Virtual Network. + + String + + String + + + + + + + IPAddress + + The query of static VNet IPAddress. + + String + + String + + + + + + + + + + + + - Specifies the slot where the data drive is mounted in the virtual machine. + + - Int32 - - - HostCaching + + + + + + + + + + + - Specifies the host cache attribute for the operating system disk. - Valid values are: - ---ReadOnly ---ReadWrite + + - - ReadOnly - ReadWrite - None - - - + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + Unknown + + + + + + + + + Update-AzureDisk + + Updates the label of a disk in the Microsoft Azure disk repository. + + + + + Update + AzureDisk + + + + + The Update-AzureDisk cmdlet changes the label associated with a disk in the disk repository of the current Microsoft Azure subscription. + + - Set-AzureVMImageDataDiskConfig - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - - VirtualMachineImageDiskConfigSet - - - Lun + Update-AzureDisk + + DiskName - Specifies the slot where the data drive is mounted in the virtual machine. + Specifies the name of the disk in the disk repository. - Int32 + String - - HostCaching + + Label - Specifies the host cache attribute for the operating system disk. - Valid values are: - ---ReadOnly ---ReadWrite + Specifies the new label of the disk. - - ReadOnly - ReadWrite - None - + String - - MediaLink + + ResizedSizeInGB - Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. + + - Uri + int - - DataDiskName + + DiskName - Specifies the name of the data disk that this cmdlet configures. + Specifies the name of the disk in the disk repository. String String - none - - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - - VirtualMachineImageDiskConfigSet - - VirtualMachineImageDiskConfigSet - - - none + + - - HostCaching + + Label - Specifies the host cache attribute for the operating system disk. - Valid values are: - ---ReadOnly ---ReadWrite + Specifies the new label of the disk. String String - none - - - Lun - - Specifies the slot where the data drive is mounted in the virtual machine. - - Int32 - - Int32 - - - none + + - - MediaLink + + ResizedSizeInGB - Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. + Resizes the underlying blob to the indicated size in GB. - Uri + int - Uri + int - none + + @@ -37635,246 +36654,163 @@ OperationStatus : OK - - + - + + - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - - + DiskContext + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Set Data Disk properties on a virtual machine image + -------------------------- Example 1 -------------------------- - PS C:\>$Disk = New-AzureDiskConfigSet -PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite -PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -Name "Test" -HostCaching "ReadWrite" -LUN 0 -PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description "Test1" -DiskConfigSet $Disk; - + PS C:\> C:\PS>Update-AzureDisk –DiskName "MyOSDisk" -Label "DoNotUse" - This command sets data disk properties on a virtual machine then updates the virtual machine image. - - + This command updates the label of the disk named "MyOSDisk" to "DoNotUse". - + + - Remove-AzureVMImageDataDiskConfig - + Add-AzureDisk + + + + + Get-AzureDisk + + - Azure Service Cmdlets - + Remove-AzureDisk + + - + + - Set-AzureVMImageOSDiskConfig + Update-AzureVM - Sets the operating system disk properties on a virtual machine image. + Modifies the configuration of a Microsoft Azure virtual machine. - Set - AzureVMImageOSDiskConfig + Update + AzureVM - The Set-AzureVMImageOSDiskConfig cmdlet sets the operating system disk properties on a virtual machine image. + + The Update-AzureVM cmdlet accepts update information for the specified virtual machine and initiates the update. You can add or remove data disks, modify the cache mode of data or operating system disks, change the network endpoints, or change the size of the virtual machine. - Set-AzureVMImageOSDiskConfig - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - - VirtualMachineImageDiskConfigSet - - - HostCaching - - Specifies the host cache attribute for the operating system disk. - Valid values are: - ---ReadOnly ---ReadWrite - - - ReadOnly - ReadWrite - - - - - Set-AzureVMImageOSDiskConfig - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - - VirtualMachineImageDiskConfigSet - - - HostCaching - - Specifies the host cache attribute for the operating system disk. - Valid values are: - ---ReadOnly ---ReadWrite - - - ReadOnly - ReadWrite - - - - MediaLink + Update-AzureVM + + Name - Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. + Specifies the name of the virtual machine to be updated. - Uri + String - - OSState + + VM - Specifies the operating system state for virtual machine image - Valid values are: - --- Generalized --- Specialized - The use of this parameter indicates your intent to capture the virtual machine image to Azure. + The virtual machine object that includes updated settings. - - Generalized - Specialized - + PersistentVM - - OS + + ServiceName - Specifies the operating system of the disk configuration. - Valid values are: - --- Windows --- Linux + Specifies the name of the Microsoft Azure service. - - Windows - Linux - + String - - DiskConfig - - Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - - VirtualMachineImageDiskConfigSet - - VirtualMachineImageDiskConfigSet - - - none - - - HostCaching + + Name - Specifies the host cache attribute for the operating system disk. - Valid values are: - ---ReadOnly ---ReadWrite + Specifies the name of the virtual machine to be updated. - String + String String - none - - - MediaLink - - Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. - - Uri - - Uri - - - none + + - - OS + + VM - Specifies the operating system of the disk configuration. - Valid values are: - --- Windows --- Linux + The virtual machine object that includes updated settings. - String + PersistentVM - String + PersistentVM - none + + - - OSState + + ServiceName - Specifies the operating system state for virtual machine image - Valid values are: - --- Generalized --- Specialized - The use of this parameter indicates your intent to capture the virtual machine image to Azure. + Specifies the name of the Microsoft Azure service. String String - none + + @@ -37882,490 +36818,428 @@ PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description " - - + - + + - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - - + + + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Set the operating system disk properties on a virtual machine image + -------------------------- Example 1 -------------------------- + + + + + PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" ` + | Set-AzureVMSize –InstanceSize "Medium" ` + | Update-AzureVM + + This example changes the size of the virtual machine "MyVM3", running in "MySvc1", to "Medium". + + + + + + + + + + -------------------------- Example 2 -------------------------- - PS C:\>$Disk = New-AzureDiskConfigSet -PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite -PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -Name "Test" -HostCaching "ReadWrite" -LUN 0 -PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description "Test1" -DiskConfigSet $Disk; - + PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" ` + | Add-AzureDataDisk -CreateNew -MediaLocation "https://MyaccountStore1.blob.core.azure.com/vhds/MyNewDisk.vhd" -DiskSizeInGB 128 -DiskLabel "Data-128" -LUN 0 ` + | Update-AzureVM - This example sets the operating system disk properties on a virtual machine image. - - + This example adds a new data disk to the virtual machine "MyVM3", running in "MySvc1". - + + - Remove-AzureVMImageOSDiskConfig - + Get-AzureVM + + + + + New-AzureVMConfig + + + + + Remove-AzureVM + + + + + Restart-AzureVM + + + + + Start-AzureVM + + + + + Stop-AzureVM + + + + + New-AzureVM + + + + + Set-AzureVMSize + + - + + - Set-AzureVMMicrosoftAntimalwareExtension + Update-AzureVMImage - Configures the Microsoft Antimalware extension for a virtual machine. + The Update-AzureVMImage cmdlet updates the properties on an OS or VM image in the image repository. It returns an image object with information about the updated image. - Set - AzureVMMicrosoftAntimalwareExtension + Update + AzureVMImage - The Set-AzureVMMicrosoftAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a virtual machine. You can enable, disable, or uninstall the extension. + + + - - - Set-AzureVMMicrosoftAntimalwareExtension - - AntimalwareConfigFile - - Specifies the absolute path of the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - -{ "AntimalwareEnabled": true } - - String - - - Version - - Specifies the extension version as a string. - - String - - - Monitoring - - Specifies whether to collect Microsoft Antimalware events. - The acceptable values for this parameter are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. - - - ON - OFF - - - - StorageContext - - Specifies an Azure storage context for Microsoft Antimalware monitoring. - - AzureStorageContext - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the virtual machine as an IPersistentVM object. - - IPersistentVM - - - - Set-AzureVMMicrosoftAntimalwareExtension - - AntimalwareConfiguration - - Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: -{ "AntimalwareEnabled": true } - -Microsoft Antimalware JSON configuration sample: - -{ - "AntimalwareEnabled": true, - "RealtimeProtectionEnabled": true, - "ScheduledScanSettings": { - "isEnabled": true, - "day": 1, - "time": 120, - "scanType": "Full" -}, - -"Exclusions": -{ -"Extensions": ".ext1;.ext2", -"Paths": "c:\excluded-path-1;c:\excluded-path-2", -"Processes": "excludedproc1.exe;excludedproc2.exe" -} - -} - -Notes: -AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value - -RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true - -ScheduledScanSettings: -isEnabled=true/false - day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) - time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) - scanType="Quick" or "Full" (Default is Quick) - Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" -Exclusions: -Multiple exclusions in the same list are specified by using semicolon delimiters. - If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. - - String - - - Version - - Specifies the extension version as a string. - - String - - - Monitoring - - Specifies whether to collect Microsoft Antimalware events. - The acceptable values for this parameter are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. - - - ON - OFF - - - - StorageContext - - Specifies an Azure storage context for Microsoft Antimalware monitoring. - - AzureStorageContext - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM + + + Update-AzureVMImage + + ImageName - Specifies the virtual machine as an IPersistentVM object. + Name of the image to update in the image repository. - IPersistentVM + String - - - Set-AzureVMMicrosoftAntimalwareExtension - - Version + + Label - Specifies the extension version as a string. + The new label of the image. - String + String - - Disable + + Eula - Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. + Specifies the End User License Aggreement, recommended value is a URL. + String - - Profile + + Description - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the description of the OS image. - AzureProfile + String - - VM + + ImageFamily - Specifies the virtual machine as an IPersistentVM object. + Specifies a value that can be used to group OS or VM images. - IPersistentVM + String - - - Set-AzureVMMicrosoftAntimalwareExtension - - Monitoring + + PublishedDate - Specifies whether to collect Microsoft Antimalware events. - The acceptable values for this parameter are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + + - - ON - OFF - + Nullable`1[DateTime] - - StorageContext + + PrivacyUri - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the URI that points to a document that contains the privacy policy related to the OS or VM image. - AzureStorageContext + Uri - - NoConfig + + RecommendedVMSize - - + Specifies the size to use for the virtual machine that is created from the OS or VM image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". + String - - Profile + + DiskConfig - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + This is the OS Disk and the Data Disk configuration for the VM Image created using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets. - AzureProfile + VirtualMachineImageDiskConfigSet - - VM + + Language - Specifies the virtual machine as an IPersistentVM object. + Language for the OS in the VM or OS Image - IPersistentVM + String - - - Set-AzureVMMicrosoftAntimalwareExtension - - Uninstall + + IconUri - Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. + Uri to an icon for the OS or VM Image + Uri - - Profile + + SmallIconUri - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Uri to a small icon for the OS or VM Image - AzureProfile + Uri - - VM + + DontShowInGui - Specifies the virtual machine as an IPersistentVM object. + + - IPersistentVM + SwitchParameter - - AntimalwareConfigFile + + ImageName - Specifies the absolute path of the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - -{ "AntimalwareEnabled": true } + Name of the image to update in the image repository. String String - none + + - - AntimalwareConfiguration + + Label - Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: -{ "AntimalwareEnabled": true } - -Microsoft Antimalware JSON configuration sample: - -{ - "AntimalwareEnabled": true, - "RealtimeProtectionEnabled": true, - "ScheduledScanSettings": { - "isEnabled": true, - "day": 1, - "time": 120, - "scanType": "Full" -}, - -"Exclusions": -{ -"Extensions": ".ext1;.ext2", -"Paths": "c:\excluded-path-1;c:\excluded-path-2", -"Processes": "excludedproc1.exe;excludedproc2.exe" -} - -} - -Notes: -AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value - -RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true - -ScheduledScanSettings: -isEnabled=true/false - day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) - time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) - scanType="Quick" or "Full" (Default is Quick) - Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" -Exclusions: -Multiple exclusions in the same list are specified by using semicolon delimiters. - If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. + The new label of the image. String String - none + + - - Disable + + Eula - Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. + Specifies the End User License Aggreement, recommended value is a URL. - SwitchParameter + String - SwitchParameter + String - none + + - - Monitoring + + Description - Specifies whether to collect Microsoft Antimalware events. - The acceptable values for this parameter are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + Specifies the description of the OS image. - String + String String - none + + - - NoConfig + + ImageFamily + + Specifies a value that can be used to group OS or VM images. + + String + + String + + + + + + + PublishedDate - SwitchParameter + Nullable`1[DateTime] - SwitchParameter + Nullable`1[DateTime] - none + + - - Profile + + PrivacyUri - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the URI that points to a document that contains the privacy policy related to the OS or VM image. - AzureProfile + Uri - AzureProfile + Uri - none + + - - StorageContext + + RecommendedVMSize - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the size to use for the virtual machine that is created from the OS or VM image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". - AzureStorageContext + String - AzureStorageContext + String - none + + - - Uninstall + + DiskConfig - Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. + This is the OS Disk and the Data Disk configuration for the VM Image created using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets. - SwitchParameter + VirtualMachineImageDiskConfigSet - SwitchParameter + VirtualMachineImageDiskConfigSet - none + + - - Version + + Language - Specifies the extension version as a string. + Language for the OS in the VM or OS Image - String + String String - none + + - - VM + + IconUri - Specifies the virtual machine as an IPersistentVM object. + Uri to an icon for the OS or VM Image - IPersistentVM + Uri - IPersistentVM + Uri - none + + + + + SmallIconUri + + Uri to a small icon for the OS or VM Image + + Uri + + Uri + + + + + + + DontShowInGui + + + + + SwitchParameter + + SwitchParameter + + + + + + + ShowInGui + + Not Specified + + switchparameter + + switchparameter + + + + @@ -38373,15 +37247,126 @@ Multiple exclusions in the same list are specified by using semicolon delimiters - - + + + + + + + + + + + + + + OSImageContext + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + + + PS C:\> Update-AzureVMImage -ImageName "Windows-Server-2008-SP2" -Label "DoNotUse" + + Description + + + + -----------This example updates the image named "Windows-Server-2008-SP2" by changing the image label to "DoNotUse" + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + + + PS C:\> Get-AzureVMImage | Where-Object {$_.Label -eq "DoNotUse" } | Update-AzureVMImage -Label "Updated" + + Description + + + + -----------This example gets all the operating system images labeled "DoNotUse" and changes the label to "Updated". + + + + + + + Unknown + + + + + + + + + Get-AzureRegion + + + + + + + + + + + + + + + + + + + + + Get-AzureRegion + + + + + + + + + + - + + - - @@ -38390,115 +37375,63 @@ Multiple exclusions in the same list are specified by using semicolon delimiters - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Enable the extension by using a configuration file - - - - - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json' | Update-AzureVM - - - This command enables the Microsoft Antimalware extension by using a configuration file. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. - - - - - - - - - - - Example 2: Enable the extension and enable monitoring + -------------------------- Unknown -------------------------- - PS C:\>$StorageContext = New-AzureStorageContext -StorageAccountName "contosostoragemain" -StorageAccountKey (Get-AzureStorageKey -StorageAccountName "Contosostoragemain").PrimaryP -S C:\> Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json" -Monitoring ON -StorageContext $StorageContext | Update-AzureVM - + PS C:\> - The first command creates an AzureStorageContext object by using the New-AzureStorageContext cmdlet, and then stores it in the $StorageContext variable. - - - - - - - - - - - Example 3: Enable the extension by specifying a configuration object - - - PS C:\>$Config_String = [IO.File]::ReadAllText('C:\configuration\contosoVM.json') -PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfiguration $Config_String | Update-AzureVM - - - The first command creates a string object by reading a JSON configuration for the Microsoft Antimalware extension, and then storing it in the $config_string variable. - - - + + - Example 4: Disable the extension + -------------------------- Unknown -------------------------- - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Disable | Update-AzureVM - + PS C:\> - This command disables the extension without removing it. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. - - - - - - - - - - - Example 5: Remove the extension - - - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Uninstall | Update-AzureVM - - - This command removes the Microsoft Antimalware extension from the virtual machine. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. - - - + + @@ -38506,174 +37439,50 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set Online Version: - http://go.microsoft.com/fwlink/?LinkID=402844 - - - Get-AzureVMMicrosoftAntimalwareExtension - - - - Remove-AzureVMMicrosoftAntimalwareExtension - - - - Get-AzureVM - + + - + + - Set-AzureVMPuppetExtension + Get-AzureServiceExtensionImage - Sets the Puppet extension for a virtual machine. + Get information for the latest available hosted service extension images. - Set - AzureVMPuppetExtension + + + + - The Set-AzureVMPuppetExtension cmdlet sets the Puppet extension for a virtual machine. + + Get information for the latest available hosted service extension images. - Set-AzureVMPuppetExtension - - PuppetMasterServer - - Specifies the fully qualified domain name (FQDN) of puppet master server. - - String - - - Version - - Specifies the extension version. - - String - - - Disable - - Indicates that this cmdlet disables the extension state. - - - - ReferenceName - - Specifies the reference name of the extension. - This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name when you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - + Get-AzureServiceExtensionImage - - Disable - - Indicates that this cmdlet disables the extension state. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - PuppetMasterServer - - Specifies the fully qualified domain name (FQDN) of puppet master server. - - String - - String - - - none - - - ReferenceName - - Specifies the reference name of the extension. - This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name when you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - - String - - String - - - none - - - Version - - Specifies the extension version. - - String - - String - - - none - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - IPersistentVM - - - none - - - + - + + - - @@ -38682,162 +37491,135 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - + - + + - - - - + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + - Example 1: Set the Puppet extension for a virtual machine + -------------------------- EXAMPLE 1 -------------------------- - PS C:\>Set-AzureVMPuppetExtension -VM $VM - + PS C:\> Get-AzureServiceExtensionImage + + ProviderNameSpace : Microsoft.Windows.Azure.Extensions + Type : RDP + Version : 1.0 + Label : Microsoft Azure Remote Desktop Extension + Description : Microsoft Azure Remote Desktop Extension + HostingResources : WebOrWorkerRole + ThumbprintAlgorithm : sha1 + PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" + xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="PublicConfig"><xs:complexType><xs:sequence><xs:element + name="UserName" type="xs:string" minOccurs="1" /><xs:element name="Expiration" type="xs:string" minOccurs="1" + /></xs:sequence></xs:complexType></xs:element></xs:schema> + PrivateConfigurationSchema : <?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" + xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="PrivateConfig"><xs:complexType><xs:sequence><xs:element + name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> + OperationDescription : Get-AzureServiceExtensionImage + OperationId : ee7f7237-78a6-3819-8529-ede859c51411 + OperationStatus : Succeeded - This example sets the Puppet extension for the specified virtual machine as stored in the variable $VM. - - + Description - + ----------- - Get-AzureVM - + Unknown + + - + + - Set-AzureVMSize + + Remove-AzureVMChefExtension + - Sets the size of an Azure virtual machine. + This cmdlet deletes the Chef extension applied on the VM. - + + - Set - AzureVMSize - + Remove + AzureVMChefExtension + + - The Set-AzureVMSize cmdlet updates the size of a virtual machine. It has two parameters: InstanceSize, which is the new size of the virtual machine, and VM, which is a virtual machine object retrieved by using the Get-AzureVM cmdlet. The result of Set-AzureVMSize can be piped to the Update-AzureVM cmdlet or stored in a variable for later use. No actual change is made until Update-AzureVM is executed. - Note: This cmdlet will require the virtual machine to be re-provisioned and it might get a new IP address. + This cmdlet deletes the Chef extension applied on the VM. + - Set-AzureVMSize - - InstanceSize - - Specifies the size of the machine. - The acceptable values for this parameter are: - ---ExtraSmall ---Small ---Medium ---Large ---ExtraLarge ---A5 ---A6 ---A7 - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - + Remove-AzureVMChefExtension + VM - Specifies the persistent virtual machine object that this cmdlet sets the size of. + The persistent VM object. IPersistentVM + - - InstanceSize - - Specifies the size of the machine. - The acceptable values for this parameter are: - ---ExtraSmall ---Small ---Medium ---Large ---ExtraLarge ---A5 ---A6 ---A7 - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - + VM - Specifies the persistent virtual machine object that this cmdlet sets the size of. + The persistent VM object. IPersistentVM IPersistentVM - none + + + - - - - - + + + @@ -38847,300 +37629,179 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Set the size of a virtual machine + + -------------------------- EXAMPLE 1 -------------------------- + + C:\PS> + + + Remove-AzureVMChefExtension -VM $vm; + + + Description + ----------- + This cmdlet deletes the Chef extension applied on the VM. + + + + + + - - PS C:\>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" | Set-AzureVMSize "Small" | Update-AzureVM - - - This command updates a virtual machine to size "Small". - - - + + + - Get-AzureVM - - - - Update-AzureVM + + - + + - Set-AzureVMSqlServerExtension + + Get-AzureDeploymentEvent + - Sets the Azure SQL Server extension on a virtual machine. + The Get-AzureDeploymentEvent cmdlet retrieves information regarding Azure-initiated events that impact virtual machines and cloud services, including planned maintenance events, in the provided time window. It returns a list of events that identify the Role Instance or Virtual Machine impacted, the reason for the impact, and the start time of the event. - + + - Set - AzureVMSqlServerExtension - + Get + AzureDeploymentEvent + + - The Set-AzureVMSqlServerExtension cmdlet sets the Azure SQL Server extension on a virtual machine. + The Get-AzureDeploymentEvent cmdlet retrieves information regarding Azure-initiated events that impact virtual machines and cloud services, including planned maintenance events, in the provided time window. It returns a list of events that identify the Role Instance or Virtual Machine impacted, the reason for the impact, and the start time of the event. + - Set-AzureVMSqlServerExtension - - ReferenceName - - Specifies the reference name of the SQL Server extension. - - String - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - - Version - - Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. - - String - - - AutoPatchingSettings - - Specifies the automatic SQL Server patching settings. - - AutoPatchingSettings - - - AutoBackupSettings - - Specifies the automatic SQL Server backup settings. - - AutoBackupSettings - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Set-AzureVMSqlServerExtension - - ReferenceName - - Specifies the reference name of the SQL Server extension. - - String - - - Version - - Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. - - String - - - Disable - - Indicates that this cmdlet disables the extension state. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies the persistent virtual machine object. - - IPersistentVM - - - - Set-AzureVMSqlServerExtension - - ReferenceName - - Specifies the reference name of the SQL Server extension. - - String - - - Version - - Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. - - String - - - Uninstall + Get-AzureDeploymentEvent + + EndTime - Indicates that this cmdlet uninstalls the SQL Server extension from the virtual machine. + Ending time to query deployment events + DateTime - - Profile + + ServiceName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Name of the hosted service - AzureProfile + string - - VM + + StartTime - Specifies the persistent virtual machine object. + + - IPersistentVM + DateTime + - - AutoBackupSettings - - Specifies the automatic SQL Server backup settings. - - AutoBackupSettings - - AutoBackupSettings - - - none - - - AutoPatchingSettings - - Specifies the automatic SQL Server patching settings. - - AutoPatchingSettings - - AutoPatchingSettings - - - none - - - Disable - - Indicates that this cmdlet disables the extension state. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ReferenceName - - Specifies the reference name of the SQL Server extension. - - String - - String - - - none - - - Uninstall + + EndTime - Indicates that this cmdlet uninstalls the SQL Server extension from the virtual machine. + Ending time to query deployment events - SwitchParameter + DateTime - SwitchParameter + DateTime - none + + - - Version + + ServiceName - Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. + Name of the hosted service - String + string - String + string - none + + - - VM + + StartTime - Specifies the persistent virtual machine object. + + - IPersistentVM + DateTime - IPersistentVM + DateTime - none + + + - - - - - + + + @@ -39150,184 +37811,108 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - - Example 1: Set auto-patching settings on a virtual machine - - - - - PS C:\>Get-AzureVM -ServiceName "ServiceName" -Name "VMName" | Set-AzureVMSqlServerExtension -AutoPatchingSettings $APS | Update-AzureVM - - - This command sets auto-patching settings on an Azure virtual machine. - - - - - - - - - - - Example 2: Set auto-backup settings on a virtual machine - - - - - PS C:\>Get-AzureVM -ServiceName "ServiceName" -Name "VMName" | Set-AzureVMSqlServerExtension -AutoBackupSettings $ABS | Update-AzureVM - - - This command sets auto-backup settings on Azure virtual machine. - - - - - - - - - - - Example 3: Disable an SQL Server extension on a virtual machine - - - - - PS C:\>Get-AzureVM -ServiceName "Service" -Name "VMName" | Set-AzureVMSqlServerExtension -Disable - - - This command disables SQL Server virtual machine extension on a given virtual machine. - - - - - - - - - - - Example 4: Uninstall an SQL Server extension on a specific virtual machine - - - - - PS C:\>Get-AzureVM -ServiceName "Service" -Name "VMName" | Set-AzureVMSqlServerExtension -Uninstall - - - This command uninstalls a SQL Server virtual machine extension on the virtual machine named VMName. - - - - - - - - - + - Get-AzureVMSqlServerExtension - - - - Remove-AzureVMSqlServerExtension + + - + - Set-AzureVNetConfig + + Get-AzureVMChefExtension + - Updates the virtual network settings for an Azure cloud service. + This cmdlet gets the Chef extension (if any) applied on the VM. - + + - Set - AzureVNetConfig - + Get + AzureVMChefExtension + + - The Set-AzureVNetConfig cmdlet updates the network configuration for the current Azure subscription by specifying a path to anetwork configuration file (.netcfg). The network configuration file defines DNS servers and subnets for cloud services within a subscription. + This cmdlet gets the Chef extension (if any) applied on the VM. + - Set-AzureVNetConfig - - ConfigurationPath - - Specifies the path and file name of a network configuration file (.netcfg). - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - ConfigurationPath - - Specifies the path and file name of a network configuration file (.netcfg). - - String - - String - - - none - - - Profile + Get-AzureVMChefExtension + + VM + + The persistent VM object. + + IPersistentVM + + + + + + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The persistent VM object. - AzureProfile + IPersistentVM - AzureProfile + IPersistentVM - none + + + - - - - - + + - + + The cmdlet displays the Chef Extension information on the VM + @@ -39336,383 +37921,306 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Update the network configuration of the Azure subscription to a local file + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - + + Get-AzureVMChefExtension -VM $vm; + - This command updates the network configuration of the current Microsoft Azure subscription to that in the local file "c:\temp\MyAzNets.netcfg". - - - - - - - - - - - Example 2: Set the Azure subscription and then update the network configuration - + Description + ----------- + This cmdlet gets the Chef extension (if any) applied on the VM. + + + + + + - - PS C:\>$SubsId = "5bea2bc2-88a5-44b8-abe1-3e76733b6783" -C:\PS> $Cert = Get-Item cert:\LocalMachine\MY\82F105B2DA81149204A6257A9A91EC452B8C52C3 -C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - - - This example sets the Microsoft Azure subscription, and then updates the network configuration of that subscription using the configuration defined in the local file "c:\temp\MyAzNets.netcfg". - - - + + + - Get-AzureVNetConfig - - - - Get-AzureVNetSite - - - - Remove-AzureVNetConfig + + - + - Set-AzureWalkUpgradeDomain + + Set-AzureVMChefExtension + - Walks the specified upgrade domain. + This cmdlet adds the Chef extension to the VM. - + + Set - AzureWalkUpgradeDomain - + AzureVMChefExtension + + - The Set-AzureWalkUpgradeDomain cmdlet initiates the actual upgrade of an Azure deployment. The upgrade package and configuration are set by using the Set-AzureDeployment cmdlet with the -Upgrade switch. + This cmdlet adds the Chef extension to the VM. + - Set-AzureWalkUpgradeDomain - - ServiceName + Set-AzureVMChefExtension + + VM - Specifies the Microsoft Azure service name to upgrade. + The persistent VM object. - String + IPersistentVM - - Slot + + ValidationPem - Specifies the environment of the deployment to upgrade. - The acceptable values for this parameter are: - --- Staging --- Production + The Chef validator pem file path - - Staging - Production - + Validator.pem - - DomainNumber + + ClientRb - Specifies the upgrade domain to upgrade. + The path to the Chef client.rb. - Int32 + Client.rb - - Profile + + RunList - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The chef node run list. - AzureProfile + RunList + - - DomainNumber + + VM - Specifies the upgrade domain to upgrade. + The persistent VM object. - Int32 + IPersistentVM - Int32 + IPersistentVM - none + + - - Profile + + Version - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Chef Extension version. - AzureProfile + Version - AzureProfile + String - none + Latest available Chef Extension version - - ServiceName + + ValidationPem - Specifies the Microsoft Azure service name to upgrade. + The Chef Server Validation Key File Path. - String + Validator.pem String - none + + - - Slot + + ClientRb - Specifies the environment of the deployment to upgrade. - The acceptable values for this parameter are: - --- Staging --- Production + The Chef Server Client Config (Client.rb) File Path - String + Client.rb String - none + + - - - + + RunList + + Chef node runlist + + RunList - - - - - - - + String + + + + + + ChefServerUrl - - + The Chef Server Url - - - - + ChefServerUrl - ManagementOperationContext - - - - - + String + + + + + + DeleteChefConfig - - + DeleteChefConfig Options determines whether Chef configuration files removed when Azure removes the Chef resource extension from the VM. This options is useful during extension update and uninstall process. Default is false - - - - - - - Example 1: Initiate an upgrade of a production deployment - - - - - PS C:\>Set-AzureWalkUpgradeDomain -ServiceName "MySvc1" -slot "Production" -UpgradeDomain 2 - - - This command initiates the upgrade of Upgrade Domain 2 of the production deployment of the MySvc1 service. - - - - - - - - - - - - - Set-AzureDeployment - - - - Azure Service Cmdlets - - - - - - - Start-AzureVM - - Starts an Azure virtual machine. - - - - - Start - AzureVM - - - - The Start-AzureVM cmdlet requests the start of an Azure virtual machine. - - - - Start-AzureVM - - ServiceName - - Specifies the name of the Azure service that contains the virtual machine to start. - - String - - - Name - - Specifies the name of the virtual machine to start. - - String[] - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Start-AzureVM - - ServiceName - - Specifies the name of the Azure service that contains the virtual machine to start. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - VM - - Specifies a virtual machine object that identifies the virtual machine to start. - - IPersistentVM[] - - - - - - Name + + Boolean + + + false + + + BootstrapOptions - Specifies the name of the virtual machine to start. + Bootstrap Options in JSON Format - String[] + BootstrapOptions - String[] + String - none + + - - Profile + + ValidationClientName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The Chef ValidationClientName, used to determine whether a chef-client may register with a Chef server. - AzureProfile + ValidationClientName - AzureProfile + String - none + + - - ServiceName + + OrganizationName - Specifies the name of the Azure service that contains the virtual machine to start. + The Chef Organization name, used to form Validation Client Name + + OrganizationName + + String + + + + + + + AutoUpdateChefClient + + Flag to opt for auto chef-client update. Chef-client update is false by default. + + + Boolean + + + false + + + Linux + + Set this parameter for Linux extension - String - String + Boolean - none + + - - VM + + Windows - Specifies a virtual machine object that identifies the virtual machine to start. + Set this parameter for Windows extension - IPersistentVM[] - IPersistentVM[] + Boolean - none + + + - - - - - + + + @@ -39722,262 +38230,241 @@ C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Start a virtual machine + + -------------------------- EXAMPLE 1 -------------------------- + + C:\PS> + + + Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -ClientRb "C:\\client.rb" -RunList "apache" -Windows; + + + Description + ----------- + This cmdlet adds the Chef extension to a windows VM. + When the VM comes up, it will be bootstrapped with Chef and have apache running on it. + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> - PS C:\>Start-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine04" - + + Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -BootstrapOptions '{"chef_node_name":"your_node_name","chef_server_url":"https://api.opscode.com/organizations/some-org", "validation_client_name":"some-org-validator"}' -RunList "apache" -Windows; + - This command starts the virtual machine named VirtualMachine04 that runs in the Azure service named ContosoService03. - - + Description + ----------- + This cmdlet adds the Chef extension to a windows VM. + When the VM comes up, it will be bootstrapped with Chef and have apache running on it, while bootstraping it will refer 'BootstrapOptions' specified in JSON format. + + + + + + - + + - Example 2: Start a virtual machine by using a virtual machine object + + -------------------------- EXAMPLE 3 -------------------------- + + C:\PS> + + + Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -ValidationClientName "myorg-validator" -RunList "apache, git" -Windows; + + + Description + ----------- + This cmdlet adds the Chef extension to a windows VM. + When the VM comes up, it will be bootstrapped with Chef and have apache and git installed on it. + Note that if you dont provide the client.rb, then you will need to provide the chef server url and validation client name + + + + + + + + + + + + + -------------------------- EXAMPLE 4 -------------------------- + + + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "DatabaseServer" | Start-AzureVM - + + Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -OrganizationName "myorg" -Linux; + - This command retrieves the virtual machine object for the virtual machine whose name is DatabaseServer, and then requests to start it. - - + Description + ----------- + This cmdlet adds the Chef extension to a Linux VM. + When the VM comes up, it will be bootstrapped with Chef. + Note that if you dont provide the client.rb, then you will need to provide the chef server url and organization name name + + + + - + + + - Get-AzureVM - - - - Remove-AzureVM - - - - Restart-AzureVM - - - - Stop-AzureVM - - - - Update-AzureVM + + - + + - Stop-AzureVM + + Get-AzureVMSqlServerExtension + - Shuts down an Azure virtual machine. + Gets the settings of the SQL Server extension on a particular VM. - + + - Stop - AzureVM - + Get + AzureVMSqlServerExtension + + - The Stop-AzureVM cmdlet shuts down a virtual machine. + This cmdlet gets the settings of the SQL Server extension on a particular VM. + - Stop-AzureVM - - ServiceName - - Specifies the name of the Azure service that contains the virtual machine to shut down. - - String - - - Name - - Specifies the name of the virtual machine to shut down. - Use the wildcard character to stop multiple virtual machines asynchronously. With a wildcard character, this cmdlet calls the Shutdown Roles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of the Shutdown Role operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx). - - String[] - - - StayProvisioned - - Specifies that this cmdlet keeps the virtual machine provisioned. - - - - Force - - Specifies whether to allow the deallocation of the last virtual machine in a deployment. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Stop-AzureVM - - ServiceName - - Specifies the name of the Azure service that contains the virtual machine to shut down. - - String - - - StayProvisioned - - Specifies that this cmdlet keeps the virtual machine provisioned. - - - - Force - - Specifies whether to allow the deallocation of the last virtual machine in a deployment. - - - - Profile + Get-AzureVMSqlServerExtension + + VM - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The virtual machine to get the settings from. - AzureProfile + IPersistentVM - - VM + + Version - Specifies a virtual machine object that identifies the virtual machine to shut down. + The specific version of the Sql Server extension. - IPersistentVM[] + string + - - Force - - Specifies whether to allow the deallocation of the last virtual machine in a deployment. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the virtual machine to shut down. - Use the wildcard character to stop multiple virtual machines asynchronously. With a wildcard character, this cmdlet calls the Shutdown Roles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of the Shutdown Role operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx). - - String[] - - String[] - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ServiceName - - Specifies the name of the Azure service that contains the virtual machine to shut down. - - String - - String - - - none - - - StayProvisioned + + Version - Specifies that this cmdlet keeps the virtual machine provisioned. + The specific version of the Sql Server extension. - SwitchParameter + string - SwitchParameter + string - none + + - + VM - Specifies a virtual machine object that identifies the virtual machine to shut down. + The virtual machine to get the settings from. - IPersistentVM[] + IPersistentVM - IPersistentVM[] + IPersistentVM - none + + + - - - - - + + + @@ -39987,229 +38474,301 @@ C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Shut down a virtual machine + + -------------------------- EXAMPLE 1 -------------------------- + - - + C:\PS> - PS C:\>Stop-AzureVM -ServiceName "ContosoService01" -Name "MyVM" - + +Get-AzureVM -ServiceName "service" -Name "vmname" | Get-AzureVMSqlServerExtension + +ExtensionName : SqlIaaSAgent +Publisher : Microsoft.SqlServer.Management +Version : 1.* +State : Enable +RoleName : afexttest +AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings +AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings +KeyVaultCredentialSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.KeyVaultCredentialSettings - This command shuts down a virtual machine that the specified service contains. - - - - - - - - - - - Example 2: Shut down a virtual machine by using a virtual machine object - + Description + ----------- + Gets the settings of the Sql Server extension on a particular VM using piped input. + + + + - - PS C:\>Get-AzureVM -ServiceName "ContosoService01" -Name "MyVM" | Stop-AzureVM - - - This command shuts down a virtual machine that the specified service contains, by using the virtual machine object that Get-AzureVM returns. - - - - - - - - - - - Example 3: Shut down a VM and keep the VM provisioned - - - PS C:\>Stop-AzureVM -ServiceName "ContosoService01" -Name "MyVM" -StayProvisioned - - - This command shuts down a virtual machine that the specified service contains, and keeps it provisioned. - - - + + - Example 4: Shut down a VM and allow deallocation of the last VM in the deployment + + -------------------------- EXAMPLE 2 -------------------------- + - - + C:\PS> - PS C:\>Stop-AzureVM -ServiceName "ContosoService01" -Name "MyVM" -Force - + +Get-AzureVMSqlServerExtension-VM $vm + +ExtensionName : SqlIaaSAgent +Publisher : Microsoft.SqlServer.Management +Version : 1.0 +State : Enable +RoleName : vmname +AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings +AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings +KeyVaultCredentialSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.KeyVaultCredentialSettings - This command shuts down a virtual machine that the specified service contains and allows deallocation of the last virtual machine in the deployment. - - + Description + ----------- + Gets the settings of the Sql Server extension on a particular VM. + + + + + + + + - + + - Example 5: Shut down multiple VMs + + -------------------------- EXAMPLE 3 -------------------------- + - - + C:\PS> - PS C:\>Stop-AzureVM -ServiceName "PSTestService" -Name "*" -Force - + +Get-AzureVMSqlServerExtension -VM $vm -Version "1.0" + +ExtensionName : SqlIaaSAgent +Publisher : Microsoft.SqlServer.Management +Version : 1.0 +State : Enable +RoleName : vmname +AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings +AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings +KeyVaultCredentialSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.KeyVaultCredentialSettings - This command shuts down multiple virtual machines that the specified service contains. - - + Description + ----------- + Gets the settings of the particular version of Sql Server extension on a VM. + + + + + + + + - + + + - Get-AzureVM - - - - New-AzureVM - - - - Restart-AzureVM - - - - Start-AzureVM + + - + + - Test-AzureStaticVNetIP + + New-AzureVMSqlServerKeyVaultCredentialConfig + - Tests the availability of a static virtual network IP address, and gets a list of suggestions if the queried address is not available. + Creates configuration object for SQL Server Azure Key Vault credential - + + - Test - AzureStaticVNetIP - + New + AzureVMSqlServerKeyVaultCredentialConfig + + - The Test-AzureStaticVNetIP cmdlet tests the availability of a static virtual network IP address, and gets a list of suggestions if the queried address is not available. + Creates configuration object for SQL Server Azure Key Vault credential + - Test-AzureStaticVNetIP - - VNetName + New-AzureVMSqlServerKeyVaultCredentialConfig + + Enable - Specifies the Name of the virtual network. + Enable is an optional value with a default value of false. If set to true, a SQL Server credential using Azure key vault is created when the configuration is used in Set-AzureVMSqlServerExtension. Otherwise, all SQL Server Azure key vault credential status reporting is disabled. Disabling this feature does not remove previously created SQL Server credential using Azure key vault. - String + bool - - IPAddress + + CredentialName - Specifies the static virtual network IP address to query. + The name to use when creating the new SQL Server credential. If the operation succeeds, a new SQL Server credential with the given name is created. If a SQL Server credential with similar name already exists, then the operation will fail. - String + string - - Profile + + AzureKeyVaultUrl + + Azure Key Vault absolute URL path to use when creating the SQL Server credential. The Azure key vault must be created before using to create a SQL Server credential. + + string + + + ServicePrincipalName + + Azure key vault client identifier given the principal user access to the Azure key vault set in AzureKeyVaultUrl. + + string + + + ServicePrincipalSecret - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Azure key vault principal access secret to the Azure key vault set in AzureKeyVaultUrl. - AzureProfile + SecureString + - - IPAddress + + AzureKeyVaultUrl - Specifies the static virtual network IP address to query. + Azure Key Vault absolute URL path to use when creating the SQL Server credential. The Azure key vault must be created before using to create a SQL Server credential. - String + string - String + string - none + + - - Profile + + CredentialName - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + The name to use when creating the new SQL Server credential. If the operation succeeds, a new SQL Server credential with the given name is created. If a SQL Server credential with similar name already exists, then the operation will fail. - AzureProfile + string - AzureProfile + string - none + + - - VNetName + + Enable - Specifies the Name of the virtual network. + Enable is an optional value with a default value of false. If set to true, a SQL Server credential using Azure key vault is created when the configuration is used in Set-AzureVMSqlServerExtension. Otherwise, all SQL Server Azure key vault credential status reporting is disabled. Disabling this feature does not remove previously created SQL Server credential using Azure key vault. - String + bool - String + bool - none + + + + + ServicePrincipalName + + Azure key vault client identifier given the principal user access to the Azure key vault set in AzureKeyVaultUrl. + + string + + string + + + + + + + ServicePrincipalSecret + + Azure key vault principal access secret to the Azure key vault set in AzureKeyVaultUrl. + + SecureString + + SecureString + + + + + - - - - - + + + @@ -40217,189 +38776,253 @@ C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - - - - - - - + KeyVaultCredentialSettings + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - 1: + + -------------------------- EXAMPLE 1 -------------------------- + + C:\PS> + + +$akvs = New-AzureVMSqlServerKeyVaultCredentialConfig -Enable -CredentialName sqlcredname -AzureKeyVaultUrl "http://myvaultsample.vault.azure.net" -ServicePrincipalName "myvaultsample-principal-client-identifier" -ServicePrincipalSecret $secureSecret + +Enable : True +CredentialName : sqlcredname +AzureKeyVaultUrl : http://afSqlKVT.vault.azure.net +ServicePrincipalName : dsds-33dd-4d4c-9d2d-42428eeb1fd7 +ServicePrincipalSecret : LnT+7aXAdafy1VdSo3z8YnZ5pzGU1h3Y7prrwdlUDVc= + + Description + ----------- + Creates Azure key vault credential configuration object that can be used to enable and configure KeyVaultCredential using Set-AzureVMSqlServerExtension + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + $akvs = New-AzureVMSqlServerKeyVaultCredentialConfig + + Enable : False + CredentialName : + AzureKeyVaultUrl : + ServicePrincipalName : + ServicePrincipalSecret : + Description + ----------- + Creates Azure key vault credential configuration object that can be used to disable KeyVaultCredential using Set-AzureVMSqlServerExtension + + + + + + - - - + + + - Get-AzureStaticVNetIP - - - - Set-AzureStaticVNetIP + + - + - Update-AzureDisk + + New-AzureVMSqlServerAutoPatchingConfig + - Changes the label of a disk in the Azure disk repository. + Creates configuration object for virtual machine automatic patching - + + - Update - AzureDisk - + New + AzureVMSqlServerAutoPatchingConfig + + - The Update-AzureDisk cmdlet changes the label that is associated with a disk in the disk repository of the current Azure subscription. + Creates configuration object for virtual machine automatic patching + - Update-AzureDisk - - DiskName - - Specifies the name of the disk that this cmdlet modifies. - - String - - - Label - - Specifies the new label for the disk. - - String - - - ResizedSizeInGB + New-AzureVMSqlServerAutoPatchingConfig + + Enable - Specifies the new size, in gigabytes, for the disk. + Enables or disables automated patching for the virtual machine. Enabling automated patching will put Windows Update into interactive mode. Disabling automated patching does not changes Windows Update settings. - Int32 + bool - - Profile + + DayOfWeek - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the day of the week when updates should be installed. Can be specified any single day of the week or every day. - AzureProfile + string - - - Update-AzureDisk - - DiskName + + MaintenanceWindowStartingHour - Specifies the name of the disk that this cmdlet modifies. + Specifies the hour of the day when maintenance window starts. This time defines when updates start installing. Rounded to the hour. - String + int - - Label + + MaintenanceWindowDuration - Specifies the new label for the disk. + Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. - String + int - - Profile + + PatchCategory - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Defines if Important updates should be included. - AzureProfile + string + - - DiskName + + DayOfWeek - Specifies the name of the disk that this cmdlet modifies. + Specifies the day of the week when updates should be installed. Can be specified any single day of the week or every day. - String + string - String + string - none + + - - Label + + Enable - Specifies the new label for the disk. + Enables or disables automated patching for the virtual machine. Enabling automated patching will put Windows Update into interactive mode. Disabling automated patching does not changes Windows Update settings. - String + bool - String + bool - none + True - - Profile + + MaintenanceWindowStartingHour - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Specifies the hour of the day when maintenance window starts. This time defines when updates start installing. - AzureProfile + int - AzureProfile + int - none + 3 - - ResizedSizeInGB + + MaintenanceWindowDuration - Specifies the new size, in gigabytes, for the disk. + Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. - Int32 + int - Int32 + int - none + 120 + + + PatchCategory + + Defines if important updates should be included. + + string + + string + + + Optional + - - - - - + + + @@ -40407,376 +39030,433 @@ C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - DiskContext - - - - - + AutoPatchingSettings + + + Returns object contains settings for automated patching. + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Change the label of a disk + + -------------------------- EXAMPLE 1 -------------------------- + - PS C:\>Update-AzureDisk ?DiskName "ContosoOSDisk" -Label "DoNotUse" - + + C:\PS> $aps = New-AzureVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Thursday" -MaintenanceWindowStartingHour 11 -MaintenanceWindowDuration 120 -PatchCategory "Important" + + PS C:\> $aps + Enable : True + DayOfWeek : Thursday + MaintenanceWindowStartingHour : 11 + MaintenanceWindowDuration : 120 + PatchCategory : Important + - This command changes the label of the disk named ContosoOSDisk to DoNotUse. - - + This command creates configuration object that can be used to configure automatic patching using Set-AzureVMSqlServerExtension + + + + + + + + - + + + - Add-AzureDisk - - - - Get-AzureDisk - - - - Remove-AzureDisk - - - - - - - Update-AzureVMImage - - Updates the label of an operating system image in the image repository. - - - - - Update - AzureVMImage - - - - The Update-AzureVMImage cmdlet updates the label on an operating system image in the image repository. It returns an image object with information about the updated image. - - - - Update-AzureVMImage - - ImageName - - Specifies the name of the image to update in the image repository. - - String - - - Language - - Specifies the language for the operating system in the virtual machine or operating system image. - - String - - - IconName - - Specifies the standard icon name for the operating system or virtual machine image. - - String - - - SmallIconName - - Specifies the small icon name for the operating system or virtual machine image. - - String - - - DontShowInGui - - - - - - - Label - - Specifies the new label of the image. - - String - - - Eula - - Specifies the End User License Agreement. We recommend that the value is a URL. - - String - - - Description - - Specifies the description of the operating system image. - - String - - - ImageFamily - - Specifies a value that can be used to group operating system or virtual machine images. - - String - - - PublishedDate + Set-AzureVMSqlServerExtension + + + + Remove-AzureVMSqlServerExtension + + + + + + + + New-AzureVMSqlServerAutoBackupConfig + + + Creates configuration object for SQL Server Automatic Backup + + + + + + New + AzureVMSqlServerAutoBackupConfig + + + + + Creates configuration object for SQL Server automatic backup + + + + + New-AzureVMSqlServerAutoBackupConfig + + Enable - Specifies the date when the operating system image was added to the image repository. + Enables or disables automated backup for the SQL Server Virtual Machine. Enabling automated backup will set a backup schedule for all of your existing and new databases. This will update your Managed Backup settings to follow this schedule. - DateTime + bool - - PrivacyUri + + StorageContext - Specifies the URI that points to a document that contains the privacy policy related to the operating system image. + Specifies the storage account to be used to store backups. Default will be storage account associated with the SQL Server VM. - Uri + AzureStorageContext - - RecommendedVMSize + + RetentionPeriod - Specifies the size of the virtual machine. - The acceptable values for this parameter are: - --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 + Backup Retention period in days. 1 day minimum, 30 day maximum. Default is 30 days. - String + int - - DiskConfig + + EncryptionEnabled - Specifies the operating system disk and data disk configuration for the virtual machine image created by using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig, and Set-AzureVMImageDataDiskConfig cmdlets. + Enable backup encryption. If enabled, the certificate will be automatically generated and stored in the same storage account as the backups, and password protected. - VirtualMachineImageDiskConfigSet + bool - - Profile + + CertificatePassword - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Password to encrypt the certificate that is used to perform SQL Server encrypted backups - AzureProfile + SecureString + - - Description - - Specifies the description of the operating system image. - - String - - String - - - none - - - DiskConfig - - Specifies the operating system disk and data disk configuration for the virtual machine image created by using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig, and Set-AzureVMImageDataDiskConfig cmdlets. - - VirtualMachineImageDiskConfigSet - - VirtualMachineImageDiskConfigSet - - - none - - - DontShowInGui - - - - - SwitchParameter - - SwitchParameter - - - none - - - Eula - - Specifies the End User License Agreement. We recommend that the value is a URL. - - String - - String - - - none - - - IconName + + Enable - Specifies the standard icon name for the operating system or virtual machine image. + Enables or disables automated backup for the SQL Server Virtual Machine. Enabling automated backup will set a backup schedule for all of your existing and new databases. This will update your Managed Backup settings to follow this schedule. - String + bool - String + bool - none + True - - ImageFamily + + EncryptionEnabled - Specifies a value that can be used to group operating system or virtual machine images. + Enable backup encryption. If enabled, the certificate will be automatically generated and stored in the same storage account as the backups, and password protected. - String + bool - String + bool - none + + - - ImageName + + CertificatePassword - Specifies the name of the image to update in the image repository. + Password to encrypt the certificate that is used to perform SQL Server encrypted backups - String + SecureString - String + SecureString - none + + - - Label + + RetentionPeriod - Specifies the new label of the image. + Backup Retention period in days. 1 day minimum, 30 day maximum. Default is 30 days. - String + int - String + int - none + + - - Language + + StorageContext - Specifies the language for the operating system in the virtual machine or operating system image. + Specifies the storage account to be used to store backups. Default will be storage account associated with the SQL Server VM. - String + AzureStorageContext - String + AzureStorageContext - none + + - - PrivacyUri - - Specifies the URI that points to a document that contains the privacy policy related to the operating system image. - - Uri + + + + - Uri + + + - none - - - Profile - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + + - AzureProfile + + + + - AzureProfile + + + - none - - - PublishedDate - Specifies the date when the operating system image was added to the image repository. + + + - DateTime - - DateTime - - - none - - - RecommendedVMSize - - Specifies the size of the virtual machine. - The acceptable values for this parameter are: + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + +$abs = New-AzureVMSqlServerAutoBackupConfig -Enable -RetentionPeriod 10 -StorageUri $storageUrl -StorageKey $storageAccountKeySecure --- Medium --- Large --- ExtraLarge --- A5 --- A6 --- A7 - - String - - String - - - none - - - SmallIconName +Enable : True +EnableEncryption : False +RetentionPeriodInDays : 10 + + Description + ----------- + Creates a auto-backup config object by specifying storage uri and account key. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + +$abs = New-AzureVMSqlServerAutoBackupConfig -StorageContext $storageContext -Enable -RetentionPeriod 10 + +Enable : True +EnableEncryption : False +RetentionPeriodInDays : 10 + + Description + ----------- + Creates an auto-backup config object by specifying Storage context. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 3 -------------------------- + + + C:\PS> + + +$abs = New-AzureVMSqlServerAutoBackupConfig -StorageContext $storageContext -Enable -RetentionPeriod 10 -EnableEncryption -CertificatePassword $certPasswd + +Enable : True +EnableEncryption : True +RetentionPeriodInDays : 10 + + Description + ----------- + Creates an auto-backup config object by specifying Storage context and enabling encryption option with password. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureVMSqlServerExtension + + + Remove Azure VM Sql Server extension from a VM object. + + + + + + Remove + AzureVMSqlServerExtension + + + + + Remove Azure VM Sql Server extension from a VM object. + + + + + Remove-AzureVMSqlServerExtension + + VM + + The Virtual Machine to get the settings from. + + IPersistentVM + + + + + + + VM - Specifies the small icon name for the operating system or virtual machine image. + The Virtual Machine to get the settings from. - String + IPersistentVM - String + IPersistentVM - none + + + - - - - - + + + @@ -40784,204 +39464,227 @@ C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - OSImageContext - - - - - + + + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - - Example 1: Update an image by changing the image label - - - - - PS C:\>Update-AzureVMImage -ImageName "Windows-Server-2008-SP2" -Label "DoNotUse" - - - This command updates the image named Windows-Server-2008-SP2 by changing the image label to DoNotUse. - - - - - - - - - - - Example 2: Get all operating systems by label and then update the label - - - - - PS C:\>Get-AzureVMImage | Where-Object {$_.Label -eq "DoNotUse" } | Update-AzureVMImage -Label "Updated" - - - This command gets all the operating system images labeled DoNotUse and changes the label to Updated. - - - - - - - - - + - Add-AzureVMImage - - - - Get-AzureVMImage - - - - Remove-AzureVMImage - - - - Save-AzureVMImage - - - - New-AzureVMImageDiskConfigSet - - - - Set-AzureVMImageOSDiskConfig - - - - Set-AzureVMImageDataDiskConfig + + - + + - Update-AzureVM + + Set-AzureVMSqlServerExtension + - Modifies the configuration of an Azure virtual machine. + Configure the Sql Server extension on a VM. - + + - Update - AzureVM - + Set + AzureVMSqlServerExtension + + - The Update-AzureVM cmdlet accepts update information for the specified virtual machine and initiates the update. You can add or remove data disks, modify the cache mode of data or operating system disks, change the network endpoints, or change the size of the virtual machine. + Configure the Sql Server extension on a VM. + - Update-AzureVM - - ServiceName + Set-AzureVMSqlServerExtension + + VM - Specifies the name of the Azure service. + The Virtual Machine to get the settings from. - String + IPersistentVM - - Name + + Version - Specifies the name of the virtual machine to update. + The specific version of the SQL Server extension that Get-AzureVMSqlServerExtension will get the settings from. - String + string - - Profile + + AutoBackupSettings - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Automatic SQL Server backup settings - AzureProfile + AutoBackupSettings - - VM + + AutoPatchingSetttings - Specifies the virtual machine object that includes updated settings. + Automatic patching settings + + AutoPatchingSetttings + + + KeyVaultCredentialSettings + + + + + KeyVaultCredentialSettings + + + Confirm + + Prompts you for confirmation before executing the command. + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. - PersistentVM + - - Name + + AutoBackupSettings - Specifies the name of the virtual machine to update. + Automatic SQL Server backup settings - String + AutoBackupSettings - String + AutoBackupSettings - none + + - - Profile + + AutoPatchingSetttings - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + Automatic patching settings - AzureProfile + AutoPatchingSetttings - AzureProfile + AutoPatchingSetttings - none + + - - ServiceName + + KeyVaultCredentialSettings - Specifies the name of the Azure service. + + - String + KeyVaultCredentialSettings - String + KeyVaultCredentialSettings - none + + + + + Version + + The specific version of the SQL Server extension that Get-AzureVMSqlServerExtension will get the settings from. + + string + + string + + + + - + VM - Specifies the virtual machine object that includes updated settings. + The Virtual Machine to get the settings from. - PersistentVM + IPersistentVM - PersistentVM + IPersistentVM - none + + + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + SwitchParameter + + + + - - - - - + + + @@ -40991,94 +39694,191 @@ C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - - - - - + + + + + + + + + + + + Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + + + + + + + - Example 1: Update the size of a virtual machine + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + +Get-AzureVM -ServiceName serviceName -Name vmName | Set-AzureVMSqlServerExtension -AutoPatchingSettings $aps | Update-AzureVM + + Description + ----------- + Sets auto-patching settings on Azure VM. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + C:\PS> + + +Get-AzureVM -ServiceName serviceName -Name vmName | Set-AzureVMSqlServerExtension -AutoBackupSettings $abs | Update-AzureVM + + Description + ----------- + Sets auto-backup settings on Azure VM. + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 3 -------------------------- + + + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine04" | Set-AzureVMSize -InstanceSize "Medium" | Update-AzureVM - + +Get-AzureVM -ServiceName $serviceName -Name $vmName | Set-AzureVMSqlServerExtension -KeyVaultCredentialSettings $akvs | Update-AzureVM + +Sets SQL Server credential Azure key vault settings - This command changes the size of the virtual machine named VirtualMachine04, running in the service named ContosoService03, to Medium. - - + Description + ----------- + + + + + + + + + + - + + - Example 2: Add a data disk to a virtual machine + + -------------------------- EXAMPLE 4 -------------------------- + + C:\PS> + + +Get-AzureVM -ServiceName service -Name vmName| Set-AzureVMSqlServerExtension -Disable + + Description + ----------- + Disables SQL Server VM extension on a given VM + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 5 -------------------------- + + + C:\PS> - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine05" | Add-AzureDataDisk -CreateNew -MediaLocation "https://ContosoStore1.blob.core.azure.com/vhds/Disk22.vhd" -DiskSizeInGB 128 -DiskLabel "Data-128" -LUN 0 | Update-AzureVM - + +Get-AzureVM -ServiceName service -Name vmName| Set-AzureVMSqlServerExtension -UnInstall - This command adds a new data disk to the virtual machine named VirtualMachine05, running in the service named ContosoService03. - - + Description + ----------- + Uninstalls SQL Server VM extension on a given VM + + + + + + + + - + + + - Get-AzureVM - - - - New-AzureVM - - - - New-AzureVMConfig - - - - Remove-AzureVM - - - - Restart-AzureVM - - - - Set-AzureVMSize - - - - Start-AzureVM - - - - Stop-AzureVM + + - - + \ No newline at end of file From 99331b37b3b205d2f59522e0ca8ce52f31d524ea Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 28 Oct 2015 15:08:05 -0700 Subject: [PATCH 02/27] Address Code review comments --- .../DSC/SetAzureVMDscExtensionCommand.cs | 7 +- ...rosoft.Azure.Commands.Compute.dll-Help.xml | 28502 ++++++---------- .../Extensions/DSC/SetAzureVMDscExtension.cs | 5 +- 3 files changed, 10811 insertions(+), 17703 deletions(-) diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs index 7eff5538b5f7..924c451da8d2 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs @@ -210,7 +210,10 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet /// /// The Extension Data Collection state /// - [Parameter(ValueFromPipelineByPropertyName = true, HelpMessage = "Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls.")] + [Parameter(ValueFromPipelineByPropertyName = true, + HelpMessage = "Enables or Disables Data Collection in the extension. It is enabled if it is not specified. " + + "The value is persisted in the extension between calls.") + ] [ValidateSet("Enable", "Disable")] [AllowNull] public string DataCollection { get; set; } @@ -317,7 +320,7 @@ private void CreateConfiguration() publicSettings.SasToken = configurationUris.SasToken; publicSettings.ModulesUrl = configurationUris.ModulesUrl; - publicSettings.DataCollection = this.DataCollection; + publicSettings.DataCollection = DataCollection; publicSettings.ConfigurationFunction = string.Format( CultureInfo.InvariantCulture, "{0}\\{1}", diff --git a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml index 0fc254fd39b8..aaaa89f1e3d2 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml +++ b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml @@ -1,11839 +1,124 @@ - - - - - Add-AzureRmVhd - - - - - - - Add - AzureRmVhd - - - - - - - - Add-AzureRmVhd - - ResourceGroupName - - - - String - - - Destination - - - - Uri - - - LocalFilePath - - - - FileInfo - - - NumberOfUploaderThreads - - - - Nullable`1[Int32] - - - BaseImageUriToPatch - - - - Uri - - - OverWrite - - - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - Destination - - - - Uri - - Uri - - - - - - LocalFilePath - - - - FileInfo - - FileInfo - - - - - - NumberOfUploaderThreads - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - BaseImageUriToPatch - - - - Uri - - Uri - - - - - - OverWrite - - - - SwitchParameter - - SwitchParameter - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Add-AzureRmVMAdditionalUnattendContent - - Adds information to the unattended Windows Setup answer file. - - - - - Add - AzureRmVMAdditionalUnattendContent - - - - The Add-AzureRmVMAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file. Specify additional base 64 encoded XML formatted information that this cmdlet adds to the unattend.xml file. - - - - Add-AzureRmVMAdditionalUnattendContent - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - Content - - Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. - - String - - - SettingName - - Specifies the name of the setting to which the content applies. Valid values are: - -- FirstLogonCommands --- AutoLogon - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Content - - Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. - - String - - String - - - none - - - SettingName - - Specifies the name of the setting to which the content applies. Valid values are: - -- FirstLogonCommands --- AutoLogon - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Add content to unattend.xml -------------------------- - - PS C:\> - - PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> $Credential = Get-Credential -PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential -PS C:\> $AucContent = "<UserAccounts><AdministratorPassword><Value>" + "Password" + "</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>"; -PS C:\> $VirtualMachine = Add-AzureRmVMAdditionalUnattendContent -VM $VirtualMachine -Content $AucContent -SettingName "AutoLogon" - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - - - The fourth command uses the Set-AzureRmVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine. - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - Set-AzureRmVMOperatingSystem - - - - New-AzureRmVMConfig - - - - - - - - Add-AzureRmVMDataDisk - - Adds a data disk to a virtual machine. - - - - - Add - AzureRmVMDataDisk - - - - The Add-AzureRmVMDataDisk cmdlet adds a data disk to a virtual machine. You can add a data disk when you create a virtual machine, or you can add a data disk to an existing virtual machine. - - - - Add-AzureRmVMDataDisk - - VM - - Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the data disk to add. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. - - String - - - Caching - - Specifies the caching mode of the disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing this value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - - DiskSizeInGB - - Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. - - Nullable`1[Int32] - - - Lun - - Specifies the logical unit number (LUN) for a data disk. - - Nullable`1[Int32] - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - - String - - - SourceImageUri - - Specifies the source URI of the disk that this cmdlet attaches. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Name - - Specifies the name of the data disk to add. - - String - - String - - - none - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. - - String - - String - - - none - - - Caching - - Specifies the caching mode of the disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing this value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - String - - - none - - - DiskSizeInGB - - Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - none - - - Lun - - Specifies the logical unit number (LUN) for a data disk. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - none - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - - String - - String - - - none - - - SourceImageUri - - Specifies the source URI of the disk that this cmdlet attaches. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Add data disks to a new virtual machine -------------------------- - - PS C:\> - - PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -PS C:\> $DataDiskVhdUri01 = "https://contoso.blob.core.windows.net/test/data1.vhd" -PS C:\> $DataDiskVhdUri02 = "https://contoso.blob.core.windows.net/test/data2.vhd" -PS C:\> $DataDiskVhdUri03 = "https://contoso.blob.core.windows.net/test/data3.vhd" -PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri1 -CreateOption Empty -PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $DataDiskVhdUri2 -CreateOption Empty -PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $DataDiskVhdUri3 -CreateOption Empty - - The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. - - - - - - - - - - - - - - -------------------------- Example 2: Add a data disk to an existing virtual machine -------------------------- - - PS C:\> - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty -PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. - - - - - - - - - - - - - - - - Remove-AzureRmVMDataDisk - - - - Get-AzureRmVM - - - - New-AzureRmVMConfig - - - - - - - - Add-AzureRmVMNetworkInterface - - Adds a network interface to a virtual machine. - - - - - Add - AzureRmVMNetworkInterface - - - - The Add-AzureRmVMNetworkInterface cmdlet adds a network interface to a virtual machine. You can add an interface when you create a virtual machine or add one to an existing virtual machine. - - - - Add-AzureRmVMNetworkInterface - - VM - - Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Id - - Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. - - String - - - Primary - - Indicates that this cmdlet adds the network interface as the primary interface. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Add-AzureRmVMNetworkInterface - - VM - - Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - NetworkInterface - - - - List`1[PSNetworkInterface] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Id - - Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. - - String - - String - - - none - - - Primary - - Indicates that this cmdlet adds the network interface as the primary interface. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - NetworkInterface - - - - List`1[PSNetworkInterface] - - List`1[PSNetworkInterface] - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Add a network interface to a new virtual machine -------------------------- - - PS C:\> - - PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" - - The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. - - - - - - - - - - - - - - -------------------------- Example 2: Add a network interface to an existing virtual machine -------------------------- - - PS C:\> - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" -PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name " VirtualMachine07" -VM $VirtualMachine - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmldet. The command stores the virtual machine in the $VirtualMachine variable. - - - - - - - - - - - - - - - - New-AzureRmVMConfig - - - - Get-AzureRmVM - - - - Get-AzureRmAvailabilitySet - - - - - - - - Add-AzureRmVMSecret - - Adds a secret to a virtual machine. - - - - - Add - AzureRmVMSecret - - - - The Add-AzureRmVMSecret cmdlet adds a secret to a virtual machine. This value lets you add a certificate to the virtual machine. The secret needs to be stored in a Key Vault. For more information about Key Vault, see What is Azure Key Vault? (https://azure.microsoft.com/en-us/documentation/articles/key-vault-whatis/) in the Azure library. For more information about the cmdlets, see Azure Key Vault Cmdlets (https://msdn.microsoft.com/library/azure/dn868052.aspx) in the Microsoft Developer Network library or type Get-Help Set-AzureKeyVaultSecret. - - - - Add-AzureRmVMSecret - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - SourceVaultId - - Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. - - String - - - CertificateStore - - Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. - - String - - - CertificateUrl - - Specifies the URL that points to a Key Vault secret which contains a certificate. - The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. - { -"data": "<Base64-encoded-file>", -"dataType": "<file-format>", -"password": "<pfx-file-password>" -} - Currently, dataType accepts only .pfx files. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - SourceVaultId - - Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. - - String - - String - - - none - - - CertificateStore - - Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. - - String - - String - - - none - - - CertificateUrl - - Specifies the URL that points to a Key Vault secret which contains a certificate. - The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. - { -"data": "<Base64-encoded-file>", -"dataType": "<file-format>", -"password": "<pfx-file-password>" -} - Currently, dataType accepts only .pfx files. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Add a secret to a virtual machine -------------------------- - - PS C:\> - - PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> $Credential = Get-Credential -PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential -PS C:\> $SourceVaultId = "/subscriptions/46f8cea4-2de6-4179-8ab1-365da4211af4/resourceGroups/vault/providers/Microsoft.KeyVault/vaults/keyvault" -PS C:\> $CertificateStore01 = "My" -PS C:\> $CertificateUrl01 = "https://contosovault.vault.azure.net/secrets/514ceb769c984379a7e0230bdd703272" -PS C:\> $VirtualMachine = Add-AzureRmVMSecret -VM $VirtualMachine -SourceVaultId $SourceVaultId -CertificateStore $CertificateStore01 -CertificateUrl $CertificateUrl01 - - The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. - - - The fifth command assigns a source vault ID to the $SourceVaultId variable for later use. The command assumes that the $SubscriptionId variable has an appropriate value. - - - - - - - - - - - - - - - - - Add-AzureRmVMSshPublicKey - - Adds the public keys for SSH for a virtual machine. - - - - - Add - AzureRmVMSshPublicKey - - - - The Add-AzureRmVMSshPublicKey cmdlet adds the public keys that you can use to connect to a virtual machine over Secure Shell (SSH). - - - - Add-AzureRmVMSshPublicKey - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - KeyData - - Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. - - String - - - Path - - Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - KeyData - - Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. - - String - - String - - - none - - - Path - - Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Add a public key to a virtual machine -------------------------- - - PS C:\> - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> $VirtualMachine = Add-AzureRmVMSshPublicKey -VM $VirtualMachine -KeyData "MIIDszCCApugAwIBAgIJALBV9YJCF/tAMA0GCSq12Ib3DQEB21QUAMEUxCzAJBgNV" -Path "/home/admin/.ssh/authorized_keys" - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - - - - - Get-AzureRmAvailabilitySet - - Gets Azure availability sets in a resource group. - - - - - Get - AzureRmAvailabilitySet - - - - The Get-AzureRmAvailabilitySet cmdlet gets Azure availability sets in a resource group. Specify the name of a specific availability set to get. - - - - Get-AzureRmAvailabilitySet - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of an availability set to get. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Name - - Specifies the name of an availability set to get. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get a specific availability set -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" - - This command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11. - - - - - - - - - - - - - - -------------------------- Example 2: Get all availability sets -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" - - This command gets all the availability sets in the resource group named ResourceGroup11. - - - - - - - - - - - - - - - - New-AzureRmAvailabilitySet - - - - Remove-AzureRmAvailabilitySet - - - - - - - - Get-AzureRmRemoteDesktopFile - - Gets an .rdp file. - - - - - Get - AzureRmRemoteDesktopFile - - - - The Get-AzureRmRemoteDesktopFile cmdlet gets a Remote Desktop Protocol (.rdp) file. - - - - Get-AzureRmRemoteDesktopFile - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the availability set that this cmdlet gets. - - String - - - LocalPath - - Specifies the local full path where this cmdlet stores the .rdp file. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmRemoteDesktopFile - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the availability set that this cmdlet gets. - - String - - - LocalPath - - Specifies the local full path where this cmdlet stores the .rdp file. - - String - - - Launch - - - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Name - - Specifies the name of the availability set that this cmdlet gets. - - String - - String - - - none - - - LocalPath - - Specifies the local full path where this cmdlet stores the .rdp file. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Launch - - - - SwitchParameter - - SwitchParameter - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get a Remote Desktop file -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmRemoteDesktopFile -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -LocalPath "D:\RemoteDesktopFile07.rdp" - - This command gets the Remote Desktop file for the virtual machine named VirtualMachine07. The command stores the result in the file named D:\RemoteDesktopFile07.rdp. - - - - - - - - - - - - - - - - - - - - Get-AzureRmVM - - Gets the properties of a virtual machine. - - - - - Get - AzureRmVM - - - - The Get-AzureRmVM cmdlet gets the model view and instance view of an Azure virtual machine. The model view is the user specified properties of the virtual machine. The instance view is the instance level status of the virtual machine. To get only the instance view of a virtual machine, specify the Status parameter. - - - - Get-AzureRmVM - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the virtual machine to get. - - String - - - Status - - Indicates that this cmdlet gets only the instance view of the virtual machine. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmVM - - NextLink - - Specifies the next link. - - Uri - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Name - - Specifies the name of the virtual machine to get. - - String - - String - - - none - - - Status - - Indicates that this cmdlet gets only the instance view of the virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - NextLink - - Specifies the next link. - - Uri - - Uri - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - microsoft.azure.common.authentication.models.azureprofile - - microsoft.azure.common.authentication.models.azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get model and instance view properties -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - This command gets the model view and instance view properties of the virtual machine named VirtualMachine07. - - - - - - - - - - - - - - -------------------------- Example 2: Get instance view properties -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Status - - This command gets properties of the virtual machine named VirtualMachine07. This command specifies the Status parameter. Therefore, the command gets only the instance view properties. - - - - - - - - - - - - - - -------------------------- Example 3: Get properties for all virtual machines in a resource group -------------------------- - - PS C:\> - - PS C:\> Get-AzureRmVM -ResourceGroupName "ResourceGroup11" - - This command gets properties for all the virtual machines in the resource group named ResourceGroup11. - - - - - - - - - - - - - - -------------------------- Example 4: Get all virtual machines in your subscription -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVM - - This command gets all the virtual machines in your subscription. - - - - - - - - - - - - - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - - - Get-AzureRmVMAccessExtension - - Gets information about the VMAccess extension. - - - - - Get - AzureRmVMAccessExtension - - - - The Get-AzureRmVMAccessExtension cmdlet gets information about the Virtual Machine Access (VMAccess) Virtual Machine Extension. - - - - Get-AzureRmVMAccessExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension that this cmdlet gets. - - String - - - Status - - Indicates that this cmdlet gets only the instance view of the extension. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. - - String - - String - - - none - - - Name - - Specifies the name of the extension that this cmdlet gets. - - String - - String - - - none - - - Status - - Indicates that this cmdlet gets only the instance view of the extension. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get the VMAccess extension -------------------------- - - PS C:\> - - PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoTest" - - This command gets the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. - - - - - - - - - - - - - - -------------------------- Example 2: Get the instance view of the VMAccess extension -------------------------- - - PS C:\> - - PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine0" -Name "ContosoTest" -Status - - This command gets the instance view of the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. - - - - - - - - - - - - - - - - Remove-AzureRmVMAccessExtension - - - - Set-AzureRmVMAccessExtension - - - - Get-AzureRmVMExtension - - - - - - - - Get-AzureRmVMBootDiagnosticsData - - - - - - - Get - AzureRmVMBootDiagnosticsData - - - - - - - - Get-AzureRmVMBootDiagnosticsData - - ResourceGroupName - - - - String - - - Name - - - - String - - - Windows - - - - SwitchParameter - - - LocalPath - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmVMBootDiagnosticsData - - ResourceGroupName - - - - String - - - Name - - - - String - - - Linux - - - - SwitchParameter - - - LocalPath - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - Name - - - - String - - String - - - - - - Windows - - - - SwitchParameter - - SwitchParameter - - - - - - LocalPath - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Linux - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMCustomScriptExtension - - Gets information about a custom script extension. - - - - - Get - AzureRmVMCustomScriptExtension - - - - The Get-AzureRmVMCustomScriptExtension cmdlet gets information about a custom script Virtual Machine Extension on a virtual machine. - - - - Get-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. - - String - - - Name - - Specifies the name of the custom script extension about which this cmdlet gets information. - - String - - - Status - - Indicates that this cmdlet gets the instance view of the custom script extension. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. - - String - - String - - - none - - - Name - - Specifies the name of the custom script extension about which this cmdlet gets information. - - String - - String - - - none - - - Status - - Indicates that this cmdlet gets the instance view of the custom script extension. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get a custom script extension -------------------------- - - PS C:\> - - PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" - - This command gets the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. - - - - - - - - - - - - - - -------------------------- Example 2: Get the instance view of a custom script extension -------------------------- - - PS C:\> - - PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" -Status - - This command gets the instance view of the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. - - - - - - - - - - - - - - - - Get-AzureRmVMExtension - - - - Get-AzureRmVMExtensionImage - - - - Get-AzureRmVMAccessExtension - - - - - - - - Get-AzureRmVMDiagnosticsExtension - - - - - - - Get - AzureRmVMDiagnosticsExtension - - - - - - - - Get-AzureRmVMDiagnosticsExtension - - ResourceGroupName - - - - String - - - VMName - - - - String - - - Name - - - - String - - - Status - - - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - VMName - - - - String - - String - - - - - - Name - - - - String - - String - - - - - - Status - - - - SwitchParameter - - SwitchParameter - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMDiskEncryptionStatus - - Get-AzureRmVMDiskEncryptionStatus cmdlet displays the encryption status of the VM. It displays encryption status of the OS and Data volumes. In addition to encryption status, it also displays the secret URL and resource ID of the KeyVault where the encryption key for OS volume is present. - - - - - Get - AzureRmVMDiskEncryptionStatus - - - - - - - - Get-AzureRmVMDiskEncryptionStatus - - ResourceGroupName - - Resource group name of the virtual machine - - String - - - VMName - - Name of the virtual machine - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Resource group name of the virtual machine - - String - - String - - - - - - VMName - - Name of the virtual machine - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $rgName = 'MyResourceGroup'; -$vmName = 'MyWindowsVM'; -Get-AzureRmVmDiskEncryptionStatus -ResourceGroupName $rgname -VMName $vmName; - - - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMDscExtension - - Gets the settings of the DSC extension on a particular VM - - - - - Get - AzureRmVMDscExtension - - - - Gets the settings of the DSC extension on a particular VM. - - - - Get-AzureRmVMDscExtension - - ResourceGroupName - - The resource group name. - - String - - - VMName - - The virtual machine name - - String - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - String - - - Status - - Output shows status when the switch is present - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - The resource group name. - - String - - String - - - - - - VMName - - The virtual machine name - - String - - String - - - - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - String - - String - - - - - - Status - - Output shows status when the switch is present - - SwitchParameter - - SwitchParameter - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- EXAMPLE 1 -------------------------- - - PS C:\> - - Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' - - Description - - - - - - - - - - - - - - - - Unknown - - - - - - - - Get-AzureRmVMDscExtensionStatus - - Used to get the status of the DSC extension handler for a VM in a resource group. When a configuration is applied this cmdlet produces output consistent with Start-DscConfiguration. - - - - - Get - AzureRmVMDscExtensionStatus - - - - - - - - Get-AzureRmVMDscExtensionStatus - - ResourceGroupName - - The resource group name. - - String - - - VMName - - The virtual machine name - - String - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - The resource group name. - - String - - String - - - - - - VMName - - The virtual machine name - - String - - String - - - - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - - Unknown - - - - - - - - Get-AzureRmVMExtension - - Gets properties of Virtual Machine Extensions installed on a virtual machine. - - - - - Get - AzureRmVMExtension - - - - The Get-AzureRmVMExtension cmdlet gets properties of Virtual Machine Extensions installed on a virtual machine. Specify the name of an extension for which to get properties. To get only the instance view of an extension, specify the Status parameter. - - - - Get-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. - - String - - - Status - - Indicates that this cmdlet gets only the instance view of an extension. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. - - String - - String - - - none - - - Name - - Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. - - String - - String - - - none - - - Status - - Indicates that this cmdlet gets only the instance view of an extension. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get properties of an extension -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" - - This command gets properties for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. - - - - - - - - - - - - - - -------------------------- Example 2: Get instance view of an extension -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Status - - This command gets the instance view for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. - - - - - - - - - - - - - - - - Remove-AzureRmVMExtension - - - - Set-AzureRmVMExtension - - - - - - - - Get-AzureRmVmExtensionImage - - Gets all versions for an Azure extension. - - - - - Get - AzureRmVmExtensionImage - - - - The Get-AzureRmVMExtensionImage cmdlet gets all versions for an Azure extension. - - - - Get-AzureRmVmExtensionImage - - Location - - Specifies the location of an extension. - - String - - - PublisherName - - Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - - Type - - Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. - - String - - - FilterExpression - - Specifies a filter expression. - - String - - - Version - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location of an extension. - - String - - String - - - none - - - PublisherName - - Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - String - - - none - - - Type - - Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. - - String - - String - - - none - - - FilterExpression - - Specifies a filter expression. - - String - - String - - - none - - - Version - - - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get the versions of an extension image -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMExtensionImage -Location "Central US" -PublisherName "Fabrikam" -Type "FabrikamEndpointProtection" - - This command gets all the versions of the extension image for the specified location, publisher, and type. - - - - - - - - - - - - - - - - Get-AzureRmVMExtensionImageType - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMExtensionImageType - - - - - - - - Get-AzureRmVMExtensionImageType - - Gets the type of an Azure extension. - - - - - Get - AzureRmVMExtensionImageType - - - - The Get-AzureRmVMExtensionImageType cmdlet gets the type of an Azure extension. - - - - Get-AzureRmVMExtensionImageType - - Location - - Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. - - String - - - PublisherName - - Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. - - String - - String - - - none - - - PublisherName - - Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get an extension image type -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMExtensionImageType -Location "Central US" -PublisherName "Fabrikam" - - This command gets the extension image type for the specified publisher and location. - - - - - - - - - - - - - - - - Get-AzureRmVMExtensionImage - - - - - - - - Get-AzureRmVMImage - - Gets all the versions of a VMImage. - - - - - Get - AzureRmVMImage - - - - The Get-AzureRmVMImage cmdlet gets all the versions of a VMImage. - - - - Get-AzureRmVMImage - - Location - - Specifies the location of a VMImage. - - String - - - PublisherName - - Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - String - - - Skus - - Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. - - String - - - FilterExpression - - Specifies a filter expression. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmVMImage - - Location - - Specifies the location of a VMImage. - - String - - - PublisherName - - Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - String - - - Skus - - Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. - - String - - - Version - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location of a VMImage. - - String - - String - - - none - - - PublisherName - - Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - String - - - none - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - String - - String - - - none - - - Skus - - Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. - - String - - String - - - none - - - FilterExpression - - Specifies a filter expression. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Version - - - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - microsoft.azure.common.authentication.models.azureprofile - - microsoft.azure.common.authentication.models.azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get VMImage objects -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMImage -Location "Central US" -PublisherName "Canonical" -Offer "UbuntuServer" -Skus "15.04-DAILY" - - This command gets all the versions of VMImage that match the specified values. - - - - - - - - - - - - - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageSku - - - - Save-AzureRmVMImage - - - - - - - - Get-AzureRmVMImageOffer - - Gets VMImage offer types. - - - - - Get - AzureRmVMImageOffer - - - - The Get-AzureRmVMImageOffer cmdlet gets the VMImage offer types. - - - - Get-AzureRmVMImageOffer - - Location - - Specifies the location of the VMImage. - - String - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location of the VMImage. - - String - - String - - - none - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get offer types for a publisher -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMImageOffer -Location "Central US" -PublisherName "Fabrikam" - - This command gets the offer types for the specified publisher in the Central US region. - - - - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageSku - - - - Save-AzureRmVMImage - - - - - - - - Get-AzureRmVMImagePublisher - - Gets the VMImage publishers. - - - - - Get - AzureRmVMImagePublisher - - - - The Get-AzureRmVMImagePublisher cmdlet gets the VMImage publishers. - - - - Get-AzureRmVMImagePublisher - - Location - - Specifies the location of the VMImage. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location of the VMImage. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get VMImage publishers for a region -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMImagePublisher -Location "Central US" - - This command gets the publishers of VMImage instances for the Central US region within your profile. - - - - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImageSku - - - - Save-AzureRmVMImage - - - - - - - - Get-AzureRmVMImageSku - - Gets VMImage SKUs. - - - - - Get - AzureRmVMImageSku - - - - The Get-AzureRmVMImageSku cmdlet gets VMImage SKUs. - - - - Get-AzureRmVMImageSku - - Location - - Specifies the location of the VMImage. - - String - - - PublisherName - - Specifies the publisher of a VMImage. - - String - - - Offer - - Specifies the type of VMImage offer. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location of the VMImage. - - String - - String - - - none - - - PublisherName - - Specifies the publisher of a VMImage. - - String - - String - - - none - - - Offer - - Specifies the type of VMImage offer. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get SKUs -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMImageSku -Location "Central US" -PublisherName "Fabrikam" -Offer "LinuxServer" - - This command gets the SKUs for the specified publisher and offer. - - - - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImagePublisher - - - - Save-AzureRmVMImage - - - - - - - - Get-AzureRmVMSize - - Gets available virtual machine sizes. - - - - - Get - AzureRmVMSize - - - - The Get-AzureRmVMSize cmdlet gets available virtual machine sizes. - - - - Get-AzureRmVMSize - - Location - - Specifies the location for which this cmdlet gets the available virtual machine sizes. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmVMSize - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Get-AzureRmVMSize - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - AvailabilitySetName - - Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location for which this cmdlet gets the available virtual machine sizes. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. - - String - - String - - - none - - - AvailabilitySetName - - Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get sizes for a location -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMSize -Location "Central US" - - This command gets the available sizes for virtual machines in the specified location. - - - - - - - - - - - - - - -------------------------- Example 2: Get sizes for an availability set -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -AvailabilitySetName "AvailabilitySet17" - - This command gets available sizes for virtual machines that you can deploy in the availability set named AvailabilitySet17. - - - - - - - - - - - - - - -------------------------- Example 3: Get sizes for an existing virtual machine -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -VMName "VirtualMachine12" - - This command gets available sizes for the existing virtual machine named VirtualMachine12. You can resize this virtual machine to the sizes that this command gets. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - - - - - Get-AzureRmVMSqlServerExtension - - - - - - - Get - AzureRmVMSqlServerExtension - - - - - - - - Get-AzureRmVMSqlServerExtension - - ResourceGroupName - - - - String - - - VMName - - - - String - - - Name - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - VMName - - - - String - - String - - - - - - Name - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMUsage - - Gets the virtual machine core count usage for a location. - - - - - Get - AzureRmVMUsage - - - - The Get-AzureRmVMUsage cmdlet gets the virtual machine core count usage for a location. - - - - Get-AzureRmVMUsage - - Location - - Specifies the location for which this cmdlet gets virtual machine core count usage. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Location - - Specifies the location for which this cmdlet gets virtual machine core count usage. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Get core count usage for a location -------------------------- - - PS C:\> - - PS C:\>Get-AzureRmVMUsage -Location "Central US" - - This command gets the virtual machine core count usage for the location Central US. - - - - - - - - - - - - - - - - - - - - New-AzureRmAvailabilitySet - - Creates an Azure availability set. - - - - - New - AzureRmAvailabilitySet - - - - The New-AzureRmAvailabilitySet cmdlet creates an Azure availability set. - - - - New-AzureRmAvailabilitySet - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies a name for the availability set. - - String - - - Location - - Specifies the location for the availability set. - - String - - - PlatformUpdateDomainCount - - Specifies the platform update domain count. - - Nullable`1[Int32] - - - PlatformFaultDomainCount - - Specifies the platform fault domain count. - - Nullable`1[Int32] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Name - - Specifies a name for the availability set. - - String - - String - - - none - - - Location - - Specifies the location for the availability set. - - String - - String - - - none - - - PlatformUpdateDomainCount - - Specifies the platform update domain count. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - none - - - PlatformFaultDomainCount - - Specifies the platform fault domain count. - - Nullable`1[Int32] - - Nullable`1[Int32] - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Create an availability set -------------------------- - - PS C:\> - - PS C:\>New-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -Location "West US" - - This command creates an availability set named AvailablitySet03 in the resource group named ResourceGroup11. - - - - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - Remove-AzureRmAvailabilitySet - - - - - - - - New-AzureRmVM - - Creates a virtual machine. - - - - - New - AzureRmVM - - - - The New-AzureRmVM cmdlet creates a virtual machine in Azure. This cmdlet takes a virtual machine object as input. Use the New-AzureRmVMConfig cmdlet to create a virtual machine object. Configure the virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. - - - - New-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Location - - Specifies a location for the virtual machine. - - String - - - VM - - Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. - - PSVirtualMachine - - - Tags - - - - Hashtable[] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Location - - Specifies a location for the virtual machine. - - String - - String - - - none - - - VM - - Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Tags - - - - Hashtable[] - - Hashtable[] - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Name - - Specifies a name for the virtual machine. - - string - - string - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Create a virtual machine -------------------------- - - PS C:\> - - PS C:\># Variables -## Global -$ResourceGroupName = "ResourceGroup11" -$Location = "westeurope" - -## Storage -$StorageName = "GeneralStorage6cc" -$StorageType = "Standard_GRS" - -## Network -$InterfaceName = "ServerInterface06" -$Subnet1Name = "Subnet1" -$VNetName = "VNet09" -$VNetAddressPrefix = "10.0.0.0/16" -$VNetSubnetAddressPrefix = "10.0.0.0/24" - -## Compute -$VMName = "VirtualMachine12" -$ComputerName = "Server22" -$VMSize = "Standard_A2" -$OSDiskName = $VMName + "osDisk" - -# Resource Group -New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location - -# Storage -$StorageAccount = New-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageName -Type $StorageType -Location $Location - -# Network -$PIp = New-AzureRmPublicIpAddress -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -AllocationMethod Dynamic -$SubnetConfig = New-AzureRmVirtualNetworkSubnetConfig -Name $Subnet1Name -AddressPrefix $VNetSubnetAddressPrefix -$VNet = New-AzureRmVirtualNetwork -Name $VNetName -ResourceGroupName $ResourceGroupName -Location $Location -AddressPrefix $VNetAddressPrefix -Subnet $SubnetConfig -$Interface = New-AzureRmNetworkInterface -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -SubnetId $VNet.Subnets[0].Id -PublicIpAddressId $PIp.Id - -# Compute - -## Setup local VM object -$Credential = Get-Credential -$VirtualMachine = New-AzureRmVMConfig -VMName $VMName -VMSize $VMSize -$VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -ProvisionVMAgent -EnableAutoUpdate -$VirtualMachine = Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest" -$VirtualMachine = Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id $Interface.Id -$OSDiskUri = $StorageAccount.PrimaryEndpoints.Blob.ToString() + "vhds/" + $OSDiskName + ".vhd" -$VirtualMachine = Set-AzureRmVMOSDisk -VM $VirtualMachine -Name $OSDiskName -VhdUri $OSDiskUri -CreateOption FromImage - -## Create the VM in Azure -New-AzureRmVM -ResourceGroupName $ResourceGroupName -Location $Location -VM $VirtualMachine - - This example script shows how to create a virtual machine. This script uses several other cmdlets. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - Add-AzureRmVMDataDisk - - - - Add-AzureRmVMNetworkInterface - - - - New-AzureRmVMConfig - - - - Set-AzureRmVMOperatingSystem - - - - Set-AzureRmVMSourceImage - - - - Set-AzureRmVMOSDisk - - - - - - - - New-AzureRmVMConfig - - Creates a configurable virtual machine object. - - - - - New - AzureRmVMConfig - - - - The New-AzureRmVMConfig cmdlet creates a configurable local virtual machine object for Azure. Configure a virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. - - - - New-AzureRmVMConfig - - VMName - - Specifies a name for the virtual machine. - - String - - - VMSize - - Specifies the size for the virtual machine. - - String - - - AvailabilitySetId - - Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VMName - - Specifies a name for the virtual machine. - - String - - String - - - none - - - VMSize - - Specifies the size for the virtual machine. - - String - - String - - - none - - - AvailabilitySetId - - Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Create a virtual machine object -------------------------- - - PS C:\> - - PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - - - - - - - - - - - - - - - - Update-AzureRmVM - - - - Set-AzureRmVMOperatingSystem - - - - Set-AzureRmVMSourceImage - - - - Get-AzureRmAvailabilitySet - - - - - - - - New-AzureVMSqlServerAutoBackupConfig - - - - - - - New - AzureVMSqlServerAutoBackupConfig - - - - - - - - New-AzureVMSqlServerAutoBackupConfig - - ResourceGroupName - - - - String - - - Enable - - - - SwitchParameter - - - RetentionPeriodInDays - - - - Int32 - - - EnableEncryption - - - - SwitchParameter - - - CertificatePassword - - - - SecureString - - - StorageUri - - - - Uri - - - StorageKey - - - - SecureString - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - New-AzureVMSqlServerAutoBackupConfig - - ResourceGroupName - - - - String - - - Enable - - - - SwitchParameter - - - RetentionPeriodInDays - - - - Int32 - - - EnableEncryption - - - - SwitchParameter - - - CertificatePassword - - - - SecureString - - - StorageContext - - - - AzureStorageContext - - - StorageUri - - - - Uri - - - StorageKey - - - - SecureString - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - Enable - - - - SwitchParameter - - SwitchParameter - - - - - - RetentionPeriodInDays - - - - Int32 - - Int32 - - - - - - EnableEncryption - - - - SwitchParameter - - SwitchParameter - - - - - - CertificatePassword - - - - SecureString - - SecureString - - - - - - StorageUri - - - - Uri - - Uri - - - - - - StorageKey - - - - SecureString - - SecureString - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - StorageContext - - - - AzureStorageContext - - AzureStorageContext - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - New-AzureVMSqlServerAutoPatchingConfig - - - - - - - New - AzureVMSqlServerAutoPatchingConfig - - - - - - - - New-AzureVMSqlServerAutoPatchingConfig - - Enable - - - - SwitchParameter - - - DayOfWeek - - - - String - - - MaintenanceWindowStartingHour - - - - Int32 - - - MaintenanceWindowDuration - - - - Int32 - - - PatchCategory - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Enable - - - - SwitchParameter - - SwitchParameter - - - - - - DayOfWeek - - - - String - - String - - - - - - MaintenanceWindowStartingHour - - - - Int32 - - Int32 - - - - - - MaintenanceWindowDuration - - - - Int32 - - Int32 - - - - - - PatchCategory - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Publish-AzureRmVMDscConfiguration - - Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. - - - - - Publish - AzureRmVMDscConfiguration - - - - Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. - - - - Publish-AzureRmVMDscConfiguration - - ResourceGroupName - - The name of the resource group that contains the storage account - - String - - - ConfigurationPath - - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). - - String - - - ContainerName - - Name of the Azure Storage Container the configuration is uploaded to. - - String - - - StorageAccountName - - The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName - - String - - - StorageEndpointSuffix - - Suffix for the storage end point, e.g. core.windows.net - - String - - - Force - - By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. - - SwitchParameter - - - SkipDependencyDetection - - Excludes DSC resource dependencies from the configuration archive. - - SwitchParameter - - - ConfigurationDataPath - - Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet - - String - - - AdditionalPath - - Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration - - String[] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - SwitchParameter - - - Confirm - - Prompts you for confirmation before executing the command. - - SwitchParameter - - - - Publish-AzureRmVMDscConfiguration - - ConfigurationPath - - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). - - String - - - OutputArchivePath - - Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. - - String - - - Force - - By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. - - SwitchParameter - - - SkipDependencyDetection - - Excludes DSC resource dependencies from the configuration archive. - - SwitchParameter - - - ConfigurationDataPath - - Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet - - String - - - AdditionalPath - - Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration - - String[] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - SwitchParameter - - - Confirm - - Prompts you for confirmation before executing the command. - - SwitchParameter - - - - - - ResourceGroupName - - The name of the resource group that contains the storage account - - String - - String - - - - - - ConfigurationPath - - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). - - String - - String - - - - - - ContainerName - - Name of the Azure Storage Container the configuration is uploaded to. - - String - - String - - - - - - StorageAccountName - - The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName - - String - - String - - - - - - StorageEndpointSuffix - - Suffix for the storage end point, e.g. core.windows.net - - String - - String - - - - - - Force - - By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. - - SwitchParameter - - SwitchParameter - - - - - - SkipDependencyDetection - - Excludes DSC resource dependencies from the configuration archive. - - SwitchParameter - - SwitchParameter - - - - - - ConfigurationDataPath - - Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet - - String - - String - - - - - - AdditionalPath - - Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration - - String[] - - String[] - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - Prompts you for confirmation before executing the command. - - SwitchParameter - - SwitchParameter - - - - - - OutputArchivePath - - Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- EXAMPLE 1 -------------------------- - - PS C:\> - - Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 - - Description - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - PS C:\> - - Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 -OutputArchivePath .\MyConfiguration.ps1.zip - - Description - - - - - - - - - - - - - - -------------------------- EXAMPLE 3 -------------------------- - - PS C:\> - - Publish-AzureRmVMDscConfiguration -ConfigurationPath 'C:\Sample.ps1 -SkipDependencyDetection - - Description - - - - - - - - - - - - - - -------------------------- EXAMPLE 4 -------------------------- - - PS C:\> - - Publish-AzureRmVMDscConfiguration -ConfigurationPath C:\Sample.ps1 -ConfigurationDataPath 'C:\SampleData.psd1' - - Description - - - - - - - - - - - - - - -------------------------- EXAMPLE 5 -------------------------- - - PS C:\> - - Publish-AzureRmVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPath @("C:\ContentDir1", "C:\File.txt") -ConfigurationDataPath "C:\SampleData.psd1" - - Description - - - - - - - - - - - - - - - - Unknown - - - - - - - - Remove-AzureRmAvailabilitySet - - Removes an availability set from Azure. - - - - - Remove - AzureRmAvailabilitySet - - - - The Remove-AzureRmAvailabilitySet cmdlet removes an availability set from Azure. - - - - Remove-AzureRmAvailabilitySet - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the availability set to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Name - - Specifies the name of the availability set to remove. - - String - - String - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Remove an availability set -------------------------- - - PS C:\> - - PS C:\>Remove-AzureRmAvailabilitySet -Name "AvailabilitySet03" -ResourceGroupName "ResourceGroup11" - - This command removes an availability set named AvailablitySet03 in the resource group named ResourceGroup11. - - - - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - New-AzureRmAvailabilitySet - - - - - - - - Remove-AzureRmVM - - Removes a virtual machine from Azure. - - - - - Remove - AzureRmVM - - - - The Remove-AzureRmVM cmdlet removes a virtual machine from Azure. - - - - Remove-AzureRmVM - - Name - - Specifies the name of the virtual machine to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Remove-AzureRmVM - - Name - - Specifies the name of the virtual machine to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - Id - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Name - - Specifies the name of the virtual machine to remove. - - String - - String - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Remove a virtual machine -------------------------- - - PS C:\> - - PS C:\>Remove-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - This command removes the virtual machine named VirtualMachine07 in the resource group ResourceGroup11. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - - - Remove-AzureRmVMAccessExtension - - Removes the VMAccess extension from a virtual machine. - - - - - Remove - AzureRmVMAccessExtension - - - - The Remove-AzureRmVMAccessExtension cmdlet removes the Virtual Machine Access (VMAccess) Virtual Machine Extension from a virtual machine. - - - - Remove-AzureRmVMAccessExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension that this cmdlet removes. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. - - String - - String - - - none - - - Name - - Specifies the name of the extension that this cmdlet removes. - - String - - String - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- 1: -------------------------- - - PS C:\> - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMAccessExtension - - - - Set-AzureRmVMAccessExtension - - - - Remove-AzureRmVMExtension - - - - - - - - Remove-AzureRmVMBackup - - Remove-AzureRmVMBackup cmdlet remove the VM Backup for the VM. - - - - - Remove - AzureRmVMBackup - - - - - - - - Remove-AzureRmVMBackup - - ResourceGroupName - - Resource group name of the virtual machine - - String - - - VMName - - Name of the virtual machine - - String - - - Tag - - The tag for the VM Backup. This is used for identify the backups. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Resource group name of the virtual machine - - String - - String - - - - - - VMName - - Name of the virtual machine - - String - - String - - - - - - Tag - - The tag for the VM Backup. This is used for identify the backups. - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Remove-AzureRmVMCustomScriptExtension - - Removes a custom script extension from a virtual machine. - - - - - Remove - AzureRmVMCustomScriptExtension - - - - The Remove-AzureRmVMCustomScriptExtension cmdlet removes a custom script Virtual Machine Extension from a virtual machine. - - - - Remove-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. - - String - - - Name - - Specifies the name of the custom script extension that this cmdlet removes. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. - - String - - String - - - none - - - Name - - Specifies the name of the custom script extension that this cmdlet removes. - - String - - String - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- 1: -------------------------- - - PS C:\> - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMCustomScriptExtension - - - - Set-AzureRmVMCustomScriptExtension - - - - - - - - Remove-AzureRmVMDataDisk - - Removes a data disk from a virtual machine. - - - - - Remove - AzureRmVMDataDisk - - - - The Remove-AzureRmVMDataDisk cmdlet removes a data disk from a virtual machine. - - - - Remove-AzureRmVMDataDisk - - VM - - Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - DataDiskNames - - - - String[] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - DataDiskNames - - - - String[] - - String[] - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Name - - Specifies the name of the data disk to add. - - string - - string - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Remove a data disk from a virtual machine -------------------------- - - PS C:\> - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> Remove-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk3" -PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. - - - - - - - - - - - - - - - - Add-AzureRmVMDataDisk - - - - Get-AzureRmVM - - - - - - - - Remove-AzureRmVMDiagnosticsExtension - - - - - - - Remove - AzureRmVMDiagnosticsExtension - - - - - - - - Remove-AzureRmVMDiagnosticsExtension - - ResourceGroupName - - - - String - - - VMName - - - - String - - - Name - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - VMName - - - - String - - String - - - - - - Name - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Remove-AzureRmVMDiskEncryptionExtension - - Remove-AzureRmVMDiskEncryptionExtension cmdlet deletes disk encryption extension from the VM. If no extension name is specified, this cmdlet removes extension with default name 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. - - - - - Remove - AzureRmVMDiskEncryptionExtension - - - - - - - - Remove-AzureRmVMDiskEncryptionExtension - - ResourceGroupName - - Resource group name of the virtual machine - - String - - - VMName - - Name of the virtual machine - - String - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDiskEncryptionExtension cmdlet sets this name to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. Which is the same as the default value used by Remove-AzureRmVMAzureDiskEncryptionExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template - - String - - - Force - - Force switch removes the extension without prompting for a confirmation - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Resource group name of the virtual machine - - String - - String - - - - - - VMName - - Name of the virtual machine - - String - - String - - - - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDiskEncryptionExtension cmdlet sets this name to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. Which is the same as the default value used by Remove-AzureRmVMAzureDiskEncryptionExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template - - String - - String - - - - - - Force - - Force switch removes the extension without prompting for a confirmation - - SwitchParameter - - SwitchParameter - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $rgName = 'MyResourceGroup'; -$vmName = 'MyWindowsVM'; -Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName; - - - - - - - - - - - - - - - - -------------------------- Example 2 -------------------------- - - PS C:\> - - $rgName = 'MyResourceGroup'; -$vmName = 'MyWindowsVM'; -$extensionNmae = 'MyDiskEncryptionExtension' -Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -Name $extensionNmae; - - - - - - - - - - - - - - - - - - - - - - Remove-AzureRmVMDscExtension - - Removes DSC extension handler from a VM in a resource group - - - - - Remove - AzureRmVMDscExtension - - - - Removes DSC extension handler from a VM in a resource group - - - - Remove-AzureRmVMDscExtension - - ResourceGroupName - - The name of the resource group - - String - - - VMName - - The name of the virtual machine - - String - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - ResourceGroupName - - The name of the resource group - - String - - String - - - - - - VMName - - The name of the virtual machine - - String - - String - - - - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - PS C:\> Remove-AzureRmVMDscExtension –ResouceGroupName Name -VMName VM -Name DSC - - Description - - - - - - - - - - - - - - - - - - - - Remove-AzureRmVMExtension - - Removes an extension from a virtual machine. - - - - - Remove - AzureRmVMExtension - - - - The Remove-AzureRmVMExtension cmdlet removes an extension from the Virtual Machine Extensions of a virtual machine. - - - - Remove-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. - - String - - String - - - none - - - Name - - Specifies the name of the extension to remove. - - String - - String - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Remove an extension from a virtual machine -------------------------- - - PS C:\> - - PS C:\>Remove-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Name "ContosoTest" -VMName "VirtualMachine22" - - This command removes the extension named ContosoTest from the virtual machine named VirtualMachine22 in ResourceGroup11. - - - - - - - - - - - - - - - - Get-AzureRmVMExtension - - - - Set-AzureRmVMExtension - - - - - - - - Remove-AzureRmVMNetworkInterface - - Removes a network interface from a virtual machine. - - - - - Remove - AzureRmVMNetworkInterface - - - - The Remove-AzureRmVMNetworkInterface cmdlet removes a network interface from a virtual machine. - - - - Remove-AzureRmVMNetworkInterface - - VM - - Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - NetworkInterfaceIDs - - - - String[] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - NetworkInterfaceIDs - - - - String[] - - String[] - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - Specifies the ID of the network interface that this cmdlet removes from the virtual machine. - - string - - string - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- 1: -------------------------- - - PS C:\> - - - - - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - - - - - Remove-AzureRmVMSqlServerExtension - - - - - - - Remove - AzureRmVMSqlServerExtension - - - - - - - - Remove-AzureRmVMSqlServerExtension - - ResourceGroupName - - - - String - - - VMName - - - - String - - - Name - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - VMName - - - - String - - String - - - - - - Name - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Restart-AzureRmVM - - Restarts an Azure virtual machine. - - - - - Restart - AzureRmVM - - - - The Restart-AzureRmVM cmdlet restarts an Azure virtual machine. - - - - Restart-AzureRmVM - - Name - - Specifies the name of the virtual machine to restart. - - String - - - ResourceGroupName - - Specifies the name of the resource group. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Restart-AzureRmVM - - Name - - Specifies the name of the virtual machine to restart. - - String - - - Id - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Name - - Specifies the name of the virtual machine to restart. - - String - - String - - - none - - - ResourceGroupName - - Specifies the name of the resource group. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Restart a virtual machine -------------------------- - - PS C:\> - - PS C:\>Restart-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - This command restarts the virtual machine named VirtualMachine07 in ResourceGroup11. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - - - Save-AzureRmVhd - - - - - - - Save - AzureRmVhd - - - - - - - - Save-AzureRmVhd - - ResourceGroupName - - - - String - - - SourceUri - - - - Uri - - - LocalFilePath - - - - FileInfo - - - NumberOfThreads - - - - Int32 - - - OverWrite - - - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Save-AzureRmVhd - - StorageKey - - - - String - - - SourceUri - - - - Uri - - - LocalFilePath - - - - FileInfo - - - NumberOfThreads - - - - Int32 - - - OverWrite - - - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - SourceUri - - - - Uri - - Uri - - - - - - LocalFilePath - - - - FileInfo - - FileInfo - - - - - - NumberOfThreads - - - - Int32 - - Int32 - - - - - - OverWrite - - - - SwitchParameter - - SwitchParameter - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - StorageKey - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Save-AzureRmVMImage - - Captures a virtual machine as a VMImage. - - - - - Save - AzureRmVMImage - - - - The Save-AzureRmVMImage cmdlet captures a virtual machine as a VMImage. Before you create a virtual machine image, sysprep the virtual machine, and then mark it as generalized by using the Set-AzureRmVM cmdlet. - The output of this cmdlet is a JavaScript Object Notation (JSON) template. You can deploy virtual machines from your captured image. - - - - Save-AzureRmVMImage - - Name - - - - String - - - DestinationContainerName - - Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. - - String - - - VHDNamePrefix - - Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. - - String - - - Overwrite - - Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. - - SwitchParameter - - - Path - - - - String - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Save-AzureRmVMImage - - Name - - - - String - - - DestinationContainerName - - Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. - - String - - - VHDNamePrefix - - Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. - - String - - - Overwrite - - Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. - - SwitchParameter - - - Path - - - - String - - - Id - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Name - - - - String - - String - - - - - - DestinationContainerName - - Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. - - String - - String - - - none - - - VHDNamePrefix - - Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. - - String - - String - - - none - - - Overwrite - - Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. - - SwitchParameter - - SwitchParameter - - - none - - - Path - - - - String - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - VMName - - Specifies the name of the virtual machine that this cmdlet saves. - - string - - string - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Capture a virtual machine -------------------------- - - PS C:\> - - PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized -PS C:\> Save-AzureRmVMImage -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -DestinationContainerName "VMContainer01" -VHDNamePrefix "VM07" - - The first marks the virtual machine named VirtualMachine07 as generalized. - - - - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageSku - - - - Set-AzureRmVM - - - - - - - - Set-AzureRmVM - - Marks a virtual machine as generalized. - - - - - Set - AzureRmVM - - - - The Set-AzureRmVM cmdlet marks a virtual machine as generalized. Before you run this cmdlet, log on to the virtual machine and use Sysprep to prepare the hard disk. - - - - Set-AzureRmVM - - Name - - Specifies the name of the virtual machine on which this cmdlet operates. - - String - - - Generalized - - Indicates that this cmdlet marks a virtual machine as generalized. - - SwitchParameter - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVM - - Name - - Specifies the name of the virtual machine on which this cmdlet operates. - - String - - - Generalized - - Indicates that this cmdlet marks a virtual machine as generalized. - - SwitchParameter - - - Id - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Name - - Specifies the name of the virtual machine on which this cmdlet operates. - - String - - String - - - none - - - Generalized - - Indicates that this cmdlet marks a virtual machine as generalized. - - SwitchParameter - - SwitchParameter - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Mark a virtual machine as generalized -------------------------- - - PS C:\> - - PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized - - This command marks the virtual machine named VirtualMachine07 as generalized. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - - - - - Set-AzureRmVMAccessExtension - - Adds the VMAccess extension to a virtual machine. - - - - - Set - AzureRmVMAccessExtension - - - - The Set-AzureRmVMAccessExtension cmdlet adds the Virtual Machine Access (VMAccess) Virtual Machine Extension to a virtual machine. VMAccess can reset the virtual machine user name and password. - - - - Set-AzureRmVMAccessExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension that this cmdlet adds. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - - UserName - - Specifies the new user name for the virtual machine. - - String - - - Password - - Specifies the new password of the virtual machine. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. - - String - - String - - - none - - - Name - - Specifies the name of the extension that this cmdlet adds. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - String - - - none - - - UserName - - Specifies the new user name for the virtual machine. - - String - - String - - - none - - - Password - - Specifies the new password of the virtual machine. - - String - - String - - - none - - - Location - - Specifies the location of the virtual machine. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Add a VMAccess extension -------------------------- - - PS C:\> - - PS C:\> Set-AzureRmVMAccessExtension -ResourceGroupName "ResrouceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "ContosoTest" -TypeHandlerVersion "2.0" -UserName "PFuller" -Password "Password" - - This command adds a VMAccess extension for the virtual machine named VirtualMachine07 in ResrouceGroup11. The command specifies the name and type handler version for VMAccess. - - - - - - - - - - - - - - - - Get-AzureRmVMAccessExtension - - - - Remove-AzureRmVMAccessExtension - - - - Set-AzureRmVMExtension - - - - Get-AzureRmVMExtensionImage - - - - - - - - Set-AzureRmVMBackupExtension - - Set-AzureRmVMBackupExtension cmdlet create a backup for this VM. - - - - - Set - AzureRmVMBackupExtension - - - - - - - - Set-AzureRmVMBackupExtension - - ResourceGroupName - - Resource group name of the virtual machine - - String - - - VMName - - Name of the virtual machine - - String - - - Name - - Name of the ARM resource that represents the extension. This is 'VMBackupForLinuxExtension' for Linux VMs. - - String - - - Tag - - The tag for the VM Backup. This is used for identify the backups. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Resource group name of the virtual machine - - String - - String - - - - - - VMName - - Name of the virtual machine - - String - - String - - - - - - Name - - Name of the ARM resource that represents the extension. This is 'VMBackupForLinuxExtension' for Linux VMs. - - String - - String - - - - - - Tag - - The tag for the VM Backup. This is used for identify the backups. - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set-AzureRmVMBootDiagnostics - - - - - - - Set - AzureRmVMBootDiagnostics - - - - - - - - Set-AzureRmVMBootDiagnostics - - VM - - - - PSVirtualMachine - - - Enable - - - - SwitchParameter - - - ResourceGroupName - - - - String - - - StorageAccountName - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMBootDiagnostics - - VM - - - - PSVirtualMachine - - - Disable - - - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - - - PSVirtualMachine - - PSVirtualMachine - - - - - - Enable - - - - SwitchParameter - - SwitchParameter - - - - - - ResourceGroupName - - - - String - - String - - - - - - StorageAccountName - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Disable - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set-AzureRmVMChefExtension + + + + + + Add-AzureRmVMAdditionalUnattendContent + + Adds information to the unattended Windows Setup answer file. + + + + + Add + AzureVMAdditionalUnattendContent + + - Adds the Chef extension to the virtual machine. + The Add-AzureRmVMAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file. Specify additional base 64 encoded XML formatted information that this cmdlet adds to the unattend.xml file. - - - - Set - AzureRmVMChefExtension - - - - The Set-AzureVMChefExtension cmdlet adds the Chef extension to the virtual machine. - - - - Set-AzureRmVMChefExtension - - ResourceGroupName + + + Add-AzureRmVMAdditionalUnattendContent + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + Content + + Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. + + String + + + SettingName + + Specifies the name of the setting to which the content applies. Valid values are: + +-- FirstLogonCommands +-- AutoLogon + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Content - Specifies the name of the resource group of the virtual machine. + Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. - String + String + + String + + + none - - VMName -<<<<<<< HEAD -======= + + Profile - The virtual machine name + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - string + AzureProfile - - + none - - Name + + SettingName - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + Specifies the name of the setting to which the content applies. Valid values are: + +-- FirstLogonCommands +-- AutoLogon - String + String String - - + none - - Status + + VM - Output shows status when the switch is present + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - SwitchParameter + PSVirtualMachine - SwitchParameter + PSVirtualMachine - - + none - - - + + + + + - @@ -11841,529 +126,237 @@ PS C:\> Save-AzureRmVMImage -ResourceGroupName "ResourceGroup11" -V - Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext - - + + + + + + + - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Add content to unattend.xml - C:\PS> - - -Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' - - Description - ----------- - Retrieves the settings of extension (Name - 'DSC') on virtual machine 'VM'. Specify Name parameter only when you changed its default value 'Microsoft.Powershell.DSC' to something else ('DSC' in this case) either through Set-AzureRmVMDscExtension cmdlet or an ARM template. - - - - - - + + PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> $Credential = Get-Credential +PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential +PS C:\> $AucContent = "<UserAccounts><AdministratorPassword><Value>" + "Password" + "</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>"; +PS C:\> $VirtualMachine = Add-AzureRmVMAdditionalUnattendContent -VM $VirtualMachine -Content $AucContent -SettingName "AutoLogon" + + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. + The third command creates a credential object by using the Get-Credential cmdlet, and then stores the result in the $Credential variable. The command prompts you for a user name and password. For more information, type Get-Help Get-Credential. + The fourth command uses the Set-AzureRmVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine. + The fifth command assigns content to the $AucContent variable. The content includes a password. + The final command adds the content stored in $AucContent to the unattend.xml file. + + - - + - - - + Get-AzureRmAvailabilitySet + + + + Set-AzureRmVMOperatingSystem + + + + New-AzureRmVMConfig + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + - - Set-AzureRmVMDSCExtension - + Add-AzureRmVMDataDisk - Configure the Windows PowerShell Desired State Configuration extension on a VM. + Adds a data disk to a virtual machine. - - + - Set - AzureVMDscExtension - - + Add + AzureVMDataDisk + - Configure the Windows PowerShell Desired State Configuration extension on a VM in a resource group + The Add-AzureRmVMDataDisk cmdlet adds a data disk to a virtual machine. You can add a data disk when you create a virtual machine, or you can add a data disk to an existing virtual machine. - - Set-AzureRmVMDSCExtension - - ArchiveBlobName - - The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration - - string - - - ResourceGroupName - - The name of the resource group that contains the virtual machine - - string - - - VMName - - Name of the virtual machine where dsc extension handler would be installed - - string - - - ArchiveStorageAccountName + Add-AzureRmVMDataDisk + + VM - The Azure Storage Account name used to download the ArchiveBlobName + Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - string + PSVirtualMachine - - Version + + Name - The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N + Specifies the name of the data disk to add. - string + String - - ConfigurationArgument + + VhdUri - A hashtable specifying the arguments to the ConfigurationFunction + Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. - hashtable + String - - ConfigurationData + + Caching - Path to a .psd1 file that specifies the data for the Configuration + Specifies the caching mode of the disk. Valid values are: + +-- ReadOnly +-- ReadWrite + +The default value is ReadWrite. Changing this value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. - string + + ReadOnly + ReadWrite + - - ConfigurationName + + DiskSizeInGB - Name of the configuration that will be invoked by the DSC Extension + Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. - string + Int32] - - ArchiveResourceGroupName + + Lun - The name of the resource group that contains the storage account containing the configuration archive.This param is optional if storage account and virtual machine both exists in the same resource group name, specified by ResourceGroupName param + Specifies the logical unit number (LUN) for a data disk. - string + Int32] - - ArchiveContainerName + + CreateOption - Name of the Azure Storage Container where the configuration archive is located + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + +-- Attach +-- Empty +-- FromImage - string + + empty + attach + fromImage + - - DataCollection + + SourceImageUri - Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + Specifies the source URI of the disk that this cmdlet attaches. - string + System.String - - Force + + Profile - By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - - Location - - Location of the resource - - string - - - Name - - Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' - - string - - - ArchiveStorageEndpointSuffix - - The Storage Endpoint Suffix - - string - - - AutoUpdate - - We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. - - - - Confirm - - Prompts you for confirmation before executing the command. - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - - - WmfVersion - - - Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". - A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. - A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" - - - string + AzureProfile - - - ArchiveBlobName ->>>>>>> Initial DataCollection Change - - Specifies the name of a virtual machine. - - String - - - Name - - Specifies the name of the chef extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - ValidationPem - - Specifies the Chef validator .pem file path - - String - - - ClientRb - - Specifies the full path of the Chef client.rb. - - String[] - - - AutoUpdateChefClient - - Specifies if the chef extension should be updated to the latest extension version. - - String - - - BootstrapOptions - - It overrides the configuration set in client_rb option. for e.g. node_name option i.e. if you set node_name as "foo" in the client_rb and in bootstrap_option you set chef_node_name as "bar" it will take "bar" as node name instead of "foo". - - String - - - ChefServerUrl - - Chef server URL - - String - - - DeleteChefConfig - - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - - String - - - OrganizationName - - Specifies the organization name of the Chef extension. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - RunList - - Specifies the Chef node run list. - - - - - ValidationClientName - - - - String - - - Windows - - Indicates that this cmdlet creates a Windows virtual machine. - - - - - Set-AzureRmVMChefExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName + + Caching - Specifies the name of a virtual machine. - - String - - - Name - - Specifies the name of the chef extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - ValidationPem - - Specifies the Chef validator .pem file path - - String - - - ClientRb - - Specifies the full path of the Chef client.rb. - - String[] - - - AutoUpdateChefClient - - Specifies if the chef extension should be updated to the latest extension version. - - String - - - BootstrapOptions - - It overrides the configuration set in client_rb option. for e.g. node_name option i.e. if you set node_name as "foo" in the client_rb and in bootstrap_option you set chef_node_name as "bar" it will take "bar" as node name instead of "foo". - - String - - - ChefServerUrl - - Chef server URL - - String - - - DeleteChefConfig - - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - - String - - - OrganizationName - - Specifies the organization name of the Chef extension. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - RunList - - Specifies the Chef node run list. - - - - - ValidationClientName - - + Specifies the caching mode of the disk. Valid values are: + +-- ReadOnly +-- ReadWrite + +The default value is ReadWrite. Changing this value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. String + + String + + + none - - Linux - - Indicates that this cmdlet creates a Linux virtual machine. - - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. - - String - - String - - - none - - - Name - - Specifies the name of the chef extension. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - String - - - none - - - AutoUpdateChefClient + + CreateOption + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + +-- Attach +-- Empty +-- FromImage - SwitchParameter + System.String - SwitchParameter + System.String none - - BootstrapOptions + + DiskSizeInGB + Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. - String + Int32] - String + Int32] none - - ChefServerUrl + + Lun + Specifies the logical unit number (LUN) for a data disk. - String + Int32] - String + Int32] none - - ClientRb + + Name - Specifies the full path of the Chef client.rb. + Specifies the name of the data disk to add. String @@ -12372,34 +365,34 @@ Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' none - - DeleteChefConfig + + Profile - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile none - - Linux + + SourceImageUri - Indicates that this cmdlet creates a Linux based virtual machine. + Specifies the source URI of the disk that this cmdlet attaches. - SwitchParameter + System.String - SwitchParameter + System.String none - - OrganizationName + + VhdUri - Specifies the organization name of the Chef extension. + Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. String @@ -12408,35 +401,182 @@ Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' none - - RunList + + VM - Specifies the Chef node run list. + Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - String + PSVirtualMachine - String + PSVirtualMachine none - - ValidationClientName + + + + + + + + + + + + - String + + + + - String - + + + + + + + - none - - - ValidationPem - Specifies the Chef validator .pem file path + + + + + + + + + + Example 1: Add data disks to a new virtual machine + + + + + PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" +PS C:\> $DataDiskVhdUri01 = "https://contoso.blob.core.windows.net/test/data1.vhd" +PS C:\> $DataDiskVhdUri02 = "https://contoso.blob.core.windows.net/test/data2.vhd" +PS C:\> $DataDiskVhdUri03 = "https://contoso.blob.core.windows.net/test/data3.vhd" +PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri1 -CreateOption Empty +PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $DataDiskVhdUri2 -CreateOption Empty +PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $DataDiskVhdUri3 -CreateOption Empty + + + + The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. + The next three commands assign paths of three data disks to the $DataDiskVhdUri01, $DataDiskVhdUri02, and $DataDiskVhdUri03 variables. This approach is only for readability of the following commands. + The final three commands each adds a data disk to the virtual machine stored in $VirtualMachine. The command specifies the name and location for the disk, and other properties of the disk. The URI of each disk is stored in $DataDiskVhdUri01, $DataDiskVhdUri02, and $DataDiskVhdUri03. + + + + + + + + + + + Example 2: Add a data disk to an existing virtual machine + + + + + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty +PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine + + + + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. + The second command adds a data disk to the virtual machine stored in $VirtualMachine. + The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11. + + + + + + + + + + + + + Remove-AzureRmVMDataDisk + + + + Get-AzureRmVM + + + + New-AzureRmVMConfig + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Add-AzureRmVMNetworkInterface + + Adds a network interface to a virtual machine. + + + + + Add + AzureVMNetworkInterface + + + + The Add-AzureRmVMNetworkInterface cmdlet adds a network interface to a virtual machine. You can add an interface when you create a virtual machine or add one to an existing virtual machine. + + + + Add-AzureRmVMNetworkInterface + + VM + + Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Id + + Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. + + String + + + Primary + + Indicates that this cmdlet adds the network interface as the primary interface. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Id + + Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. String @@ -12445,32 +585,44 @@ Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' none - - Windows + + Primary - Indicates that this cmdlet creates a Windows virtual machine. + Indicates that this cmdlet adds the network interface as the primary interface. - SwitchParameter + SwitchParameter SwitchParameter none - - Location + + Profile - Specifies the location of the VM. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile + + + none + + + VM + + Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine none - - + + @@ -12487,7 +639,7 @@ Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' - + @@ -12503,70 +655,22 @@ Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -----Example 1: Add a Chef extension to a Windows virtual machine----- - - - - - PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -RunList "Apache" -Windows; - - - This command adds a Chef extension to a Windows virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. - - - - - - - - - - - - - - -----Example 2: Add a Chef extension to a Linux virtual machine----- - - - - - PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -RunList "Apache" -Linux; - - - This command adds a Chef extension to a Linux virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. - - - - - - - - - - - - - - Example 3: Add a Chef extension to a Windows virtual machine with bootstrap options + + + + + + Example 1: Add a network interface to a new virtual machine - PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -BootstrapOptions '{"chef_node_name":"your_node_name","chef_server_url":"https://api.opscode.com/organizations/some-org", "validation_client_name":"some-org-validator"}' -RunList "Apache" -Windows; + PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" +PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" - This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and runs Apache on it. After bootstrapping, the virtual machine refers to the BootstrapOptions specified in JSON format. + The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. + The second command adds a network interface to the virtual machine stored in $VirtualMachine. @@ -12577,15 +681,19 @@ Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' - Example 3: Add a Chef extension to a Windows virtual machine and install Apache and GIT + Example 2: Add a network interface to an existing virtual machine - PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -ValidationClientName "MyOrg-Validator" -RunList "apache, git" -Windows; + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" +PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name " VirtualMachine07" -VM $VirtualMachine - This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and have Apache and GIT installed. If you do not provide the client.rb, you need to provide the Chef server URL and validation client name. + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmldet. The command stores the virtual machine in the $VirtualMachine variable. + The second command adds a network interface to the virtual machine stored in $VirtualMachine. + The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11. @@ -12595,5371 +703,10365 @@ Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' - - - - Get-AzureRmVMChefExtension - - - - Remove-AzureRmVMChefExtension - - - - - - - - Set-AzureRmVMCustomScriptExtension - - Adds a custom script extension to a virtual machine. - - - - - Set - AzureRmVMCustomScriptExtension - - - - The Set-AzureRmVMCustomScriptExtension cmdlet adds a custom script Virtual Machine Extension to a virtual machine. This extension allows you to run your own scripts on the virtual machine. - - - - Set-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the custom script extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - - ContainerName - - Specifies the name of the Azure Storage container where this cmdlet stores the script. - - String - - - FileName - - Specifies the name of the script file. - - String[] - - - StorageAccountName - - Specifies the name of the Azure Storage account where this cmdlet stores the script. - - String - - - StorageEndpointSuffix - - Specifies the storage endpoint suffix. - - String - - - StorageAccountKey - - Specifies the key for the Azure Storage container. - - String - - - Run - - Specifies the command to use that runs your script. - - String - - - Argument - - Specifies arguments that the script extension passes to the script. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the custom script extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - - FileUri - - Specifies the URI of the script file. - - String[] - - - Run - - Specifies the command to use that runs your script. - - String - - - Argument - - Specifies arguments that the script extension passes to the script. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. - - String - - String - - - none - - - Name - - Specifies the name of the custom script extension. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - String - - - none - - - ContainerName - - Specifies the name of the Azure Storage container where this cmdlet stores the script. - - String - - String - - - none - - - FileName - - Specifies the name of the script file. - - String[] - - String[] - - - none - - - StorageAccountName - - Specifies the name of the Azure Storage account where this cmdlet stores the script. - - String - - String - - - none - - - StorageEndpointSuffix - - Specifies the storage endpoint suffix. - - String - - String - - - none - - - StorageAccountKey - - Specifies the key for the Azure Storage container. - - String - - String - - - none - - - Run - - Specifies the command to use that runs your script. - - String - - String - - - none - - - Argument - - Specifies arguments that the script extension passes to the script. - - String - - String - - - none - - - Location - - Specifies the location of the virtual machine. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - FileUri - - Specifies the URI of the script file. - - String[] - - String[] - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Add a custom script -------------------------- - - PS C:\> - - PS C:\>Set-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "contosotest" -TypeHandlerVersion "1.1" -StorageAccountName "contoso" -StorageAccountKey <StorageKey> -FileName "contososcript.exe" -ContainerName "scripts" - - This command adds a custom script to the virtual machine named VirtualMachine07. The script file is contososcript.exe. - - - - - - - - - - - - - - - - Get-AzureRmVMCustomScriptExtension - - - - Remove-AzureRmVMCustomScriptExtension - - - - - - - - Set-AzureRmVMDataDisk - - - - - - - Set - AzureRmVMDataDisk - - - - - - - - Set-AzureRmVMDataDisk - - VM - - - - PSVirtualMachine - - - Name - - - - String - - - Caching - - - - String - - - DiskSizeInGB - - - - Nullable`1[Int32] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMDataDisk - - VM - - - - PSVirtualMachine - - - Lun - - - - Nullable`1[Int32] - - - Caching - - - - String - - - DiskSizeInGB - - - - Nullable`1[Int32] - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - - - PSVirtualMachine - - PSVirtualMachine - - - - - - Name - - - - String - - String - - - - - - Caching - - - - String - - String - - - - - - DiskSizeInGB - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Lun - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set-AzureRmVMDiagnosticsExtension - - - - - - - Set - AzureRmVMDiagnosticsExtension - - - - - - - - Set-AzureRmVMDiagnosticsExtension - - ResourceGroupName - - - - String - - - VMName - - - - String - - - DiagnosticsConfigurationPath - - - - String - - - StorageContext - - - - AzureStorageContext - - - Location - - - - String - - - Name - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - VMName - - - - String - - String - - - - - - DiagnosticsConfigurationPath - - - - String - - String - - - - - - StorageContext - - - - AzureStorageContext - - AzureStorageContext - - - - - - Location - - - - String - - String - - - - - - Name - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set-AzureRmVMDiskEncryptionExtension - - Set-AzureRmVMDiskEncryptionExtension cmdlet enables encryption on a running IaaS VM in Azure. This cmdlet prepares the VM to enable encryption, which may need rebooting the VM when done for the first time. This cmdlet installs an extension on the VM to enable encryption. If no Name parameter is specified, an extension with default name 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs is created. Please save your work on the VM before running this cmdlet and wait for it to be done. - - - - - Set - AzureRmVMDiskEncryptionExtension - - - - - - - - Set-AzureRmVMDiskEncryptionExtension - - ResourceGroupName - - Resource group name of the virtual machine - - String - - - VMName - - Name of the virtual machine - - String - - - AadClientID - - Client ID of the Azure Active Directory application that has permissions to write secrets to KeyVault - - String - - - AadClientSecret - - Client secret of the Azure Active Directory application that has permissions to write secrets to KeyVault - - String - - - DiskEncryptionKeyVaultUrl - - KeyVault URL to which the VM encryption keys should be uploaded to. - - String - - - DiskEncryptionKeyVaultId - - Resource ID of the KeyVault to which the VM encryption keys should be uploaded to. - - String - - - KeyEncryptionKeyUrl - - URL of the key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. - - String - - - KeyEncryptionKeyVaultId - - Resource ID of the KeyVault containing key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. - - String - - - KeyEncryptionAlgorithm - - Algorithm used to wrap and unwrap the VM encryption key with key encryption key. Default value is RSA-OAEP if not specified. - - String - - - VolumeType - - Type of VM volumes to perform the encryption operation. For Windows VMs allowed values are All, OS and Data . For Linux VMs allowed value is Data only. Default for Windows VMs is All if not specified. - - String - - - SequenceVersion - - Sequence number of the encryption operations on a given VM. This should be unique per each encryption operation performed on the same VM. See examples on how to retrieve the previous sequence number supplied. - - String - - - TypeHandlerVersion - - Version of the encryption extension. By default the latest version of the extension is used if not provided. - - String - - - Name - - Name of the ARM resource that represents the extension. This is defaulted to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. - - String - - - Passphrase - - Passphrase specified in the powershell. This parameter only works for Linux VM. - - String - - - Force - - Force switch performs the encryption operation without prompting for a confirmation - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMDiskEncryptionExtension - - ResourceGroupName - - Resource group name of the virtual machine - - String - - - VMName - - Name of the virtual machine - - String - - - AadClientID - - Client ID of the Azure Active Directory application that has permissions to write secrets to KeyVault - - String - - - AadClientCertThumbprint - - Thumbprint of the Azure Active Directory application client certificate that has permissions to write secrets to KeyVault. The certificate must be previously deployed on to the VM local machine My certificate store. - - String - - - DiskEncryptionKeyVaultUrl - - KeyVault URL to which the VM encryption keys should be uploaded to. - - String - - - DiskEncryptionKeyVaultId - - Resource ID of the KeyVault to which the VM encryption keys should be uploaded to. - - String - - - KeyEncryptionKeyUrl - - URL of the key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. - - String - - - KeyEncryptionKeyVaultId - - Resource ID of the KeyVault containing key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. - - String - - - KeyEncryptionAlgorithm - - Algorithm used to wrap and unwrap the VM encryption key with key encryption key. Default value is RSA-OAEP if not specified. - - String - - - VolumeType - - Type of VM volumes to perform the encryption operation. For Windows VMs allowed values are All, OS and Data . For Linux VMs allowed value is Data only. Default for Windows VMs is All if not specified. - - String - - - SequenceVersion - - Sequence number of the encryption operations on a given VM. This should be unique per each encryption operation performed on the same VM. See examples on how to retrieve the previous sequence number supplied. - - String - - - TypeHandlerVersion - - Version of the encryption extension. By default the latest version of the extension is used if not provided. - - String - - - Name - - Name of the ARM resource that represents the extension. This is defaulted to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. - - String - - - Passphrase - - Passphrase specified in the powershell. This parameter only works for Linux VM. - - String - - - Force - - Force switch performs the encryption operation without prompting for a confirmation - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Resource group name of the virtual machine - - String - - String - - - - - - VMName - - Name of the virtual machine - - String - - String - - - - - - AadClientID - - Client ID of the Azure Active Directory application that has permissions to write secrets to KeyVault - - String - - String - - - - - - AadClientSecret - - Client secret of the Azure Active Directory application that has permissions to write secrets to KeyVault - - String - - String - - - - - - DiskEncryptionKeyVaultUrl - - KeyVault URL to which the VM encryption keys should be uploaded to. - - String - - String - - - - - - DiskEncryptionKeyVaultId - - Resource ID of the KeyVault to which the VM encryption keys should be uploaded to. - - String - - String - - - - - - KeyEncryptionKeyUrl - - URL of the key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. - - String - - String - - - - - - KeyEncryptionKeyVaultId - - Resource ID of the KeyVault containing key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. - - String - - String - - - - - - KeyEncryptionAlgorithm - - Algorithm used to wrap and unwrap the VM encryption key with key encryption key. Default value is RSA-OAEP if not specified. - - String - - String - - - - - - VolumeType - - Type of VM volumes to perform the encryption operation. For Windows VMs allowed values are All, OS and Data . For Linux VMs allowed value is Data only. Default for Windows VMs is All if not specified. - - String - - String - - - - - - SequenceVersion - - Sequence number of the encryption operations on a given VM. This should be unique per each encryption operation performed on the same VM. See examples on how to retrieve the previous sequence number supplied. - - String - - String - - - - - - TypeHandlerVersion - - Version of the encryption extension. By default the latest version of the extension is used if not provided. - - String - - String - - - - - - Name - - Name of the ARM resource that represents the extension. This is defaulted to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. - - String - - String - - - - - - Passphrase - - Passphrase specified in the powershell. This parameter only works for Linux VM. - - String - - String - - - - - - Force - - Force switch performs the encryption operation without prompting for a confirmation - - SwitchParameter - - SwitchParameter - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - AadClientCertThumbprint - - Thumbprint of the Azure Active Directory application client certificate that has permissions to write secrets to KeyVault. The certificate must be previously deployed on to the VM local machine My certificate store. - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Enabling encryption using AAD Client ID, Client Secret -------------------------- - - PS C:\> - - $rgName = 'MyResourceGroup'; -$vmName = 'MyWindowsVM'; - -$aadClientID = "<clientID of your AAD app>"; -$aadClientSecret = "<clientSecret of your AAD app>"; - -$vaultName= 'MyKeyVault'; -$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; -$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; -$keyVaultResourceId = $keyVault.ResourceId; - -Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientSecret $aadClientSecret -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId ; - - - - - - - - - - - - - - - - -------------------------- Enabling encryption using AAD Client ID, client cert thumbprint -------------------------- - - PS C:\> - - $rgName = 'MyResourceGroup'; -$vmName = 'MyWindowsVM'; - -#The KeyVault must have enabledForDiskEncryption property set on it -$vaultName= 'MyKeyVault'; -$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; -$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; -$keyVaultResourceId = $keyVault.ResourceId; - -# create AAD application and associate the certificate -$certPath = 'C:\certificates\examplecert.pfx'; -$certPassword = 'yourPassword'; -$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath, $certPassword); -$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData()); -$azureAdApplication = New-AzureRmADApplication -DisplayName "<Your Application Display Name>" -HomePage "<https://YourApplicationHomePage>" -IdentifierUris "<https://YouApplicationUri>" -KeyValue $keyValue -KeyType AsymmetricX509Cert ; -$servicePrincipal = New-AzureRmADServicePrincipal –ApplicationId $azureAdApplication.ApplicationId; - -$aadClientID = $azureAdApplication.ApplicationId; -$aadClientCertThumbprint= $cert.Thumbprint; - -#Upload pfx to KeyVault -$keyVaultSecretName = 'myaadcert'; -$fileContentBytes = get-content $certPath -Encoding Byte; -$fileContentEncoded = [System.Convert]::ToBase64String($fileContentBytes); -$jsonObject = @" { "data": "$filecontentencoded", "dataType" :"pfx", "password": "$certPassword" } "@ ; -$jsonObjectBytes = [System.Text.Encoding]::UTF8.GetBytes($jsonObject); -$jsonEncoded = [System.Convert]::ToBase64String($jsonObjectBytes); - -$secret = ConvertTo-SecureString -String $jsonEncoded -AsPlainText -Force; -Set-AzureKeyVaultSecret -VaultName $vaultName-Name $keyVaultSecretName -SecretValue $secret; -Set-AzureRmKeyVaultAccessPolicy -VaultName $vaultName -ResourceGroupName $rgName –EnabledForDeployment; - -#deploy cert to VM -$certUrl = (Get-AzureKeyVaultSecret -VaultName $vaultName -Name $keyVaultSecretName).Id -$sourceVaultId = (Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgName).ResourceId -$vm = Get-AzureRmVM -ResourceGroupName $rgName -Name $vmName -$vm = Add-AzureRmVMSecret -VM $vm -SourceVaultId $sourceVaultId -CertificateStore "My" -CertificateUrl $certUrl -Update-AzureRmVM -VM $vm -ResourceGroupName $rgName - -#Enable encryption on the VM using AAD client ID and client cert thumbprint -Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientCertThumbprint $aadClientCertThumbprint -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId ; - - - - - - - - - - - - - - - - -------------------------- Enable encryption using AAD ClientID, Client Secret and wrap diskEncryptionKey with KeyEncryptionKey -------------------------- - - PS C:\> - - $rgName = 'MyResourceGroup'; -$vmName = 'MyWindowsVM'; - -$aadClientID = "<clientID of your AAD app>"; -$aadClientSecret = "<clientSecret of your AAD app>"; - -$vaultName= 'MyKeyVault'; -$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; -$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; -$keyVaultResourceId = $keyVault.ResourceId; - -$kek = Add-AzureKeyVaultKey -VaultName $vaultName -Name $kekName -Destination "Software" -$keyEncryptionKeyUrl = $kek.Key.kid; - -Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientSecret $aadClientSecret -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId -KeyEncryptionKeyUrl $keyEncryptionKeyUrl -KeyEncryptionKeyVaultId $keyVaultResourceId; - - - - - - - - - - - - - - - - -------------------------- Enable encryption using AAD Client ID , Client cert Thumbprint and wrap diskEncryptionKey with KeyEncryptionKey -------------------------- - - PS C:\> - - $rgName = 'MyResourceGroup'; -$vmName = 'MyWindowsVM'; - -#The KeyVault must have enabledForDiskEncryption property set on it -$vaultName= 'MyKeyVault'; -$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; -$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; -$keyVaultResourceId = $keyVault.ResourceId; - -$kek = Add-AzureKeyVaultKey -VaultName $vaultName -Name $kekName -Destination "Software" -$keyEncryptionKeyUrl = $kek.Key.kid; - -# create AAD application and associate the certificate -$certPath = 'C:\certificates\examplecert.pfx'; -$certPassword = 'yourPassword'; -$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath, $certPassword); -$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData()); -$azureAdApplication = New-AzureRmADApplication -DisplayName "<Your Application Display Name>" -HomePage "<https://YourApplicationHomePage>" -IdentifierUris "<https://YouApplicationUri>" -KeyValue $keyValue -KeyType AsymmetricX509Cert ; -$servicePrincipal = New-AzureRmADServicePrincipal –ApplicationId $azureAdApplication.ApplicationId; - -$aadClientID = $azureAdApplication.ApplicationId; -$aadClientCertThumbprint= $cert.Thumbprint; - -#Upload pfx to KeyVault -$keyVaultSecretName = 'myaadcert'; -$fileContentBytes = get-content $certPath -Encoding Byte; -$fileContentEncoded = [System.Convert]::ToBase64String($fileContentBytes); -$jsonObject = @" { "data": "$filecontentencoded", "dataType" :"pfx", "password": "$certPassword" } "@ ; -$jsonObjectBytes = [System.Text.Encoding]::UTF8.GetBytes($jsonObject); -$jsonEncoded = [System.Convert]::ToBase64String($jsonObjectBytes); - -$secret = ConvertTo-SecureString -String $jsonEncoded -AsPlainText -Force; -Set-AzureKeyVaultSecret -VaultName $vaultName-Name $keyVaultSecretName -SecretValue $secret; -Set-AzureRmKeyVaultAccessPolicy -VaultName $vaultName -ResourceGroupName $rgName –EnabledForDeployment; - -#deploy cert to VM -$certUrl = (Get-AzureKeyVaultSecret -VaultName $vaultName -Name $keyVaultSecretName).Id -$sourceVaultId = (Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgName).ResourceId -$vm = Get-AzureRmVM -ResourceGroupName $rgName -Name $vmName -$vm = Add-AzureRmVMSecret -VM $vm -SourceVaultId $sourceVaultId -CertificateStore "My" -CertificateUrl $certUrl -Update-AzureRmVM -VM $vm -ResourceGroupName $rgName - -#Enable encryption on the VM using AAD client ID and client cert thumbprint -Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientCertThumbprint $aadClientCertThumbprint -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId ; - - - - - - - - - - - - - - - - - - - - - - Set-AzureRmVMDscExtension - - Configure the Windows PowerShell Desired State Configuration extension on a VM. - - - - - Set - AzureRmVMDscExtension - - - - Configure the Windows PowerShell Desired State Configuration extension on a VM in a resource group - - - - Set-AzureRmVMDscExtension - - ResourceGroupName - - The name of the resource group that contains the virtual machine - - String - - - VMName - - Name of the virtual machine where dsc extension handler would be installed - - String - - - Name - - Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' - - String - - - ArchiveBlobName - - The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration - - String - - - ArchiveStorageAccountName - - The Azure Storage Account name used to download the ArchiveBlobName - - String - - - ArchiveResourceGroupName - - The name of the resource group that contains the storage account containing the configuration archive. This param is optional if storage account and virtual machine both exists in the same resource group name,specified by ResourceGroupName param. - - String - - - ArchiveStorageEndpointSuffix - - The Storage Endpoint Suffix - - String - - - ArchiveContainerName - - Name of the Azure Storage Container where the configuration archive is located - - String - - - ConfigurationName - - Name of the configuration that will be invoked by the DSC Extension - - String - - - ConfigurationArgument - - A hashtable specifying the arguments to the ConfigurationFunction - - Hashtable - - - ConfigurationData - - Path to a .psd1 file that specifies the data for the Configuration - - String - - - Version - - The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N - - String - - - Force - - By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them - - SwitchParameter - - - Location - - Location of the resource - - String - - - AutoUpdate - - We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. - - SwitchParameter - - - WmfVersion - - - Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". - A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. - A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - SwitchParameter - - - Confirm - - Prompts you for confirmation before executing the command. - - SwitchParameter - - - - - - ResourceGroupName - - The name of the resource group that contains the virtual machine - - String - - String - - - - - - VMName - - Name of the virtual machine where dsc extension handler would be installed - - String - - String - - - - - - Name - - Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' - - String - - String - - - - - - ArchiveBlobName - - The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration - - String - - String - - - - - - ArchiveStorageAccountName - - The Azure Storage Account name used to download the ArchiveBlobName - - String - - String - - - - - - ArchiveResourceGroupName - - The name of the resource group that contains the storage account containing the configuration archive. This param is optional if storage account and virtual machine both exists in the same resource group name,specified by ResourceGroupName param. - - String - - String - - - - - - ArchiveStorageEndpointSuffix - - The Storage Endpoint Suffix - - String - - String - - - - - - ArchiveContainerName - - Name of the Azure Storage Container where the configuration archive is located - - String - - String - - - - - - ConfigurationName - - Name of the configuration that will be invoked by the DSC Extension - - String - - String - - - - - - ConfigurationArgument - - A hashtable specifying the arguments to the ConfigurationFunction - - Hashtable - - Hashtable - - - - - - ConfigurationData - - Path to a .psd1 file that specifies the data for the Configuration - - String - - String - - - - - - Version - - The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N - - String - - String - - - - - - Force - - By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them - - SwitchParameter - - SwitchParameter - - - - - - Location - - Location of the resource - - String - - String - - - - - - AutoUpdate - - We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. - - SwitchParameter - - SwitchParameter - - - - - - WmfVersion - - - Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". - A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. - A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" - - String - - String - - - latest - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - Prompts you for confirmation before executing the command. - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- EXAMPLE 1 -------------------------- - - PS C:\> - - Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -Version 1.10 -Location 'West US' - - Description - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - PS C:\> - - Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' - - Description - - - - - - - - - - - - - - -------------------------- EXAMPLE 3 -------------------------- - - PS C:\> - - Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' -AutoUpdate - - Description - - - - - - - - - - - - - - - - Unknown - - - - - - - - Set-AzureRmVMExtension - - Updates extension properties or adds an extension to a virtual machine. - - - - - Set - AzureRmVMExtension - - - - The Set-AzureRmVMExtension cmdlet updates properties for existing Virtual Machine Extensions or adds an extension to a virtual machine. - - - - Set-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of an extension. - - String - - - Publisher - - Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. - - String - - - ExtensionType - - Specifies the extension type. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - Settings - - Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. - - Hashtable - - - ProtectedSettings - - Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. - - Hashtable - - - Location - - Specifies the location of the virtual machine. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of an extension. - - String - - - Publisher - - Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. - - String - - - ExtensionType - - Specifies the extension type. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - SettingString - - Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. - - String - - - ProtectedSettingString - - Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. - - String - - String - - - none - - - Name - - Specifies the name of an extension. - - String - - String - - - none - - - Publisher - - Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. - - String - - String - - - none - - - ExtensionType - - Specifies the extension type. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - String - - - none - - - Settings - - Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. - - Hashtable - - Hashtable - - - none - - - ProtectedSettings - - Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. - - Hashtable - - Hashtable - - - none - - - Location - - Specifies the location of the virtual machine. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - SettingString - - Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. - - String - - String - - - none - - - ProtectedSettingString - - Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Modify settings by using hash tables -------------------------- - - PS C:\> - - PS C:\>$Settings = @{"fileUris" = "[]"; "commandToExecute" = ""}; -PS C:\> $ProtectedSettings = @{"storageAccountName" = $stoname; "storageAccountKey" = $stokey}; -PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "ContosoTest" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -Settings $Settings -ProtectedSettings $ProtectedSettings; - - The first two commands use standard Windows PowerShell® syntax to create hash tables, and then stores those hash tables in the $Settings and $ProtectedSettings variables. For more information, type Get-Help about_Hash_Tables. The second command includes two values previously created and stored in variables. - - - - - - - - - - - - - - -------------------------- Example 2: Modify settings by using strings -------------------------- - - PS C:\> - - PS C:\>$SettingsString = '{"fileUris":[],"commandToExecute":""}'; -PS C:\> $ProtectedSettingsString = '{"storageAccountName":"' + $stoname + '","storageAccountKey":"' + $stokey + '"}'; -PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -SettingString $SettingsString -ProtectedSettingString $ProtectedSettingsString ; - - The first two commands create strings that contain settings, and then stores them in the $SettingsString and $ProtectedSettingsString variables. - - - - - - - - - - - - - - - - Get-AzureRmVMExtension - - - - Remove-AzureRmVMExtension - - - - - - - - Set-AzureRmVMOperatingSystem - - Sets operating system properties for a virtual machine. - - - - - Set - AzureRmVMOperatingSystem - - - - The Set-AzureRmVMOperatingSystem cmdlet sets operating system properties for a virtual machine. You can specify logon credentials computer name, and operating system type. - - - - Set-AzureRmVMOperatingSystem - - VM - - Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - Windows - - Indicates that the type of operating system is Windows. - - SwitchParameter - - - ComputerName - - Specifies the name of the computer. - - String - - - Credential - - Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. - - PSCredential - - - CustomData - - Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. - - String - - - ProvisionVMAgent - - Indicates that the settings require that the virtual machine agent be installed on the virtual machine. - - SwitchParameter - - - EnableAutoUpdate - - Indicates that this cmdlet enables auto update. - - SwitchParameter - - - TimeZone - - Specifies the time zone for the virtual machine. - - String - - - WinRMHttp - - Indicates that this operating system uses HTTP WinRM. - - SwitchParameter - - - WinRMHttps - - Indicates that this operating system uses HTTPS WinRM. - - SwitchParameter - - - WinRMCertificateUrl - - Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. - - Uri - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMOperatingSystem - - VM - - Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - Linux - - Indicates that the type of operating system is Linux. - - SwitchParameter - - - ComputerName - - Specifies the name of the computer. - - String - - - Credential - - Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. - - PSCredential - - - CustomData - - Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. - - String - - - DisablePasswordAuthentication - - Indicates that this cmdlet disables password authentication. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Windows - - Indicates that the type of operating system is Windows. - - SwitchParameter - - SwitchParameter - - - none - - - ComputerName - - Specifies the name of the computer. - - String - - String - - - none - - - Credential - - Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. - - PSCredential - - PSCredential - - - none - - - CustomData - - Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. - - String - - String - - - none - - - ProvisionVMAgent - - Indicates that the settings require that the virtual machine agent be installed on the virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - EnableAutoUpdate - - Indicates that this cmdlet enables auto update. - - SwitchParameter - - SwitchParameter - - - none - - - TimeZone - - Specifies the time zone for the virtual machine. - - String - - String - - - none - - - WinRMHttp - - Indicates that this operating system uses HTTP WinRM. - - SwitchParameter - - SwitchParameter - - - none - - - WinRMHttps - - Indicates that this operating system uses HTTPS WinRM. - - SwitchParameter - - SwitchParameter - - - none - - - WinRMCertificateUrl - - Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. - - Uri - - Uri - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Linux - - Indicates that the type of operating system is Linux. - - SwitchParameter - - SwitchParameter - - - none - - - DisablePasswordAuthentication - - Indicates that this cmdlet disables password authentication. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Set operating system properties for a new virtual machines -------------------------- - - PS C:\> - - PS C:\>$SecurePassword = ConvertTo-SecureString "password" -AsPlainText -Force -PS C:\> $Credential = New-Object System.Management.Automation.PSCredential ("FullerP", $SecurePassword); -PS C:\> $AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> $ComputerName = "ContosoVM122" -PS C:\> $WinRMCertUrl = "http://keyVaultName.vault.azure.net/secrets/secretName/secretVersion" -PS C:\> $TimeZone = "Pacific Standard Time" -PS C:\> $CustomData = "echo 'Hello World'" -PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $$VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -CustomData $CustomData -WinRMHttp -WinRMHttps -WinRMCertificateUrl $WinRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $TimeZone - - The first command converts a password to a secure string, and then stores it in the $SecurePassword variable. For more information, type Get-Help ConvertTo-SecureString. - - - The fourth command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVMConfig - - - - - - - - Set-AzureRmVMOSDisk - - Sets the operating system disk properties on a virtual machine. - - - - - Set - AzureRmVMOSDisk - - - - The Set-AzureRmVMOSDisk cmdlet set the operating system disk properties on a virtual machine. - - - - Set-AzureRmVMOSDisk - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the operating system disk. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - - SourceImageUri - - This setting affects the consistency and performance of the disk. - - String - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMOSDisk - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the operating system disk. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - - SourceImageUri - - This setting affects the consistency and performance of the disk. - - String - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - String - - - Windows - - Indicates that the operating system on the user image is Windows. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMOSDisk - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the operating system disk. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - - SourceImageUri - - This setting affects the consistency and performance of the disk. - - String - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - String - - - Windows - - Indicates that the operating system on the user image is Windows. - - SwitchParameter - - - DiskEncryptionKeyUrl - - - - String - - - DiskEncryptionKeyVaultId - - - - String - - - KeyEncryptionKeyUrl - - - - String - - - KeyEncryptionKeyVaultId - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMOSDisk - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the operating system disk. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - - SourceImageUri - - This setting affects the consistency and performance of the disk. - - String - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - String - - - Linux - - Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. - - SwitchParameter - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Set-AzureRmVMOSDisk - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the operating system disk. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - - SourceImageUri - - This setting affects the consistency and performance of the disk. - - String - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - String - - - Linux - - Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. - - SwitchParameter - - - DiskEncryptionKeyUrl - - - - String - - - DiskEncryptionKeyVaultId - - - - String - - - KeyEncryptionKeyUrl - - - - String - - - KeyEncryptionKeyVaultId - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Name - - Specifies the name of the operating system disk. - - String - - String - - - none - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - String - - - none - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - -- ReadOnly --- ReadWrite - The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - String - - - none - - - SourceImageUri - - This setting affects the consistency and performance of the disk. - - String - - String - - - none - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - -- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Windows - - Indicates that the operating system on the user image is Windows. - - SwitchParameter - - SwitchParameter - - - none - - - DiskEncryptionKeyUrl - - - - String - - String - - - - - - DiskEncryptionKeyVaultId - - - - String - - String - - - - - - KeyEncryptionKeyUrl - - - - String - - String - - - - - - KeyEncryptionKeyVaultId - - - - String - - String - - - - - - Linux - - Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Sets properties on a virtual machine -------------------------- - - PS C:\> - - PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> Set-AzureRmVMOSDisk -VM $VirtualMachine -Name "OsDisk02" -VhdUri "os.vhd" -Caching ReadWrite - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - Get-AzureRmAvailabilitySet - - - - New-AzureRmVMConfig - - - - - - - - Set-AzureRmVMSourceImage - - Specifies the platform image for a virtual machine. - - - - - Set - AzureRmVMSourceImage - - - - The Set-AzureRmVMSourceImage cmdlet specifies the platform image to use for a virtual machine. - - - - Set-AzureRmVMSourceImage - - VM - - Specifies the local virtual machine object to configure. - - PSVirtualMachine - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - String - - - Skus - - Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. - - String - - - Version - - Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies the local virtual machine object to configure. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - String - - - none - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - String - - String - - - none - - - Skus - - Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. - - String - - String - - - none - - - Version - - Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Name - - Specifies the name of a source image. - - system.string - - system.string - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - microsoft.azure.common.authentication.models.azureprofile - - microsoft.azure.common.authentication.models.azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Set values for an image -------------------------- - - PS C:\> - - PS C:\>AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter" -Version "latest" - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - - - - - - - - - - - - - - -------------------------- Example 2: Use the image reference method to set values -------------------------- - - PS C:\> - - PS C:\>$Publisher = (Get-AzureRmVMImagePublisher -Location "Central US") | select -ExpandProperty PublisherName | where { $_ -like '*Microsoft*Windows*Server' } -PS C:\> $Offer = (Get-AzureRmVMImageOffer -Location "Central US" -PublisherName $Publisher[0]) | select -ExpandProperty Offer | where { $_ -like '*Windows*' } -PS C:\> $Sku = (Get-AzureRmVMImageSku -Location "Central US" -PublisherName $Publisher[0] -Offer $Offer[0]) | select -ExpandProperty Skus -PS C:\> $Versions = (Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0]) | select -ExpandProperty Version -PS C:\> $VMImage = Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0] -Version $Versions[0] -PS C:\> $VirtualMachine07 = Set-AzureRmVMSourceImage -VM $VirtualMachine07 -ImageReference $VMImage - - This example sets source image settings by using the image reference method. - - - - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - New-AzureRmVMConfig - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImageSku - - - - Get-AzureRmVMImage - - - - - - - - Set-AzureRmVMSqlServerExtension - - - - - - - Set - AzureRmVMSqlServerExtension - - - - - - - - Set-AzureRmVMSqlServerExtension - - Version - - - - String - - - ResourceGroupName - - - - String - - - VMName - - - - String - - - Name - - - - String - - - AutoPatchingSettings - - - - AutoPatchingSettings - - - AutoBackupSettings - - - - AutoBackupSettings - - - Location - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Version - - - - String - - String - - - - - - ResourceGroupName - - - - String - - String - - - - - - VMName - - - - String - - String - - - - - - Name - - - - String - - String - - - - - - AutoPatchingSettings - - - - AutoPatchingSettings - - AutoPatchingSettings - - - - - - AutoBackupSettings - - - - AutoBackupSettings - - AutoBackupSettings - - - - - - Location - - - - String - - String - - - - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Start-AzureRmVM - - Starts an Azure virtual machine. - - - - - Start - AzureRmVM - - - - The Start-AzureRmVM cmdlet starts an Azure virtual machine. - - - - Start-AzureRmVM - - Name - - Specifies the name of the virtual machine to start. - - String - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Start-AzureRmVM - - Name - - Specifies the name of the virtual machine to start. - - String - - - Id - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Name - - Specifies the name of the virtual machine to start. - - String - - String - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Start a virtual machine -------------------------- - - PS C:\> - - PS C:\>Start-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - This command starts the virtual machine named VirtualMachine07 in ResourceGroup11. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - - - Stop-AzureRmVM - - Stops an Azure virtual machine. - - - - - Stop - AzureRmVM - - - - The Stop-AzureRmVM cmdlet stops an Azure virtual machine. - - - - Stop-AzureRmVM - - Name - - Specifies the name of the virtual machine to stop. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - StayProvisioned - - Indicates that this cmdlet uses the stay provisioned setting. - - SwitchParameter - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Stop-AzureRmVM - - Name - - Specifies the name of the virtual machine to stop. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - - StayProvisioned - - Indicates that this cmdlet uses the stay provisioned setting. - - SwitchParameter - - - Id - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - Name - - Specifies the name of the virtual machine to stop. - - String - - String - - - none - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - StayProvisioned - - Indicates that this cmdlet uses the stay provisioned setting. - - SwitchParameter - - SwitchParameter - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - - - String - - String - - - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Stop a virtual machine -------------------------- - - PS C:\> - - PS C:\>Stop-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - This command stops the virtual machine named VirtualMachine07 in ResourceGroup11. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Update-AzureRmVM - - - - - - - - Update-AzureRmVM - - Updates the state of an Azure virtual machine. - - - - - Update - AzureRmVM - - - - The Update-AzureRmVM cmdlet updates the state of an Azure virtual machine to the state of a virtual machine object. - - - - Update-AzureRmVM - - VM - - Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. - - PSVirtualMachine - - - Tags - - - - Hashtable[] - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - Update-AzureRmVM - - VM - - Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. - - PSVirtualMachine - - - Tags - - - - Hashtable[] - - - Id - - - - String - - - InformationAction - - - - ActionPreference - - - InformationVariable - - - - String - - - - - - VM - - Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Tags - - - - Hashtable[] - - Hashtable[] - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - InformationAction - - - - ActionPreference - - ActionPreference - - - - - - InformationVariable - - - - String - - String - - - - - - Id - - - - String - - String - - - - - - Name - - Specifies the name of the virtual machine to update. - - string - - string - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - azureprofile - - azureprofile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1: Update a virtual machine -------------------------- - - PS C:\> - - PS C:\>Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine - - This command updates the virtual machine named VirtualMachine07 in ResourceGroup11. The command updates it by using another virtual machine object, stored in the $VirtualMachine variable. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - New-AzureRmVMConfig - - - - - - - - Get-AzureRmVMExtensionImageDetail - - This cmdlet has been deprecated. - - - - - - - - - - This Get-AzureRmVMExtensionImageDetail cmdlet has been deprecated. - - - - - - FilterExpression - - - - string - - string - - - none - - - Location - - - - string - - string - - - none - - - Profile - - - - azureprofile - - azureprofile - - - none - - - PublisherName - - - - string - - string - - - none - - - Type - - - - string - - string - - - none - - - Version - - - - string - - string - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- 1: -------------------------- - - PS C:\> - - PS C:\> - - - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMImageDetail - - This cmdlet has been deprecated. - - - - - - - - - - The Get-AzureRmVMImageDetail cmdlet has been deprecated. - - - - - - Location - - - - string - - string - - - none - - - Offer - - - - string - - string - - - none - - - Profile - - - - azureprofile - - azureprofile - - - none - - - PublisherName - - - - string - - string - - - none - - - Skus - - - - string - - string - - - none - - - Version - - - - string - - string - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- 1: -------------------------- - - PS C:\> - - PS C:\> - - - - - - - - - - - - - - - - - - + + + + New-AzureRmVMConfig + + + + Get-AzureRmVM + + + + Get-AzureRmAvailabilitySet + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Add-AzureRmVMSecret + + Adds a secret to a virtual machine. + + + + + Add + AzureVMSecret + + + + The Add-AzureRmVMSecret cmdlet adds a secret to a virtual machine. This value lets you add a certificate to the virtual machine. The secret needs to be stored in a Key Vault. For more information about Key Vault, see What is Azure Key Vault? (https://azure.microsoft.com/en-us/documentation/articles/key-vault-whatis/) in the Azure library. For more information about the cmdlets, see Azure Key Vault Cmdlets (https://msdn.microsoft.com/library/azure/dn868052.aspx) in the Microsoft Developer Network library or type Get-Help Set-AzureKeyVaultSecret. + + + + Add-AzureRmVMSecret + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + SourceVaultId + + Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. + + String + + + CertificateStore + + Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. + + String + + + CertificateUrl + + Specifies the URL that points to a Key Vault secret which contains a certificate. + The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. + { +"data": "<Base64-encoded-file>", +"dataType": "<file-format>", +"password": "<pfx-file-password>" +} + Currently, dataType accepts only .pfx files. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + CertificateStore + + Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. + + String + + String + + + none + + + CertificateUrl + + Specifies the URL that points to a Key Vault secret which contains a certificate. + The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. + { +"data": "<Base64-encoded-file>", +"dataType": "<file-format>", +"password": "<pfx-file-password>" +} + Currently, dataType accepts only .pfx files. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + SourceVaultId + + Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. + + String + + String + + + none + + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Add a secret to a virtual machine + + + + + PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> $Credential = Get-Credential +PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential +PS C:\> $SourceVaultId = "/subscriptions/46f8cea4-2de6-4179-8ab1-365da4211af4/resourceGroups/vault/providers/Microsoft.KeyVault/vaults/keyvault" +PS C:\> $CertificateStore01 = "My" +PS C:\> $CertificateUrl01 = "https://contosovault.vault.azure.net/secrets/514ceb769c984379a7e0230bdd703272" +PS C:\> $VirtualMachine = Add-AzureRmVMSecret -VM $VirtualMachine -SourceVaultId $SourceVaultId -CertificateStore $CertificateStore01 -CertificateUrl $CertificateUrl01 + + + + + The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. + The third command creates a credential object by using the Get-Credential cmdlet, and then stores the result in the $Credential variable. The command prompts you for a user name and password. For more information, type Get-Help Get-Credential. + The fourth command uses the Set-AzureRmVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine. + The fifth command assigns a source vault ID to the $SourceVaultId variable for later use. The command assumes that the $SubscriptionId variable has an appropriate value. + The sixth command assigns a value to the $CertificateStore01 variable for later use. + The seventh command assigns a URL for a certificate store. + The eighth command adds a secret to the virtual machine stored in $VirtualMachine. The SourceVaultId parameter specifies the Key Vault. The command specifies the name of the certificate store and the URL of the certificate. You can run the Add-AzureRmVMSecret repeatedly to add secrets for other certificates. + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Add-AzureRmVMSshPublicKey + + Adds the public keys for SSH for a virtual machine. + + + + + Add + AzureVMSshPublicKey + + + + The Add-AzureRmVMSshPublicKey cmdlet adds the public keys that you can use to connect to a virtual machine over Secure Shell (SSH). + + + + Add-AzureRmVMSshPublicKey + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + KeyData + + Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. + + String + + + Path + + Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + KeyData + + Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. + + String + + String + + + none + + + Path + + Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Add a public key to a virtual machine + + + + + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> $VirtualMachine = Add-AzureRmVMSshPublicKey -VM $VirtualMachine -KeyData "MIIDszCCApugAwIBAgIJALBV9YJCF/tAMA0GCSq12Ib3DQEB21QUAMEUxCzAJBgNV" -Path "/home/admin/.ssh/authorized_keys" + + + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. + The second command adds the public key to the location on VirtualMachine07 that the Path parameter specifies. + + + + + + + + + + + + + Get-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmAvailabilitySet + + Gets Azure availability sets in a resource group. + + + + + Get + AzureAvailabilitySet + + + + The Get-AzureRmAvailabilitySet cmdlet gets Azure availability sets in a resource group. Specify the name of a specific availability set to get. + + + + Get-AzureRmAvailabilitySet + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of an availability set to get. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Name + + Specifies the name of an availability set to get. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get a specific availability set + + + + + PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" + + + This command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11. + + + + + + + + + + + Example 2: Get all availability sets + + + + + PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" + + + This command gets all the availability sets in the resource group named ResourceGroup11. + + + + + + + + + + + + + New-AzureRmAvailabilitySet + + + + Remove-AzureRmAvailabilitySet + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmRemoteDesktopFile + + Gets an .rdp file. + + + + + Get + AzureRemoteDesktopFile + + + + The Get-AzureRmRemoteDesktopFile cmdlet gets a Remote Desktop Protocol (.rdp) file. + + + + Get-AzureRmRemoteDesktopFile + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the availability set that this cmdlet gets. + + String + + + LocalPath + + Specifies the local full path where this cmdlet stores the .rdp file. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + LocalPath + + Specifies the local full path where this cmdlet stores the .rdp file. + + String + + String + + + none + + + Name + + Specifies the name of the availability set that this cmdlet gets. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get a Remote Desktop file + + + + + PS C:\>Get-AzureRmRemoteDesktopFile -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -LocalPath "D:\RemoteDesktopFile07.rdp" + + + This command gets the Remote Desktop file for the virtual machine named VirtualMachine07. The command stores the result in the file named D:\RemoteDesktopFile07.rdp. + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMAccessExtension + + Gets information about the VMAccess extension. + + + + + Get + AzureVMAccessExtension + + + + The Get-AzureRmVMAccessExtension cmdlet gets information about the Virtual Machine Access (VMAccess) Virtual Machine Extension. + + + + Get-AzureRmVMAccessExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension that this cmdlet gets. + + String + + + Status + + Indicates that this cmdlet gets only the instance view of the extension. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Name + + Specifies the name of the extension that this cmdlet gets. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + Status + + Indicates that this cmdlet gets only the instance view of the extension. + + SwitchParameter + + SwitchParameter + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get the VMAccess extension + + + + + PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoTest" + + + This command gets the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. + + + + + + + + + + + Example 2: Get the instance view of the VMAccess extension + + + + + PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine0" -Name "ContosoTest" -Status + + + This command gets the instance view of the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. + + + + + + + + + + + + + Remove-AzureRmVMAccessExtension + + + + Set-AzureRmVMAccessExtension + + + + Get-AzureRmVMExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMCustomScriptExtension + + Gets information about a custom script extension. + + + + + Get + AzureVMCustomScriptExtension + + + + The Get-AzureRmVMCustomScriptExtension cmdlet gets information about a custom script Virtual Machine Extension on a virtual machine. + + + + Get-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. + + String + + + Name + + Specifies the name of the custom script extension about which this cmdlet gets information. + + String + + + Status + + Indicates that this cmdlet gets the instance view of the custom script extension. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Name + + Specifies the name of the custom script extension about which this cmdlet gets information. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + Status + + Indicates that this cmdlet gets the instance view of the custom script extension. + + SwitchParameter + + SwitchParameter + + + none + + + VMName + + Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get a custom script extension + + + + + PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" + + + This command gets the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. + + + + + + + + + + + Example 2: Get the instance view of a custom script extension + + + + + PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" -Status + + + This command gets the instance view of the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. + + + + + + + + + + + + + Get-AzureRmVMExtension + + + + Get-AzureRmVMExtensionImage + + + + Get-AzureRmVMAccessExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMExtensionImageDetail + + This cmdlet has been deprecated. + + + + + Get + AzureVMExtensionImageDetail + + + + This Get-AzureRmVMExtensionImageDetail cmdlet has been deprecated. + + + + Get-AzureRmVMExtensionImageDetail + + FilterExpression + + + String + + + Profile + + + AzureProfile + + + Version + + + String + + + Location + + + String + + + PublisherName + + + String + + + Type + + + String + + + + + + FilterExpression + + + String + + String + + + none + + + Location + + + String + + String + + + none + + + Profile + + + AzureProfile + + AzureProfile + + + none + + + PublisherName + + + String + + String + + + none + + + Type + + + String + + String + + + none + + + Version + + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1: + + + + + PS C:\> + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMExtensionImageType + + Gets the type of an Azure extension. + + + + + Get + AzureVMExtensionImageType + + + + The Get-AzureRmVMExtensionImageType cmdlet gets the type of an Azure extension. + + + + Get-AzureRmVMExtensionImageType + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Location + + Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. + + String + + + PublisherName + + Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. + + String + + + + + + Location + + Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + PublisherName + + Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get an extension image type + + + + + PS C:\>Get-AzureRmVMExtensionImageType -Location "Central US" -PublisherName "Fabrikam" + + + This command gets the extension image type for the specified publisher and location. + + + + + + + + + + + + + Get-AzureRmVMExtensionImage + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMExtensionImage + + Gets all versions for an Azure extension. + + + + + Get + AzureVMExtensionImage + + + + The Get-AzureRmVMExtensionImage cmdlet gets all versions for an Azure extension. + + + + Get-AzureRmVMExtensionImage + + FilterExpression + + Specifies a filter expression. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Version + + + + + System.String + + + Location + + Specifies the location of an extension. + + String + + + PublisherName + + Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + + Type + + Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. + + String + + + + + + FilterExpression + + Specifies a filter expression. + + String + + String + + + none + + + Location + + Specifies the location of an extension. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + PublisherName + + Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + String + + + none + + + Type + + Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. + + String + + String + + + none + + + Version + + + + + System.String + + System.String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get the versions of an extension image + + + + + PS C:\>Get-AzureRmVMExtensionImage -Location "Central US" -PublisherName "Fabrikam" -Type "FabrikamEndpointProtection" + + + This command gets all the versions of the extension image for the specified location, publisher, and type. + + + + + + + + + + + + + Get-AzureRmVMExtensionImageType + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMExtensionImageType + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMExtension + + Gets properties of Virtual Machine Extensions installed on a virtual machine. + + + + + Get + AzureVMExtension + + + + The Get-AzureRmVMExtension cmdlet gets properties of Virtual Machine Extensions installed on a virtual machine. Specify the name of an extension for which to get properties. To get only the instance view of an extension, specify the Status parameter. + + + + Get-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. + + String + + + Status + + Indicates that this cmdlet gets only the instance view of an extension. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Name + + Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Status + + Indicates that this cmdlet gets only the instance view of an extension. + + SwitchParameter + + SwitchParameter + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get properties of an extension + + + + + PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" + + + This command gets properties for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. + + + + + + + + + + + Example 2: Get instance view of an extension + + + + + PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Status + + + This command gets the instance view for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. + + + + + + + + + + + + + Remove-AzureRmVMExtension + + + + Set-AzureRmVMExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMImageDetail + + This cmdlet has been deprecated. + + + + + Get + AzureVMImageDetail + + + + The Get-AzureRmVMImageDetail cmdlet has been deprecated. + + + + Get-AzureRmVMImageDetail + + Profile + + + AzureProfile + + + Location + + + String + + + Offer + + + String + + + PublisherName + + + String + + + Skus + + + String + + + Version + + + String + + + + + + Location + + + String + + String + + + none + + + Offer + + + String + + String + + + none + + + Profile + + + AzureProfile + + AzureProfile + + + none + + + PublisherName + + + String + + String + + + none + + + Skus + + + String + + String + + + none + + + Version + + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1: + + + + + PS C:\> + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMImageOffer + + Gets VMImage offer types. + + + + + Get + AzureVMImageOffer + + + + The Get-AzureRmVMImageOffer cmdlet gets the VMImage offer types. + + + + Get-AzureRmVMImageOffer + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Location + + Specifies the location of the VMImage. + + String + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + + + + + Location + + Specifies the location of the VMImage. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get offer types for a publisher + + + + + PS C:\>Get-AzureRmVMImageOffer -Location "Central US" -PublisherName "Fabrikam" + + + This command gets the offer types for the specified publisher in the Central US region. + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageSku + + + + Save-AzureRmVMImage + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMImagePublisher + + Gets the VMImage publishers. + + + + + Get + AzureVMImagePublisher + + + + The Get-AzureRmVMImagePublisher cmdlet gets the VMImage publishers. + + + + Get-AzureRmVMImagePublisher + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Location + + Specifies the location of the VMImage. + + String + + + + + + Location + + Specifies the location of the VMImage. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get VMImage publishers for a region + + + + + PS C:\>Get-AzureRmVMImagePublisher -Location "Central US" + + + This command gets the publishers of VMImage instances for the Central US region within your profile. + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImageSku + + + + Save-AzureRmVMImage + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMImageSku + + Gets VMImage SKUs. + + + + + Get + AzureVMImageSku + + + + The Get-AzureRmVMImageSku cmdlet gets VMImage SKUs. + + + + Get-AzureRmVMImageSku + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Location + + Specifies the location of the VMImage. + + String + + + Offer + + Specifies the type of VMImage offer. + + String + + + PublisherName + + Specifies the publisher of a VMImage. + + String + + + + + + Location + + Specifies the location of the VMImage. + + String + + String + + + none + + + Offer + + Specifies the type of VMImage offer. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + PublisherName + + Specifies the publisher of a VMImage. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get SKUs + + + + + PS C:\>Get-AzureRmVMImageSku -Location "Central US" -PublisherName "Fabrikam" -Offer "LinuxServer" + + + This command gets the SKUs for the specified publisher and offer. + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImagePublisher + + + + Save-AzureRmVMImage + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMImage + + Gets all the versions of a VMImage. + + + + + Get + AzureVMImage + + + + The Get-AzureRmVMImage cmdlet gets all the versions of a VMImage. + + + + Get-AzureRmVMImage + + FilterExpression + + Specifies a filter expression. + + System.String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + Location + + Specifies the location of a VMImage. + + System.String + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + System.String + + + PublisherName + + Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + System.String + + + Skus + + Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. + + System.String + + + + Get-AzureRmVMImage + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + Location + + Specifies the location of a VMImage. + + System.String + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + System.String + + + PublisherName + + Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + System.String + + + Skus + + Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. + + System.String + + + Version + + + + + System.String + + + + + + FilterExpression + + Specifies a filter expression. + + System.String + + System.String + + + none + + + Location + + Specifies the location of a VMImage. + + System.String + + System.String + + + none + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + System.String + + System.String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + none + + + PublisherName + + Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + System.String + + System.String + + + none + + + Skus + + Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. + + System.String + + System.String + + + none + + + Version + + + + + System.String + + System.String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get VMImage objects + + + + + PS C:\>Get-AzureRmVMImage -Location "Central US" -PublisherName "Canonical" -Offer "UbuntuServer" -Skus "15.04-DAILY" + + + This command gets all the versions of VMImage that match the specified values. + + + + + + + + + + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageSku + + + + Save-AzureRmVMImage + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMSize + + Gets available virtual machine sizes. + + + + + Get + AzureVMSize + + + + The Get-AzureRmVMSize cmdlet gets available virtual machine sizes. + + + + Get-AzureRmVMSize + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + AvailabilitySetName + + Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Get-AzureRmVMSize + + Location + + Specifies the location for which this cmdlet gets the available virtual machine sizes. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Get-AzureRmVMSize + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + AvailabilitySetName + + Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. + + String + + String + + + none + + + Location + + Specifies the location for which this cmdlet gets the available virtual machine sizes. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get sizes for a location + + + + + PS C:\>Get-AzureRmVMSize -Location "Central US" + + + + This command gets the available sizes for virtual machines in the specified location. + + + + + + + + + + + Example 2: Get sizes for an availability set + + + + + PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -AvailabilitySetName "AvailabilitySet17" + + + + This command gets available sizes for virtual machines that you can deploy in the availability set named AvailabilitySet17. + + + + + + + + + + + Example 3: Get sizes for an existing virtual machine + + + + + PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -VMName "VirtualMachine12" + + + + This command gets available sizes for the existing virtual machine named VirtualMachine12. You can resize this virtual machine to the sizes that this command gets. + + + + + + + + + + + + + Get-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVMUsage + + Gets the virtual machine core count usage for a location. + + + + + Get + AzureVMUsage + + + + The Get-AzureRmVMUsage cmdlet gets the virtual machine core count usage for a location. + + + + Get-AzureRmVMUsage + + Location + + Specifies the location for which this cmdlet gets virtual machine core count usage. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Location + + Specifies the location for which this cmdlet gets virtual machine core count usage. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get core count usage for a location + + + + + PS C:\>Get-AzureRmVMUsage -Location "Central US" + + + This command gets the virtual machine core count usage for the location Central US. + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Get-AzureRmVM + + Gets the properties of a virtual machine. + + + + + Get + AzureVM + + + + The Get-AzureRmVM cmdlet gets the model view and instance view of an Azure virtual machine. The model view is the user specified properties of the virtual machine. The instance view is the instance level status of the virtual machine. To get only the instance view of a virtual machine, specify the Status parameter. + + + + Get-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + System.String + + + Name + + Specifies the name of the virtual machine to get. + + System.String + + + Status + + Indicates that this cmdlet gets only the instance view of the virtual machine. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + + Get-AzureRmVM + + NextLink + + Specifies the next link. + + System.Uri + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + + Get-AzureRmVM + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + + Get-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + System.String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + + + + Name + + Specifies the name of the virtual machine to get. + + System.String + + System.String + + + none + + + NextLink + + Specifies the next link. + + System.Uri + + System.Uri + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + System.String + + System.String + + + none + + + Status + + Indicates that this cmdlet gets only the instance view of the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get model and instance view properties + + + + + PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + + This command gets the model view and instance view properties of the virtual machine named VirtualMachine07. + + + + + + + + + + + Example 2: Get instance view properties + + + + + PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Status + + + This command gets properties of the virtual machine named VirtualMachine07. This command specifies the Status parameter. Therefore, the command gets only the instance view properties. + + + + + + + + + + + Example 3: Get properties for all virtual machines in a resource group + + + + + PS C:\> Get-AzureRmVM -ResourceGroupName "ResourceGroup11" + + + This command gets properties for all the virtual machines in the resource group named ResourceGroup11. + + + + + + + + + + + Example 4: Get all virtual machines in your subscription + + + + + PS C:\>Get-AzureRmVM + + + + This command gets all the virtual machines in your subscription. + + + + + + + + + + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + New-AzureRmAvailabilitySet + + Creates an Azure availability set. + + + + + New + AzureAvailabilitySet + + + + The New-AzureRmAvailabilitySet cmdlet creates an Azure availability set. + + + + New-AzureRmAvailabilitySet + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies a name for the availability set. + + String + + + Location + + Specifies the location for the availability set. + + String + + + PlatformUpdateDomainCount + + Specifies the platform update domain count. + + Nullable [System.Int32] + + + PlatformFaultDomainCount + + Specifies the platform fault domain count. + + Nullable [System.Int32] + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Location + + Specifies the location for the availability set. + + String + + String + + + none + + + Name + + Specifies a name for the availability set. + + String + + String + + + none + + + PlatformFaultDomainCount + + Specifies the platform fault domain count. + + Nullable [System.Int32] + + Nullable [System.Int32] + + + none + + + PlatformUpdateDomainCount + + Specifies the platform update domain count. + + Nullable [System.Int32] + + Nullable [System.Int32] + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Create an availability set + + + + + PS C:\>New-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -Location "West US" + + + This command creates an availability set named AvailablitySet03 in the resource group named ResourceGroup11. + + + + + + + + + + + + + Get-AzureRmAvailabilitySet + + + + Remove-AzureRmAvailabilitySet + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + New-AzureRmVMConfig + + Creates a configurable virtual machine object. + + + + + New + AzureVMConfig + + + + The New-AzureRmVMConfig cmdlet creates a configurable local virtual machine object for Azure. Configure a virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. + + + + New-AzureRmVMConfig + + VMName + + Specifies a name for the virtual machine. + + String + + + VMSize + + Specifies the size for the virtual machine. + + String + + + AvailabilitySetId + + Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + AvailabilitySetId + + Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VMName + + Specifies a name for the virtual machine. + + String + + String + + + none + + + VMSize + + Specifies the size for the virtual machine. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Create a virtual machine object + + + + + PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id + + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. + + + + + + + + + + + + + Update-AzureRmVM + + + + Set-AzureRmVMOperatingSystem + + + + Set-AzureRmVMSourceImage + + + + Get-AzureRmAvailabilitySet + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + New-AzureRmVM + + Creates a virtual machine. + + + + + New + AzureVM + + + + The New-AzureRmVM cmdlet creates a virtual machine in Azure. This cmdlet takes a virtual machine object as input. Use the New-AzureRmVMConfig cmdlet to create a virtual machine object. Configure the virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. + + + + New-AzureRmVM + + Name + + Specifies a name for the virtual machine. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Tags + + + + + System.Collections.Hashtable[] + + + Location + + Specifies a location for the virtual machine. + + String + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VM + + Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. + + PSVirtualMachine + + + + + + Location + + Specifies a location for the virtual machine. + + String + + String + + + none + + + Name + + Specifies a name for the virtual machine. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Tags + + + + + System.Collections.Hashtable[] + + System.Collections.Hashtable[] + + + none + + + VM + + Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Create a virtual machine + + + + + PS C:\># Variables +## Global +$ResourceGroupName = "ResourceGroup11" +$Location = "westeurope" + +## Storage +$StorageName = "GeneralStorage6cc" +$StorageType = "Standard_GRS" + +## Network +$InterfaceName = "ServerInterface06" +$Subnet1Name = "Subnet1" +$VNetName = "VNet09" +$VNetAddressPrefix = "10.0.0.0/16" +$VNetSubnetAddressPrefix = "10.0.0.0/24" + +## Compute +$VMName = "VirtualMachine12" +$ComputerName = "Server22" +$VMSize = "Standard_A2" +$OSDiskName = $VMName + "osDisk" + +# Resource Group +New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location + +# Storage +$StorageAccount = New-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageName -Type $StorageType -Location $Location + +# Network +$PIp = New-AzureRmPublicIpAddress -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -AllocationMethod Dynamic +$SubnetConfig = New-AzureRmVirtualNetworkSubnetConfig -Name $Subnet1Name -AddressPrefix $VNetSubnetAddressPrefix +$VNet = New-AzureRmVirtualNetwork -Name $VNetName -ResourceGroupName $ResourceGroupName -Location $Location -AddressPrefix $VNetAddressPrefix -Subnet $SubnetConfig +$Interface = New-AzureRmNetworkInterface -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -SubnetId $VNet.Subnets[0].Id -PublicIpAddressId $PIp.Id + +# Compute + +## Setup local VM object +$Credential = Get-Credential +$VirtualMachine = New-AzureRmVMConfig -VMName $VMName -VMSize $VMSize +$VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -ProvisionVMAgent -EnableAutoUpdate +$VirtualMachine = Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest" +$VirtualMachine = Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id $Interface.Id +$OSDiskUri = $StorageAccount.PrimaryEndpoints.Blob.ToString() + "vhds/" + $OSDiskName + ".vhd" +$VirtualMachine = Set-AzureRmVMOSDisk -VM $VirtualMachine -Name $OSDiskName -VhdUri $OSDiskUri -CreateOption FromImage + +## Create the VM in Azure +New-AzureRmVM -ResourceGroupName $ResourceGroupName -Location $Location -VM $VirtualMachine + + + + + This example script shows how to create a virtual machine. This script uses several other cmdlets. + + + + + + + + + + + + + Get-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + Add-AzureRmVMDataDisk + + + + Add-AzureRmVMNetworkInterface + + + + New-AzureRmVMConfig + + + + Set-AzureRmVMOperatingSystem + + + + Set-AzureRmVMSourceImage + + + + Set-AzureRmVMOSDisk + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Remove-AzureRmAvailabilitySet + + Removes an availability set from Azure. + + + + + Remove + AzureAvailabilitySet + + + + The Remove-AzureRmAvailabilitySet cmdlet removes an availability set from Azure. + + + + Remove-AzureRmAvailabilitySet + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the availability set to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the availability set to remove. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Remove an availability set + + + + + PS C:\>Remove-AzureRmAvailabilitySet -Name "AvailabilitySet03" -ResourceGroupName "ResourceGroup11" + + + This command removes an availability set named AvailablitySet03 in the resource group named ResourceGroup11. + + + + + + + + + + + + + Get-AzureRmAvailabilitySet + + + + New-AzureRmAvailabilitySet + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Remove-AzureRmVMAccessExtension + + Removes the VMAccess extension from a virtual machine. + + + + + Remove + AzureVMAccessExtension + + + + The Remove-AzureRmVMAccessExtension cmdlet removes the Virtual Machine Access (VMAccess) Virtual Machine Extension from a virtual machine. + + + + Remove-AzureRmVMAccessExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension that this cmdlet removes. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the extension that this cmdlet removes. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1: + + + + + + + + + + + + + + + + + + Get-AzureRmVMAccessExtension + + + + Set-AzureRmVMAccessExtension + + + + Remove-AzureRmVMExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Remove-AzureRmVMCustomScriptExtension + + Removes a custom script extension from a virtual machine. + + + + + Remove + AzureVMCustomScriptExtension + + + + The Remove-AzureRmVMCustomScriptExtension cmdlet removes a custom script Virtual Machine Extension from a virtual machine. + + + + Remove-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. + + String + + + Name + + Specifies the name of the custom script extension that this cmdlet removes. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the custom script extension that this cmdlet removes. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1: + + + + + + + + + + + + + + + + + + Get-AzureRmVMCustomScriptExtension + + + + Set-AzureRmVMCustomScriptExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Remove-AzureRmVMDataDisk + + Removes a data disk from a virtual machine. + + + + + Remove + AzureVMDataDisk + + + + The Remove-AzureRmVMDataDisk cmdlet removes a data disk from a virtual machine. + + + + Remove-AzureRmVMDataDisk + + VM + + Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the data disk to add. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Name + + Specifies the name of the data disk to add. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Remove a data disk from a virtual machine + + + + + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> Remove-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk3" +PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine + + + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. + The second command removes the data disk named disk3 from the virtual machine stored in $VirtualMachine. + The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11. + + + + + + + + + + + + + Add-AzureRmVMDataDisk + + + + Get-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Remove-AzureRmVMExtension + + Removes an extension from a virtual machine. + + + + + Remove + AzureVMExtension + + + + The Remove-AzureRmVMExtension cmdlet removes an extension from the Virtual Machine Extensions of a virtual machine. + + + + Remove-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the extension to remove. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Remove an extension from a virtual machine + + + + + PS C:\>Remove-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Name "ContosoTest" -VMName "VirtualMachine22" + + + This command removes the extension named ContosoTest from the virtual machine named VirtualMachine22 in ResourceGroup11. + + + + + + + + + + + + + Get-AzureRmVMExtension + + + + Set-AzureRmVMExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Remove-AzureRmVMNetworkInterface + + Removes a network interface from a virtual machine. + + + + + Remove + AzureVMNetworkInterface + + + + The Remove-AzureRmVMNetworkInterface cmdlet removes a network interface from a virtual machine. + + + + Remove-AzureRmVMNetworkInterface + + VM + + Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Id + + Specifies the ID of the network interface that this cmdlet removes from the virtual machine. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Id + + Specifies the ID of the network interface that this cmdlet removes from the virtual machine. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1: + + + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Remove-AzureRmVM + + Removes a virtual machine from Azure. + + + + + Remove + AzureVM + + + + The Remove-AzureRmVM cmdlet removes a virtual machine from Azure. + + + + Remove-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the virtual machine to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the virtual machine to remove. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Remove a virtual machine + + + + + PS C:\>Remove-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + + This command removes the virtual machine named VirtualMachine07 in the resource group ResourceGroup11. + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Restart-AzureRmVM + + Restarts an Azure virtual machine. + + + + + Restart + AzureVM + + + + The Restart-AzureRmVM cmdlet restarts an Azure virtual machine. + + + + Restart-AzureRmVM + + ResourceGroupName + + Specifies the name of the resource group. + + String + + + Name + + Specifies the name of the virtual machine to restart. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Name + + Specifies the name of the virtual machine to restart. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Restart a virtual machine + + + + + PS C:\>Restart-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + + This command restarts the virtual machine named VirtualMachine07 in ResourceGroup11. + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Save-AzureRmVMImage + + Captures a virtual machine as a VMImage. + + + + + Save + AzureVMImage + + + + The Save-AzureRmVMImage cmdlet captures a virtual machine as a VMImage. Before you create a virtual machine image, sysprep the virtual machine, and then mark it as generalized by using the Set-AzureRmVM cmdlet. + The output of this cmdlet is a JavaScript Object Notation (JSON) template. You can deploy virtual machines from your captured image. + + + + Save-AzureRmVMImage + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of the virtual machine that this cmdlet saves. + + String + + + DestinationContainerName + + Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. + + String + + + VHDNamePrefix + + Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. + + String + + + Overwrite + + Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + DestinationContainerName + + Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. + + String + + String + + + none + + + Overwrite + + Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VHDNamePrefix + + Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. + + String + + String + + + none + + + VMName + + Specifies the name of the virtual machine that this cmdlet saves. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Capture a virtual machine + + + + + PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized +PS C:\> Save-AzureRmVMImage -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -DestinationContainerName "VMContainer01" -VHDNamePrefix "VM07" + + + The first marks the virtual machine named VirtualMachine07 as generalized. + The second command captures a virtual machine named VirtualMachine07 as a VMImage. The Output property returns a JSON template. + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageSku + + + + Set-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Set-AzureRmVMAccessExtension + + Adds the VMAccess extension to a virtual machine. + + + + + Set + AzureVMAccessExtension + + + + The Set-AzureRmVMAccessExtension cmdlet adds the Virtual Machine Access (VMAccess) Virtual Machine Extension to a virtual machine. VMAccess can reset the virtual machine user name and password. + + + + Set-AzureRmVMAccessExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension that this cmdlet adds. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + + UserName + + Specifies the new user name for the virtual machine. + + String + + + Password + + Specifies the new password of the virtual machine. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Location + + Specifies the location of the virtual machine. + + String + + String + + + none + + + Name + + Specifies the name of the extension that this cmdlet adds. + + String + + String + + + none + + + Password + + Specifies the new password of the virtual machine. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + String + + + none + + + UserName + + Specifies the new user name for the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Add a VMAccess extension + + + + + PS C:\> Set-AzureRmVMAccessExtension -ResourceGroupName "ResrouceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "ContosoTest" -TypeHandlerVersion "2.0" -UserName "PFuller" -Password "Password" + + + This command adds a VMAccess extension for the virtual machine named VirtualMachine07 in ResrouceGroup11. The command specifies the name and type handler version for VMAccess. + + + + + + + + + + + + + Get-AzureRmVMAccessExtension + + + + Remove-AzureRmVMAccessExtension + + + + Set-AzureRmVMExtension + + + + Get-AzureRmVMExtensionImage + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Set-AzureRmVMCustomScriptExtension + + Adds a custom script extension to a virtual machine. + + + + + Set + AzureVMCustomScriptExtension + + + + The Set-AzureRmVMCustomScriptExtension cmdlet adds a custom script Virtual Machine Extension to a virtual machine. This extension allows you to run your own scripts on the virtual machine. + + + + Set-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + Run + + Specifies the command to use that runs your script. + + String + + + Argument + + Specifies arguments that the script extension passes to the script. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the custom script extension. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + + ContainerName + + Specifies the name of the Azure Storage container where this cmdlet stores the script. + + String + + + FileName + + Specifies the name of the script file. + + String[] + + + StorageAccountName + + Specifies the name of the Azure Storage account where this cmdlet stores the script. + + String + + + StorageEndpointSuffix + + Specifies the storage endpoint suffix. + + String + + + StorageAccountKey + + Specifies the key for the Azure Storage container. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the custom script extension. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + + FileUri + + Specifies the URI of the script file. + + String[] + + + Run + + Specifies the command to use that runs your script. + + String + + + Argument + + Specifies arguments that the script extension passes to the script. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Argument + + Specifies arguments that the script extension passes to the script. + + String + + String + + + none + + + ContainerName + + Specifies the name of the Azure Storage container where this cmdlet stores the script. + + String + + String + + + none + + + FileName + + Specifies the name of the script file. + + String[] + + String[] + + + none + + + FileUri + + Specifies the URI of the script file. + + String[] + + String[] + + + none + + + Location + + Specifies the location of the virtual machine. + + String + + String + + + none + + + Name + + Specifies the name of the custom script extension. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + Run + + Specifies the command to use that runs your script. + + String + + String + + + none + + + StorageAccountKey + + Specifies the key for the Azure Storage container. + + String + + String + + + none + + + StorageAccountName + + Specifies the name of the Azure Storage account where this cmdlet stores the script. + + String + + String + + + none + + + StorageEndpointSuffix + + Specifies the storage endpoint suffix. + + String + + String + + + none + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Add a custom script + + + + + PS C:\>Set-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "contosotest" -TypeHandlerVersion "1.1" -StorageAccountName "contoso" -StorageAccountKey <StorageKey> -FileName "contososcript.exe" -ContainerName "scripts" + + + This command adds a custom script to the virtual machine named VirtualMachine07. The script file is contososcript.exe. + + + + + + + + + + + + + Get-AzureRmVMCustomScriptExtension + + + + Remove-AzureRmVMCustomScriptExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Set-AzureRmVMExtension + + Updates extension properties or adds an extension to a virtual machine. + + + + + Set + AzureVMExtension + + + + The Set-AzureRmVMExtension cmdlet updates properties for existing Virtual Machine Extensions or adds an extension to a virtual machine. + + + + Set-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of an extension. + + String + + + Publisher + + Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. + + String + + + ExtensionType + + Specifies the extension type. + + System.String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. + + String + + + Settings + + Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. + + Hashtable + + + ProtectedSettings + + Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. + + Hashtable + + + Location + + Specifies the location of the virtual machine. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of an extension. + + String + + + Publisher + + Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. + + String + + + ExtensionType + + Specifies the extension type. + + System.String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. + + String + + + SettingString + + Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. + + String + + + ProtectedSettingString + + Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + ExtensionType + + Specifies the extension type. + + System.String + + System.String + + + none + + + Location + + Specifies the location of the virtual machine. + + String + + String + + + none + + + Name + + Specifies the name of an extension. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ProtectedSettings + + Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. + + Hashtable + + Hashtable + + + none + + + ProtectedSettingString + + Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. + + String + + String + + + none + + + Publisher + + Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. + + String + + String + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Settings + + Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. + + Hashtable + + Hashtable + + + none + + + SettingString + + Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. + + String + + String + + + none + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Modify settings by using hash tables + + + + + PS C:\>$Settings = @{"fileUris" = "[]"; "commandToExecute" = ""}; +PS C:\> $ProtectedSettings = @{"storageAccountName" = $stoname; "storageAccountKey" = $stokey}; +PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "ContosoTest" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -Settings $Settings -ProtectedSettings $ProtectedSettings; + + + The first two commands use standard Windows PowerShell® syntax to create hash tables, and then stores those hash tables in the $Settings and $ProtectedSettings variables. For more information, type Get-Help about_Hash_Tables. The second command includes two values previously created and stored in variables. + The final command modifies an extension of the virtual machine named VirtualMachine22 in ResourceGroup11 according to the contents of $Settings and $ProtectedSettings. The command specifies other required information that includes the publisher and the extension type. + + + + + + + + + + + Example 2: Modify settings by using strings + + + + + PS C:\>$SettingsString = '{"fileUris":[],"commandToExecute":""}'; +PS C:\> $ProtectedSettingsString = '{"storageAccountName":"' + $stoname + '","storageAccountKey":"' + $stokey + '"}'; +PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -SettingString $SettingsString -ProtectedSettingString $ProtectedSettingsString ; + + + The first two commands create strings that contain settings, and then stores them in the $SettingsString and $ProtectedSettingsString variables. + The final command modifies an extension of the virtual machine named VirtualMachine22 in ResourceGroup11 according to the contents of $SettingsString and $ProtectedSettingsString. The command specifies other required information that includes the publisher and the extension type. + + + + + + + + + + + + + Get-AzureRmVMExtension + + + + Remove-AzureRmVMExtension + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Set-AzureRmVMOperatingSystem + + Sets operating system properties for a virtual machine. + + + + + Set + AzureVMOperatingSystem + + + + The Set-AzureRmVMOperatingSystem cmdlet sets operating system properties for a virtual machine. You can specify logon credentials computer name, and operating system type. + + + + Set-AzureRmVMOperatingSystem + + VM + + Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + WinRMHttps + + Indicates that this operating system uses HTTPS WinRM. + + + + WinRMCertificateUrl + + Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. + + System.Uri + + + Windows + + Indicates that the type of operating system is Windows. + + + + ComputerName + + Specifies the name of the computer. + + String + + + Credential + + Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. + + PSCredential + + + CustomData + + Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. + + System.String + + + ProvisionVMAgent + + Indicates that the settings require that the virtual machine agent be installed on the virtual machine. + + + + EnableAutoUpdate + + Indicates that this cmdlet enables auto update. + + + + TimeZone + + Specifies the time zone for the virtual machine. + + System.String + + + WinRMHttp + + Indicates that this operating system uses HTTP WinRM. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureRmVMOperatingSystem + + VM + + Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + Linux + + Indicates that the type of operating system is Linux. + + + + ComputerName + + Specifies the name of the computer. + + String + + + Credential + + Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. + + PSCredential + + + CustomData + + Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. + + System.String + + + DisablePasswordAuthentication + + Indicates that this cmdlet disables password authentication. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + ComputerName + + Specifies the name of the computer. + + String + + String + + + none + + + Credential + + Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. + + PSCredential + + PSCredential + + + none + + + CustomData + + Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. + + System.String + + System.String + + + none + + + DisablePasswordAuthentication + + Indicates that this cmdlet disables password authentication. + + SwitchParameter + + SwitchParameter + + + none + + + EnableAutoUpdate + + Indicates that this cmdlet enables auto update. + + SwitchParameter + + SwitchParameter + + + none + + + Linux + + Indicates that the type of operating system is Linux. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ProvisionVMAgent + + Indicates that the settings require that the virtual machine agent be installed on the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + TimeZone + + Specifies the time zone for the virtual machine. + + System.String + + System.String + + + none + + + VM + + Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Windows + + Indicates that the type of operating system is Windows. + + SwitchParameter + + SwitchParameter + + + none + + + WinRMCertificateUrl + + Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. + + System.Uri + + System.Uri + + + none + + + WinRMHttp + + Indicates that this operating system uses HTTP WinRM. + + SwitchParameter + + SwitchParameter + + + none + + + WinRMHttps + + Indicates that this operating system uses HTTPS WinRM. + + SwitchParameter + + SwitchParameter + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Set operating system properties for a new virtual machines + + + + + PS C:\>$SecurePassword = ConvertTo-SecureString "password" -AsPlainText -Force +PS C:\> $Credential = New-Object System.Management.Automation.PSCredential ("FullerP", $SecurePassword); +PS C:\> $AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> $ComputerName = "ContosoVM122" +PS C:\> $WinRMCertUrl = "http://keyVaultName.vault.azure.net/secrets/secretName/secretVersion" +PS C:\> $TimeZone = "Pacific Standard Time" +PS C:\> $CustomData = "echo 'Hello World'" +PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $$VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -CustomData $CustomData -WinRMHttp -WinRMHttps -WinRMCertificateUrl $WinRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $TimeZone + + + The first command converts a password to a secure string, and then stores it in the $SecurePassword variable. For more information, type Get-Help ConvertTo-SecureString. + The second command creates a credential for the user FullerP and the password stored in $SecurePassword, and then stores the credential in the $Credential variable. For more information, type Get-Help New-Object. + The third command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + The fourth command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. + The next four commands assign values to variables to use in the following command. Because you could specify these strings directly in the Set-AzureRmVMOperatingSystem command, this approach is used only for readability. However, you might use an approach such as this in scripts. + The final command sets operating system properties for the virtual machine stored in $VirtualMachine. The command uses the credentials stored in $Credential. The command uses variables assigned in previous commands for some parameters. + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVMConfig + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Set-AzureRmVMOSDisk + + Sets the operating system disk properties on a virtual machine. + + + + + Set + AzureVMOSDisk + + + + The Set-AzureRmVMOSDisk cmdlet set the operating system disk properties on a virtual machine. + + + + Set-AzureRmVMOSDisk + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the operating system disk. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + +-- ReadOnly +-- ReadWrite + +The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + + ReadOnly + ReadWrite + + + + SourceImageUri + + + + This setting affects the consistency and performance of the disk. + + System.String + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + +-- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + + empty + attach + fromImage + + + + Windows + + Indicates that the operating system on the user image is Windows. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureRmVMOSDisk + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the operating system disk. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + +-- ReadOnly +-- ReadWrite + +The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + + ReadOnly + ReadWrite + + + + SourceImageUri + + + + This setting affects the consistency and performance of the disk. + + System.String + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + +-- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + + empty + attach + fromImage + + + + Linux + + Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + +-- ReadOnly +-- ReadWrite + +The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + String + + + none + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + +-- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + System.String + + System.String + + + none + + + Linux + + Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the operating system disk. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + SourceImageUri + + + + This setting affects the consistency and performance of the disk. + + System.String + + System.String + + + none + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + String + + + none + + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Windows + + Indicates that the operating system on the user image is Windows. + + SwitchParameter + + SwitchParameter + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Sets properties on a virtual machine + + + + + PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> Set-AzureRmVMOSDisk -VM $VirtualMachine -Name "OsDisk02" -VhdUri "os.vhd" -Caching ReadWrite + + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. + The final command sets the properties on the virtual machine in $VirtualMachine. + + + + + + + + + + + + + Get-AzureRmVM + + + + Get-AzureRmAvailabilitySet + + + + New-AzureRmVMConfig + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Set-AzureRmVMSourceImage + + Specifies the platform image for a virtual machine. + + + + + Set + AzureVMSourceImage + + + + The Set-AzureRmVMSourceImage cmdlet specifies the platform image to use for a virtual machine. + + + + Set-AzureRmVMSourceImage + + VM + + Specifies the local virtual machine object to configure. + + Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine + + + Name + + Specifies the name of a source image. + + System.String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + + Set-AzureRmVMSourceImage + + VM + + Specifies the local virtual machine object to configure. + + Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + System.String + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + System.String + + + Skus + + Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. + + System.String + + + Version + + Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. + + System.String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + + + + Name + + Specifies the name of a source image. + + System.String + + System.String + + + none + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + System.String + + System.String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + Microsoft.Azure.Common.Authentication.Models.AzureProfile + + + none + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + System.String + + System.String + + + none + + + Skus + + Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. + + System.String + + System.String + + + none + + + Version + + Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. + + System.String + + System.String + + + none + + + VM + + Specifies the local virtual machine object to configure. + + Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine + + Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Set values for an image + + + + + PS C:\>AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter" -Version "latest" + + + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. + The final command sets values for publisher name, offer, SKU, and version. The Get-AzureRmVMImagePublisher, Get-AzureRmVMImageOffer, Get-AzureRmVMImageSku, and Get-AzureRmVMImage cmdlets can discover these settings. + + + + + + + + + + + Example 2: Use the image reference method to set values + + + + + PS C:\>$Publisher = (Get-AzureRmVMImagePublisher -Location "Central US") | select -ExpandProperty PublisherName | where { $_ -like '*Microsoft*Windows*Server' } +PS C:\> $Offer = (Get-AzureRmVMImageOffer -Location "Central US" -PublisherName $Publisher[0]) | select -ExpandProperty Offer | where { $_ -like '*Windows*' } +PS C:\> $Sku = (Get-AzureRmVMImageSku -Location "Central US" -PublisherName $Publisher[0] -Offer $Offer[0]) | select -ExpandProperty Skus +PS C:\> $Versions = (Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0]) | select -ExpandProperty Version +PS C:\> $VMImage = Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0] -Version $Versions[0] +PS C:\> $VirtualMachine07 = Set-AzureRmVMSourceImage -VM $VirtualMachine07 -ImageReference $VMImage + + + This example sets source image settings by using the image reference method. + + + + + + + + + + + + + Get-AzureRmAvailabilitySet + + + + New-AzureRmVMConfig + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImageSku + + + + Get-AzureRmVMImage + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Set-AzureRmVM + + Marks a virtual machine as generalized. + + + + + Set + AzureVM + + + + The Set-AzureRmVM cmdlet marks a virtual machine as generalized. Before you run this cmdlet, log on to the virtual machine and use Sysprep to prepare the hard disk. + + + + Set-AzureRmVM + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + Name + + Specifies the name of the virtual machine on which this cmdlet operates. + + String + + + Generalized + + Indicates that this cmdlet marks a virtual machine as generalized. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Generalized + + Indicates that this cmdlet marks a virtual machine as generalized. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the virtual machine on which this cmdlet operates. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Mark a virtual machine as generalized + + + + + PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized + + + This command marks the virtual machine named VirtualMachine07 as generalized. + + + + + + + + + + + + + Get-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Start-AzureRmVM + + Starts an Azure virtual machine. + + + + + Start + AzureVM + + + + The Start-AzureRmVM cmdlet starts an Azure virtual machine. + + + + Start-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the virtual machine to start. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Name + + Specifies the name of the virtual machine to start. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Start a virtual machine + + + + + PS C:\>Start-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + + This command starts the virtual machine named VirtualMachine07 in ResourceGroup11. + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Stop-AzureRmVM + + Stops an Azure virtual machine. + + + + + Stop + AzureVM + + + + The Stop-AzureRmVM cmdlet stops an Azure virtual machine. + + + + Stop-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the virtual machine to stop. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + StayProvisioned + + Indicates that this cmdlet uses the stay provisioned setting. + + + + + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Name + + Specifies the name of the virtual machine to stop. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + StayProvisioned + + Indicates that this cmdlet uses the stay provisioned setting. + + SwitchParameter + + SwitchParameter + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Stop a virtual machine + + + + + PS C:\>Stop-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + + This command stops the virtual machine named VirtualMachine07 in ResourceGroup11. + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Update-AzureRmVM + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + Update-AzureRmVM + + Updates the state of an Azure virtual machine. + + + + + Update + AzureVM + + + + The Update-AzureRmVM cmdlet updates the state of an Azure virtual machine to the state of a virtual machine object. + + + + Update-AzureRmVM + + Name + + Specifies the name of the virtual machine to update. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Tags + + + + + System.Collections.Hashtable[] + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VM + + Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. + + PSVirtualMachine + + + + + + Name + + Specifies the name of the virtual machine to update. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Tags + + + + + System.Collections.Hashtable[] + + System.Collections.Hashtable[] + + + none + + + VM + + Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Update a virtual machine + + + + + PS C:\>Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine + + + This command updates the virtual machine named VirtualMachine07 in ResourceGroup11. The command updates it by using another virtual machine object, stored in the $VirtualMachine variable. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + New-AzureRmVMConfig + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + + + Remove-AzureRmVMDscExtension + + Removes DSC extension handler from a VM in a resource group + + + + + Remove + AzureVMDscExtension + + + + Removes DSC extension handler from a VM in a resource group + + + + Remove-AzureRmVMDscExtension + + ResourceGroupName + + The name of the resource group + + String + + + VMName + + The name of the virtual machine + + String + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template + + String + + + + + + ResourceGroupName + + The name of the resource group + + String + + String + + + + + + + VMName + + The name of the virtual machine + + String + + String + + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> Remove-AzureRmVMDscExtension –ResouceGroupName Name -VMName VM -Name DSC + + Description + ----------- + Removes the extension (Name - 'DSC') on virtual machine 'VM'. Specify Name parameter only when you changed its default value 'Microsoft.Powershell.DSC' to something else ('DSC' in this case) either through Set-AzureRmVMDscExtension cmdlet or an ARM template. + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMDscExtension + + + Gets the settings of the DSC extension on a particular VM + + + + + + Get + AzureVMDscExtension + + + + + Gets the settings of the DSC extension on a particular VM. + + + + + Get-AzureRmVMDscExtension + + ResourceGroupName + + The resource group name. + + string + + + VMName + + The virtual machine name + + string + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + String + + + Status + + Output shows status when the switch is present + + + + + + + + ResourceGroupName + + The resource group name. + + string + + string + + + + + + + VMName + + The virtual machine name + + string + + string + + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + String + + String + + + + + + + Status + + Output shows status when the switch is present + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + +Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' + + Description + ----------- + Retrieves the settings of extension (Name - 'DSC') on virtual machine 'VM'. Specify Name parameter only when you changed its default value 'Microsoft.Powershell.DSC' to something else ('DSC' in this case) either through Set-AzureRmVMDscExtension cmdlet or an ARM template. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRmVMDSCExtension + + + Configure the Windows PowerShell Desired State Configuration extension on a VM. + + + + + + Set + AzureVMDscExtension + + + + + Configure the Windows PowerShell Desired State Configuration extension on a VM in a resource group + + + + + Set-AzureRmVMDSCExtension + + ArchiveBlobName + + The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration + + string + + + ResourceGroupName + + The name of the resource group that contains the virtual machine + + string + + + VMName + + Name of the virtual machine where dsc extension handler would be installed + + string + + + ArchiveStorageAccountName + + The Azure Storage Account name used to download the ArchiveBlobName + + string + + + Version + + The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N + + string + + + ConfigurationArgument + + A hashtable specifying the arguments to the ConfigurationFunction + + hashtable + + + ConfigurationData + + Path to a .psd1 file that specifies the data for the Configuration + + string + + + ConfigurationName + + Name of the configuration that will be invoked by the DSC Extension + + string + + + ArchiveResourceGroupName + + The name of the resource group that contains the storage account containing the configuration archive.This param is optional if storage account and virtual machine both exists in the same resource group name, specified by ResourceGroupName param + + string + + + ArchiveContainerName + + Name of the Azure Storage Container where the configuration archive is located + + string + + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + + Force + + By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them + + + + Location + + Location of the resource + + string + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' + + string + + + ArchiveStorageEndpointSuffix + + The Storage Endpoint Suffix + + string + + + AutoUpdate + + We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. + + + + Confirm + + Prompts you for confirmation before executing the command. + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + + + WmfVersion + + + Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". + A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. + A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + + + string + + + + + + + ArchiveBlobName + + The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration + + string + + string + + + + + + + ConfigurationArgument + + A hashtable specifying the arguments to the ConfigurationFunction + + hashtable + + hashtable + + + + + + + ConfigurationData + + Path to a .psd1 file that specifies the data for the Configuration + + string + + string + + + + + + + ConfigurationName + + Name of the configuration that will be invoked by the DSC Extension + + string + + string + + + + + + + ArchiveContainerName + + Name of the Azure Storage Container where the configuration archive is located + + string + + string + + + + + + + Force + + By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them + + SwitchParameter + + SwitchParameter + + + + + + + Location + + Location of the resource + + string + + string + + + + + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' + + string + + string + + + + + + + ResourceGroupName + + The name of the resource group that contains the virtual machine + + string + + string + + + + + + + ArchiveResourceGroupName + + The name of the resource group that contains the storage account containing the configuration archive. This param is optional if storage account and virtual machine both exists in the same resource group name,specified by ResourceGroupName param. + + string + + string + + + + + + + ArchiveStorageAccountName + + The Azure Storage Account name used to download the ArchiveBlobName + + string + + string + + + + + + + ArchiveStorageEndpointSuffix + + The Storage Endpoint Suffix + + string + + string + + + + + + + Version + + The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N + + string + + string + + + + + + + VMName + + Name of the virtual machine where dsc extension handler would be installed + + string + + string + + + + + + + AutoUpdate + + We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. + + SwitchParameter + + SwitchParameter + + + + + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + SwitchParameter + + + + + + WmfVersion + + + Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". + A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. + A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + + + string + + string + + + latest + + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + + Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -Version 1.10 -Location 'West US' + + + Description + ----------- + + Sets the extension on the 'VM' to download Sample.ps1.zip (from the 'Stg' storage account and the default container 'windows-powershell-dsc') that was previously uploaded using Publish-AzureRmVMDscConfiguration cmdlet and invokes configuration 'ConfigName'. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + + Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' + + + Description + ----------- + Sets the extension on the VM to download Sample.ps1.zip (from the 'Stg' storage account and container 'WindowsPowerShellDSC' ) that was previously uploaded using Publish-AzureRmVMDscConfiguration cmdlet and invokes configuration 'ConfigName' with configuration data and arguments. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 3 -------------------------- + + + C:\PS> + + + Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' -AutoUpdate + + + Description + ----------- + Sets the extension on the VM to download Sample.ps1.zip (from the 'Stg' storage account and container 'WindowsPowerShellDSC' ) that was previously uploaded using Publish-AzureRmVMDscConfiguration cmdlet and invokes configuration 'ConfigName' with configuration data and arguments. Also, enables auto update of extension handler to the latest version as and when it is available. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Publish-AzureRmVMDscConfiguration + + + Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. + + + + + + Publish + AzureVMDscConfiguration + + + + + Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. + + + + + Publish-AzureRmVMDscConfiguration + + ConfigurationPath + + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). + + string + + + OutputArchivePath + + Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. + + string + + + AdditionalPath + + Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration + + string[] + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet + + string + + + Force + + By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive. + + + + Confirm + + Prompts you for confirmation before executing the command. + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + + + + Publish-AzureRmVMDscConfiguration + + ConfigurationPath + + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). + + string + + + ResourceGroupName + + The name of the resource group that contains the storage account + + string + + + StorageAccountName + + The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName + + string + + + ContainerName + + Name of the Azure Storage Container the configuration is uploaded to. + + string + + + AdditionalPath + + Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration + + string[] + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet + + string + + + Force + + By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive. + + + + StorageEndpointSuffix + + Suffix for the storage end point, e.g. core.windows.net + + string + + + Confirm + + Prompts you for confirmation before executing the command. + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + + + + + + + AdditionalPath + + Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration + + string[] + + string[] + + + + + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet + + string + + string + + + + + + + ConfigurationPath + + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). + + string + + string + + + + + + + ContainerName + + Name of the Azure Storage Container the configuration is uploaded to. + + string + + string + + + + + + + Force + + By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + SwitchParameter + + SwitchParameter + + + + + + + OutputArchivePath + + Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. + + string + + string + + + + + + + ResourceGroupName + + The name of the resource group that contains the storage account + + string + + string + + + + + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive. + + SwitchParameter + + SwitchParameter + + + + + + + StorageAccountName + + The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName + + string + + string + + + + + + + StorageEndpointSuffix + + Suffix for the storage end point, e.g. core.windows.net + + string + + string + + + + + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + + + + + + -------------------------- EXAMPLE 1 -------------------------- + + + C:\PS> + + +Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 + + Description + ----------- + Creates a ZIP package for the given script and any dependent resource modules and uploads it to Azure Storage. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + + C:\PS> + + +Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 -OutputArchivePath .\MyConfiguration.ps1.zip + + Description + ----------- + Creates a ZIP package for the given script and any dependent resource modules and stores it in the local file .\MyConfiguration.ps1.zip. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 3 -------------------------- + + + C:\PS> + + +Publish-AzureRmVMDscConfiguration -ConfigurationPath 'C:\Sample.ps1 -SkipDependencyDetection + + Description + ----------- + Adds configuration 'Sample.ps1' to the configuration archive to upload to Azure storage and skips dependent resource modules. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 4 -------------------------- + + + C:\PS> + + +Publish-AzureRmVMDscConfiguration -ConfigurationPath C:\Sample.ps1 -ConfigurationDataPath 'C:\SampleData.psd1' + + Description + ----------- + Adds configuration 'Sample.ps1' and configuration data 'SampleData.psd1' to the configuration archive to upload to Azure storage. + + + + + + + + + + + + + + + + + + + -------------------------- EXAMPLE 5 -------------------------- + + + C:\PS> + + +Publish-AzureRmVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPath @("C:\ContentDir1", "C:\File.txt") -ConfigurationDataPath "C:\SampleData.psd1" + + Description + ----------- + Adds configuration 'Sample.ps1', configuration data 'SampleData.psd1' and additional content (files or directories referenced by the configuration) to configuration archive to upload to Azure storage. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMDscExtensionStatus + + + Used to get the status of the DSC extension handler for a VM in a resource group. When a configuration is applied this cmdlet produces output consistent with Start-DscConfiguration. + + + + + + Get + AzureRmVMDscExtensionStatus + + + + + + + + + + + Get-AzureRmVMDscExtensionStatus + + ResourceGroupName + + The resource group name. + + string + + + VMName + + The virtual machine name + + string + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + string + + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + string + + string + + + + + + + ResourceGroupName + + The resource group name. + + string + + string + + + + + + + VMName + + The virtual machine name + + string + + string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs index 504c5453c22e..2639e0372bb5 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs @@ -159,7 +159,10 @@ public class SetAzureVMDscExtension : VirtualMachineExtensionCmdletBase /// /// The Extension Data Collection state /// - [Parameter(ValueFromPipelineByPropertyName = true, HelpMessage = "Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls.")] + [Parameter(ValueFromPipelineByPropertyName = true, + HelpMessage = "Enables or Disables Data Collection in the extension. It is enabled if it is not specified. " + + "The value is persisted in the extension between calls.") + ] [ValidateSet("Enable", "Disable")] [AllowNull] public string DataCollection { get; set; } From 67930642d7542567aa090f1a35f7def069ccc526 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Tue, 3 Nov 2015 15:16:50 -0800 Subject: [PATCH 03/27] Move DataCollection into the Privacy node of the Extension Settings --- .../Extension/DSC/SetAzureVMDscExtensionCommand.cs | 7 ++++++- .../Extensions/DSC/DscExtensionPublicSettings.cs | 14 +++++--------- .../IaaS/Extensions/DSC/SetAzureVMDscExtension.cs | 7 ++++++- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs index 924c451da8d2..482110c79a7a 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs +++ b/src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs @@ -10,6 +10,7 @@ using Microsoft.WindowsAzure.Storage.Blob; using System; using System.Collections; +using System.Collections.Generic; using System.Globalization; using System.IO; using System.Management.Automation; @@ -320,7 +321,11 @@ private void CreateConfiguration() publicSettings.SasToken = configurationUris.SasToken; publicSettings.ModulesUrl = configurationUris.ModulesUrl; - publicSettings.DataCollection = DataCollection; + + Hashtable privacySetting = new Hashtable(); + privacySetting.Add("DataCollection", DataCollection); + publicSettings.Privacy = privacySetting; + publicSettings.ConfigurationFunction = string.Format( CultureInfo.InvariantCulture, "{0}\\{1}", diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs index 4f9069ceaec5..727700139e0f 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscExtensionPublicSettings.cs @@ -92,6 +92,11 @@ public class Property /// public Property[] Properties { get; set; } + /// + /// Privacy parameters + /// + public Hashtable Privacy { get; set; } + /// /// Version of the protocol (DscExtensionPublicSettings and DscExtensionPrivateSettings mostly). /// @@ -102,14 +107,5 @@ public class Property /// on the VM. /// public string WmfVersion { get; set; } - - /// - /// String to set the state of the the extension data collection. - /// Enable will enable - /// Disable will disable - /// Null or empty will leave it in the last state. - /// The default is Enabled. - /// - public string DataCollection { get; set; } } } diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs index 2639e0372bb5..20821caae297 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs @@ -23,6 +23,7 @@ using Microsoft.WindowsAzure.Storage.Blob; using System; using System.Collections; +using System.Collections.Generic; using System.Globalization; using System.IO; using System.Management.Automation; @@ -400,7 +401,11 @@ private void CreateConfiguration() publicSettings.SasToken = configurationUris.SasToken; publicSettings.ModulesUrl = configurationUris.ModulesUrl; - publicSettings.DataCollection = this.DataCollection; + + Hashtable privacySetting = new Hashtable(); + privacySetting.Add("DataCollection",DataCollection); + publicSettings.Privacy = privacySetting; + publicSettings.ConfigurationFunction = string.Format( CultureInfo.InvariantCulture, "{0}\\{1}", From ff2b6e95ebb5e752a06500c6354349d37d29159c Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 27 Jan 2016 16:11:53 -0800 Subject: [PATCH 04/27] Update help --- ...rosoft.Azure.Commands.Compute.dll-Help.xml | 28355 ++++++---- ...re.Commands.ServiceManagement.dll-Help.xml | 44623 ++++++++-------- 2 files changed, 40411 insertions(+), 32567 deletions(-) diff --git a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml index aaaa89f1e3d2..44897d4d51c0 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml +++ b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml @@ -1,11067 +1,17692 @@ - - - - - - Add-AzureRmVMAdditionalUnattendContent - - Adds information to the unattended Windows Setup answer file. - - - - - Add - AzureVMAdditionalUnattendContent - - - - The Add-AzureRmVMAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file. Specify additional base 64 encoded XML formatted information that this cmdlet adds to the unattend.xml file. - - - - Add-AzureRmVMAdditionalUnattendContent - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - Content - - Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. - - String - - - SettingName - - Specifies the name of the setting to which the content applies. Valid values are: - --- FirstLogonCommands + + + + + Add-AzureRmVhd + + + + + + + Add + AzureRmVhd + + + + + + + + Add-AzureRmVhd + + ResourceGroupName + + + + String + + + Destination + + + + Uri + + + LocalFilePath + + + + FileInfo + + + NumberOfUploaderThreads + + + + Nullable`1[Int32] + + + BaseImageUriToPatch + + + + Uri + + + OverWrite + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Destination + + + + Uri + + Uri + + + + + + LocalFilePath + + + + FileInfo + + FileInfo + + + + + + NumberOfUploaderThreads + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BaseImageUriToPatch + + + + Uri + + Uri + + + + + + OverWrite + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Add-AzureRmVMAdditionalUnattendContent + + Adds information to the unattended Windows Setup answer file. + + + + + Add + AzureRmVMAdditionalUnattendContent + + + + The Add-AzureRmVMAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file. Specify additional base 64 encoded XML formatted information that this cmdlet adds to the unattend.xml file. + + + + Add-AzureRmVMAdditionalUnattendContent + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + Content + + Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. + + String + + + SettingName + + Specifies the name of the setting to which the content applies. Valid values are: + -- FirstLogonCommands -- AutoLogon - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Content - - Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - SettingName - - Specifies the name of the setting to which the content applies. Valid values are: - --- FirstLogonCommands + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Content + + Specifies base 64 encoded XML formatted content. This cmdlet adds the content to the unattend.xml file. The XML content must be less than 4 KB and must include the root element for the setting or feature that this cmdlet inserts. + + String + + String + + + none + + + SettingName + + Specifies the name of the setting to which the content applies. Valid values are: + -- FirstLogonCommands -- AutoLogon - - String - - String - - - none - - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Add content to unattend.xml - - - - - PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Add content to unattend.xml -------------------------- + + PS C:\> + + PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id PS C:\> $Credential = Get-Credential -PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential -PS C:\> $AucContent = "<UserAccounts><AdministratorPassword><Value>" + "Password" + "</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>"; -PS C:\> $VirtualMachine = Add-AzureRmVMAdditionalUnattendContent -VM $VirtualMachine -Content $AucContent -SettingName "AutoLogon" - - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. - The third command creates a credential object by using the Get-Credential cmdlet, and then stores the result in the $Credential variable. The command prompts you for a user name and password. For more information, type Get-Help Get-Credential. - The fourth command uses the Set-AzureRmVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine. - The fifth command assigns content to the $AucContent variable. The content includes a password. - The final command adds the content stored in $AucContent to the unattend.xml file. - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - Set-AzureRmVMOperatingSystem - - - - New-AzureRmVMConfig - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Add-AzureRmVMDataDisk - - Adds a data disk to a virtual machine. - - - - - Add - AzureVMDataDisk - - - - The Add-AzureRmVMDataDisk cmdlet adds a data disk to a virtual machine. You can add a data disk when you create a virtual machine, or you can add a data disk to an existing virtual machine. - - - - Add-AzureRmVMDataDisk - - VM - - Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the data disk to add. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. - - String - - - Caching - - Specifies the caching mode of the disk. Valid values are: +PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential +PS C:\> $AucContent = "<UserAccounts><AdministratorPassword><Value>" + "Password" + "</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>"; +PS C:\> $VirtualMachine = Add-AzureRmVMAdditionalUnattendContent -VM $VirtualMachine -Content $AucContent -SettingName "AutoLogon" + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + + + The fourth command uses the Set-AzureRmVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine. + + + + + + + + + + + + + Get-AzureRmAvailabilitySet + + + + Set-AzureRmVMOperatingSystem + + + + New-AzureRmVMConfig + + + + + + + + Add-AzureRmVMDataDisk + + Adds a data disk to a virtual machine. + + + + + Add + AzureRmVMDataDisk + + + + The Add-AzureRmVMDataDisk cmdlet adds a data disk to a virtual machine. You can add a data disk when you create a virtual machine, or you can add a data disk to an existing virtual machine. + + + + Add-AzureRmVMDataDisk + + VM + + Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the data disk to add. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. + + String + + + Caching + + Specifies the caching mode of the disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing this value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + + DiskSizeInGB + + Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. + + Nullable`1[Int32] + + + Lun + + Specifies the logical unit number (LUN) for a data disk. + + Nullable`1[Int32] + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + + String + + + SourceImageUri + + Specifies the source URI of the disk that this cmdlet attaches. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Name + + Specifies the name of the data disk to add. + + String + + String + + + none + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. + + String + + String + + + none + + + Caching + + Specifies the caching mode of the disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing this value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + String + + + none + + + DiskSizeInGB + + Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + none + + + Lun + + Specifies the logical unit number (LUN) for a data disk. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + none + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + + String + + String + + + none + + + SourceImageUri + + Specifies the source URI of the disk that this cmdlet attaches. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Add data disks to a new virtual machine -------------------------- + + PS C:\> + + PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" +PS C:\> $DataDiskVhdUri01 = "https://contoso.blob.core.windows.net/test/data1.vhd" +PS C:\> $DataDiskVhdUri02 = "https://contoso.blob.core.windows.net/test/data2.vhd" +PS C:\> $DataDiskVhdUri03 = "https://contoso.blob.core.windows.net/test/data3.vhd" +PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri1 -CreateOption Empty +PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $DataDiskVhdUri2 -CreateOption Empty +PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $DataDiskVhdUri3 -CreateOption Empty + + The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. + + + + + + + + + + + + + + -------------------------- Example 2: Add a data disk to an existing virtual machine -------------------------- + + PS C:\> + + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty +PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine + + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. + + + + + + + + + + + + + + + + Remove-AzureRmVMDataDisk + + + + Get-AzureRmVM + + + + New-AzureRmVMConfig + + + + + + + + Add-AzureRmVMNetworkInterface + + Adds a network interface to a virtual machine. + + + + + Add + AzureRmVMNetworkInterface + + + + The Add-AzureRmVMNetworkInterface cmdlet adds a network interface to a virtual machine. You can add an interface when you create a virtual machine or add one to an existing virtual machine. + + + + Add-AzureRmVMNetworkInterface + + VM + + Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Id + + Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. + + String + + + Primary + + Indicates that this cmdlet adds the network interface as the primary interface. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Add-AzureRmVMNetworkInterface + + VM + + Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + NetworkInterface + + + + List`1[PSNetworkInterface] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Id + + Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. + + String + + String + + + none + + + Primary + + Indicates that this cmdlet adds the network interface as the primary interface. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + NetworkInterface + + + + List`1[PSNetworkInterface] + + List`1[PSNetworkInterface] + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Add a network interface to a new virtual machine -------------------------- + + PS C:\> + + PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" +PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" + + The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. + + + + + + + + + + + + + + -------------------------- Example 2: Add a network interface to an existing virtual machine -------------------------- + + PS C:\> + + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" +PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name " VirtualMachine07" -VM $VirtualMachine + + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmldet. The command stores the virtual machine in the $VirtualMachine variable. + + + + + + + + + + + + + + + + New-AzureRmVMConfig + + + + Get-AzureRmVM + + + + Get-AzureRmAvailabilitySet + + + + + + + + Add-AzureRmVMSecret + + Adds a secret to a virtual machine. + + + + + Add + AzureRmVMSecret + + + + The Add-AzureRmVMSecret cmdlet adds a secret to a virtual machine. This value lets you add a certificate to the virtual machine. The secret needs to be stored in a Key Vault. For more information about Key Vault, see What is Azure Key Vault? (https://azure.microsoft.com/en-us/documentation/articles/key-vault-whatis/) in the Azure library. For more information about the cmdlets, see Azure Key Vault Cmdlets (https://msdn.microsoft.com/library/azure/dn868052.aspx) in the Microsoft Developer Network library or type Get-Help Set-AzureKeyVaultSecret. + + + + Add-AzureRmVMSecret + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + SourceVaultId + + Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. + + String + + + CertificateStore + + Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. + + String + + + CertificateUrl + + Specifies the URL that points to a Key Vault secret which contains a certificate. + The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. + { +"data": "<Base64-encoded-file>", +"dataType": "<file-format>", +"password": "<pfx-file-password>" +} + Currently, dataType accepts only .pfx files. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + SourceVaultId + + Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. + + String + + String + + + none + + + CertificateStore + + Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. + + String + + String + + + none + + + CertificateUrl + + Specifies the URL that points to a Key Vault secret which contains a certificate. + The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. + { +"data": "<Base64-encoded-file>", +"dataType": "<file-format>", +"password": "<pfx-file-password>" +} + Currently, dataType accepts only .pfx files. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Add a secret to a virtual machine -------------------------- + + PS C:\> + + PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> $Credential = Get-Credential +PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential +PS C:\> $SourceVaultId = "/subscriptions/46f8cea4-2de6-4179-8ab1-365da4211af4/resourceGroups/vault/providers/Microsoft.KeyVault/vaults/keyvault" +PS C:\> $CertificateStore01 = "My" +PS C:\> $CertificateUrl01 = "https://contosovault.vault.azure.net/secrets/514ceb769c984379a7e0230bdd703272" +PS C:\> $VirtualMachine = Add-AzureRmVMSecret -VM $VirtualMachine -SourceVaultId $SourceVaultId -CertificateStore $CertificateStore01 -CertificateUrl $CertificateUrl01 + + The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. + + + The fifth command assigns a source vault ID to the $SourceVaultId variable for later use. The command assumes that the $SubscriptionId variable has an appropriate value. + + + + + + + + + + + + + + + + + Add-AzureRmVMSshPublicKey + + Adds the public keys for SSH for a virtual machine. + + + + + Add + AzureRmVMSshPublicKey + + + + The Add-AzureRmVMSshPublicKey cmdlet adds the public keys that you can use to connect to a virtual machine over Secure Shell (SSH). + + + + Add-AzureRmVMSshPublicKey + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + KeyData + + Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. + + String + + + Path + + Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + KeyData + + Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. + + String + + String + + + none + + + Path + + Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Add a public key to a virtual machine -------------------------- + + PS C:\> + + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> $VirtualMachine = Add-AzureRmVMSshPublicKey -VM $VirtualMachine -KeyData "MIIDszCCApugAwIBAgIJALBV9YJCF/tAMA0GCSq12Ib3DQEB21QUAMEUxCzAJBgNV" -Path "/home/admin/.ssh/authorized_keys" + + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + + + + + Get-AzureRmAvailabilitySet + + Gets Azure availability sets in a resource group. + + + + + Get + AzureRmAvailabilitySet + + + + The Get-AzureRmAvailabilitySet cmdlet gets Azure availability sets in a resource group. Specify the name of a specific availability set to get. + + + + Get-AzureRmAvailabilitySet + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of an availability set to get. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Name + + Specifies the name of an availability set to get. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get a specific availability set -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" + + This command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11. + + + + + + + + + + + + + + -------------------------- Example 2: Get all availability sets -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" + + This command gets all the availability sets in the resource group named ResourceGroup11. + + + + + + + + + + + + + + + + New-AzureRmAvailabilitySet + + + + Remove-AzureRmAvailabilitySet + + + + + + + + Get-AzureRmRemoteDesktopFile + + Gets an .rdp file. + + + + + Get + AzureRmRemoteDesktopFile + + + + The Get-AzureRmRemoteDesktopFile cmdlet gets a Remote Desktop Protocol (.rdp) file. + + + + Get-AzureRmRemoteDesktopFile + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the availability set that this cmdlet gets. + + String + + + LocalPath + + Specifies the local full path where this cmdlet stores the .rdp file. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmRemoteDesktopFile + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the availability set that this cmdlet gets. + + String + + + LocalPath + + Specifies the local full path where this cmdlet stores the .rdp file. + + String + + + Launch + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Name + + Specifies the name of the availability set that this cmdlet gets. + + String + + String + + + none + + + LocalPath + + Specifies the local full path where this cmdlet stores the .rdp file. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Launch + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get a Remote Desktop file -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmRemoteDesktopFile -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -LocalPath "D:\RemoteDesktopFile07.rdp" + + This command gets the Remote Desktop file for the virtual machine named VirtualMachine07. The command stores the result in the file named D:\RemoteDesktopFile07.rdp. + + + + + + + + + + + + + + + + + + + + Get-AzureRmVM + + Gets the properties of a virtual machine. + + + + + Get + AzureRmVM + + + + The Get-AzureRmVM cmdlet gets the model view and instance view of an Azure virtual machine. The model view is the user specified properties of the virtual machine. The instance view is the instance level status of the virtual machine. To get only the instance view of a virtual machine, specify the Status parameter. + + + + Get-AzureRmVM + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the virtual machine to get. + + String + + + Status + + Indicates that this cmdlet gets only the instance view of the virtual machine. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmVM + + NextLink + + Specifies the next link. + + Uri + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Name + + Specifies the name of the virtual machine to get. + + String + + String + + + none + + + Status + + Indicates that this cmdlet gets only the instance view of the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + NextLink + + Specifies the next link. + + Uri + + Uri + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + microsoft.azure.common.authentication.models.azureprofile + + microsoft.azure.common.authentication.models.azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get model and instance view properties -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + This command gets the model view and instance view properties of the virtual machine named VirtualMachine07. + + + + + + + + + + + + + + -------------------------- Example 2: Get instance view properties -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Status + + This command gets properties of the virtual machine named VirtualMachine07. This command specifies the Status parameter. Therefore, the command gets only the instance view properties. + + + + + + + + + + + + + + -------------------------- Example 3: Get properties for all virtual machines in a resource group -------------------------- + + PS C:\> + + PS C:\> Get-AzureRmVM -ResourceGroupName "ResourceGroup11" + + This command gets properties for all the virtual machines in the resource group named ResourceGroup11. + + + + + + + + + + + + + + -------------------------- Example 4: Get all virtual machines in your subscription -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVM + + This command gets all the virtual machines in your subscription. + + + + + + + + + + + + + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + + + Get-AzureRmVMAccessExtension + + Gets information about the VMAccess extension. + + + + + Get + AzureRmVMAccessExtension + + + + The Get-AzureRmVMAccessExtension cmdlet gets information about the Virtual Machine Access (VMAccess) Virtual Machine Extension. + + + + Get-AzureRmVMAccessExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension that this cmdlet gets. + + String + + + Status + + Indicates that this cmdlet gets only the instance view of the extension. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. + + String + + String + + + none + + + Name + + Specifies the name of the extension that this cmdlet gets. + + String + + String + + + none + + + Status + + Indicates that this cmdlet gets only the instance view of the extension. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get the VMAccess extension -------------------------- + + PS C:\> + + PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoTest" + + This command gets the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. + + + + + + + + + + + + + + -------------------------- Example 2: Get the instance view of the VMAccess extension -------------------------- + + PS C:\> + + PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine0" -Name "ContosoTest" -Status + + This command gets the instance view of the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. + + + + + + + + + + + + + + + + Remove-AzureRmVMAccessExtension + + + + Set-AzureRmVMAccessExtension + + + + Get-AzureRmVMExtension + + + + + + + + Get-AzureRmVMBootDiagnosticsData + + + + + + + Get + AzureRmVMBootDiagnosticsData + + + + + + + + Get-AzureRmVMBootDiagnosticsData + + ResourceGroupName + + + + String + + + Name + + + + String + + + Windows + + + + SwitchParameter + + + LocalPath + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmVMBootDiagnosticsData + + ResourceGroupName + + + + String + + + Name + + + + String + + + Linux + + + + SwitchParameter + + + LocalPath + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + Windows + + + + SwitchParameter + + SwitchParameter + + + + + + LocalPath + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Linux + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMCustomScriptExtension + + Gets information about a custom script extension. + + + + + Get + AzureRmVMCustomScriptExtension + + + + The Get-AzureRmVMCustomScriptExtension cmdlet gets information about a custom script Virtual Machine Extension on a virtual machine. + + + + Get-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. + + String + + + Name + + Specifies the name of the custom script extension about which this cmdlet gets information. + + String + + + Status + + Indicates that this cmdlet gets the instance view of the custom script extension. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. + + String + + String + + + none + + + Name + + Specifies the name of the custom script extension about which this cmdlet gets information. + + String + + String + + + none + + + Status + + Indicates that this cmdlet gets the instance view of the custom script extension. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get a custom script extension -------------------------- + + PS C:\> + + PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" + + This command gets the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. + + + + + + + + + + + + + + -------------------------- Example 2: Get the instance view of a custom script extension -------------------------- + + PS C:\> + + PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" -Status + + This command gets the instance view of the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. + + + + + + + + + + + + + + + + Get-AzureRmVMExtension + + + + Get-AzureRmVMExtensionImage + + + + Get-AzureRmVMAccessExtension + + + + + + + + Get-AzureRmVMDiagnosticsExtension + + + + + + + Get + AzureRmVMDiagnosticsExtension + + + + + + + + Get-AzureRmVMDiagnosticsExtension + + ResourceGroupName + + + + String + + + VMName + + + + String + + + Name + + + + String + + + Status + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + VMName + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + Status + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMDiskEncryptionStatus + + Get-AzureRmVMDiskEncryptionStatus cmdlet displays the encryption status of the VM. It displays encryption status of the OS and Data volumes. In addition to encryption status, it also displays the secret URL and resource ID of the KeyVault where the encryption key for OS volume is present. + + + + + Get + AzureRmVMDiskEncryptionStatus + + + + + + + + Get-AzureRmVMDiskEncryptionStatus + + ResourceGroupName + + Resource group name of the virtual machine + + String + + + VMName + + Name of the virtual machine + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Resource group name of the virtual machine + + String + + String + + + + + + VMName + + Name of the virtual machine + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $rgName = 'MyResourceGroup'; +$vmName = 'MyWindowsVM'; +Get-AzureRmVmDiskEncryptionStatus -ResourceGroupName $rgname -VMName $vmName; + + + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMDscExtension + + Gets the settings of the DSC extension on a particular VM + + + + + Get + AzureRmVMDscExtension + + + + Gets the settings of the DSC extension on a particular VM. + + + + Get-AzureRmVMDscExtension + + ResourceGroupName + + The resource group name. + + String + + + VMName + + The virtual machine name + + String + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + String + + + Status + + Output shows status when the switch is present + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + The resource group name. + + String + + String + + + + + + VMName + + The virtual machine name + + String + + String + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + String + + String + + + + + + Status + + Output shows status when the switch is present + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- EXAMPLE 1 -------------------------- + + PS C:\> + + Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' + + Description + + + + + + + + + + + + + + + + Unknown + + + + + + + + Get-AzureRmVMDscExtensionStatus + + Used to get the status of the DSC extension handler for a VM in a resource group. When a configuration is applied this cmdlet produces output consistent with Start-DscConfiguration. + + + + + Get + AzureRmVMDscExtensionStatus + + + + + + + + Get-AzureRmVMDscExtensionStatus + + ResourceGroupName + + The resource group name. + + String + + + VMName + + The virtual machine name + + String + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + The resource group name. + + String + + String + + + + + + VMName + + The virtual machine name + + String + + String + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + + + Unknown + + + + + + + + Get-AzureRmVMExtension + + Gets properties of Virtual Machine Extensions installed on a virtual machine. + + + + + Get + AzureRmVMExtension + + + + The Get-AzureRmVMExtension cmdlet gets properties of Virtual Machine Extensions installed on a virtual machine. Specify the name of an extension for which to get properties. To get only the instance view of an extension, specify the Status parameter. + + + + Get-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. + + String + + + Status + + Indicates that this cmdlet gets only the instance view of an extension. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. + + String + + String + + + none + + + Name + + Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. + + String + + String + + + none + + + Status + + Indicates that this cmdlet gets only the instance view of an extension. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get properties of an extension -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" + + This command gets properties for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. + + + + + + + + + + + + + + -------------------------- Example 2: Get instance view of an extension -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Status + + This command gets the instance view for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. + + + + + + + + + + + + + + + + Remove-AzureRmVMExtension + + + + Set-AzureRmVMExtension + + + + + + + + Get-AzureRmVmExtensionImage + + Gets all versions for an Azure extension. + + + + + Get + AzureRmVmExtensionImage + + + + The Get-AzureRmVMExtensionImage cmdlet gets all versions for an Azure extension. + + + + Get-AzureRmVmExtensionImage + + Location + + Specifies the location of an extension. + + String + + + PublisherName + + Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + + Type + + Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. + + String + + + FilterExpression + + Specifies a filter expression. + + String + + + Version + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location of an extension. + + String + + String + + + none + + + PublisherName + + Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + String + + + none + + + Type + + Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. + + String + + String + + + none + + + FilterExpression + + Specifies a filter expression. + + String + + String + + + none + + + Version + + + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get the versions of an extension image -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMExtensionImage -Location "Central US" -PublisherName "Fabrikam" -Type "FabrikamEndpointProtection" + + This command gets all the versions of the extension image for the specified location, publisher, and type. + + + + + + + + + + + + + + + + Get-AzureRmVMExtensionImageType + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMExtensionImageType + + + + + + + + Get-AzureRmVMExtensionImageType + + Gets the type of an Azure extension. + + + + + Get + AzureRmVMExtensionImageType + + + + The Get-AzureRmVMExtensionImageType cmdlet gets the type of an Azure extension. + + + + Get-AzureRmVMExtensionImageType + + Location + + Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. + + String + + + PublisherName + + Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. + + String + + String + + + none + + + PublisherName + + Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get an extension image type -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMExtensionImageType -Location "Central US" -PublisherName "Fabrikam" + + This command gets the extension image type for the specified publisher and location. + + + + + + + + + + + + + + + + Get-AzureRmVMExtensionImage + + + + + + + + Get-AzureRmVMImage + + Gets all the versions of a VMImage. + + + + + Get + AzureRmVMImage + + + + The Get-AzureRmVMImage cmdlet gets all the versions of a VMImage. + + + + Get-AzureRmVMImage + + Location + + Specifies the location of a VMImage. + + String + + + PublisherName + + Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + String + + + Skus + + Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. + + String + + + FilterExpression + + Specifies a filter expression. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmVMImage + + Location + + Specifies the location of a VMImage. + + String + + + PublisherName + + Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + String + + + Skus + + Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. + + String + + + Version + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location of a VMImage. + + String + + String + + + none + + + PublisherName + + Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + String + + + none + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + String + + String + + + none + + + Skus + + Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. + + String + + String + + + none + + + FilterExpression + + Specifies a filter expression. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Version + + + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + microsoft.azure.common.authentication.models.azureprofile + + microsoft.azure.common.authentication.models.azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get VMImage objects -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMImage -Location "Central US" -PublisherName "Canonical" -Offer "UbuntuServer" -Skus "15.04-DAILY" + + This command gets all the versions of VMImage that match the specified values. + + + + + + + + + + + + + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageSku + + + + Save-AzureRmVMImage + + + + + + + + Get-AzureRmVMImageOffer + + Gets VMImage offer types. + + + + + Get + AzureRmVMImageOffer + + + + The Get-AzureRmVMImageOffer cmdlet gets the VMImage offer types. + + + + Get-AzureRmVMImageOffer + + Location + + Specifies the location of the VMImage. + + String + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location of the VMImage. + + String + + String + + + none + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get offer types for a publisher -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMImageOffer -Location "Central US" -PublisherName "Fabrikam" + + This command gets the offer types for the specified publisher in the Central US region. + + + + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageSku + + + + Save-AzureRmVMImage + + + + + + + + Get-AzureRmVMImagePublisher + + Gets the VMImage publishers. + + + + + Get + AzureRmVMImagePublisher + + + + The Get-AzureRmVMImagePublisher cmdlet gets the VMImage publishers. + + + + Get-AzureRmVMImagePublisher + + Location + + Specifies the location of the VMImage. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location of the VMImage. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get VMImage publishers for a region -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMImagePublisher -Location "Central US" + + This command gets the publishers of VMImage instances for the Central US region within your profile. + + + + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImageSku + + + + Save-AzureRmVMImage + + + + + + + + Get-AzureRmVMImageSku + + Gets VMImage SKUs. + + + + + Get + AzureRmVMImageSku + + + + The Get-AzureRmVMImageSku cmdlet gets VMImage SKUs. + + + + Get-AzureRmVMImageSku + + Location + + Specifies the location of the VMImage. + + String + + + PublisherName + + Specifies the publisher of a VMImage. + + String + + + Offer + + Specifies the type of VMImage offer. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location of the VMImage. + + String + + String + + + none + + + PublisherName + + Specifies the publisher of a VMImage. + + String + + String + + + none + + + Offer + + Specifies the type of VMImage offer. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get SKUs -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMImageSku -Location "Central US" -PublisherName "Fabrikam" -Offer "LinuxServer" + + This command gets the SKUs for the specified publisher and offer. + + + + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImagePublisher + + + + Save-AzureRmVMImage + + + + + + + + Get-AzureRmVMSize + + Gets available virtual machine sizes. + + + + + Get + AzureRmVMSize + + + + The Get-AzureRmVMSize cmdlet gets available virtual machine sizes. + + + + Get-AzureRmVMSize + + Location + + Specifies the location for which this cmdlet gets the available virtual machine sizes. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmVMSize + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRmVMSize + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + AvailabilitySetName + + Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location for which this cmdlet gets the available virtual machine sizes. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. + + String + + String + + + none + + + AvailabilitySetName + + Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get sizes for a location -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMSize -Location "Central US" + + This command gets the available sizes for virtual machines in the specified location. + + + + + + + + + + + + + + -------------------------- Example 2: Get sizes for an availability set -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -AvailabilitySetName "AvailabilitySet17" + + This command gets available sizes for virtual machines that you can deploy in the availability set named AvailabilitySet17. + + + + + + + + + + + + + + -------------------------- Example 3: Get sizes for an existing virtual machine -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -VMName "VirtualMachine12" + + This command gets available sizes for the existing virtual machine named VirtualMachine12. You can resize this virtual machine to the sizes that this command gets. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + + + + + Get-AzureRmVMSqlServerExtension + + + + + + + Get + AzureRmVMSqlServerExtension + + + + + + + + Get-AzureRmVMSqlServerExtension + + ResourceGroupName + + + + String + + + VMName + + + + String + + + Name + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + VMName + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMUsage + + Gets the virtual machine core count usage for a location. + + + + + Get + AzureRmVMUsage + + + + The Get-AzureRmVMUsage cmdlet gets the virtual machine core count usage for a location. + + + + Get-AzureRmVMUsage + + Location + + Specifies the location for which this cmdlet gets virtual machine core count usage. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Specifies the location for which this cmdlet gets virtual machine core count usage. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Get core count usage for a location -------------------------- + + PS C:\> + + PS C:\>Get-AzureRmVMUsage -Location "Central US" + + This command gets the virtual machine core count usage for the location Central US. + + + + + + + + + + + + + + + + + + + + New-AzureRmAvailabilitySet + + Creates an Azure availability set. + + + + + New + AzureRmAvailabilitySet + + + + The New-AzureRmAvailabilitySet cmdlet creates an Azure availability set. + + + + New-AzureRmAvailabilitySet + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies a name for the availability set. + + String + + + Location + + Specifies the location for the availability set. + + String + + + PlatformUpdateDomainCount + + Specifies the platform update domain count. + + Nullable`1[Int32] + + + PlatformFaultDomainCount + + Specifies the platform fault domain count. + + Nullable`1[Int32] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Name + + Specifies a name for the availability set. + + String + + String + + + none + + + Location + + Specifies the location for the availability set. + + String + + String + + + none + + + PlatformUpdateDomainCount + + Specifies the platform update domain count. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + none + + + PlatformFaultDomainCount + + Specifies the platform fault domain count. + + Nullable`1[Int32] + + Nullable`1[Int32] + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Create an availability set -------------------------- + + PS C:\> + + PS C:\>New-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -Location "West US" + + This command creates an availability set named AvailablitySet03 in the resource group named ResourceGroup11. + + + + + + + + + + + + + + + + Get-AzureRmAvailabilitySet + + + + Remove-AzureRmAvailabilitySet + + + + + + + + New-AzureRmVM + + Creates a virtual machine. + + + + + New + AzureRmVM + + + + The New-AzureRmVM cmdlet creates a virtual machine in Azure. This cmdlet takes a virtual machine object as input. Use the New-AzureRmVMConfig cmdlet to create a virtual machine object. Configure the virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. + + + + New-AzureRmVM + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Location + + Specifies a location for the virtual machine. + + String + + + VM + + Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. + + PSVirtualMachine + + + Tags + + + + Hashtable[] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Location + + Specifies a location for the virtual machine. + + String + + String + + + none + + + VM + + Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Tags + + + + Hashtable[] + + Hashtable[] + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Name + + Specifies a name for the virtual machine. + + string + + string + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Create a virtual machine -------------------------- + + PS C:\> + + PS C:\># Variables +## Global +$ResourceGroupName = "ResourceGroup11" +$Location = "westeurope" --- ReadOnly --- ReadWrite +## Storage +$StorageName = "GeneralStorage6cc" +$StorageType = "Standard_GRS" -The default value is ReadWrite. Changing this value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - - ReadOnly - ReadWrite - - - - DiskSizeInGB - - Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. - - Int32] - - - Lun - - Specifies the logical unit number (LUN) for a data disk. - - Int32] - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: +## Network +$InterfaceName = "ServerInterface06" +$Subnet1Name = "Subnet1" +$VNetName = "VNet09" +$VNetAddressPrefix = "10.0.0.0/16" +$VNetSubnetAddressPrefix = "10.0.0.0/24" --- Attach --- Empty --- FromImage - - - empty - attach - fromImage - - - - SourceImageUri - - Specifies the source URI of the disk that this cmdlet attaches. - - System.String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Caching - - Specifies the caching mode of the disk. Valid values are: +## Compute +$VMName = "VirtualMachine12" +$ComputerName = "Server22" +$VMSize = "Standard_A2" +$OSDiskName = $VMName + "osDisk" --- ReadOnly --- ReadWrite +# Resource Group +New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location -The default value is ReadWrite. Changing this value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - String - - - none - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: +# Storage +$StorageAccount = New-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageName -Type $StorageType -Location $Location --- Attach --- Empty --- FromImage - - System.String - - System.String - - - none - - - DiskSizeInGB - - Specifies the size, in gigabytes, of an empty disk to attach to a virtual machine. - - Int32] - - Int32] - - - none - - - Lun - - Specifies the logical unit number (LUN) for a data disk. - - Int32] - - Int32] - - - none - - - Name +# Network +$PIp = New-AzureRmPublicIpAddress -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -AllocationMethod Dynamic +$SubnetConfig = New-AzureRmVirtualNetworkSubnetConfig -Name $Subnet1Name -AddressPrefix $VNetSubnetAddressPrefix +$VNet = New-AzureRmVirtualNetwork -Name $VNetName -ResourceGroupName $ResourceGroupName -Location $Location -AddressPrefix $VNetAddressPrefix -Subnet $SubnetConfig +$Interface = New-AzureRmNetworkInterface -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -SubnetId $VNet.Subnets[0].Id -PublicIpAddressId $PIp.Id + +# Compute + +## Setup local VM object +$Credential = Get-Credential +$VirtualMachine = New-AzureRmVMConfig -VMName $VMName -VMSize $VMSize +$VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -ProvisionVMAgent -EnableAutoUpdate +$VirtualMachine = Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest" +$VirtualMachine = Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id $Interface.Id +$OSDiskUri = $StorageAccount.PrimaryEndpoints.Blob.ToString() + "vhds/" + $OSDiskName + ".vhd" +$VirtualMachine = Set-AzureRmVMOSDisk -VM $VirtualMachine -Name $OSDiskName -VhdUri $OSDiskUri -CreateOption FromImage + +## Create the VM in Azure +New-AzureRmVM -ResourceGroupName $ResourceGroupName -Location $Location -VM $VirtualMachine + + This example script shows how to create a virtual machine. This script uses several other cmdlets. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + Add-AzureRmVMDataDisk + + + + Add-AzureRmVMNetworkInterface + + + + New-AzureRmVMConfig + + + + Set-AzureRmVMOperatingSystem + + + + Set-AzureRmVMSourceImage + + + + Set-AzureRmVMOSDisk + + + + + + + + New-AzureRmVMConfig + + Creates a configurable virtual machine object. + + + + + New + AzureRmVMConfig + + + + The New-AzureRmVMConfig cmdlet creates a configurable local virtual machine object for Azure. Configure a virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. + + + + New-AzureRmVMConfig + + VMName + + Specifies a name for the virtual machine. + + String + + + VMSize + + Specifies the size for the virtual machine. + + String + + + AvailabilitySetId + + Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VMName + + Specifies a name for the virtual machine. + + String + + String + + + none + + + VMSize + + Specifies the size for the virtual machine. + + String + + String + + + none + + + AvailabilitySetId + + Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Create a virtual machine object -------------------------- + + PS C:\> + + PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + + + + + + + + + + + + + + + + Update-AzureRmVM + + + + Set-AzureRmVMOperatingSystem + + + + Set-AzureRmVMSourceImage + + + + Get-AzureRmAvailabilitySet + + + + + + + + New-AzureVMSqlServerAutoBackupConfig + + + + + + + New + AzureVMSqlServerAutoBackupConfig + + + + + + + + New-AzureVMSqlServerAutoBackupConfig + + ResourceGroupName + + + + String + + + Enable + + + + SwitchParameter + + + RetentionPeriodInDays + + + + Int32 + + + EnableEncryption + + + + SwitchParameter + + + CertificatePassword + + + + SecureString + + + StorageUri + + + + Uri + + + StorageKey + + + + SecureString + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + New-AzureVMSqlServerAutoBackupConfig + + ResourceGroupName + + + + String + + + Enable + + + + SwitchParameter + + + RetentionPeriodInDays + + + + Int32 + + + EnableEncryption + + + + SwitchParameter + + + CertificatePassword + + + + SecureString + + + StorageContext + + + + AzureStorageContext + + + StorageUri + + + + Uri + + + StorageKey + + + + SecureString + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + Enable + + + + SwitchParameter + + SwitchParameter + + + + + + RetentionPeriodInDays + + + + Int32 + + Int32 + + + + + + EnableEncryption + + + + SwitchParameter + + SwitchParameter + + + + + + CertificatePassword + + + + SecureString + + SecureString + + + + + + StorageUri + + + + Uri + + Uri + + + + + + StorageKey + + + + SecureString + + SecureString + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + StorageContext + + + + AzureStorageContext + + AzureStorageContext + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureVMSqlServerAutoPatchingConfig + + + + + + + New + AzureVMSqlServerAutoPatchingConfig + + + + + + + + New-AzureVMSqlServerAutoPatchingConfig + + Enable + + + + SwitchParameter + + + DayOfWeek + + + + String + + + MaintenanceWindowStartingHour + + + + Int32 + + + MaintenanceWindowDuration + + + + Int32 + + + PatchCategory + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Enable + + + + SwitchParameter + + SwitchParameter + + + + + + DayOfWeek + + + + String + + String + + + + + + MaintenanceWindowStartingHour + + + + Int32 + + Int32 + + + + + + MaintenanceWindowDuration + + + + Int32 + + Int32 + + + + + + PatchCategory + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Publish-AzureRmVMDscConfiguration + + Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. + + + + + Publish + AzureRmVMDscConfiguration + + + + Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. + + + + Publish-AzureRmVMDscConfiguration + + ResourceGroupName + + The name of the resource group that contains the storage account + + String + + + ConfigurationPath + + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). + + String + + + ContainerName + + Name of the Azure Storage Container the configuration is uploaded to. + + String + + + StorageAccountName + + The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName + + String + + + StorageEndpointSuffix + + Suffix for the storage end point, e.g. core.windows.net + + String + + + Force + + By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + SwitchParameter + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive. + + SwitchParameter + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet + + String + + + AdditionalPath + + Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration + + String[] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + + + Publish-AzureRmVMDscConfiguration + + ConfigurationPath + + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). + + String + + + OutputArchivePath + + Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. + + String + + + Force + + By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + SwitchParameter + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive. + + SwitchParameter + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet + + String + + + AdditionalPath + + Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration + + String[] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + + + + + ResourceGroupName + + The name of the resource group that contains the storage account + + String + + String + + + + + + ConfigurationPath + + Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). + + String + + String + + + + + + ContainerName + + Name of the Azure Storage Container the configuration is uploaded to. + + String + + String + + + + + + StorageAccountName + + The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName + + String + + String + + + + + + StorageEndpointSuffix + + Suffix for the storage end point, e.g. core.windows.net + + String + + String + + + + + + Force + + By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + + SwitchParameter + + SwitchParameter + + + + + + SkipDependencyDetection + + Excludes DSC resource dependencies from the configuration archive. + + SwitchParameter + + SwitchParameter + + + + + + ConfigurationDataPath + + Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet + + String + + String + + + + + + AdditionalPath + + Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration + + String[] + + String[] + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + SwitchParameter + + + + + + OutputArchivePath + + Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- EXAMPLE 1 -------------------------- + + PS C:\> + + Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 + + Description + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + PS C:\> + + Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 -OutputArchivePath .\MyConfiguration.ps1.zip + + Description + + + + + + + + + + + + + + -------------------------- EXAMPLE 3 -------------------------- + + PS C:\> + + Publish-AzureRmVMDscConfiguration -ConfigurationPath 'C:\Sample.ps1 -SkipDependencyDetection + + Description + + + + + + + + + + + + + + -------------------------- EXAMPLE 4 -------------------------- + + PS C:\> + + Publish-AzureRmVMDscConfiguration -ConfigurationPath C:\Sample.ps1 -ConfigurationDataPath 'C:\SampleData.psd1' + + Description + + + + + + + + + + + + + + -------------------------- EXAMPLE 5 -------------------------- + + PS C:\> + + Publish-AzureRmVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPath @("C:\ContentDir1", "C:\File.txt") -ConfigurationDataPath "C:\SampleData.psd1" + + Description + + + + + + + + + + + + + + + + Unknown + + + + + + + + Remove-AzureRmAvailabilitySet + + Removes an availability set from Azure. + + + + + Remove + AzureRmAvailabilitySet + + + + The Remove-AzureRmAvailabilitySet cmdlet removes an availability set from Azure. + + + + Remove-AzureRmAvailabilitySet + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + Name + + Specifies the name of the availability set to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + Name + + Specifies the name of the availability set to remove. + + String + + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Remove an availability set -------------------------- + + PS C:\> + + PS C:\>Remove-AzureRmAvailabilitySet -Name "AvailabilitySet03" -ResourceGroupName "ResourceGroup11" + + This command removes an availability set named AvailablitySet03 in the resource group named ResourceGroup11. + + + + + + + + + + + + + + + + Get-AzureRmAvailabilitySet + + + + New-AzureRmAvailabilitySet + + + + + + + + Remove-AzureRmVM + + Removes a virtual machine from Azure. + + + + + Remove + AzureRmVM + + + + The Remove-AzureRmVM cmdlet removes a virtual machine from Azure. + + + + Remove-AzureRmVM + + Name + + Specifies the name of the virtual machine to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Remove-AzureRmVM + + Name + + Specifies the name of the virtual machine to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + Id + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + Specifies the name of the virtual machine to remove. + + String + + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Remove a virtual machine -------------------------- + + PS C:\> + + PS C:\>Remove-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + This command removes the virtual machine named VirtualMachine07 in the resource group ResourceGroup11. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + + + Remove-AzureRmVMAccessExtension + + Removes the VMAccess extension from a virtual machine. + + + + + Remove + AzureRmVMAccessExtension + + + + The Remove-AzureRmVMAccessExtension cmdlet removes the Virtual Machine Access (VMAccess) Virtual Machine Extension from a virtual machine. + + + + Remove-AzureRmVMAccessExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension that this cmdlet removes. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. + + String + + String + + + none + + + Name + + Specifies the name of the extension that this cmdlet removes. + + String + + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- 1: -------------------------- + + PS C:\> + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMAccessExtension + + + + Set-AzureRmVMAccessExtension + + + + Remove-AzureRmVMExtension + + + + + + + + Remove-AzureRmVMBackup + + Remove-AzureRmVMBackup cmdlet remove the VM Backup for the VM. + + + + + Remove + AzureRmVMBackup + + + + + + + + Remove-AzureRmVMBackup + + ResourceGroupName + + Resource group name of the virtual machine + + String + + + VMName + + Name of the virtual machine + + String + + + Tag + + The tag for the VM Backup. This is used for identify the backups. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Resource group name of the virtual machine + + String + + String + + + + + + VMName + + Name of the virtual machine + + String + + String + + + + + + Tag + + The tag for the VM Backup. This is used for identify the backups. + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRmVMCustomScriptExtension + + Removes a custom script extension from a virtual machine. + + + + + Remove + AzureRmVMCustomScriptExtension + + + + The Remove-AzureRmVMCustomScriptExtension cmdlet removes a custom script Virtual Machine Extension from a virtual machine. + + + + Remove-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. + + String + + + Name + + Specifies the name of the custom script extension that this cmdlet removes. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. + + String + + String + + + none + + + Name + + Specifies the name of the custom script extension that this cmdlet removes. + + String + + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- 1: -------------------------- + + PS C:\> + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMCustomScriptExtension + + + + Set-AzureRmVMCustomScriptExtension + + + + + + + + Remove-AzureRmVMDataDisk + + Removes a data disk from a virtual machine. + + + + + Remove + AzureRmVMDataDisk + + + + The Remove-AzureRmVMDataDisk cmdlet removes a data disk from a virtual machine. + + + + Remove-AzureRmVMDataDisk + + VM + + Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + DataDiskNames + + + + String[] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + DataDiskNames + + + + String[] + + String[] + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Name + + Specifies the name of the data disk to add. + + string + + string + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Remove a data disk from a virtual machine -------------------------- + + PS C:\> + + PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" +PS C:\> Remove-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk3" +PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine + + The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. + + + + + + + + + + + + + + + + Add-AzureRmVMDataDisk + + + + Get-AzureRmVM + + + + + + + + Remove-AzureRmVMDiagnosticsExtension + + + + + + + Remove + AzureRmVMDiagnosticsExtension + + + + + + + + Remove-AzureRmVMDiagnosticsExtension + + ResourceGroupName + + + + String + + + VMName + + + + String + + + Name + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + VMName + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRmVMDiskEncryptionExtension + + Remove-AzureRmVMDiskEncryptionExtension cmdlet deletes disk encryption extension from the VM. If no extension name is specified, this cmdlet removes extension with default name 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. + + + + + Remove + AzureRmVMDiskEncryptionExtension + + + + + + + + Remove-AzureRmVMDiskEncryptionExtension + + ResourceGroupName + + Resource group name of the virtual machine + + String + + + VMName + + Name of the virtual machine + + String + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDiskEncryptionExtension cmdlet sets this name to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. Which is the same as the default value used by Remove-AzureRmVMAzureDiskEncryptionExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template + + String + + + Force + + Force switch removes the extension without prompting for a confirmation + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Resource group name of the virtual machine + + String + + String + + + + + + VMName + + Name of the virtual machine + + String + + String + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDiskEncryptionExtension cmdlet sets this name to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. Which is the same as the default value used by Remove-AzureRmVMAzureDiskEncryptionExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template + + String + + String + + + + + + Force + + Force switch removes the extension without prompting for a confirmation + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $rgName = 'MyResourceGroup'; +$vmName = 'MyWindowsVM'; +Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName; + + + + + + + + + + + + + + + + -------------------------- Example 2 -------------------------- + + PS C:\> + + $rgName = 'MyResourceGroup'; +$vmName = 'MyWindowsVM'; +$extensionNmae = 'MyDiskEncryptionExtension' +Remove-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -Name $extensionNmae; + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRmVMDscExtension + + Removes DSC extension handler from a VM in a resource group + + + + + Remove + AzureRmVMDscExtension + + + + Removes DSC extension handler from a VM in a resource group + + + + Remove-AzureRmVMDscExtension + + ResourceGroupName + + The name of the resource group + + String + + + VMName + + The name of the virtual machine + + String + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + ResourceGroupName + + The name of the resource group + + String + + String + + + + + + VMName + + The name of the virtual machine + + String + + String + + + + + + Name + + Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> Remove-AzureRmVMDscExtension –ResouceGroupName Name -VMName VM -Name DSC + + Description + + + + + + + + + + + + + + + + + + + + Remove-AzureRmVMExtension + + Removes an extension from a virtual machine. + + + + + Remove + AzureRmVMExtension + + + + The Remove-AzureRmVMExtension cmdlet removes an extension from the Virtual Machine Extensions of a virtual machine. + + + + Remove-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. + + String + + String + + + none + + + Name + + Specifies the name of the extension to remove. + + String + + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Remove an extension from a virtual machine -------------------------- + + PS C:\> + + PS C:\>Remove-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Name "ContosoTest" -VMName "VirtualMachine22" + + This command removes the extension named ContosoTest from the virtual machine named VirtualMachine22 in ResourceGroup11. + + + + + + + + + + + + + + + + Get-AzureRmVMExtension + + + + Set-AzureRmVMExtension + + + + + + + + Remove-AzureRmVMNetworkInterface + + Removes a network interface from a virtual machine. + + + + + Remove + AzureRmVMNetworkInterface + + + + The Remove-AzureRmVMNetworkInterface cmdlet removes a network interface from a virtual machine. + + + + Remove-AzureRmVMNetworkInterface + + VM + + Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + NetworkInterfaceIDs + + + + String[] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + NetworkInterfaceIDs + + + + String[] + + String[] + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + Specifies the ID of the network interface that this cmdlet removes from the virtual machine. + + string + + string + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- 1: -------------------------- + + PS C:\> + + + + + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + + + + + Remove-AzureRmVMSqlServerExtension + + + + + + + Remove + AzureRmVMSqlServerExtension + + + + + + + + Remove-AzureRmVMSqlServerExtension + + ResourceGroupName + + + + String + + + VMName + + + + String + + + Name + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + VMName + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Restart-AzureRmVM + + Restarts an Azure virtual machine. + + + + + Restart + AzureRmVM + + + + The Restart-AzureRmVM cmdlet restarts an Azure virtual machine. + + + + Restart-AzureRmVM + + Name + + Specifies the name of the virtual machine to restart. + + String + + + ResourceGroupName + + Specifies the name of the resource group. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Restart-AzureRmVM + + Name + + Specifies the name of the virtual machine to restart. + + String + + + Id + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + Specifies the name of the virtual machine to restart. + + String + + String + + + none + + + ResourceGroupName + + Specifies the name of the resource group. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Restart a virtual machine -------------------------- + + PS C:\> + + PS C:\>Restart-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + This command restarts the virtual machine named VirtualMachine07 in ResourceGroup11. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + + + Save-AzureRmVhd + + + + + + + Save + AzureRmVhd + + + + + + + + Save-AzureRmVhd + + ResourceGroupName + + + + String + + + SourceUri + + + + Uri + + + LocalFilePath + + + + FileInfo + + + NumberOfThreads + + + + Int32 + + + OverWrite + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Save-AzureRmVhd + + StorageKey + + + + String + + + SourceUri + + + + Uri + + + LocalFilePath + + + + FileInfo + + + NumberOfThreads + + + + Int32 + + + OverWrite + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + SourceUri + + + + Uri + + Uri + + + + + + LocalFilePath + + + + FileInfo + + FileInfo + + + + + + NumberOfThreads + + + + Int32 + + Int32 + + + + + + OverWrite + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + StorageKey + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Save-AzureRmVMImage + + Captures a virtual machine as a VMImage. + + + + + Save + AzureRmVMImage + + + + The Save-AzureRmVMImage cmdlet captures a virtual machine as a VMImage. Before you create a virtual machine image, sysprep the virtual machine, and then mark it as generalized by using the Set-AzureRmVM cmdlet. + The output of this cmdlet is a JavaScript Object Notation (JSON) template. You can deploy virtual machines from your captured image. + + + + Save-AzureRmVMImage + + Name + + + + String + + + DestinationContainerName + + Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. + + String + + + VHDNamePrefix + + Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. + + String + + + Overwrite + + Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. + + SwitchParameter + + + Path + + + + String + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Save-AzureRmVMImage + + Name + + + + String + + + DestinationContainerName + + Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. + + String + + + VHDNamePrefix + + Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. + + String + + + Overwrite + + Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. + + SwitchParameter + + + Path + + + + String + + + Id + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + DestinationContainerName + + Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. + + String + + String + + + none + + + VHDNamePrefix + + Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. + + String + + String + + + none + + + Overwrite + + Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. + + SwitchParameter + + SwitchParameter + + + none + + + Path + + + + String + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + VMName + + Specifies the name of the virtual machine that this cmdlet saves. + + string + + string + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Capture a virtual machine -------------------------- + + PS C:\> + + PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized +PS C:\> Save-AzureRmVMImage -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -DestinationContainerName "VMContainer01" -VHDNamePrefix "VM07" + + The first marks the virtual machine named VirtualMachine07 as generalized. + + + + + + + + + + + + + + + + Get-AzureRmVMImage + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageSku + + + + Set-AzureRmVM + + + + + + + + Set-AzureRmVM + + Marks a virtual machine as generalized. + + + + + Set + AzureRmVM + + + + The Set-AzureRmVM cmdlet marks a virtual machine as generalized. Before you run this cmdlet, log on to the virtual machine and use Sysprep to prepare the hard disk. + + + + Set-AzureRmVM + + Name + + Specifies the name of the virtual machine on which this cmdlet operates. + + String + + + Generalized + + Indicates that this cmdlet marks a virtual machine as generalized. + + SwitchParameter + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVM + + Name + + Specifies the name of the virtual machine on which this cmdlet operates. + + String + + + Generalized + + Indicates that this cmdlet marks a virtual machine as generalized. + + SwitchParameter + + + Id + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + Specifies the name of the virtual machine on which this cmdlet operates. + + String + + String + + + none + + + Generalized + + Indicates that this cmdlet marks a virtual machine as generalized. + + SwitchParameter + + SwitchParameter + + + none + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Mark a virtual machine as generalized -------------------------- + + PS C:\> + + PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized + + This command marks the virtual machine named VirtualMachine07 as generalized. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + + + + + Set-AzureRmVMAccessExtension + + Adds the VMAccess extension to a virtual machine. + + + + + Set + AzureRmVMAccessExtension + + + + The Set-AzureRmVMAccessExtension cmdlet adds the Virtual Machine Access (VMAccess) Virtual Machine Extension to a virtual machine. VMAccess can reset the virtual machine user name and password. + + + + Set-AzureRmVMAccessExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the extension that this cmdlet adds. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + + UserName + + Specifies the new user name for the virtual machine. + + String + + + Password + + Specifies the new password of the virtual machine. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. + + String + + String + + + none + + + Name + + Specifies the name of the extension that this cmdlet adds. + + String + + String + + + none + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + String + + + none + + + UserName + + Specifies the new user name for the virtual machine. + + String + + String + + + none + + + Password + + Specifies the new password of the virtual machine. + + String + + String + + + none + + + Location + + Specifies the location of the virtual machine. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Add a VMAccess extension -------------------------- + + PS C:\> + + PS C:\> Set-AzureRmVMAccessExtension -ResourceGroupName "ResrouceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "ContosoTest" -TypeHandlerVersion "2.0" -UserName "PFuller" -Password "Password" + + This command adds a VMAccess extension for the virtual machine named VirtualMachine07 in ResrouceGroup11. The command specifies the name and type handler version for VMAccess. + + + + + + + + + + + + + + + + Get-AzureRmVMAccessExtension + + + + Remove-AzureRmVMAccessExtension + + + + Set-AzureRmVMExtension + + + + Get-AzureRmVMExtensionImage + + + + + + + + Set-AzureRmVMBackupExtension + + Set-AzureRmVMBackupExtension cmdlet create a backup for this VM. + + + + + Set + AzureRmVMBackupExtension + + + + + + + + Set-AzureRmVMBackupExtension + + ResourceGroupName + + Resource group name of the virtual machine + + String + + + VMName + + Name of the virtual machine + + String + + + Name + + Name of the ARM resource that represents the extension. This is 'VMBackupForLinuxExtension' for Linux VMs. + + String + + + Tag + + The tag for the VM Backup. This is used for identify the backups. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Resource group name of the virtual machine + + String + + String + + + + + + VMName + + Name of the virtual machine + + String + + String + + + + + + Name + + Name of the ARM resource that represents the extension. This is 'VMBackupForLinuxExtension' for Linux VMs. + + String + + String + + + + + + Tag + + The tag for the VM Backup. This is used for identify the backups. + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRmVMBootDiagnostics + + + + + + + Set + AzureRmVMBootDiagnostics + + + + + + + + Set-AzureRmVMBootDiagnostics + + VM + + + + PSVirtualMachine + + + Enable + + + + SwitchParameter + + + ResourceGroupName + + + + String + + + StorageAccountName + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMBootDiagnostics + + VM + + + + PSVirtualMachine + + + Disable + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + + + PSVirtualMachine + + PSVirtualMachine + + + + + + Enable + + + + SwitchParameter + + SwitchParameter + + + + + + ResourceGroupName + + + + String + + String + + + + + + StorageAccountName + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Disable + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRmVMChefExtension + + Adds the Chef extension to the virtual machine. + + + + + Set + AzureRmVMChefExtension + + + + The Set-AzureVMChefExtension cmdlet adds the Chef extension to the virtual machine. + + + + Set-AzureRmVMChefExtension + + ResourceGroupName - Specifies the name of the data disk to add. + Specifies the name of the resource group of the virtual machine. String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - SourceImageUri - - Specifies the source URI of the disk that this cmdlet attaches. - - System.String - - System.String - - - none - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) for the virtual hard disk (VHD) file to create when a platform image or user image is used. This cmdlet copies the image binary large object (BLOB) to this location. This is the location from which to start the virtual machine. - - String - - String - - - none - - - VM - - Specifies the local virtual machine object to which to add a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Add data disks to a new virtual machine - - - - - PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -PS C:\> $DataDiskVhdUri01 = "https://contoso.blob.core.windows.net/test/data1.vhd" -PS C:\> $DataDiskVhdUri02 = "https://contoso.blob.core.windows.net/test/data2.vhd" -PS C:\> $DataDiskVhdUri03 = "https://contoso.blob.core.windows.net/test/data3.vhd" -PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri1 -CreateOption Empty -PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $DataDiskVhdUri2 -CreateOption Empty -PS C:\> $VirtualMachine = Add-AzureRmVMDataDisk -VM $VirtualMachine -Name 'DataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $DataDiskVhdUri3 -CreateOption Empty - - - - The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. - The next three commands assign paths of three data disks to the $DataDiskVhdUri01, $DataDiskVhdUri02, and $DataDiskVhdUri03 variables. This approach is only for readability of the following commands. - The final three commands each adds a data disk to the virtual machine stored in $VirtualMachine. The command specifies the name and location for the disk, and other properties of the disk. The URI of each disk is stored in $DataDiskVhdUri01, $DataDiskVhdUri02, and $DataDiskVhdUri03. - - - - - - - - - - - Example 2: Add a data disk to an existing virtual machine - - - - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty -PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine - - - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. - The second command adds a data disk to the virtual machine stored in $VirtualMachine. - The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11. - - - - - - - - - - - - - Remove-AzureRmVMDataDisk - - - - Get-AzureRmVM - - - - New-AzureRmVMConfig - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Add-AzureRmVMNetworkInterface - - Adds a network interface to a virtual machine. - - - - - Add - AzureVMNetworkInterface - - - - The Add-AzureRmVMNetworkInterface cmdlet adds a network interface to a virtual machine. You can add an interface when you create a virtual machine or add one to an existing virtual machine. - - - - Add-AzureRmVMNetworkInterface - - VM - - Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Id - - Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. - - String - - - Primary - - Indicates that this cmdlet adds the network interface as the primary interface. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Id - - Specifies the ID of a network interface to add to a virtual machine. To obtain a network interface, use the Get-AzureRmNetworkInterface cmdlet. - - String - - String - - - none - - - Primary - - Indicates that this cmdlet adds the network interface as the primary interface. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM - - Specifies a local virtual machine object to which to add a network interface. To create a virtual machine, use the New-AzureRmVMConfig cmdlet. To obtain an existing virtual machine, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Add a network interface to a new virtual machine - - - - - PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" - - - The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. - The second command adds a network interface to the virtual machine stored in $VirtualMachine. - - - - - - - - - - - Example 2: Add a network interface to an existing virtual machine - - - - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id "/subscriptions/46fc8ea4-2de6-4179-8ab1-365da4121af4/resourceGroups/contoso/providers/Microsoft.Network/networkInterfaces/sshNIC" -PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name " VirtualMachine07" -VM $VirtualMachine - - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmldet. The command stores the virtual machine in the $VirtualMachine variable. - The second command adds a network interface to the virtual machine stored in $VirtualMachine. - The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11. - - - - - - - - - - - - - New-AzureRmVMConfig - - - - Get-AzureRmVM - - - - Get-AzureRmAvailabilitySet - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Add-AzureRmVMSecret - - Adds a secret to a virtual machine. - - - - - Add - AzureVMSecret - - - - The Add-AzureRmVMSecret cmdlet adds a secret to a virtual machine. This value lets you add a certificate to the virtual machine. The secret needs to be stored in a Key Vault. For more information about Key Vault, see What is Azure Key Vault? (https://azure.microsoft.com/en-us/documentation/articles/key-vault-whatis/) in the Azure library. For more information about the cmdlets, see Azure Key Vault Cmdlets (https://msdn.microsoft.com/library/azure/dn868052.aspx) in the Microsoft Developer Network library or type Get-Help Set-AzureKeyVaultSecret. - - - - Add-AzureRmVMSecret - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - SourceVaultId - - Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. - - String - - - CertificateStore - - Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. - - String - - - CertificateUrl - - Specifies the URL that points to a Key Vault secret which contains a certificate. - The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. - { -"data": "<Base64-encoded-file>", -"dataType": "<file-format>", -"password": "<pfx-file-password>" -} - Currently, dataType accepts only .pfx files. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - CertificateStore - - Specifies the name of a certificate store on the virtual machine that runs the Windows operating system. This cmdlet adds the certificate to the store that this parameter specifies. You can only specify this parameter for virtual machines that run the Windows operating system. - - String - - String - - - none - - - CertificateUrl - - Specifies the URL that points to a Key Vault secret which contains a certificate. - The certificate is the Base64 encoding of the following JavaScript Object Notation (JSON) object, which is encoded in UTF-8. - { -"data": "<Base64-encoded-file>", -"dataType": "<file-format>", -"password": "<pfx-file-password>" -} - Currently, dataType accepts only .pfx files. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - SourceVaultId - - Specifies the resource ID of the Key Vault that contains the certificates that you can add to the virtual machine. This value also acts as the key for adding multiple certificates. This means that you can use the same value for SourceVaultId when you add multiple certificates from the same Key Vault. - - String - - String - - - none - - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Add a secret to a virtual machine - - - - - PS C:\>$VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> $Credential = Get-Credential -PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName "Contoso26" -Credential $Credential -PS C:\> $SourceVaultId = "/subscriptions/46f8cea4-2de6-4179-8ab1-365da4211af4/resourceGroups/vault/providers/Microsoft.KeyVault/vaults/keyvault" -PS C:\> $CertificateStore01 = "My" -PS C:\> $CertificateUrl01 = "https://contosovault.vault.azure.net/secrets/514ceb769c984379a7e0230bdd703272" -PS C:\> $VirtualMachine = Add-AzureRmVMSecret -VM $VirtualMachine -SourceVaultId $SourceVaultId -CertificateStore $CertificateStore01 -CertificateUrl $CertificateUrl01 - - - - - The first command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. - The third command creates a credential object by using the Get-Credential cmdlet, and then stores the result in the $Credential variable. The command prompts you for a user name and password. For more information, type Get-Help Get-Credential. - The fourth command uses the Set-AzureRmVMOperatingSystem cmdlet to configure the virtual machine stored in $VirtualMachine. - The fifth command assigns a source vault ID to the $SourceVaultId variable for later use. The command assumes that the $SubscriptionId variable has an appropriate value. - The sixth command assigns a value to the $CertificateStore01 variable for later use. - The seventh command assigns a URL for a certificate store. - The eighth command adds a secret to the virtual machine stored in $VirtualMachine. The SourceVaultId parameter specifies the Key Vault. The command specifies the name of the certificate store and the URL of the certificate. You can run the Add-AzureRmVMSecret repeatedly to add secrets for other certificates. - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Add-AzureRmVMSshPublicKey - - Adds the public keys for SSH for a virtual machine. - - - - - Add - AzureVMSshPublicKey - - - - The Add-AzureRmVMSshPublicKey cmdlet adds the public keys that you can use to connect to a virtual machine over Secure Shell (SSH). - - - - Add-AzureRmVMSshPublicKey - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - KeyData - - Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. - - String - - - Path - - Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - KeyData - - Specifies a base 64 encoding of a public key. You can connect to a virtual machine by using SSH by using the key that this parameter specifies. - - String - - String - - - none - - - Path - - Specifies the full path of a file, on the virtual machine, where this cmdlet stores the SSH public key. If the file already exists, this cmdlet appends the key to the file. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM - - Specifies the virtual machine object that this cmdlet modifies. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Add a public key to a virtual machine - - - - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> $VirtualMachine = Add-AzureRmVMSshPublicKey -VM $VirtualMachine -KeyData "MIIDszCCApugAwIBAgIJALBV9YJCF/tAMA0GCSq12Ib3DQEB21QUAMEUxCzAJBgNV" -Path "/home/admin/.ssh/authorized_keys" - - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. - The second command adds the public key to the location on VirtualMachine07 that the Path parameter specifies. - - - - - - - - - - - - - Get-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmAvailabilitySet - - Gets Azure availability sets in a resource group. - - - - - Get - AzureAvailabilitySet - - - - The Get-AzureRmAvailabilitySet cmdlet gets Azure availability sets in a resource group. Specify the name of a specific availability set to get. - - - - Get-AzureRmAvailabilitySet - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of an availability set to get. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Name - - Specifies the name of an availability set to get. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get a specific availability set - - - - - PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" - - - This command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11. - - - - - - - - - - - Example 2: Get all availability sets - - - - - PS C:\>Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" - - - This command gets all the availability sets in the resource group named ResourceGroup11. - - - - - - - - - - - - - New-AzureRmAvailabilitySet - - - - Remove-AzureRmAvailabilitySet - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmRemoteDesktopFile - - Gets an .rdp file. - - - - - Get - AzureRemoteDesktopFile - - - - The Get-AzureRmRemoteDesktopFile cmdlet gets a Remote Desktop Protocol (.rdp) file. - - - - Get-AzureRmRemoteDesktopFile - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the availability set that this cmdlet gets. - - String - - - LocalPath - - Specifies the local full path where this cmdlet stores the .rdp file. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - LocalPath - - Specifies the local full path where this cmdlet stores the .rdp file. - - String - - String - - - none - - - Name - - Specifies the name of the availability set that this cmdlet gets. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get a Remote Desktop file - - - - - PS C:\>Get-AzureRmRemoteDesktopFile -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -LocalPath "D:\RemoteDesktopFile07.rdp" - - - This command gets the Remote Desktop file for the virtual machine named VirtualMachine07. The command stores the result in the file named D:\RemoteDesktopFile07.rdp. - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMAccessExtension - - Gets information about the VMAccess extension. - - - - - Get - AzureVMAccessExtension - - - - The Get-AzureRmVMAccessExtension cmdlet gets information about the Virtual Machine Access (VMAccess) Virtual Machine Extension. - - - - Get-AzureRmVMAccessExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension that this cmdlet gets. - - String - - - Status - - Indicates that this cmdlet gets only the instance view of the extension. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Name - - Specifies the name of the extension that this cmdlet gets. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - Status - - Indicates that this cmdlet gets only the instance view of the extension. - - SwitchParameter - - SwitchParameter - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets information about VMAccess for the virtual machine that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get the VMAccess extension - - - - - PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoTest" - - - This command gets the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. - - - - - - - - - - - Example 2: Get the instance view of the VMAccess extension - - - - - PS C:\>$VMAccessExtension = Get-AzureRmVMAccessExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine0" -Name "ContosoTest" -Status - - - This command gets the instance view of the VMAccess extension named ContosoTest for the virtual machine named VirtualMachine07. - - - - - - - - - - - - - Remove-AzureRmVMAccessExtension - - - - Set-AzureRmVMAccessExtension - - - - Get-AzureRmVMExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMCustomScriptExtension - - Gets information about a custom script extension. - - - - - Get - AzureVMCustomScriptExtension - - - - The Get-AzureRmVMCustomScriptExtension cmdlet gets information about a custom script Virtual Machine Extension on a virtual machine. - - - - Get-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. - - String - - - Name - - Specifies the name of the custom script extension about which this cmdlet gets information. - - String - - - Status - - Indicates that this cmdlet gets the instance view of the custom script extension. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Name - - Specifies the name of the custom script extension about which this cmdlet gets information. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - Status - - Indicates that this cmdlet gets the instance view of the custom script extension. - - SwitchParameter - - SwitchParameter - - - none - - - VMName - - Specifies the name of a virtual machine for which this cmdlet gets the custom script extension. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get a custom script extension - - - - - PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" - - - This command gets the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. - - - - - - - - - - - Example 2: Get the instance view of a custom script extension - - - - - PS C:\>$VMCustomScriptExtension = Get-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -Name "ContosoCustomScript" -Status - - - This command gets the instance view of the custom script extension named ContosoCustomScript for the virtual machine named VirtualMachine07. - - - - - - - - - - - - - Get-AzureRmVMExtension - - - - Get-AzureRmVMExtensionImage - - - - Get-AzureRmVMAccessExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMExtensionImageDetail - - This cmdlet has been deprecated. - - - - - Get - AzureVMExtensionImageDetail - - - - This Get-AzureRmVMExtensionImageDetail cmdlet has been deprecated. - - - - Get-AzureRmVMExtensionImageDetail - - FilterExpression - - - String - - - Profile - - - AzureProfile - - - Version - - - String - - - Location - - - String - - - PublisherName - - - String - - - Type - - - String - - - - - - FilterExpression - - - String - - String - - - none - - - Location - - - String - - String - - - none - - - Profile - - - AzureProfile - - AzureProfile - - - none - - - PublisherName - - - String - - String - - - none - - - Type - - - String - - String - - - none - - - Version - - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - PS C:\> - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMExtensionImageType - - Gets the type of an Azure extension. - - - - - Get - AzureVMExtensionImageType - - - - The Get-AzureRmVMExtensionImageType cmdlet gets the type of an Azure extension. - - - - Get-AzureRmVMExtensionImageType - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Location - - Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. - - String - - - PublisherName - - Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. - - String - - - - - - Location - - Specifies the location of an extension. This cmdlet gets the type for an extension at the location that this parameter specifies. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - PublisherName - - Specifies the name of a publisher of an extension. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. This cmdlet gets the type for an extension from the publisher that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get an extension image type - - - - - PS C:\>Get-AzureRmVMExtensionImageType -Location "Central US" -PublisherName "Fabrikam" - - - This command gets the extension image type for the specified publisher and location. - - - - - - - - - - - - - Get-AzureRmVMExtensionImage - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMExtensionImage - - Gets all versions for an Azure extension. - - - - - Get - AzureVMExtensionImage - - - - The Get-AzureRmVMExtensionImage cmdlet gets all versions for an Azure extension. - - - - Get-AzureRmVMExtensionImage - - FilterExpression - - Specifies a filter expression. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Version - - - - - System.String - - - Location - - Specifies the location of an extension. - - String - - - PublisherName - - Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - - Type - - Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. - - String - - - - - - FilterExpression - - Specifies a filter expression. - - String - - String - - - none - - - Location - - Specifies the location of an extension. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - PublisherName - - Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - String - - - none - - - Type - - Specifies the type of the extension. To obtain an extension type, use the Get-AzureRmVMExtensionImageType cmdlet. - - String - - String - - - none - - - Version - - - - - System.String - - System.String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get the versions of an extension image - - - - - PS C:\>Get-AzureRmVMExtensionImage -Location "Central US" -PublisherName "Fabrikam" -Type "FabrikamEndpointProtection" - - - This command gets all the versions of the extension image for the specified location, publisher, and type. - - - - - - - - - - - - - Get-AzureRmVMExtensionImageType - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMExtensionImageType - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMExtension - - Gets properties of Virtual Machine Extensions installed on a virtual machine. - - - - - Get - AzureVMExtension - - - - The Get-AzureRmVMExtension cmdlet gets properties of Virtual Machine Extensions installed on a virtual machine. Specify the name of an extension for which to get properties. To get only the instance view of an extension, specify the Status parameter. - - - - Get-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. - - String - - - Status - - Indicates that this cmdlet gets only the instance view of an extension. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Name - - Specifies the name of an extension. This cmdlet gets properties for the extension that this parameter specifies. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Status - - Indicates that this cmdlet gets only the instance view of an extension. - - SwitchParameter - - SwitchParameter - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet gets properties of an extension from the virtual machine that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get properties of an extension - - - - - PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" - - - This command gets properties for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. - - - - - - - - - - - Example 2: Get instance view of an extension - - - - - PS C:\>Get-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Status - - - This command gets the instance view for the extension named CustomScriptExtension on the virtual machine named VirtualMachine22 in the resource group ResourceGroup11. - - - - - - - - - - - - - Remove-AzureRmVMExtension - - - - Set-AzureRmVMExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMImageDetail - - This cmdlet has been deprecated. - - - - - Get - AzureVMImageDetail - - - - The Get-AzureRmVMImageDetail cmdlet has been deprecated. - - - - Get-AzureRmVMImageDetail - - Profile - - - AzureProfile - - - Location - - - String - - - Offer - - - String - - - PublisherName - - - String - - - Skus - - - String - - - Version - - - String - - - - - - Location - - - String - - String - - - none - - - Offer - - - String - - String - - - none - - - Profile - - - AzureProfile - - AzureProfile - - - none - - - PublisherName - - - String - - String - - - none - - - Skus - - - String - - String - - - none - - - Version - - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - PS C:\> - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMImageOffer - - Gets VMImage offer types. - - - - - Get - AzureVMImageOffer - - - - The Get-AzureRmVMImageOffer cmdlet gets the VMImage offer types. - - - - Get-AzureRmVMImageOffer - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Location - - Specifies the location of the VMImage. - - String - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - - - - - Location - - Specifies the location of the VMImage. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get offer types for a publisher - - - - - PS C:\>Get-AzureRmVMImageOffer -Location "Central US" -PublisherName "Fabrikam" - - - This command gets the offer types for the specified publisher in the Central US region. - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageSku - - - - Save-AzureRmVMImage - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMImagePublisher - - Gets the VMImage publishers. - - - - - Get - AzureVMImagePublisher - - - - The Get-AzureRmVMImagePublisher cmdlet gets the VMImage publishers. - - - - Get-AzureRmVMImagePublisher - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Location - - Specifies the location of the VMImage. - - String - - - - - - Location - - Specifies the location of the VMImage. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get VMImage publishers for a region - - - - - PS C:\>Get-AzureRmVMImagePublisher -Location "Central US" - - - This command gets the publishers of VMImage instances for the Central US region within your profile. - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImageSku - - - - Save-AzureRmVMImage - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMImageSku - - Gets VMImage SKUs. - - - - - Get - AzureVMImageSku - - - - The Get-AzureRmVMImageSku cmdlet gets VMImage SKUs. - - - - Get-AzureRmVMImageSku - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Location - - Specifies the location of the VMImage. - - String - - - Offer - - Specifies the type of VMImage offer. - - String - - - PublisherName - - Specifies the publisher of a VMImage. - - String - - - - - - Location - - Specifies the location of the VMImage. - - String - - String - - - none - - - Offer - - Specifies the type of VMImage offer. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - PublisherName - - Specifies the publisher of a VMImage. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get SKUs - - - - - PS C:\>Get-AzureRmVMImageSku -Location "Central US" -PublisherName "Fabrikam" -Offer "LinuxServer" - - - This command gets the SKUs for the specified publisher and offer. - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImagePublisher - - - - Save-AzureRmVMImage - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMImage - - Gets all the versions of a VMImage. - - - - - Get - AzureVMImage - - - - The Get-AzureRmVMImage cmdlet gets all the versions of a VMImage. - - - - Get-AzureRmVMImage - - FilterExpression - - Specifies a filter expression. - - System.String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - Location - - Specifies the location of a VMImage. - - System.String - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - System.String - - - PublisherName - - Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - System.String - - - Skus - - Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. - - System.String - - - - Get-AzureRmVMImage - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - Location - - Specifies the location of a VMImage. - - System.String - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - System.String - - - PublisherName - - Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - System.String - - - Skus - - Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. - - System.String - - - Version - - - - - System.String - - - - - - FilterExpression - - Specifies a filter expression. - - System.String - - System.String - - - none - - - Location - - Specifies the location of a VMImage. - - System.String - - System.String - - - none - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - System.String - - System.String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - none - - - PublisherName - - Specifies the publisher of a VMImage. To obtain an image publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - System.String - - System.String - - - none - - - Skus - - Specifies a VMImage SKU. To obtain an SKU, use the Get-AzureRmVMImageSku cmdlet. - - System.String - - System.String - - - none - - - Version - - - - - System.String - - System.String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get VMImage objects - - - - - PS C:\>Get-AzureRmVMImage -Location "Central US" -PublisherName "Canonical" -Offer "UbuntuServer" -Skus "15.04-DAILY" - - - This command gets all the versions of VMImage that match the specified values. - - - - - - - - - - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageSku - - - - Save-AzureRmVMImage - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMSize - - Gets available virtual machine sizes. - - - - - Get - AzureVMSize - - - - The Get-AzureRmVMSize cmdlet gets available virtual machine sizes. - - - - Get-AzureRmVMSize - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - AvailabilitySetName - - Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Get-AzureRmVMSize - - Location - - Specifies the location for which this cmdlet gets the available virtual machine sizes. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Get-AzureRmVMSize - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - AvailabilitySetName - - Specifies the name of the Availability Set for which this cmdlet gets the available virtual machine sizes. - - String - - String - - - none - - - Location - - Specifies the location for which this cmdlet gets the available virtual machine sizes. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of the virtual machine that this cmdlet gets the available virtual machine sizes for resizing. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get sizes for a location - - - - - PS C:\>Get-AzureRmVMSize -Location "Central US" - - - - This command gets the available sizes for virtual machines in the specified location. - - - - - - - - - - - Example 2: Get sizes for an availability set - - - - - PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -AvailabilitySetName "AvailabilitySet17" - - - - This command gets available sizes for virtual machines that you can deploy in the availability set named AvailabilitySet17. - - - - - - - - - - - Example 3: Get sizes for an existing virtual machine - - - - - PS C:\>Get-AzureRmVMSize -ResourceGroupName "ResourceGroup03" -VMName "VirtualMachine12" - - - - This command gets available sizes for the existing virtual machine named VirtualMachine12. You can resize this virtual machine to the sizes that this command gets. - - - - - - - - - - - - - Get-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVMUsage - - Gets the virtual machine core count usage for a location. - - - - - Get - AzureVMUsage - - - - The Get-AzureRmVMUsage cmdlet gets the virtual machine core count usage for a location. - - - - Get-AzureRmVMUsage - - Location - - Specifies the location for which this cmdlet gets virtual machine core count usage. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Location - - Specifies the location for which this cmdlet gets virtual machine core count usage. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get core count usage for a location - - - - - PS C:\>Get-AzureRmVMUsage -Location "Central US" - - - This command gets the virtual machine core count usage for the location Central US. - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Get-AzureRmVM - - Gets the properties of a virtual machine. - - - - - Get - AzureVM - - - - The Get-AzureRmVM cmdlet gets the model view and instance view of an Azure virtual machine. The model view is the user specified properties of the virtual machine. The instance view is the instance level status of the virtual machine. To get only the instance view of a virtual machine, specify the Status parameter. - - - - Get-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - - Name - - Specifies the name of the virtual machine to get. - - System.String - - - Status - - Indicates that this cmdlet gets only the instance view of the virtual machine. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - - Get-AzureRmVM - - NextLink - - Specifies the next link. - - System.Uri - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - - Get-AzureRmVM - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - - Get-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - - - - Name - - Specifies the name of the virtual machine to get. - - System.String - - System.String - - - none - - - NextLink - - Specifies the next link. - - System.Uri - - System.Uri - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - System.String - - System.String - - - none - - - Status - - Indicates that this cmdlet gets only the instance view of the virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Get model and instance view properties - - - - - PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - - This command gets the model view and instance view properties of the virtual machine named VirtualMachine07. - - - - - - - - - - - Example 2: Get instance view properties - - - - - PS C:\>Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Status - - - This command gets properties of the virtual machine named VirtualMachine07. This command specifies the Status parameter. Therefore, the command gets only the instance view properties. - - - - - - - - - - - Example 3: Get properties for all virtual machines in a resource group - - - - - PS C:\> Get-AzureRmVM -ResourceGroupName "ResourceGroup11" - - - This command gets properties for all the virtual machines in the resource group named ResourceGroup11. - - - - - - - - - - - Example 4: Get all virtual machines in your subscription - - - - - PS C:\>Get-AzureRmVM - - - - This command gets all the virtual machines in your subscription. - - - - - - - - - - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - New-AzureRmAvailabilitySet - - Creates an Azure availability set. - - - - - New - AzureAvailabilitySet - - - - The New-AzureRmAvailabilitySet cmdlet creates an Azure availability set. - - - - New-AzureRmAvailabilitySet - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies a name for the availability set. - - String - - - Location - - Specifies the location for the availability set. - - String - - - PlatformUpdateDomainCount - - Specifies the platform update domain count. - - Nullable [System.Int32] - - - PlatformFaultDomainCount - - Specifies the platform fault domain count. - - Nullable [System.Int32] - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Location - - Specifies the location for the availability set. - - String - - String - - - none - - - Name - - Specifies a name for the availability set. - - String - - String - - - none - - - PlatformFaultDomainCount - - Specifies the platform fault domain count. - - Nullable [System.Int32] - - Nullable [System.Int32] - - - none - - - PlatformUpdateDomainCount - - Specifies the platform update domain count. - - Nullable [System.Int32] - - Nullable [System.Int32] - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Create an availability set - - - - - PS C:\>New-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -Location "West US" - - - This command creates an availability set named AvailablitySet03 in the resource group named ResourceGroup11. - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - Remove-AzureRmAvailabilitySet - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - New-AzureRmVMConfig - - Creates a configurable virtual machine object. - - - - - New - AzureVMConfig - - - - The New-AzureRmVMConfig cmdlet creates a configurable local virtual machine object for Azure. Configure a virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. - - - - New-AzureRmVMConfig - - VMName - - Specifies a name for the virtual machine. - - String - - - VMSize - - Specifies the size for the virtual machine. - - String - - - AvailabilitySetId - - Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - AvailabilitySetId - - Specifies the ID of an availability set. To obtain an availability set object, use the Get-AzureRmAvailabilitySet cmdlet. The availability set object contains an ID property. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VMName - - Specifies a name for the virtual machine. - - String - - String - - - none - - - VMSize - - Specifies the size for the virtual machine. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Create a virtual machine object - - - - - PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id - - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. - - - - - - - - - - - - - Update-AzureRmVM - - - - Set-AzureRmVMOperatingSystem - - - - Set-AzureRmVMSourceImage - - - - Get-AzureRmAvailabilitySet - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - New-AzureRmVM - - Creates a virtual machine. - - - - - New - AzureVM - - - - The New-AzureRmVM cmdlet creates a virtual machine in Azure. This cmdlet takes a virtual machine object as input. Use the New-AzureRmVMConfig cmdlet to create a virtual machine object. Configure the virtual machine object by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, Add-AzureRmVMNetworkInterface, and Set-AzureRmVMOSDisk. - - - - New-AzureRmVM - - Name - - Specifies a name for the virtual machine. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Tags - - - - - System.Collections.Hashtable[] - - - Location - - Specifies a location for the virtual machine. - - String - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VM - - Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. - - PSVirtualMachine - - - - - - Location - - Specifies a location for the virtual machine. - - String - - String - - - none - - - Name - - Specifies a name for the virtual machine. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Tags - - - - - System.Collections.Hashtable[] - - System.Collections.Hashtable[] - - - none - - - VM - - Specifies a local virtual machine to create. To obtain a virtual machine object, use the New-AzureRmVMConfig cmdlet. Configure the virtual machine by using other cmdlets, such as Set-AzureRmVMOperatingSystem, Set-AzureRmVMSourceImage, and Add-AzureRmVMNetworkInterface. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Create a virtual machine - - - - - PS C:\># Variables -## Global -$ResourceGroupName = "ResourceGroup11" -$Location = "westeurope" - -## Storage -$StorageName = "GeneralStorage6cc" -$StorageType = "Standard_GRS" - -## Network -$InterfaceName = "ServerInterface06" -$Subnet1Name = "Subnet1" -$VNetName = "VNet09" -$VNetAddressPrefix = "10.0.0.0/16" -$VNetSubnetAddressPrefix = "10.0.0.0/24" - -## Compute -$VMName = "VirtualMachine12" -$ComputerName = "Server22" -$VMSize = "Standard_A2" -$OSDiskName = $VMName + "osDisk" - -# Resource Group -New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location - -# Storage -$StorageAccount = New-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -Name $StorageName -Type $StorageType -Location $Location - -# Network -$PIp = New-AzureRmPublicIpAddress -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -AllocationMethod Dynamic -$SubnetConfig = New-AzureRmVirtualNetworkSubnetConfig -Name $Subnet1Name -AddressPrefix $VNetSubnetAddressPrefix -$VNet = New-AzureRmVirtualNetwork -Name $VNetName -ResourceGroupName $ResourceGroupName -Location $Location -AddressPrefix $VNetAddressPrefix -Subnet $SubnetConfig -$Interface = New-AzureRmNetworkInterface -Name $InterfaceName -ResourceGroupName $ResourceGroupName -Location $Location -SubnetId $VNet.Subnets[0].Id -PublicIpAddressId $PIp.Id - -# Compute - -## Setup local VM object -$Credential = Get-Credential -$VirtualMachine = New-AzureRmVMConfig -VMName $VMName -VMSize $VMSize -$VirtualMachine = Set-AzureRmVMOperatingSystem -VM $VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -ProvisionVMAgent -EnableAutoUpdate -$VirtualMachine = Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest" -$VirtualMachine = Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id $Interface.Id -$OSDiskUri = $StorageAccount.PrimaryEndpoints.Blob.ToString() + "vhds/" + $OSDiskName + ".vhd" -$VirtualMachine = Set-AzureRmVMOSDisk -VM $VirtualMachine -Name $OSDiskName -VhdUri $OSDiskUri -CreateOption FromImage - -## Create the VM in Azure -New-AzureRmVM -ResourceGroupName $ResourceGroupName -Location $Location -VM $VirtualMachine - - - - - This example script shows how to create a virtual machine. This script uses several other cmdlets. - - - - - - - - - - - - - Get-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - Add-AzureRmVMDataDisk - - - - Add-AzureRmVMNetworkInterface - - - - New-AzureRmVMConfig - - - - Set-AzureRmVMOperatingSystem - - - - Set-AzureRmVMSourceImage - - - - Set-AzureRmVMOSDisk - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Remove-AzureRmAvailabilitySet - - Removes an availability set from Azure. - - - - - Remove - AzureAvailabilitySet - - - - The Remove-AzureRmAvailabilitySet cmdlet removes an availability set from Azure. - - - - Remove-AzureRmAvailabilitySet - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the availability set to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the availability set to remove. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Remove an availability set - - - - - PS C:\>Remove-AzureRmAvailabilitySet -Name "AvailabilitySet03" -ResourceGroupName "ResourceGroup11" - - - This command removes an availability set named AvailablitySet03 in the resource group named ResourceGroup11. - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - New-AzureRmAvailabilitySet - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Remove-AzureRmVMAccessExtension - - Removes the VMAccess extension from a virtual machine. - - - - - Remove - AzureVMAccessExtension - - - - The Remove-AzureRmVMAccessExtension cmdlet removes the Virtual Machine Access (VMAccess) Virtual Machine Extension from a virtual machine. - - - - Remove-AzureRmVMAccessExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension that this cmdlet removes. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the extension that this cmdlet removes. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes VMAccess for the virtual machine that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - - - - - - - - - - - - - - Get-AzureRmVMAccessExtension - - - - Set-AzureRmVMAccessExtension - - - - Remove-AzureRmVMExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Remove-AzureRmVMCustomScriptExtension - - Removes a custom script extension from a virtual machine. - - - - - Remove - AzureVMCustomScriptExtension - - - - The Remove-AzureRmVMCustomScriptExtension cmdlet removes a custom script Virtual Machine Extension from a virtual machine. - - - - Remove-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. - - String - - - Name - - Specifies the name of the custom script extension that this cmdlet removes. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the custom script extension that this cmdlet removes. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine from which this cmdlet removes the custom script extension. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - - - - - - - - - - - - - - Get-AzureRmVMCustomScriptExtension - - - - Set-AzureRmVMCustomScriptExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Remove-AzureRmVMDataDisk - - Removes a data disk from a virtual machine. - - - - - Remove - AzureVMDataDisk - - - - The Remove-AzureRmVMDataDisk cmdlet removes a data disk from a virtual machine. - - - - Remove-AzureRmVMDataDisk - - VM - - Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the data disk to add. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Name - - Specifies the name of the data disk to add. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM - - Specifies the local virtual machine object from which to remove a data disk. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Remove a data disk from a virtual machine - - - - - PS C:\>$VirtualMachine = Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -PS C:\> Remove-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk3" -PS C:\> Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine - - - The first command gets the virtual machine named VirtualMachine07 by using the Get-AzureRmVM cmdlet. The command stores the virtual machine in the $VirtualMachine variable. - The second command removes the data disk named disk3 from the virtual machine stored in $VirtualMachine. - The final command updates the state of the virtual machine stored in $VirtualMachine in ResourceGroup11. - - - - - - - - - - - - - Add-AzureRmVMDataDisk - - - - Get-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Remove-AzureRmVMExtension - - Removes an extension from a virtual machine. - - - - - Remove - AzureVMExtension - - - - The Remove-AzureRmVMExtension cmdlet removes an extension from the Virtual Machine Extensions of a virtual machine. - - - - Remove-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the extension to remove. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet removes extensions from the virtual machine that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Remove an extension from a virtual machine - - - - - PS C:\>Remove-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Name "ContosoTest" -VMName "VirtualMachine22" - - - This command removes the extension named ContosoTest from the virtual machine named VirtualMachine22 in ResourceGroup11. - - - - - - - - - - - - - Get-AzureRmVMExtension - - - - Set-AzureRmVMExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Remove-AzureRmVMNetworkInterface - - Removes a network interface from a virtual machine. - - - - - Remove - AzureVMNetworkInterface - - - - The Remove-AzureRmVMNetworkInterface cmdlet removes a network interface from a virtual machine. - - - - Remove-AzureRmVMNetworkInterface - - VM - - Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Id - - Specifies the ID of the network interface that this cmdlet removes from the virtual machine. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Id - - Specifies the ID of the network interface that this cmdlet removes from the virtual machine. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - VM - - Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: - - - - - - - - - - - - - - - - - - Get-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Remove-AzureRmVM - - Removes a virtual machine from Azure. - - - - - Remove - AzureVM - - - - The Remove-AzureRmVM cmdlet removes a virtual machine from Azure. - - - - Remove-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the virtual machine to remove. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the virtual machine to remove. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Remove a virtual machine - - - - - PS C:\>Remove-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - - This command removes the virtual machine named VirtualMachine07 in the resource group ResourceGroup11. - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Restart-AzureRmVM - - Restarts an Azure virtual machine. - - - - - Restart - AzureVM - - - - The Restart-AzureRmVM cmdlet restarts an Azure virtual machine. - - - - Restart-AzureRmVM - - ResourceGroupName - - Specifies the name of the resource group. - - String - - - Name - - Specifies the name of the virtual machine to restart. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Name - - Specifies the name of the virtual machine to restart. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Restart a virtual machine - - - - - PS C:\>Restart-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - - This command restarts the virtual machine named VirtualMachine07 in ResourceGroup11. - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Save-AzureRmVMImage - - Captures a virtual machine as a VMImage. - - - - - Save - AzureVMImage - - - - The Save-AzureRmVMImage cmdlet captures a virtual machine as a VMImage. Before you create a virtual machine image, sysprep the virtual machine, and then mark it as generalized by using the Set-AzureRmVM cmdlet. - The output of this cmdlet is a JavaScript Object Notation (JSON) template. You can deploy virtual machines from your captured image. - - - - Save-AzureRmVMImage - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of the virtual machine that this cmdlet saves. - - String - - - DestinationContainerName - - Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. - - String - - - VHDNamePrefix - - Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. - - String - - - Overwrite - - Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - DestinationContainerName - - Specifies the name of a container. The virtual hard disks (VHDs) that constitute the VMImage reside in the container that this parameter specifies. If the VHDs are spread across multiple storage accounts, this cmdlet creates one container that has this name in each storage account. - - String - - String - - - none - - - Overwrite - - Indicates that this cmdlet overwrites any VHDs that have the same prefix in the destination container. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VHDNamePrefix - - Specifies the prefix in the name of the blobs that constitute the storage profile of the VMImage. For example, a prefix vhdPrefix for operating system disk results in the name vhdPrefix-osdisk. - - String - - String - - - none - - - VMName - - Specifies the name of the virtual machine that this cmdlet saves. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Capture a virtual machine - - - - - PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized -PS C:\> Save-AzureRmVMImage -ResourceGroupName "ResourceGroup11" -VMName "VirtualMachine07" -DestinationContainerName "VMContainer01" -VHDNamePrefix "VM07" - - - The first marks the virtual machine named VirtualMachine07 as generalized. - The second command captures a virtual machine named VirtualMachine07 as a VMImage. The Output property returns a JSON template. - - - - - - - - - - - - - Get-AzureRmVMImage - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageSku - - - - Set-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Set-AzureRmVMAccessExtension - - Adds the VMAccess extension to a virtual machine. - - - - - Set - AzureVMAccessExtension - - - - The Set-AzureRmVMAccessExtension cmdlet adds the Virtual Machine Access (VMAccess) Virtual Machine Extension to a virtual machine. VMAccess can reset the virtual machine user name and password. - - - - Set-AzureRmVMAccessExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the extension that this cmdlet adds. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - - UserName - - Specifies the new user name for the virtual machine. - - String - - - Password - - Specifies the new password of the virtual machine. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Location - - Specifies the location of the virtual machine. - - String - - String - - - none - - - Name - - Specifies the name of the extension that this cmdlet adds. - - String - - String - - - none - - - Password - - Specifies the new password of the virtual machine. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - String - - - none - - - UserName - - Specifies the new user name for the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds VMAccess for the virtual machine that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Add a VMAccess extension - - - - - PS C:\> Set-AzureRmVMAccessExtension -ResourceGroupName "ResrouceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "ContosoTest" -TypeHandlerVersion "2.0" -UserName "PFuller" -Password "Password" - - - This command adds a VMAccess extension for the virtual machine named VirtualMachine07 in ResrouceGroup11. The command specifies the name and type handler version for VMAccess. - - - - - - - - - - - - - Get-AzureRmVMAccessExtension - - - - Remove-AzureRmVMAccessExtension - - - - Set-AzureRmVMExtension - - - - Get-AzureRmVMExtensionImage - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Set-AzureRmVMCustomScriptExtension - - Adds a custom script extension to a virtual machine. - - - - - Set - AzureVMCustomScriptExtension - - - - The Set-AzureRmVMCustomScriptExtension cmdlet adds a custom script Virtual Machine Extension to a virtual machine. This extension allows you to run your own scripts on the virtual machine. - - - - Set-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - Run - - Specifies the command to use that runs your script. - - String - - - Argument - - Specifies arguments that the script extension passes to the script. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the custom script extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - - ContainerName - - Specifies the name of the Azure Storage container where this cmdlet stores the script. - - String - - - FileName - - Specifies the name of the script file. - - String[] - - - StorageAccountName - - Specifies the name of the Azure Storage account where this cmdlet stores the script. - - String - - - StorageEndpointSuffix - - Specifies the storage endpoint suffix. - - String - - - StorageAccountKey - - Specifies the key for the Azure Storage container. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Set-AzureRmVMCustomScriptExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of the custom script extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - - FileUri - - Specifies the URI of the script file. - - String[] - - - Run - - Specifies the command to use that runs your script. - - String - - - Argument - - Specifies arguments that the script extension passes to the script. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Argument - - Specifies arguments that the script extension passes to the script. - - String - - String - - - none - - - ContainerName - - Specifies the name of the Azure Storage container where this cmdlet stores the script. - - String - - String - - - none - - - FileName - - Specifies the name of the script file. - - String[] - - String[] - - - none - - - FileUri - - Specifies the URI of the script file. - - String[] - - String[] - - - none - - - Location - - Specifies the location of the virtual machine. - - String - - String - - - none - - - Name - - Specifies the name of the custom script extension. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - Run - - Specifies the command to use that runs your script. - - String - - String - - - none - - - StorageAccountKey - - Specifies the key for the Azure Storage container. - - String - - String - - - none - - - StorageAccountName - - Specifies the name of the Azure Storage account where this cmdlet stores the script. - - String - - String - - - none - - - StorageEndpointSuffix - - Specifies the storage endpoint suffix. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Add a custom script - - - - - PS C:\>Set-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "contosotest" -TypeHandlerVersion "1.1" -StorageAccountName "contoso" -StorageAccountKey <StorageKey> -FileName "contososcript.exe" -ContainerName "scripts" - - - This command adds a custom script to the virtual machine named VirtualMachine07. The script file is contososcript.exe. - - - - - - - - - - - - - Get-AzureRmVMCustomScriptExtension - - - - Remove-AzureRmVMCustomScriptExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Set-AzureRmVMExtension - - Updates extension properties or adds an extension to a virtual machine. - - - - - Set - AzureVMExtension - - - - The Set-AzureRmVMExtension cmdlet updates properties for existing Virtual Machine Extensions or adds an extension to a virtual machine. - - - - Set-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of an extension. - - String - - - Publisher - - Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. - - String - - - ExtensionType - - Specifies the extension type. - - System.String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - Settings - - Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. - - Hashtable - - - ProtectedSettings - - Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. - - Hashtable - - - Location - - Specifies the location of the virtual machine. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Set-AzureRmVMExtension - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VMName - - Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. - - String - - - Name - - Specifies the name of an extension. - - String - - - Publisher - - Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. - - String - - - ExtensionType - - Specifies the extension type. - - System.String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - SettingString - - Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. - - String - - - ProtectedSettingString - - Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - ExtensionType - - Specifies the extension type. - - System.String - - System.String - - - none - - - Location - - Specifies the location of the virtual machine. - - String - - String - - - none - - - Name - - Specifies the name of an extension. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ProtectedSettings - - Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. - - Hashtable - - Hashtable - - - none - - - ProtectedSettingString - - Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. - - String - - String - - - none - - - Publisher - - Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. - - String - - String - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Settings - - Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. - - Hashtable - - Hashtable - - - none - - - SettingString - - Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Modify settings by using hash tables - - - - - PS C:\>$Settings = @{"fileUris" = "[]"; "commandToExecute" = ""}; -PS C:\> $ProtectedSettings = @{"storageAccountName" = $stoname; "storageAccountKey" = $stokey}; -PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "ContosoTest" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -Settings $Settings -ProtectedSettings $ProtectedSettings; - - - The first two commands use standard Windows PowerShell® syntax to create hash tables, and then stores those hash tables in the $Settings and $ProtectedSettings variables. For more information, type Get-Help about_Hash_Tables. The second command includes two values previously created and stored in variables. - The final command modifies an extension of the virtual machine named VirtualMachine22 in ResourceGroup11 according to the contents of $Settings and $ProtectedSettings. The command specifies other required information that includes the publisher and the extension type. - - - - - - - - - - - Example 2: Modify settings by using strings - - - - - PS C:\>$SettingsString = '{"fileUris":[],"commandToExecute":""}'; -PS C:\> $ProtectedSettingsString = '{"storageAccountName":"' + $stoname + '","storageAccountKey":"' + $stokey + '"}'; -PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -SettingString $SettingsString -ProtectedSettingString $ProtectedSettingsString ; - - - The first two commands create strings that contain settings, and then stores them in the $SettingsString and $ProtectedSettingsString variables. - The final command modifies an extension of the virtual machine named VirtualMachine22 in ResourceGroup11 according to the contents of $SettingsString and $ProtectedSettingsString. The command specifies other required information that includes the publisher and the extension type. - - - - - - - - - - - - - Get-AzureRmVMExtension - - - - Remove-AzureRmVMExtension - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Set-AzureRmVMOperatingSystem - - Sets operating system properties for a virtual machine. - - - - - Set - AzureVMOperatingSystem - - - - The Set-AzureRmVMOperatingSystem cmdlet sets operating system properties for a virtual machine. You can specify logon credentials computer name, and operating system type. - - - - Set-AzureRmVMOperatingSystem - - VM - - Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - WinRMHttps - - Indicates that this operating system uses HTTPS WinRM. - - - - WinRMCertificateUrl - - Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. - - System.Uri - - - Windows - - Indicates that the type of operating system is Windows. - - - - ComputerName - - Specifies the name of the computer. - - String - - - Credential - - Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. - - PSCredential - - - CustomData - - Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. - - System.String - - - ProvisionVMAgent - - Indicates that the settings require that the virtual machine agent be installed on the virtual machine. - - - - EnableAutoUpdate - - Indicates that this cmdlet enables auto update. - - - - TimeZone - - Specifies the time zone for the virtual machine. - - System.String - - - WinRMHttp - - Indicates that this operating system uses HTTP WinRM. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Set-AzureRmVMOperatingSystem - - VM - - Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - - Linux - - Indicates that the type of operating system is Linux. - - - - ComputerName - - Specifies the name of the computer. - - String - - - Credential - - Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. - - PSCredential - - - CustomData - - Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. - - System.String - - - DisablePasswordAuthentication - - Indicates that this cmdlet disables password authentication. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - ComputerName - - Specifies the name of the computer. - - String - - String - - - none - - - Credential - - Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. - - PSCredential - - PSCredential - - - none - - - CustomData - - Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. - - System.String - - System.String - - - none - - - DisablePasswordAuthentication - - Indicates that this cmdlet disables password authentication. - - SwitchParameter - - SwitchParameter - - - none - - - EnableAutoUpdate - - Indicates that this cmdlet enables auto update. - - SwitchParameter - - SwitchParameter - - - none - - - Linux - - Indicates that the type of operating system is Linux. - - SwitchParameter - - SwitchParameter - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ProvisionVMAgent - - Indicates that the settings require that the virtual machine agent be installed on the virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - TimeZone - - Specifies the time zone for the virtual machine. - - System.String - - System.String - - - none - - - VM - - Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Windows - - Indicates that the type of operating system is Windows. - - SwitchParameter - - SwitchParameter - - - none - - - WinRMCertificateUrl - - Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. - - System.Uri - - System.Uri - - - none - - - WinRMHttp - - Indicates that this operating system uses HTTP WinRM. - - SwitchParameter - - SwitchParameter - - - none - - - WinRMHttps - - Indicates that this operating system uses HTTPS WinRM. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Set operating system properties for a new virtual machines - - - - - PS C:\>$SecurePassword = ConvertTo-SecureString "password" -AsPlainText -Force -PS C:\> $Credential = New-Object System.Management.Automation.PSCredential ("FullerP", $SecurePassword); -PS C:\> $AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> $ComputerName = "ContosoVM122" -PS C:\> $WinRMCertUrl = "http://keyVaultName.vault.azure.net/secrets/secretName/secretVersion" -PS C:\> $TimeZone = "Pacific Standard Time" -PS C:\> $CustomData = "echo 'Hello World'" -PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $$VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -CustomData $CustomData -WinRMHttp -WinRMHttps -WinRMCertificateUrl $WinRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $TimeZone - - - The first command converts a password to a secure string, and then stores it in the $SecurePassword variable. For more information, type Get-Help ConvertTo-SecureString. - The second command creates a credential for the user FullerP and the password stored in $SecurePassword, and then stores the credential in the $Credential variable. For more information, type Get-Help New-Object. - The third command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - The fourth command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. - The next four commands assign values to variables to use in the following command. Because you could specify these strings directly in the Set-AzureRmVMOperatingSystem command, this approach is used only for readability. However, you might use an approach such as this in scripts. - The final command sets operating system properties for the virtual machine stored in $VirtualMachine. The command uses the credentials stored in $Credential. The command uses variables assigned in previous commands for some parameters. - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVMConfig - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Set-AzureRmVMOSDisk - - Sets the operating system disk properties on a virtual machine. - - - - - Set - AzureVMOSDisk - - - - The Set-AzureRmVMOSDisk cmdlet set the operating system disk properties on a virtual machine. - - - - Set-AzureRmVMOSDisk - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the operating system disk. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite - -The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - - ReadOnly - ReadWrite - - - - SourceImageUri - - - - This setting affects the consistency and performance of the disk. - - System.String - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - --- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - - empty - attach - fromImage - - - - Windows - - Indicates that the operating system on the user image is Windows. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - Set-AzureRmVMOSDisk - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - - Name - - Specifies the name of the operating system disk. - - String - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite - -The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - - ReadOnly - ReadWrite - - - - SourceImageUri - - - - This setting affects the consistency and performance of the disk. - - System.String - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - --- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - - empty - attach - fromImage - - - - Linux - - Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Caching - - Specifies the caching mode of the operating system disk. Valid values are: - --- ReadOnly --- ReadWrite - -The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. - This setting affects the consistency and performance of the disk. - - String - - String - - - none - - - CreateOption - - Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: - --- Attach --- Empty --- FromImage - This setting affects the consistency and performance of the disk. - - System.String - - System.String - - - none - - - Linux - - Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the operating system disk. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - SourceImageUri - - - - This setting affects the consistency and performance of the disk. - - System.String - - System.String - - - none - - - VhdUri - - Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). - For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. - For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. - - String - - String - - - none - - - VM - - Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - Windows - - Indicates that the operating system on the user image is Windows. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Sets properties on a virtual machine - - - - - PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> Set-AzureRmVMOSDisk -VM $VirtualMachine -Name "OsDisk02" -VhdUri "os.vhd" -Caching ReadWrite - - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. - The final command sets the properties on the virtual machine in $VirtualMachine. - - - - - - - - - - - - - Get-AzureRmVM - - - - Get-AzureRmAvailabilitySet - - - - New-AzureRmVMConfig - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Set-AzureRmVMSourceImage - - Specifies the platform image for a virtual machine. - - - - - Set - AzureVMSourceImage - - - - The Set-AzureRmVMSourceImage cmdlet specifies the platform image to use for a virtual machine. - - - - Set-AzureRmVMSourceImage - - VM - - Specifies the local virtual machine object to configure. - - Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine - - - Name - - Specifies the name of a source image. - - System.String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - - Set-AzureRmVMSourceImage - - VM - - Specifies the local virtual machine object to configure. - - Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - System.String - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - System.String - - - Skus - - Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. - - System.String - - - Version - - Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. - - System.String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - - - - Name - - Specifies the name of a source image. - - System.String - - System.String - - - none - - - Offer - - Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. - - System.String - - System.String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - Microsoft.Azure.Common.Authentication.Models.AzureProfile - - - none - - - PublisherName - - Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. - - System.String - - System.String - - - none - - - Skus - - Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. - - System.String - - System.String - - - none - - - Version - - Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. - - System.String - - System.String - - - none - - - VM - - Specifies the local virtual machine object to configure. - - Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine - - Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Set values for an image - - - - - PS C:\>AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" -PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id -PS C:\> Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter" -Version "latest" - - - - The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. - The second command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. - The final command sets values for publisher name, offer, SKU, and version. The Get-AzureRmVMImagePublisher, Get-AzureRmVMImageOffer, Get-AzureRmVMImageSku, and Get-AzureRmVMImage cmdlets can discover these settings. - - - - - - - - - - - Example 2: Use the image reference method to set values - - - - - PS C:\>$Publisher = (Get-AzureRmVMImagePublisher -Location "Central US") | select -ExpandProperty PublisherName | where { $_ -like '*Microsoft*Windows*Server' } -PS C:\> $Offer = (Get-AzureRmVMImageOffer -Location "Central US" -PublisherName $Publisher[0]) | select -ExpandProperty Offer | where { $_ -like '*Windows*' } -PS C:\> $Sku = (Get-AzureRmVMImageSku -Location "Central US" -PublisherName $Publisher[0] -Offer $Offer[0]) | select -ExpandProperty Skus -PS C:\> $Versions = (Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0]) | select -ExpandProperty Version -PS C:\> $VMImage = Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0] -Version $Versions[0] -PS C:\> $VirtualMachine07 = Set-AzureRmVMSourceImage -VM $VirtualMachine07 -ImageReference $VMImage - - - This example sets source image settings by using the image reference method. - - - - - - - - - - - - - Get-AzureRmAvailabilitySet - - - - New-AzureRmVMConfig - - - - Get-AzureRmVMImagePublisher - - - - Get-AzureRmVMImageOffer - - - - Get-AzureRmVMImageSku - - - - Get-AzureRmVMImage - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Set-AzureRmVM - - Marks a virtual machine as generalized. - - - - - Set - AzureVM - - - - The Set-AzureRmVM cmdlet marks a virtual machine as generalized. Before you run this cmdlet, log on to the virtual machine and use Sysprep to prepare the hard disk. - - - - Set-AzureRmVM - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - Name - - Specifies the name of the virtual machine on which this cmdlet operates. - - String - - - Generalized - - Indicates that this cmdlet marks a virtual machine as generalized. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Generalized - - Indicates that this cmdlet marks a virtual machine as generalized. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the virtual machine on which this cmdlet operates. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Mark a virtual machine as generalized - - - - - PS C:\>Set-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -Generalized - - - This command marks the virtual machine named VirtualMachine07 as generalized. - - - - - - - - - - - - - Get-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Start-AzureRmVM - - Starts an Azure virtual machine. - - - - - Start - AzureVM - - - - The Start-AzureRmVM cmdlet starts an Azure virtual machine. - - - - Start-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the virtual machine to start. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - - - - Name - - Specifies the name of the virtual machine to start. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Start a virtual machine - - - - - PS C:\>Start-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - - This command starts the virtual machine named VirtualMachine07 in ResourceGroup11. - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Stop-AzureRmVM - - - - Update-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Stop-AzureRmVM - - Stops an Azure virtual machine. - - - - - Stop - AzureVM - - - - The Stop-AzureRmVM cmdlet stops an Azure virtual machine. - - - - Stop-AzureRmVM - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - Name - - Specifies the name of the virtual machine to stop. - - String - - - Force - - Forces the command to run without asking for user confirmation. - - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - StayProvisioned - - Indicates that this cmdlet uses the stay provisioned setting. - - - - - - - Force - - Forces the command to run without asking for user confirmation. - - SwitchParameter - - SwitchParameter - - - none - - - Name - - Specifies the name of the virtual machine to stop. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - StayProvisioned - - Indicates that this cmdlet uses the stay provisioned setting. - - SwitchParameter - - SwitchParameter - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Stop a virtual machine - - - - - PS C:\>Stop-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" - - - This command stops the virtual machine named VirtualMachine07 in ResourceGroup11. - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Update-AzureRmVM - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - Update-AzureRmVM - - Updates the state of an Azure virtual machine. - - - - - Update - AzureVM - - - - The Update-AzureRmVM cmdlet updates the state of an Azure virtual machine to the state of a virtual machine object. - - - - Update-AzureRmVM - - Name - - Specifies the name of the virtual machine to update. - - String - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - - Tags - - - - - System.Collections.Hashtable[] - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - - VM - - Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. - - PSVirtualMachine - - - - - - Name - - Specifies the name of the virtual machine to update. - - String - - String - - - none - - - Profile - - Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - AzureProfile - - AzureProfile - - - none - - - ResourceGroupName - - Specifies the name of a resource group. - - String - - String - - - none - - - Tags - - - - - System.Collections.Hashtable[] - - System.Collections.Hashtable[] - - - none - - - VM - - Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. - - PSVirtualMachine - - PSVirtualMachine - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Example 1: Update a virtual machine - - - - - PS C:\>Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine - - - This command updates the virtual machine named VirtualMachine07 in ResourceGroup11. The command updates it by using another virtual machine object, stored in the $VirtualMachine variable. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. - - - - - - - - - - - - - Get-AzureRmVM - - - - New-AzureRmVM - - - - Remove-AzureRmVM - - - - Restart-AzureRmVM - - - - Start-AzureRmVM - - - - Stop-AzureRmVM - - - - New-AzureRmVMConfig - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - - - Remove-AzureRmVMDscExtension - - Removes DSC extension handler from a VM in a resource group - - - - - Remove - AzureVMDscExtension - - - - Removes DSC extension handler from a VM in a resource group - - - - Remove-AzureRmVMDscExtension - - ResourceGroupName - - The name of the resource group - - String - - - VMName - - The name of the virtual machine - - String - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template - - String - - - - - - ResourceGroupName - - The name of the resource group - - String - - String - - - - - - - VMName - - The name of the virtual machine - - String - - String - - - - - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Remove-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - PS C:\> Remove-AzureRmVMDscExtension –ResouceGroupName Name -VMName VM -Name DSC - - Description - ----------- - Removes the extension (Name - 'DSC') on virtual machine 'VM'. Specify Name parameter only when you changed its default value 'Microsoft.Powershell.DSC' to something else ('DSC' in this case) either through Set-AzureRmVMDscExtension cmdlet or an ARM template. - - - - - - - - - - - - - - - - - - - - - - - - - Get-AzureRmVMDscExtension - - - Gets the settings of the DSC extension on a particular VM - - - - - - Get - AzureVMDscExtension - - - - - Gets the settings of the DSC extension on a particular VM. - - - - - Get-AzureRmVMDscExtension - - ResourceGroupName - - The resource group name. - - string - - - VMName - - The virtual machine name - - string - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - String - - - Status - - Output shows status when the switch is present - - - - - - - - ResourceGroupName - - The resource group name. - - string - - string - - - - - VMName - - The virtual machine name - - string - - string - - - - - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtension. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - String - - String - - - - - - - Status - - Output shows status when the switch is present - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - -Get-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -Name 'DSC' - - Description - ----------- - Retrieves the settings of extension (Name - 'DSC') on virtual machine 'VM'. Specify Name parameter only when you changed its default value 'Microsoft.Powershell.DSC' to something else ('DSC' in this case) either through Set-AzureRmVMDscExtension cmdlet or an ARM template. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set-AzureRmVMDSCExtension - - - Configure the Windows PowerShell Desired State Configuration extension on a VM. - - - - - - Set - AzureVMDscExtension - - - - - Configure the Windows PowerShell Desired State Configuration extension on a VM in a resource group - - - - - Set-AzureRmVMDSCExtension - - ArchiveBlobName - - The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration - - string - - - ResourceGroupName - - The name of the resource group that contains the virtual machine - - string - - - VMName - - Name of the virtual machine where dsc extension handler would be installed - - string - - - ArchiveStorageAccountName - - The Azure Storage Account name used to download the ArchiveBlobName - - string - - - Version - - The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N - - string - - - ConfigurationArgument - - A hashtable specifying the arguments to the ConfigurationFunction - - hashtable - - - ConfigurationData - - Path to a .psd1 file that specifies the data for the Configuration - - string - - - ConfigurationName - - Name of the configuration that will be invoked by the DSC Extension - - string - - - ArchiveResourceGroupName - - The name of the resource group that contains the storage account containing the configuration archive.This param is optional if storage account and virtual machine both exists in the same resource group name, specified by ResourceGroupName param - - string - - - ArchiveContainerName - - Name of the Azure Storage Container where the configuration archive is located - - string - - - DataCollection - - Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable - - string - - - Force - - By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them - - - - Location - - Location of the resource - - string - - - Name - - Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' - - string - - - ArchiveStorageEndpointSuffix - - The Storage Endpoint Suffix - - string - - - AutoUpdate - - We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. - - - - Confirm - - Prompts you for confirmation before executing the command. - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - - - WmfVersion - - - Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". - A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. - A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" - - - string - - - - - - - ArchiveBlobName + VMName - The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration + Specifies the name of a virtual machine. - string - - string - - - - + String - - ConfigurationArgument + + Name - A hashtable specifying the arguments to the ConfigurationFunction + Specifies the name of the chef extension. - hashtable - - hashtable - - - - + String - - ConfigurationData + + TypeHandlerVersion - Path to a .psd1 file that specifies the data for the Configuration + Specifies the version of the extension to use for this virtual machine. - string - - string - - - - + String - - ConfigurationName + + ValidationPem - Name of the configuration that will be invoked by the DSC Extension + Specifies the Chef validator .pem file path - string - - string - - - - + String - - ArchiveContainerName + + ClientRb - Name of the Azure Storage Container where the configuration archive is located + Specifies the full path of the Chef client.rb. - string - - string - - - - + String[] - - Force + + AutoUpdateChefClient - By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them + Specifies if the chef extension should be updated to the latest extension version. - SwitchParameter - - SwitchParameter - - - - + String - - Location + + BootstrapOptions - Location of the resource + It overrides the configuration set in client_rb option. for e.g. node_name option i.e. if you set node_name as "foo" in the client_rb and in bootstrap_option you set chef_node_name as "bar" it will take "bar" as node name instead of "foo". - string - - string - - - - + String - - Name + + ChefServerUrl - Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' + Chef server URL - string - - string - - - - + String - - ResourceGroupName + + DeleteChefConfig - The name of the resource group that contains the virtual machine + Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - string - - string - - - - + String - - ArchiveResourceGroupName + + OrganizationName - The name of the resource group that contains the storage account containing the configuration archive. This param is optional if storage account and virtual machine both exists in the same resource group name,specified by ResourceGroupName param. + Specifies the organization name of the Chef extension. - string - - string - - - - + String - - ArchiveStorageAccountName + + Location - The Azure Storage Account name used to download the ArchiveBlobName + Specifies the location of the virtual machine. - string - - string - - - - + String - - ArchiveStorageEndpointSuffix + + RunList - The Storage Endpoint Suffix + Specifies the Chef node run list. - string - - string - - - - + + + + ValidationClientName + + + + String + + + Windows + + Indicates that this cmdlet creates a Windows virtual machine. + + + + + Set-AzureRmVMChefExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String - Version + VMName - The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N + Specifies the name of a virtual machine. - string - - string - - - - + String + + + Name + + Specifies the name of the chef extension. + + String - VMName + TypeHandlerVersion - Name of the virtual machine where dsc extension handler would be installed + Specifies the version of the extension to use for this virtual machine. - string - - string - - - - + String - - AutoUpdate + + ValidationPem - We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. + Specifies the Chef validator .pem file path - SwitchParameter - - SwitchParameter - - - - + String - - Confirm + + ClientRb - Prompts you for confirmation before executing the command. + Specifies the full path of the Chef client.rb. - SwitchParameter - - SwitchParameter - - - + String[] - - WhatIf + + AutoUpdateChefClient - Describes what would happen if you executed the command without actually executing the command. + Specifies if the chef extension should be updated to the latest extension version. - SwitchParameter - - SwitchParameter - - - + String - - WmfVersion + + BootstrapOptions - - Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". - A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. - A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" - + It overrides the configuration set in client_rb option. for e.g. node_name option i.e. if you set node_name as "foo" in the client_rb and in bootstrap_option you set chef_node_name as "bar" it will take "bar" as node name instead of "foo". - string - - string - - - latest + String - - DataCollection + + ChefServerUrl - Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + Chef server URL - string - - string - - - + String - - - - - - - - - - + + DeleteChefConfig - - - + Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - - - - - - - - - - + String + + + OrganizationName - - - + Specifies the organization name of the Chef extension. - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - - Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -Version 1.10 -Location 'West US' - - - Description - ----------- - - Sets the extension on the 'VM' to download Sample.ps1.zip (from the 'Stg' storage account and the default container 'windows-powershell-dsc') that was previously uploaded using Publish-AzureRmVMDscConfiguration cmdlet and invokes configuration 'ConfigName'. - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - - Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' - - - Description - ----------- - Sets the extension on the VM to download Sample.ps1.zip (from the 'Stg' storage account and container 'WindowsPowerShellDSC' ) that was previously uploaded using Publish-AzureRmVMDscConfiguration cmdlet and invokes configuration 'ConfigName' with configuration data and arguments. - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 3 -------------------------- - - - C:\PS> - - - Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' -AutoUpdate - - - Description - ----------- - Sets the extension on the VM to download Sample.ps1.zip (from the 'Stg' storage account and container 'WindowsPowerShellDSC' ) that was previously uploaded using Publish-AzureRmVMDscConfiguration cmdlet and invokes configuration 'ConfigName' with configuration data and arguments. Also, enables auto update of extension handler to the latest version as and when it is available. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Publish-AzureRmVMDscConfiguration - - - Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. - - - - - - Publish - AzureVMDscConfiguration - - - - - Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureRmVMDscExtension cmdlet. - - - - - Publish-AzureRmVMDscConfiguration - - ConfigurationPath - - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). - - string - - - OutputArchivePath - - Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. - - string - - - AdditionalPath - - Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration - - string[] - - - ConfigurationDataPath - - Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet - - string - - - Force - - By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. - - - - SkipDependencyDetection - - Excludes DSC resource dependencies from the configuration archive. - - - - Confirm - - Prompts you for confirmation before executing the command. - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - - - - Publish-AzureRmVMDscConfiguration - - ConfigurationPath - - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). - - string - - - ResourceGroupName - - The name of the resource group that contains the storage account - - string - - - StorageAccountName - - The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName - - string - - - ContainerName - - Name of the Azure Storage Container the configuration is uploaded to. - - string - - - AdditionalPath - - Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration - - string[] - - - ConfigurationDataPath - - Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet - - string - - - Force - - By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. - - - - SkipDependencyDetection - - Excludes DSC resource dependencies from the configuration archive. - - - - StorageEndpointSuffix - - Suffix for the storage end point, e.g. core.windows.net - - string - - - Confirm - - Prompts you for confirmation before executing the command. - - - - WhatIf + String + + + Location + + Specifies the location of the virtual machine. + + String + + + RunList + + Specifies the Chef node run list. + + + + + ValidationClientName + + + + String + + + Linux - Describes what would happen if you executed the command without actually executing the command. + Indicates that this cmdlet creates a Linux virtual machine. - - - - - - - AdditionalPath + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. + + String + + String + + + none + + + Name + + Specifies the name of the chef extension. + + String + + String + + + none + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. + + String + + String + + + none + + + AutoUpdateChefClient - Path to a file or a directory to include in the configuration archive. It gets downloaded to the VM along with the configuration - string[] + SwitchParameter - string[] + SwitchParameter - - + none - - ConfigurationDataPath + + BootstrapOptions - Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration archive and then passed to the configuration function. It gets overwritten by the configuration data path provided through the Set-AzureRmVMDscExtension cmdlet - string + String - string + String - - + none - - ConfigurationPath + + ChefServerUrl - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file). - string + String - string + String - - + none - - ContainerName + + ClientRb - Name of the Azure Storage Container the configuration is uploaded to. + Specifies the full path of the Chef client.rb. - string + String - string + String - - + none - - Force + + DeleteChefConfig - By default Publish-AzureRmVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + Indicates that this cmdlet deletes the Chef configuration on the virtual machine. SwitchParameter SwitchParameter - - + none - - OutputArchivePath + + Linux - Path to a local ZIP file to write the configuration archive to. When this parameter is used, the configuration script is not uploaded to Azure blob storage. + Indicates that this cmdlet creates a Linux based virtual machine. - string + SwitchParameter - string + SwitchParameter - - + none - - ResourceGroupName + + OrganizationName - The name of the resource group that contains the storage account + Specifies the organization name of the Chef extension. - string + String - string + String - - + none - - SkipDependencyDetection + + RunList - Excludes DSC resource dependencies from the configuration archive. + Specifies the Chef node run list. - SwitchParameter + String - SwitchParameter + String - - + none - - StorageAccountName + + ValidationClientName - The Azure Storage Account name used to upload the configuration script to the container specified by ContainerName + + - string + String - string + String - - + none - - StorageEndpointSuffix + + ValidationPem - Suffix for the storage end point, e.g. core.windows.net + Specifies the Chef validator .pem file path - string + String - string + String - - + none - - Confirm + + Windows - Prompts you for confirmation before executing the command. + Indicates that this cmdlet creates a Windows virtual machine. - SwitchParameter + SwitchParameter SwitchParameter - + none - - WhatIf + + Location - Describes what would happen if you executed the command without actually executing the command. + Specifies the location of the VM. - SwitchParameter + String - SwitchParameter + String - + none - - - + + - - + + + + + - - + - - + + + + + - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - -Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 - - Description - ----------- - Creates a ZIP package for the given script and any dependent resource modules and uploads it to Azure Storage. - - - - + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -----Example 1: Add a Chef extension to a Windows virtual machine----- + + + PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -RunList "Apache" -Windows; + + + This command adds a Chef extension to a Windows virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. + + + + + + + + + + + + + + -----Example 2: Add a Chef extension to a Linux virtual machine----- + - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - + + PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -RunList "Apache" -Linux; + + + This command adds a Chef extension to a Linux virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. + + + + + + + + + + + + + + Example 3: Add a Chef extension to a Windows virtual machine with bootstrap options - C:\PS> - - -Publish-AzureRmVMDscConfiguration .\MyConfiguration.ps1 -OutputArchivePath .\MyConfiguration.ps1.zip - - Description - ----------- - Creates a ZIP package for the given script and any dependent resource modules and stores it in the local file .\MyConfiguration.ps1.zip. - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 3 -------------------------- - - - C:\PS> - -Publish-AzureRmVMDscConfiguration -ConfigurationPath 'C:\Sample.ps1 -SkipDependencyDetection + PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -BootstrapOptions '{"chef_node_name":"your_node_name","chef_server_url":"https://api.opscode.com/organizations/some-org", "validation_client_name":"some-org-validator"}' -RunList "Apache" -Windows; + - Description - ----------- - Adds configuration 'Sample.ps1' to the configuration archive to upload to Azure storage and skips dependent resource modules. - - - - - - - - + This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and runs Apache on it. After bootstrapping, the virtual machine refers to the BootstrapOptions specified in JSON format. + + - - + - - -------------------------- EXAMPLE 4 -------------------------- - + Example 3: Add a Chef extension to a Windows virtual machine and install Apache and GIT - C:\PS> - - -Publish-AzureRmVMDscConfiguration -ConfigurationPath C:\Sample.ps1 -ConfigurationDataPath 'C:\SampleData.psd1' - - Description - ----------- - Adds configuration 'Sample.ps1' and configuration data 'SampleData.psd1' to the configuration archive to upload to Azure storage. - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 5 -------------------------- - - - C:\PS> - -Publish-AzureRmVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPath @("C:\ContentDir1", "C:\File.txt") -ConfigurationDataPath "C:\SampleData.psd1" + PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -ValidationClientName "MyOrg-Validator" -RunList "apache, git" -Windows; + - Description - ----------- - Adds configuration 'Sample.ps1', configuration data 'SampleData.psd1' and additional content (files or directories referenced by the configuration) to configuration archive to upload to Azure storage. - - - - - - - - + This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and have Apache and GIT installed. If you do not provide the client.rb, you need to provide the Chef server URL and validation client name. + + - - + - - - - - - - - - - - - - - Get-AzureRmVMDscExtensionStatus - - - Used to get the status of the DSC extension handler for a VM in a resource group. When a configuration is applied this cmdlet produces output consistent with Start-DscConfiguration. - - - - - - Get - AzureRmVMDscExtensionStatus - - - - - - - - - - - Get-AzureRmVMDscExtensionStatus - - ResourceGroupName - - The resource group name. - - string - - - VMName - - The virtual machine name - - string - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - string - - - - - - - Name - - Name of the ARM resource that represents the extension. The Set-AzureRmVMDscExtension cmdlet sets this name to 'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRmVMDscExtensionStatus. Specify this parameter only if you changed the default name in the Set cmdlet or used a different resource name in an ARM template. - - string - - string - - - - - - - ResourceGroupName - - The resource group name. - - string - - string - - - - - - - VMName - - The virtual machine name - - string - - string - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + Get-AzureRmVMChefExtension + + + + Remove-AzureRmVMChefExtension + + + + + + + + Set-AzureRmVMCustomScriptExtension + + Adds a custom script extension to a virtual machine. + + + + + Set + AzureRmVMCustomScriptExtension + + + + The Set-AzureRmVMCustomScriptExtension cmdlet adds a custom script Virtual Machine Extension to a virtual machine. This extension allows you to run your own scripts on the virtual machine. + + + + Set-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the custom script extension. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + + ContainerName + + Specifies the name of the Azure Storage container where this cmdlet stores the script. + + String + + + FileName + + Specifies the name of the script file. + + String[] + + + StorageAccountName + + Specifies the name of the Azure Storage account where this cmdlet stores the script. + + String + + + StorageEndpointSuffix + + Specifies the storage endpoint suffix. + + String + + + StorageAccountKey + + Specifies the key for the Azure Storage container. + + String + + + Run + + Specifies the command to use that runs your script. + + String + + + Argument + + Specifies arguments that the script extension passes to the script. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMCustomScriptExtension + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of the custom script extension. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + + FileUri + + Specifies the URI of the script file. + + String[] + + + Run + + Specifies the command to use that runs your script. + + String + + + Argument + + Specifies arguments that the script extension passes to the script. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of the resource group of the virtual machine. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet adds the custom script extension for the virtual machine that this parameter specifies. + + String + + String + + + none + + + Name + + Specifies the name of the custom script extension. + + String + + String + + + none + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. To obtain the version, run the Get-AzureRmVMExtensionImage cmdlet with a value of Microsoft.Compute for the PublisherName parameter and VMAccessAgent for the Type parameter. + + String + + String + + + none + + + ContainerName + + Specifies the name of the Azure Storage container where this cmdlet stores the script. + + String + + String + + + none + + + FileName + + Specifies the name of the script file. + + String[] + + String[] + + + none + + + StorageAccountName + + Specifies the name of the Azure Storage account where this cmdlet stores the script. + + String + + String + + + none + + + StorageEndpointSuffix + + Specifies the storage endpoint suffix. + + String + + String + + + none + + + StorageAccountKey + + Specifies the key for the Azure Storage container. + + String + + String + + + none + + + Run + + Specifies the command to use that runs your script. + + String + + String + + + none + + + Argument + + Specifies arguments that the script extension passes to the script. + + String + + String + + + none + + + Location + + Specifies the location of the virtual machine. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + FileUri + + Specifies the URI of the script file. + + String[] + + String[] + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Add a custom script -------------------------- + + PS C:\> + + PS C:\>Set-AzureRmVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "contosotest" -TypeHandlerVersion "1.1" -StorageAccountName "contoso" -StorageAccountKey <StorageKey> -FileName "contososcript.exe" -ContainerName "scripts" + + This command adds a custom script to the virtual machine named VirtualMachine07. The script file is contososcript.exe. + + + + + + + + + + + + + + + + Get-AzureRmVMCustomScriptExtension + + + + Remove-AzureRmVMCustomScriptExtension + + + + + + + + Set-AzureRmVMDataDisk + + + + + + + Set + AzureRmVMDataDisk + + + + + + + + Set-AzureRmVMDataDisk + + VM + + + + PSVirtualMachine + + + Name + + + + String + + + Caching + + + + String + + + DiskSizeInGB + + + + Nullable`1[Int32] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMDataDisk + + VM + + + + PSVirtualMachine + + + Lun + + + + Nullable`1[Int32] + + + Caching + + + + String + + + DiskSizeInGB + + + + Nullable`1[Int32] + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + + + PSVirtualMachine + + PSVirtualMachine + + + + + + Name + + + + String + + String + + + + + + Caching + + + + String + + String + + + + + + DiskSizeInGB + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Lun + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRmVMDiagnosticsExtension + + + + + + + Set + AzureRmVMDiagnosticsExtension + + + + + + + + Set-AzureRmVMDiagnosticsExtension + + ResourceGroupName + + + + String + + + VMName + + + + String + + + DiagnosticsConfigurationPath + + + + String + + + StorageContext + + + + AzureStorageContext + + + Location + + + + String + + + Name + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + VMName + + + + String + + String + + + + + + DiagnosticsConfigurationPath + + + + String + + String + + + + + + StorageContext + + + + AzureStorageContext + + AzureStorageContext + + + + + + Location + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRmVMDiskEncryptionExtension + + Set-AzureRmVMDiskEncryptionExtension cmdlet enables encryption on a running IaaS VM in Azure. This cmdlet prepares the VM to enable encryption, which may need rebooting the VM when done for the first time. This cmdlet installs an extension on the VM to enable encryption. If no Name parameter is specified, an extension with default name 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs is created. Please save your work on the VM before running this cmdlet and wait for it to be done. + + + + + Set + AzureRmVMDiskEncryptionExtension + + + + + + + + Set-AzureRmVMDiskEncryptionExtension + + ResourceGroupName + + Resource group name of the virtual machine + + String + + + VMName + + Name of the virtual machine + + String + + + AadClientID + + Client ID of the Azure Active Directory application that has permissions to write secrets to KeyVault + + String + + + AadClientSecret + + Client secret of the Azure Active Directory application that has permissions to write secrets to KeyVault + + String + + + DiskEncryptionKeyVaultUrl + + KeyVault URL to which the VM encryption keys should be uploaded to. + + String + + + DiskEncryptionKeyVaultId + + Resource ID of the KeyVault to which the VM encryption keys should be uploaded to. + + String + + + KeyEncryptionKeyUrl + + URL of the key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. + + String + + + KeyEncryptionKeyVaultId + + Resource ID of the KeyVault containing key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. + + String + + + KeyEncryptionAlgorithm + + Algorithm used to wrap and unwrap the VM encryption key with key encryption key. Default value is RSA-OAEP if not specified. + + String + + + VolumeType + + Type of VM volumes to perform the encryption operation. For Windows VMs allowed values are All, OS and Data . For Linux VMs allowed value is Data only. Default for Windows VMs is All if not specified. + + String + + + SequenceVersion + + Sequence number of the encryption operations on a given VM. This should be unique per each encryption operation performed on the same VM. See examples on how to retrieve the previous sequence number supplied. + + String + + + TypeHandlerVersion + + Version of the encryption extension. By default the latest version of the extension is used if not provided. + + String + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. + + String + + + Passphrase + + Passphrase specified in the powershell. This parameter only works for Linux VM. + + String + + + Force + + Force switch performs the encryption operation without prompting for a confirmation + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMDiskEncryptionExtension + + ResourceGroupName + + Resource group name of the virtual machine + + String + + + VMName + + Name of the virtual machine + + String + + + AadClientID + + Client ID of the Azure Active Directory application that has permissions to write secrets to KeyVault + + String + + + AadClientCertThumbprint + + Thumbprint of the Azure Active Directory application client certificate that has permissions to write secrets to KeyVault. The certificate must be previously deployed on to the VM local machine My certificate store. + + String + + + DiskEncryptionKeyVaultUrl + + KeyVault URL to which the VM encryption keys should be uploaded to. + + String + + + DiskEncryptionKeyVaultId + + Resource ID of the KeyVault to which the VM encryption keys should be uploaded to. + + String + + + KeyEncryptionKeyUrl + + URL of the key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. + + String + + + KeyEncryptionKeyVaultId + + Resource ID of the KeyVault containing key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. + + String + + + KeyEncryptionAlgorithm + + Algorithm used to wrap and unwrap the VM encryption key with key encryption key. Default value is RSA-OAEP if not specified. + + String + + + VolumeType + + Type of VM volumes to perform the encryption operation. For Windows VMs allowed values are All, OS and Data . For Linux VMs allowed value is Data only. Default for Windows VMs is All if not specified. + + String + + + SequenceVersion + + Sequence number of the encryption operations on a given VM. This should be unique per each encryption operation performed on the same VM. See examples on how to retrieve the previous sequence number supplied. + + String + + + TypeHandlerVersion + + Version of the encryption extension. By default the latest version of the extension is used if not provided. + + String + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. + + String + + + Passphrase + + Passphrase specified in the powershell. This parameter only works for Linux VM. + + String + + + Force + + Force switch performs the encryption operation without prompting for a confirmation + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Resource group name of the virtual machine + + String + + String + + + + + + VMName + + Name of the virtual machine + + String + + String + + + + + + AadClientID + + Client ID of the Azure Active Directory application that has permissions to write secrets to KeyVault + + String + + String + + + + + + AadClientSecret + + Client secret of the Azure Active Directory application that has permissions to write secrets to KeyVault + + String + + String + + + + + + DiskEncryptionKeyVaultUrl + + KeyVault URL to which the VM encryption keys should be uploaded to. + + String + + String + + + + + + DiskEncryptionKeyVaultId + + Resource ID of the KeyVault to which the VM encryption keys should be uploaded to. + + String + + String + + + + + + KeyEncryptionKeyUrl + + URL of the key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. + + String + + String + + + + + + KeyEncryptionKeyVaultId + + Resource ID of the KeyVault containing key encryption key that is used to wrap and unwrap the VM encryption key. This must be the full versioned URL. See examples for more details. + + String + + String + + + + + + KeyEncryptionAlgorithm + + Algorithm used to wrap and unwrap the VM encryption key with key encryption key. Default value is RSA-OAEP if not specified. + + String + + String + + + + + + VolumeType + + Type of VM volumes to perform the encryption operation. For Windows VMs allowed values are All, OS and Data . For Linux VMs allowed value is Data only. Default for Windows VMs is All if not specified. + + String + + String + + + + + + SequenceVersion + + Sequence number of the encryption operations on a given VM. This should be unique per each encryption operation performed on the same VM. See examples on how to retrieve the previous sequence number supplied. + + String + + String + + + + + + TypeHandlerVersion + + Version of the encryption extension. By default the latest version of the extension is used if not provided. + + String + + String + + + + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'AzureDiskEncryption' for Windows VMs and 'AzureDiskEncryptionForLinux' for Linux VMs. + + String + + String + + + + + + Passphrase + + Passphrase specified in the powershell. This parameter only works for Linux VM. + + String + + String + + + + + + Force + + Force switch performs the encryption operation without prompting for a confirmation + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + AadClientCertThumbprint + + Thumbprint of the Azure Active Directory application client certificate that has permissions to write secrets to KeyVault. The certificate must be previously deployed on to the VM local machine My certificate store. + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Enabling encryption using AAD Client ID, Client Secret -------------------------- + + PS C:\> + + $rgName = 'MyResourceGroup'; +$vmName = 'MyWindowsVM'; + +$aadClientID = "<clientID of your AAD app>"; +$aadClientSecret = "<clientSecret of your AAD app>"; + +$vaultName= 'MyKeyVault'; +$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; +$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; +$keyVaultResourceId = $keyVault.ResourceId; + +Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientSecret $aadClientSecret -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId ; + + + + + + + + + + + + + + + + -------------------------- Enabling encryption using AAD Client ID, client cert thumbprint -------------------------- + + PS C:\> + + $rgName = 'MyResourceGroup'; +$vmName = 'MyWindowsVM'; + +#The KeyVault must have enabledForDiskEncryption property set on it +$vaultName= 'MyKeyVault'; +$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; +$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; +$keyVaultResourceId = $keyVault.ResourceId; + +# create AAD application and associate the certificate +$certPath = 'C:\certificates\examplecert.pfx'; +$certPassword = 'yourPassword'; +$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath, $certPassword); +$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData()); +$azureAdApplication = New-AzureRmADApplication -DisplayName "<Your Application Display Name>" -HomePage "<https://YourApplicationHomePage>" -IdentifierUris "<https://YouApplicationUri>" -KeyValue $keyValue -KeyType AsymmetricX509Cert ; +$servicePrincipal = New-AzureRmADServicePrincipal –ApplicationId $azureAdApplication.ApplicationId; + +$aadClientID = $azureAdApplication.ApplicationId; +$aadClientCertThumbprint= $cert.Thumbprint; + +#Upload pfx to KeyVault +$keyVaultSecretName = 'myaadcert'; +$fileContentBytes = get-content $certPath -Encoding Byte; +$fileContentEncoded = [System.Convert]::ToBase64String($fileContentBytes); +$jsonObject = @" { "data": "$filecontentencoded", "dataType" :"pfx", "password": "$certPassword" } "@ ; +$jsonObjectBytes = [System.Text.Encoding]::UTF8.GetBytes($jsonObject); +$jsonEncoded = [System.Convert]::ToBase64String($jsonObjectBytes); + +$secret = ConvertTo-SecureString -String $jsonEncoded -AsPlainText -Force; +Set-AzureKeyVaultSecret -VaultName $vaultName-Name $keyVaultSecretName -SecretValue $secret; +Set-AzureRmKeyVaultAccessPolicy -VaultName $vaultName -ResourceGroupName $rgName –EnabledForDeployment; + +#deploy cert to VM +$certUrl = (Get-AzureKeyVaultSecret -VaultName $vaultName -Name $keyVaultSecretName).Id +$sourceVaultId = (Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgName).ResourceId +$vm = Get-AzureRmVM -ResourceGroupName $rgName -Name $vmName +$vm = Add-AzureRmVMSecret -VM $vm -SourceVaultId $sourceVaultId -CertificateStore "My" -CertificateUrl $certUrl +Update-AzureRmVM -VM $vm -ResourceGroupName $rgName + +#Enable encryption on the VM using AAD client ID and client cert thumbprint +Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientCertThumbprint $aadClientCertThumbprint -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId ; + + + + + + + + + + + + + + + + -------------------------- Enable encryption using AAD ClientID, Client Secret and wrap diskEncryptionKey with KeyEncryptionKey -------------------------- + + PS C:\> + + $rgName = 'MyResourceGroup'; +$vmName = 'MyWindowsVM'; + +$aadClientID = "<clientID of your AAD app>"; +$aadClientSecret = "<clientSecret of your AAD app>"; + +$vaultName= 'MyKeyVault'; +$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; +$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; +$keyVaultResourceId = $keyVault.ResourceId; + +$kek = Add-AzureKeyVaultKey -VaultName $vaultName -Name $kekName -Destination "Software" +$keyEncryptionKeyUrl = $kek.Key.kid; + +Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientSecret $aadClientSecret -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId -KeyEncryptionKeyUrl $keyEncryptionKeyUrl -KeyEncryptionKeyVaultId $keyVaultResourceId; + + + + + + + + + + + + + + + + -------------------------- Enable encryption using AAD Client ID , Client cert Thumbprint and wrap diskEncryptionKey with KeyEncryptionKey -------------------------- + + PS C:\> + + $rgName = 'MyResourceGroup'; +$vmName = 'MyWindowsVM'; + +#The KeyVault must have enabledForDiskEncryption property set on it +$vaultName= 'MyKeyVault'; +$keyVault = Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgname; +$diskEncryptionKeyVaultUrl = $keyVault.VaultUri; +$keyVaultResourceId = $keyVault.ResourceId; + +$kek = Add-AzureKeyVaultKey -VaultName $vaultName -Name $kekName -Destination "Software" +$keyEncryptionKeyUrl = $kek.Key.kid; + +# create AAD application and associate the certificate +$certPath = 'C:\certificates\examplecert.pfx'; +$certPassword = 'yourPassword'; +$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath, $certPassword); +$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData()); +$azureAdApplication = New-AzureRmADApplication -DisplayName "<Your Application Display Name>" -HomePage "<https://YourApplicationHomePage>" -IdentifierUris "<https://YouApplicationUri>" -KeyValue $keyValue -KeyType AsymmetricX509Cert ; +$servicePrincipal = New-AzureRmADServicePrincipal –ApplicationId $azureAdApplication.ApplicationId; + +$aadClientID = $azureAdApplication.ApplicationId; +$aadClientCertThumbprint= $cert.Thumbprint; + +#Upload pfx to KeyVault +$keyVaultSecretName = 'myaadcert'; +$fileContentBytes = get-content $certPath -Encoding Byte; +$fileContentEncoded = [System.Convert]::ToBase64String($fileContentBytes); +$jsonObject = @" { "data": "$filecontentencoded", "dataType" :"pfx", "password": "$certPassword" } "@ ; +$jsonObjectBytes = [System.Text.Encoding]::UTF8.GetBytes($jsonObject); +$jsonEncoded = [System.Convert]::ToBase64String($jsonObjectBytes); + +$secret = ConvertTo-SecureString -String $jsonEncoded -AsPlainText -Force; +Set-AzureKeyVaultSecret -VaultName $vaultName-Name $keyVaultSecretName -SecretValue $secret; +Set-AzureRmKeyVaultAccessPolicy -VaultName $vaultName -ResourceGroupName $rgName –EnabledForDeployment; + +#deploy cert to VM +$certUrl = (Get-AzureKeyVaultSecret -VaultName $vaultName -Name $keyVaultSecretName).Id +$sourceVaultId = (Get-AzureRmKeyVault -VaultName $vaultName -ResourceGroupName $rgName).ResourceId +$vm = Get-AzureRmVM -ResourceGroupName $rgName -Name $vmName +$vm = Add-AzureRmVMSecret -VM $vm -SourceVaultId $sourceVaultId -CertificateStore "My" -CertificateUrl $certUrl +Update-AzureRmVM -VM $vm -ResourceGroupName $rgName + +#Enable encryption on the VM using AAD client ID and client cert thumbprint +Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $rgname -VMName $vmName -AadClientID $aadClientID -AadClientCertThumbprint $aadClientCertThumbprint -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId ; + + + + + + + + + + + + + + + + + + + + + + Set-AzureRmVMDscExtension + + Configure the Windows PowerShell Desired State Configuration extension on a VM. + + + + + Set + AzureRmVMDscExtension + + + + Configure the Windows PowerShell Desired State Configuration extension on a VM in a resource group + + + + Set-AzureRmVMDscExtension + + ResourceGroupName + + The name of the resource group that contains the virtual machine + + String + + + VMName + + Name of the virtual machine where dsc extension handler would be installed + + String + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' + + String + + + ArchiveBlobName + + The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration + + String + + + ArchiveStorageAccountName + + The Azure Storage Account name used to download the ArchiveBlobName + + String + + + ArchiveResourceGroupName + + The name of the resource group that contains the storage account containing the configuration archive. This param is optional if storage account and virtual machine both exists in the same resource group name,specified by ResourceGroupName param. + + String + + + ArchiveStorageEndpointSuffix + + The Storage Endpoint Suffix + + String + + + ArchiveContainerName + + Name of the Azure Storage Container where the configuration archive is located + + String + + + ConfigurationName + + Name of the configuration that will be invoked by the DSC Extension + + String + + + ConfigurationArgument + + A hashtable specifying the arguments to the ConfigurationFunction + + Hashtable + + + ConfigurationData + + Path to a .psd1 file that specifies the data for the Configuration + + String + + + Version + + The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N + + String + + + Force + + By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them + + SwitchParameter + + + Location + + Location of the resource + + String + + + AutoUpdate + + We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. + + SwitchParameter + + + WmfVersion + + + Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". + A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. + A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + + + + + ResourceGroupName + + The name of the resource group that contains the virtual machine + + String + + String + + + + + + VMName + + Name of the virtual machine where dsc extension handler would be installed + + String + + String + + + + + + Name + + Name of the ARM resource that represents the extension. This is defaulted to 'Microsoft.Powershell.DSC' + + String + + String + + + + + + ArchiveBlobName + + The name of the configuration file that was previously uploaded by Publish-AzureRmVMDSCConfiguration + + String + + String + + + + + + ArchiveStorageAccountName + + The Azure Storage Account name used to download the ArchiveBlobName + + String + + String + + + + + + ArchiveResourceGroupName + + The name of the resource group that contains the storage account containing the configuration archive. This param is optional if storage account and virtual machine both exists in the same resource group name,specified by ResourceGroupName param. + + String + + String + + + + + + ArchiveStorageEndpointSuffix + + The Storage Endpoint Suffix + + String + + String + + + + + + ArchiveContainerName + + Name of the Azure Storage Container where the configuration archive is located + + String + + String + + + + + + ConfigurationName + + Name of the configuration that will be invoked by the DSC Extension + + String + + String + + + + + + ConfigurationArgument + + A hashtable specifying the arguments to the ConfigurationFunction + + Hashtable + + Hashtable + + + + + + ConfigurationData + + Path to a .psd1 file that specifies the data for the Configuration + + String + + String + + + + + + Version + + The version of the DSC extension that Set-AzureRmVMDSCExtension will apply the settings to. Allowed format N.N + + String + + String + + + + + + Force + + By default Set-AzureRmVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them + + SwitchParameter + + SwitchParameter + + + + + + Location + + Location of the resource + + String + + String + + + + + + AutoUpdate + + We install the extension handler version specified by the -version param. By default extension handler is not autoupdated. Use -AutoUpdate to enable auto update of extension handler to the latest version as and when it is available. + + SwitchParameter + + SwitchParameter + + + + + + WmfVersion + + + Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". + A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. + A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + + String + + String + + + latest + + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + string + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + WhatIf + + Describes what would happen if you executed the command without actually executing the command. + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + Prompts you for confirmation before executing the command. + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- EXAMPLE 1 -------------------------- + + PS C:\> + + Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName VM -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -Version 1.10 -Location 'West US' + + Description + + + + + + + + + + + + + + -------------------------- EXAMPLE 2 -------------------------- + + PS C:\> + + Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' + + Description + + + + + + + + + + + + + + -------------------------- EXAMPLE 3 -------------------------- + + PS C:\> + + Set-AzureRmVMDscExtension -ResourceGroupName Name -VMName vm -ArchiveBlobName Sample.ps1.zip -ArchiveStorageAccountName Stg -ConfigurationName ConfigName -ConfigurationArgument @{arg="val"} -ArchiveContainerName WindowsPowerShellDSC -ConfigurationData SampleData.psd1 -Version 1.10 -Location 'West US' -AutoUpdate + + Description + + + + + + + + + + + + + + + + Unknown + + + + + + + + Set-AzureRmVMExtension + + Updates extension properties or adds an extension to a virtual machine. + + + + + Set + AzureRmVMExtension + + + + The Set-AzureRmVMExtension cmdlet updates properties for existing Virtual Machine Extensions or adds an extension to a virtual machine. + + + + Set-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of an extension. + + String + + + Publisher + + Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. + + String + + + ExtensionType + + Specifies the extension type. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. + + String + + + Settings + + Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. + + Hashtable + + + ProtectedSettings + + Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. + + Hashtable + + + Location + + Specifies the location of the virtual machine. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMExtension + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + VMName + + Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. + + String + + + Name + + Specifies the name of an extension. + + String + + + Publisher + + Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. + + String + + + ExtensionType + + Specifies the extension type. + + String + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. + + String + + + SettingString + + Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. + + String + + + ProtectedSettingString + + Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. + + String + + + Location + + Specifies the location of the virtual machine. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + VMName + + Specifies the name of a virtual machine. This cmdlet modifies extensions for the virtual machine that this parameter specifies. + + String + + String + + + none + + + Name + + Specifies the name of an extension. + + String + + String + + + none + + + Publisher + + Specifies the name of the extension publisher. The publisher provides a name when the publisher registers an extension. + + String + + String + + + none + + + ExtensionType + + Specifies the extension type. + + String + + String + + + none + + + TypeHandlerVersion + + Specifies the version of the extension to use for this virtual machine. + + String + + String + + + none + + + Settings + + Specifies public configuration for the extension, as a hash table. This cmdlet does not encrypt public configuration. + + Hashtable + + Hashtable + + + none + + + ProtectedSettings + + Specifies private configuration for the extension, as a hash table. This cmdlet encrypts the private configuration. + + Hashtable + + Hashtable + + + none + + + Location + + Specifies the location of the virtual machine. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + SettingString + + Specifies public configuration for the extension, as a string. This cmdlet does not encrypt public configuration. + + String + + String + + + none + + + ProtectedSettingString + + Specifies private configuration for the extension, as a string. This cmdlet encrypts the private configuration. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Modify settings by using hash tables -------------------------- + + PS C:\> + + PS C:\>$Settings = @{"fileUris" = "[]"; "commandToExecute" = ""}; +PS C:\> $ProtectedSettings = @{"storageAccountName" = $stoname; "storageAccountKey" = $stokey}; +PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "ContosoTest" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -Settings $Settings -ProtectedSettings $ProtectedSettings; + + The first two commands use standard Windows PowerShell® syntax to create hash tables, and then stores those hash tables in the $Settings and $ProtectedSettings variables. For more information, type Get-Help about_Hash_Tables. The second command includes two values previously created and stored in variables. + + + + + + + + + + + + + + -------------------------- Example 2: Modify settings by using strings -------------------------- + + PS C:\> + + PS C:\>$SettingsString = '{"fileUris":[],"commandToExecute":""}'; +PS C:\> $ProtectedSettingsString = '{"storageAccountName":"' + $stoname + '","storageAccountKey":"' + $stokey + '"}'; +PS C:\> Set-AzureRmVMExtension -ResourceGroupName "ResourceGroup11" -Location "West US" -VMName "VirtualMachine22" -Name "CustomScriptExtension" -Publisher "Contoso.Compute" -Type "CustomScriptExtension" -TypeHandlerVersion "1.1" -SettingString $SettingsString -ProtectedSettingString $ProtectedSettingsString ; + + The first two commands create strings that contain settings, and then stores them in the $SettingsString and $ProtectedSettingsString variables. + + + + + + + + + + + + + + + + Get-AzureRmVMExtension + + + + Remove-AzureRmVMExtension + + + + + + + + Set-AzureRmVMOperatingSystem + + Sets operating system properties for a virtual machine. + + + + + Set + AzureRmVMOperatingSystem + + + + The Set-AzureRmVMOperatingSystem cmdlet sets operating system properties for a virtual machine. You can specify logon credentials computer name, and operating system type. + + + + Set-AzureRmVMOperatingSystem + + VM + + Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + Windows + + Indicates that the type of operating system is Windows. + + SwitchParameter + + + ComputerName + + Specifies the name of the computer. + + String + + + Credential + + Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. + + PSCredential + + + CustomData + + Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. + + String + + + ProvisionVMAgent + + Indicates that the settings require that the virtual machine agent be installed on the virtual machine. + + SwitchParameter + + + EnableAutoUpdate + + Indicates that this cmdlet enables auto update. + + SwitchParameter + + + TimeZone + + Specifies the time zone for the virtual machine. + + String + + + WinRMHttp + + Indicates that this operating system uses HTTP WinRM. + + SwitchParameter + + + WinRMHttps + + Indicates that this operating system uses HTTPS WinRM. + + SwitchParameter + + + WinRMCertificateUrl + + Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. + + Uri + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMOperatingSystem + + VM + + Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + + Linux + + Indicates that the type of operating system is Linux. + + SwitchParameter + + + ComputerName + + Specifies the name of the computer. + + String + + + Credential + + Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. + + PSCredential + + + CustomData + + Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. + + String + + + DisablePasswordAuthentication + + Indicates that this cmdlet disables password authentication. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the local virtual machine object on which to set operating system properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. Create a virtual machine object by using the New-AzureRmVMConfig cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Windows + + Indicates that the type of operating system is Windows. + + SwitchParameter + + SwitchParameter + + + none + + + ComputerName + + Specifies the name of the computer. + + String + + String + + + none + + + Credential + + Specifies the user name and password for the virtual machine as a PSCredential object. To obtain a credential, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. + + PSCredential + + PSCredential + + + none + + + CustomData + + Specifies a base-64 encoded string of custom data. This is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. + + String + + String + + + none + + + ProvisionVMAgent + + Indicates that the settings require that the virtual machine agent be installed on the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + EnableAutoUpdate + + Indicates that this cmdlet enables auto update. + + SwitchParameter + + SwitchParameter + + + none + + + TimeZone + + Specifies the time zone for the virtual machine. + + String + + String + + + none + + + WinRMHttp + + Indicates that this operating system uses HTTP WinRM. + + SwitchParameter + + SwitchParameter + + + none + + + WinRMHttps + + Indicates that this operating system uses HTTPS WinRM. + + SwitchParameter + + SwitchParameter + + + none + + + WinRMCertificateUrl + + Specifies the URI of a WinRM certificate. This needs to be stored in a Key Vault. + + Uri + + Uri + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Linux + + Indicates that the type of operating system is Linux. + + SwitchParameter + + SwitchParameter + + + none + + + DisablePasswordAuthentication + + Indicates that this cmdlet disables password authentication. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Set operating system properties for a new virtual machines -------------------------- + + PS C:\> + + PS C:\>$SecurePassword = ConvertTo-SecureString "password" -AsPlainText -Force +PS C:\> $Credential = New-Object System.Management.Automation.PSCredential ("FullerP", $SecurePassword); +PS C:\> $AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> $ComputerName = "ContosoVM122" +PS C:\> $WinRMCertUrl = "http://keyVaultName.vault.azure.net/secrets/secretName/secretVersion" +PS C:\> $TimeZone = "Pacific Standard Time" +PS C:\> $CustomData = "echo 'Hello World'" +PS C:\> $VirtualMachine = Set-AzureRmVMOperatingSystem -VM $$VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential -CustomData $CustomData -WinRMHttp -WinRMHttps -WinRMCertificateUrl $WinRMCertUrl -ProvisionVMAgent -EnableAutoUpdate -TimeZone $TimeZone + + The first command converts a password to a secure string, and then stores it in the $SecurePassword variable. For more information, type Get-Help ConvertTo-SecureString. + + + The fourth command creates a virtual machine object, and then stores it in the $VirtualMachine variable. The command assigns a name and size to the virtual machine. The virtual machine belongs to the availability set stored in $AvailabilitySet. + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVMConfig + + + + + + + + Set-AzureRmVMOSDisk + + Sets the operating system disk properties on a virtual machine. + + + + + Set + AzureRmVMOSDisk + + + + The Set-AzureRmVMOSDisk cmdlet set the operating system disk properties on a virtual machine. + + + + Set-AzureRmVMOSDisk + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the operating system disk. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + + SourceImageUri + + This setting affects the consistency and performance of the disk. + + String + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMOSDisk + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the operating system disk. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + + SourceImageUri + + This setting affects the consistency and performance of the disk. + + String + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + String + + + Windows + + Indicates that the operating system on the user image is Windows. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMOSDisk + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the operating system disk. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + + SourceImageUri + + This setting affects the consistency and performance of the disk. + + String + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + String + + + Windows + + Indicates that the operating system on the user image is Windows. + + SwitchParameter + + + DiskEncryptionKeyUrl + + + + String + + + DiskEncryptionKeyVaultId + + + + String + + + KeyEncryptionKeyUrl + + + + String + + + KeyEncryptionKeyVaultId + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMOSDisk + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the operating system disk. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + + SourceImageUri + + This setting affects the consistency and performance of the disk. + + String + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + String + + + Linux + + Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRmVMOSDisk + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + + Name + + Specifies the name of the operating system disk. + + String + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + + SourceImageUri + + This setting affects the consistency and performance of the disk. + + String + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + String + + + Linux + + Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. + + SwitchParameter + + + DiskEncryptionKeyUrl + + + + String + + + DiskEncryptionKeyVaultId + + + + String + + + KeyEncryptionKeyUrl + + + + String + + + KeyEncryptionKeyVaultId + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the local virtual machine object on which to set operating system disk properties. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Name + + Specifies the name of the operating system disk. + + String + + String + + + none + + + VhdUri + + Specifies the Uniform Resource Identifier (URI) of a virtual hard disk (VHD). + For an image based virtual machine, this parameter specifies the VHD file to create when a platform image or user image is specified. This is the location from which the image binary large object (BLOB) is copied to start the virtual machine. + For a disk based virtual machine boot scenario, this parameter specifies the VHD file that the virtual machine uses directly for starting up. + + String + + String + + + none + + + Caching + + Specifies the caching mode of the operating system disk. Valid values are: + -- ReadOnly +-- ReadWrite + The default value is ReadWrite. Changing the caching value causes the virtual machine to restart. + This setting affects the consistency and performance of the disk. + + String + + String + + + none + + + SourceImageUri + + This setting affects the consistency and performance of the disk. + + String + + String + + + none + + + CreateOption + + Specifies whether this cmldet creates a disk in the virtual machine from a platform or user image, creates an empty disk, or attaches an existing disk. Valid values are: + -- Attach +-- Empty +-- FromImage + This setting affects the consistency and performance of the disk. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Windows + + Indicates that the operating system on the user image is Windows. + + SwitchParameter + + SwitchParameter + + + none + + + DiskEncryptionKeyUrl + + + + String + + String + + + + + + DiskEncryptionKeyVaultId + + + + String + + String + + + + + + KeyEncryptionKeyUrl + + + + String + + String + + + + + + KeyEncryptionKeyVaultId + + + + String + + String + + + + + + Linux + + Indicates that the operating system on the user image is Linux. Specify this parameter for user image based virtual machine deployment. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Sets properties on a virtual machine -------------------------- + + PS C:\> + + PS C:\>$AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> Set-AzureRmVMOSDisk -VM $VirtualMachine -Name "OsDisk02" -VhdUri "os.vhd" -Caching ReadWrite + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + Get-AzureRmAvailabilitySet + + + + New-AzureRmVMConfig + + + + + + + + Set-AzureRmVMSourceImage + + Specifies the platform image for a virtual machine. + + + + + Set + AzureRmVMSourceImage + + + + The Set-AzureRmVMSourceImage cmdlet specifies the platform image to use for a virtual machine. + + + + Set-AzureRmVMSourceImage + + VM + + Specifies the local virtual machine object to configure. + + PSVirtualMachine + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + String + + + Skus + + Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. + + String + + + Version + + Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies the local virtual machine object to configure. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + PublisherName + + Specifies the name of a publisher of a VMImage. To obtain a publisher, use the Get-AzureRmVMImagePublisher cmdlet. + + String + + String + + + none + + + Offer + + Specifies the type of VMImage offer. To obtain an image offer, use the Get-AzureRmVMImageOffer cmdlet. + + String + + String + + + none + + + Skus + + Specfies a VMImage SKU. To obtain SKUs, use the Get-AzureRmVMImageSku cmdlet. + + String + + String + + + none + + + Version + + Specifies a version of a VMImage. To use the latest version, specify a value of latest instead of a particular version. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Name + + Specifies the name of a source image. + + system.string + + system.string + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + microsoft.azure.common.authentication.models.azureprofile + + microsoft.azure.common.authentication.models.azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Set values for an image -------------------------- + + PS C:\> + + PS C:\>AvailabilitySet = Get-AzureRmAvailabilitySet -ResourceGroupName "ResourceGroup11" -Name "AvailabilitySet03" +PS C:\> $VirtualMachine = New-AzureRmVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1" -AvailabilitySetID $AvailabilitySet.Id +PS C:\> Set-AzureRmVMSourceImage -VM $VirtualMachine -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Skus "2012-R2-Datacenter" -Version "latest" + + The first command gets the availability set named AvailablitySet03 in the resource group named ResourceGroup11, and then stores that object in the $AvailabilitySet variable. + + + + + + + + + + + + + + -------------------------- Example 2: Use the image reference method to set values -------------------------- + + PS C:\> + + PS C:\>$Publisher = (Get-AzureRmVMImagePublisher -Location "Central US") | select -ExpandProperty PublisherName | where { $_ -like '*Microsoft*Windows*Server' } +PS C:\> $Offer = (Get-AzureRmVMImageOffer -Location "Central US" -PublisherName $Publisher[0]) | select -ExpandProperty Offer | where { $_ -like '*Windows*' } +PS C:\> $Sku = (Get-AzureRmVMImageSku -Location "Central US" -PublisherName $Publisher[0] -Offer $Offer[0]) | select -ExpandProperty Skus +PS C:\> $Versions = (Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0]) | select -ExpandProperty Version +PS C:\> $VMImage = Get-AzureRmVMImage -Location "Central US" -Offer -Offer $Offer[0] -PublisherName $Publisher[0] -Skus $Sku[0] -Version $Versions[0] +PS C:\> $VirtualMachine07 = Set-AzureRmVMSourceImage -VM $VirtualMachine07 -ImageReference $VMImage + + This example sets source image settings by using the image reference method. + + + + + + + + + + + + + + + + Get-AzureRmAvailabilitySet + + + + New-AzureRmVMConfig + + + + Get-AzureRmVMImagePublisher + + + + Get-AzureRmVMImageOffer + + + + Get-AzureRmVMImageSku + + + + Get-AzureRmVMImage + + + + + + + + Set-AzureRmVMSqlServerExtension + + + + + + + Set + AzureRmVMSqlServerExtension + + + + + + + + Set-AzureRmVMSqlServerExtension + + Version + + + + String + + + ResourceGroupName + + + + String + + + VMName + + + + String + + + Name + + + + String + + + AutoPatchingSettings + + + + AutoPatchingSettings + + + AutoBackupSettings + + + + AutoBackupSettings + + + Location + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Version + + + + String + + String + + + + + + ResourceGroupName + + + + String + + String + + + + + + VMName + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + AutoPatchingSettings + + + + AutoPatchingSettings + + AutoPatchingSettings + + + + + + AutoBackupSettings + + + + AutoBackupSettings + + AutoBackupSettings + + + + + + Location + + + + String + + String + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Start-AzureRmVM + + Starts an Azure virtual machine. + + + + + Start + AzureRmVM + + + + The Start-AzureRmVM cmdlet starts an Azure virtual machine. + + + + Start-AzureRmVM + + Name + + Specifies the name of the virtual machine to start. + + String + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Start-AzureRmVM + + Name + + Specifies the name of the virtual machine to start. + + String + + + Id + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + Specifies the name of the virtual machine to start. + + String + + String + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Start a virtual machine -------------------------- + + PS C:\> + + PS C:\>Start-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + This command starts the virtual machine named VirtualMachine07 in ResourceGroup11. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Stop-AzureRmVM + + + + Update-AzureRmVM + + + + + + + + Stop-AzureRmVM + + Stops an Azure virtual machine. + + + + + Stop + AzureRmVM + + + + The Stop-AzureRmVM cmdlet stops an Azure virtual machine. + + + + Stop-AzureRmVM + + Name + + Specifies the name of the virtual machine to stop. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + StayProvisioned + + Indicates that this cmdlet uses the stay provisioned setting. + + SwitchParameter + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Stop-AzureRmVM + + Name + + Specifies the name of the virtual machine to stop. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + + StayProvisioned + + Indicates that this cmdlet uses the stay provisioned setting. + + SwitchParameter + + + Id + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + Specifies the name of the virtual machine to stop. + + String + + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + StayProvisioned + + Indicates that this cmdlet uses the stay provisioned setting. + + SwitchParameter + + SwitchParameter + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + + + String + + String + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Stop a virtual machine -------------------------- + + PS C:\> + + PS C:\>Stop-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" + + This command stops the virtual machine named VirtualMachine07 in ResourceGroup11. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Update-AzureRmVM + + + + + + + + Update-AzureRmVM + + Updates the state of an Azure virtual machine. + + + + + Update + AzureRmVM + + + + The Update-AzureRmVM cmdlet updates the state of an Azure virtual machine to the state of a virtual machine object. + + + + Update-AzureRmVM + + VM + + Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. + + PSVirtualMachine + + + Tags + + + + Hashtable[] + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Update-AzureRmVM + + VM + + Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. + + PSVirtualMachine + + + Tags + + + + Hashtable[] + + + Id + + + + String + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Specifies a local virtual machine object. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. This virtual machine object contains the updated state for the virtual machine. + + PSVirtualMachine + + PSVirtualMachine + + + none + + + Tags + + + + Hashtable[] + + Hashtable[] + + + none + + + ResourceGroupName + + Specifies the name of a resource group. + + String + + String + + + none + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Id + + + + String + + String + + + + + + Name + + Specifies the name of the virtual machine to update. + + string + + string + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + azureprofile + + azureprofile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- Example 1: Update a virtual machine -------------------------- + + PS C:\> + + PS C:\>Update-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -VM $VirtualMachine + + This command updates the virtual machine named VirtualMachine07 in ResourceGroup11. The command updates it by using another virtual machine object, stored in the $VirtualMachine variable. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet. + + + + + + + + + + + + + + + + Get-AzureRmVM + + + + New-AzureRmVM + + + + Remove-AzureRmVM + + + + Restart-AzureRmVM + + + + Start-AzureRmVM + + + + Stop-AzureRmVM + + + + New-AzureRmVMConfig + + + + + + + + Get-AzureRmVMExtensionImageDetail + + This cmdlet has been deprecated. + + + + + + + + + + This Get-AzureRmVMExtensionImageDetail cmdlet has been deprecated. + + + + + + FilterExpression + + + + string + + string + + + none + + + Location + + + + string + + string + + + none + + + Profile + + + + azureprofile + + azureprofile + + + none + + + PublisherName + + + + string + + string + + + none + + + Type + + + + string + + string + + + none + + + Version + + + + string + + string + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- 1: -------------------------- + + PS C:\> + + PS C:\> + + + + + + + + + + + + + + + + + + + + + + Get-AzureRmVMImageDetail + + This cmdlet has been deprecated. + + + + + + + + + + The Get-AzureRmVMImageDetail cmdlet has been deprecated. + + + + + + Location + + + + string + + string + + + none + + + Offer + + + + string + + string + + + none + + + Profile + + + + azureprofile + + azureprofile + + + none + + + PublisherName + + + + string + + string + + + none + + + Skus + + + + string + + string + + + none + + + Version + + + + string + + string + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas + + + + + -------------------------- 1: -------------------------- + + PS C:\> + + PS C:\> + + + + + + + + + + + + + + + + + + + diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml b/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml index 200128321e24..508f5387bb85 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml @@ -1,11 +1,11 @@  - - + + Add-AzureCertificate - Uploads a service certificate for the specified cloud service. + Uploads a certificate to an Azure cloud service. @@ -15,75 +15,89 @@ - - - + The Add-AzureCertificate cmdlet uploads a certificate for an Azure service. Add-AzureCertificate - + ServiceName - Specifies the name of the Microsoft Azure service to which you are adding a certificate. + Specifies the name of the Azure service to which this cmdlet adds a certificate. String - + CertToDeploy - Specifies the certificate to deploy. You can specify the path file name of a certificate file (*.cer, *. pfx, etc) or an X.509 Certificate object. + Specifies the certificate to deploy. You can specify the full path of a certificate file, such as a file that has a *.cer or *. pfx file name extension, or an X.509 Certificate object. Object - + Password Specifies the certificate password. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - ServiceName + + CertToDeploy - Specifies the name of the Microsoft Azure service to which you are adding a certificate. + Specifies the certificate to deploy. You can specify the full path of a certificate file, such as a file that has a *.cer or *. pfx file name extension, or an X.509 Certificate object. - String + Object + + Object + + + none + + + Password + + Specifies the certificate password. + + String String - - + none - - CertToDeploy + + Profile - Specifies the certificate to deploy. You can specify the path file name of a certificate file (*.cer, *. pfx, etc) or an X.509 Certificate object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Object + AzureProfile - Object + AzureProfile - - + none - - Password + + ServiceName - Specifies the certificate password. + Specifies the name of the Azure service to which this cmdlet adds a certificate. String String - - + none @@ -91,13 +105,15 @@ - + + - - + + + @@ -105,78 +121,77 @@ ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Upload a certificate and password - PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy myCertificate.pfx –password 123 + PS C:\>Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy ContosoCertificate.pfx -Password "password" + - This command uploads myCertificate.pfx certificate to the specified cloud service. + This command uploads the certificate file ContosoCertificate.pfx to a cloud service. The command specifies the password for the certificate. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Upload a certificate file - PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy myCertificate.cer + PS C:\>Add-AzureCertificate -serviceName "MyService" -CertToDeploy ContosoCertificate.cer + - This command uploads myCertificate.cer certificate to the specified cloud service. + This command uploads the certificate file ContosoCertificate.cer to a cloud service. The command specifies the password for the certificate. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Upload a certificate object - PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy (Get-Item cert:\CurrentUser\MY\1D6E34B526723E06C235BE8E5547784BF12C9F39) + PS C:\>$Certificate = Get-Item cert:\PATTIFULLER\MY\1D6E34B526723E06C235BE8E5457784BF12C9F39 +PS C:\> Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy $Certificate + - This command uploads the specified certificate to the specified cloud service, using the Get-Item Windows PowerShell cmdlet to get the certificate object. + The first command gets a certificate from the MY store of a user by using the Windows PowerShell core Get-Item cmdlet. The command stores the certificate in the $Certificate variable. + The second command uploads the certificate in $certificate to a cloud service. + + - - + @@ -184,22 +199,23 @@ Get-AzureCertificate - - + + + + New-AzureCertificateSetting + Remove-AzureCertificate - - + - - + Add-AzureDataDisk - Adds a new data disk to a virtual machine object. + Adds a data disk to a virtual machine. @@ -209,276 +225,323 @@ - - The Add-AzureDataDisk cmdlet adds a new data disk to a virtual machine object. Use the –CreateNew parameter to create a new data disk with a specified size and label, and then attach it. Use the –Import parameter to attach an existing disk from the image repository. Use the –ImportFrom parameter to attach an existing disk from a blob in a storage account.The cmdlet allows you to specify the host-cache mode of attached data disks. + The Add-AzureDataDisk cmdlet adds a new or existing data disk to an Azure virtual machine object. Use the CreateNew parameter to create a new data disk that has a specified size and label. Use the Import parameter to attach an existing disk from the image repository. Use the ImportFrom parameter to attach an existing disk from a blob in a storage account. You can specify the host-cache mode of the attached data disk. Add-AzureDataDisk - + CreateNew - Specify to create a new data disk. + Indicates that this cmdlet creates a data disk. - SwitchParameter - + DiskSizeInGB - Specifies the logical disk size in gigabytes. + Specifies the logical disk size, in gigabytes, for a new data disk. Int32 - + DiskLabel - Specifies the disk label when creating a new data disk. + Specifies the disk label for a new data disk. String - + LUN - Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. + Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. Int32 - + + HostCaching + + Specifies the host level caching settings of the disk. Valid values are: + +-- None +-- ReadOnly +-- ReadWrite + + + ReadOnly + ReadWrite + None + + + MediaLocation - Optional. Specifies the Location of the blob in a Microsoft Azure storage account where the data disk will be stored. If no location is specified, the data disk will be stored in the vhds container within the default storage account for the current subscription. If a vhds container doesn’t exist, the container is created + Specifies the location of the blob in an Azure storage account where this cmdlet stores the data disk. If you do not specify a location, the cmdlet stores the data disk in the vhds container in the default storage account for the current subscription. If a vhds container does not exist, the cmdlet creates a vhds container. - String + String - - HostCaching + + Profile - Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - + VM - Specifies the virtual machine object where the data disk will attach. + Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. IPersistentVM Add-AzureDataDisk - - Import + + ImportFrom - Imports an existing data disk from the disk library. + Indicates that this cmdlet imports an existing data disk from a blob in a storage account. - SwitchParameter - - DiskName + + DiskLabel - Specifies the name of the data disk in the disk repository. + Specifies the disk label for a new data disk. String - + LUN - Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. + Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. Int32 - + HostCaching - Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. + Specifies the host level caching settings of the disk. Valid values are: + +-- None +-- ReadOnly +-- ReadWrite - String + + ReadOnly + ReadWrite + None + + + + MediaLocation + + Specifies the location of the blob in an Azure storage account where this cmdlet stores the data disk. If you do not specify a location, the cmdlet stores the data disk in the vhds container in the default storage account for the current subscription. If a vhds container does not exist, the cmdlet creates a vhds container. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + VM - Specifies the virtual machine object where the data disk will attach. + Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. IPersistentVM Add-AzureDataDisk - - ImportFrom + + Import - Imports an existing data disk from a blob in a storage acount. + Indicates that this cmdlet imports an existing data disk from the image repository. - SwitchParameter - - DiskLabel + + DiskName - Specifies the disk label when creating a new data disk. + Specifies the name of a data disk in the disk repository. String - + LUN - Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. + Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. Int32 - - MediaLocation + + HostCaching - Optional. Specifies the Location of the blob in a Microsoft Azure storage account where the data disk will be stored. If no location is specified, the data disk will be stored in the vhds container within the default storage account for the current subscription. If a vhds container doesn’t exist, the container is created + Specifies the host level caching settings of the disk. Valid values are: + +-- None +-- ReadOnly +-- ReadWrite - String + + ReadOnly + ReadWrite + None + - - HostCaching + + Profile - Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - + VM - Specifies the virtual machine object where the data disk will attach. + Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. IPersistentVM - + CreateNew - Specify to create a new data disk. + Indicates that this cmdlet creates a data disk. - SwitchParameter + SwitchParameter SwitchParameter - - + none - - DiskSizeInGB + + DiskLabel - Specifies the logical disk size in gigabytes. + Specifies the disk label for a new data disk. - Int32 + String - Int32 + String - - + none - - DiskLabel + + DiskName - Specifies the disk label when creating a new data disk. + Specifies the name of a data disk in the disk repository. String String - - + none - - LUN + + DiskSizeInGB - Specifies the Logical Unit Number (LUN) location for the data drive in the virtual machine. Valid LUN values are 0-15 and each data disk must have a unique LUN. + Specifies the logical disk size, in gigabytes, for a new data disk. Int32 Int32 - - + none - - MediaLocation + + HostCaching - Optional. Specifies the Location of the blob in a Microsoft Azure storage account where the data disk will be stored. If no location is specified, the data disk will be stored in the vhds container within the default storage account for the current subscription. If a vhds container doesn’t exist, the container is created + Specifies the host level caching settings of the disk. Valid values are: + +-- None +-- ReadOnly +-- ReadWrite - String + String String - - + none - - HostCaching + + Import - Specifies the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. + Indicates that this cmdlet imports an existing data disk from the image repository. - String + SwitchParameter - String + SwitchParameter - - + none - - VM + + ImportFrom - Specifies the virtual machine object where the data disk will attach. + Indicates that this cmdlet imports an existing data disk from a blob in a storage account. - IPersistentVM + SwitchParameter - IPersistentVM + SwitchParameter - - + none - - Import + + LUN - Imports an existing data disk from the disk library. + Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Each data disk must have a unique LUN. - SwitchParameter + Int32 - SwitchParameter + Int32 - - + none - - DiskName + + MediaLocation - Specifies the name of the data disk in the disk repository. + Specifies the location of the blob in an Azure storage account where this cmdlet stores the data disk. If you do not specify a location, the cmdlet stores the data disk in the vhds container in the default storage account for the current subscription. If a vhds container does not exist, the cmdlet creates a vhds container. - String + String String - - + none - - ImportFrom + + Profile - Imports an existing data disk from a blob in a storage acount. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile + + + none + + + VM + + Specifies the virtual machine object to which this cmdlet attaches a data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + + IPersistentVM + + IPersistentVM - - + none @@ -486,13 +549,15 @@ - + + - - + + + @@ -501,114 +566,107 @@ - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Import a data disk from the repository - PS C:\> C:\PS>Get-AzureVM "myservice" -Name "MyVM" ` - | Add-AzureDataDisk -Import -DiskName "MyExistingDisk" -LUN 0 ` - | Update-AzureVM + PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Add-AzureDataDisk -Import -DiskName "Disk68" -LUN 0 | Update-AzureVM + - This example gets a virtual machine object for the virtual machine named “MyVM” in the “myservice” cloud service, updates the virtual machine object by attaching an existing data disk from the repository using the disk name, and then updates the Microsoft Azure virtual machine. + This command gets a virtual machine object for the virtual machine named VirtualMachine07 in the ContosoService cloud service by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. That command attaches an existing data disk from the repository to the virtual machine. The data disk has a LUN of 0. The command updates the virtual machine to reflect your changes by using the Update-AzureVM cmdlet. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Add a new data disk - PS C:\> C:\PS>Get-AzureVM "myservice" -Name "MyVM" ` - | Add-AzureDataDisk -CreateNew -DiskSizeInGB 128 -DiskLabel "main" -LUN 0 ` - | Update-AzureVM + PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine08" | Add-AzureDataDisk -CreateNew -DiskSizeInGB 128 -DiskLabel "main" -LUN 0 | Update-AzureVM + - This example updates the virtual machine by creating the new blank data disk “MyNewDisk.vhd” in the vhds container within the default storage account of the currently active subscription. + This command gets a virtual machine object for the virtual machine named VirtualMachine08. The command passes it to the current cmdlet. That command attaches a new data disk named MyNewDisk.vhd. The cmdlet creates the disk in the vhds container in the default storage account of the current subscription. The command updates the virtual machine to reflect your changes. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Add a data disk from a specified location - PS C:\> C:\PS>Get-AzureVM "myservice" -Name "Database" ` - | Add-AzureDataDisk -ImportFrom -MediaLocation ` - "https://mystorage.blob.core.windows.net/mycontainer/MyExistingDisk.vhd" ` - -DiskLabel "main" -LUN 0 ` - | Update-AzureVM + PS C:\>Get-AzureVM "ContosoService" -Name "Database" | Add-AzureDataDisk -ImportFrom -MediaLocation "https://contosostorage.blob.core.windows.net/container07/Disk14.vhd" -DiskLabel "main" -LUN 0 | Update-AzureVM + - This example updates a virtual machine by attaching an existing data disk from a storage location. + This command gets a virtual machine object for the virtual machine named Database. The command passes it to the current cmdlet. That command attaches an existing data disk named Disk14.vhd from the specified location. The command updates the virtual machine to reflect your changes. + + - - + - New-AzureVMConfig - - + Get-AzureDataDisk + + + + Get-AzureVM + + + + Remove-AzureDataDisk + Set-AzureDataDisk - - + Update-AzureVM - - + - - + Add-AzureDisk - Adds a new disk to the Microsoft Azure disk repository. + Adds a disk to the Azure disk repository. @@ -618,94 +676,118 @@ - - The Add-AzureDisk cmdlet adds a new disk to the Microsoft Azure disk repository in the current subscription. This disk is bootable if the optional –OS parameter is specified. If not specified, the disk is a data disk. - The required parameters are DiskName and MediaLocation. + The Add-AzureDisk cmdlet adds a disk to the Azure disk repository in the current subscription. This cmdlet can add a system disk or a data disk. To add a system disk, specify an operating system type by using the OS parameter. Add-AzureDisk - + DiskName - Specifies the name of the disk. + Specifies the name of the disk that this cmdlet adds. String - + MediaLocation - Specifies the physical location of the disk in Microsoft Azure storage. This link refers to a blob page in the current subscription and storage account. + Specifies the physical location of the disk in Azure Storage. This value refers to a blob page in the current subscription and storage account. String - + Label - Specifies a disk label. + Specifies a disk label for the disk that this cmdlet adds. - String + String - + OS - If specified, the disk is bootable. The OS parameter accepts either "Windows" or "Linux" values. + Specifies the operating system type for a system disk. Valid values are: + +-- Windows +-- Linux + +If you do not specify this parameter, the cmdlet adds the disk as a data disk. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + DiskName - Specifies the name of the disk. + Specifies the name of the disk that this cmdlet adds. String String - - + none - - MediaLocation + + Label - Specifies the physical location of the disk in Microsoft Azure storage. This link refers to a blob page in the current subscription and storage account. + Specifies a disk label for the disk that this cmdlet adds. - String + String String - - + none - - Label + + MediaLocation - Specifies a disk label. + Specifies the physical location of the disk in Azure Storage. This value refers to a blob page in the current subscription and storage account. String String - Disk name + none - + OS - If specified, the disk is bootable. The OS parameter accepts either "Windows" or "Linux" values. + Specifies the operating system type for a system disk. Valid values are: + +-- Windows +-- Linux + +If you do not specify this parameter, the cmdlet adds the disk as a data disk. - String + String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none @@ -713,13 +795,15 @@ - + + - - + + + @@ -727,78 +811,75 @@ DiskContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Add a startup disk that uses the Windows operating system - PS C:\> C:\PS>Add-AzureDisk -DiskName "MyWinDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/winserver-system.vhd" -Label "BootDisk" -OS "Windows" + PS C:\>Add-AzureDisk -DiskName "MyWinDisk" -MediaLocation "http://contosostorage.blob.core.azure.com/vhds/winserver-system.vhd" -Label "StartupDisk" -OS "Windows" + - This example adds a new, bootable Windows disk. + This command adds a system disk to your disk repository. The system disk uses the Windows operating system. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Add a data disk - PS C:\> C:\PS>Add-AzureDisk -DiskName "MyDataDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/winserver-data.vhd" -Label "DataDisk" + PS C:\>Add-AzureDisk -DiskName "MyDataDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/winserver-data.vhd" -Label "DataDisk" + - This example adds a new data disk. + This command adds a data disk. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Add a Linux system disk - PS C:\> C:\PS>Add-AzureDisk -DiskName "MyLinuxDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/linuxsys.vhd" -OS "Linux" + PS C:\>Add-AzureDisk -DiskName "MyLinuxDisk" -MediaLocation "http://yourstorageaccount.blob.core.azure.com/vhds/linuxsys.vhd" -OS "Linux" + - This example adds a new Linux boot disk. The disk name and label are the same. + This command adds a Linux system disk. + + - - + @@ -806,27 +887,23 @@ Get-AzureDisk - - + Remove-AzureDisk - - + Update-AzureDisk - - + - - + Add-AzureDns - Adds a DNS server to an existing cloud service. + Adds a DNS server to an Azure service. @@ -836,88 +913,89 @@ - - The Add-AzureDns cmdlet adds a DNS server to an existing cloud service. It accepts three parameters: Name, IPAddress and ServiceName. The Name parameter is a friendly name, not necessarily a DNS resolvable name, the IPAddress is the IP address of the DNS server, and the ServiceName is the name of the cloud service + The Add-AzureDns cmdlet adds a DNS server to an Azure service. Add-AzureDns - + Name - Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name + Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. String - + IPAddress - Specifies the IP address of the DNS server + Specifies the IP address of the DNS server. String - + ServiceName - Specifies the name of the cloud service + Specifies the name of the service to which this cmdlet adds the DNS server. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - - Name + + IPAddress - Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name + Specifies the IP address of the DNS server. String String - - + none - - IPAddress + + Name - Specifies the IP address of the DNS server + Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. String String - - + none - - ServiceName + + Profile - Specifies the name of the cloud service + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - PipelineVariable + + ServiceName - - + Specifies the name of the service to which this cmdlet adds the DNS server. - string + String - string + String - - + none @@ -925,13 +1003,15 @@ - + + - - + + + @@ -939,637 +1019,831 @@ Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Add a DNS server - PS C:\> Add-AzureDns -ServiceName "myservice" -IPAddress 10.1.2.4 -Name "mydns" + PS C:\>Add-AzureDns -ServiceName "ContosoService" -IPAddress 10.1.2.4 -Name "Dns07" + - Description + This command adds the DNS server that has the address 10.1.2.4 to ContosoService. + + - -----------This command adds a DNS server "mydns" to the specified cloud service + - Unknown - - + Get-AzureDns + + + + New-AzureDns + + + + Remove-AzureDns + + + + Set-AzureDns + - - + - - Add-AzureEndpoint - + Add-AzureEndpoint - Add endpoint to the persistent VM object. + Adds an endpoint to a virtual machine. - - + Add AzureEndpoint - - + - - + The Add-AzureEndpoint cmdlet adds an endpoint to an Azure virtual machine object. - Add-AzureEndpoint - + Name - - + Specifies a name for the endpoint. - string + String - + Protocol - - + Specifies the protocol of the endpoint. Valid values are: + +-- tcp +-- udp - string + + tcp + udp + - + LocalPort - - + Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - int + Int32 - - DefaultProbe + + ACL - Not Specified + Specifies an access control list (ACL) configuration object for the endpoint. + NetworkAclObject - - LBSetName + + DirectServerReturn - - + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - string + Boolean - - ProbePort + + IdleTimeoutInMinutes - - + Specifies the TCP idle time-out period, in minutes, for the endpoint. - int + Int32 - - ProbeProtocol + + InternalLoadBalancerName - - + Specifies the name of the internal load balancer. - string + String + + + LoadBalancerDistribution + + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. + + + sourceIP + sourceIPProtocol + none + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + PublicPort + + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + + Int32 + + + VirtualIPName + + Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + + String - + VM - - + Specifies the virtual machine to which the endpoint belongs. IPersistentVM - + + + Add-AzureEndpoint + + Name + + Specifies a name for the endpoint. + + String + + + Protocol + + Specifies the protocol of the endpoint. Valid values are: + +-- tcp +-- udp + + + tcp + udp + + + + LocalPort + + Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. + + Int32 + + ACL - Not Specified + Specifies an access control list (ACL) configuration object for the endpoint. - NetworkAclObject + NetworkAclObject - + DirectServerReturn - - + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Boolean - + IdleTimeoutInMinutes - - + Specifies the TCP idle time-out period, in minutes, for the endpoint. - System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Int32 - + InternalLoadBalancerName - The Internal LoadBalancer Name. + Specifies the name of the internal load balancer. - string + String - + LoadBalancerDistribution - - Load Balancer distribution algorithm + Specifies the load balancer distribution algorithm. Valid values are: - The value can be - sourceIP: 2 tuple affinity (Source IP, Destination IP) - sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) - none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value - +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. - string + + sourceIP + sourceIPProtocol + none + - - PipelineVariable + + Profile - Not Specified + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - - ProbeIntervalInSeconds + + PublicPort - - + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - int + Int32 - - ProbePath + + VirtualIPName - - + Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. - string + String - - ProbeTimeoutInSeconds + + DefaultProbe - - + Indicates that this cmdlet uses the default probe setting. - int - - PublicPort + + LBSetName - - + Specifies the name of the load balancer set for the endpoint. - int + String - - VirtualIPName + + VM - The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. + Specifies the virtual machine to which the endpoint belongs. - string + IPersistentVM Add-AzureEndpoint - + Name - - + Specifies a name for the endpoint. - string + String - + Protocol - - + Specifies the protocol of the endpoint. Valid values are: + +-- tcp +-- udp - string + + tcp + udp + - + LocalPort - - - - int - - - NoProbe - - Not Specified - - - - VM - - - + Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - IPersistentVM + Int32 - + ACL - Not Specified + Specifies an access control list (ACL) configuration object for the endpoint. - NetworkAclObject + NetworkAclObject - + DirectServerReturn - - + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Boolean - + IdleTimeoutInMinutes - - + Specifies the TCP idle time-out period, in minutes, for the endpoint. - System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Int32 - + InternalLoadBalancerName - The Internal LoadBalancer Name. + Specifies the name of the internal load balancer. - string + String - + LoadBalancerDistribution - - Load Balancer distribution algorithm + Specifies the load balancer distribution algorithm. Valid values are: - The value can be - sourceIP: 2 tuple affinity (Source IP, Destination IP) - sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) - none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value - +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. - string + + sourceIP + sourceIPProtocol + none + - - PipelineVariable + + ProbeIntervalInSeconds - Not Specified + Specifies the probe polling interval, in seconds, for the endpoint. - string + Int32 - + + ProbePath + + Specifies the relative path to the HTTP probe. + + String + + + ProbeTimeoutInSeconds + + Specifies the probe polling time-out period in seconds. + + Int32 + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + PublicPort - - + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - int + Int32 - + VirtualIPName - The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. + Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. - string + String - - - - - - ACL - - Not Specified - - NetworkAclObject - - NetworkAclObject - - - - - - - DefaultProbe + + LBSetName + + Specifies the name of the load balancer set for the endpoint. + + String + + + ProbePort + + Specifies the port that the endpoint uses. + + Int32 + + + ProbeProtocol + + Specifies the port protocol. Valid values are: + +-- tcp +-- http + + + tcp + http + + + + VM + + Specifies the virtual machine to which the endpoint belongs. + + IPersistentVM + + + + Add-AzureEndpoint + + Name + + Specifies a name for the endpoint. + + String + + + Protocol + + Specifies the protocol of the endpoint. Valid values are: + +-- tcp +-- udp + + + tcp + udp + + + + LocalPort + + Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. + + Int32 + + + ACL + + Specifies an access control list (ACL) configuration object for the endpoint. + + NetworkAclObject + + + DirectServerReturn + + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + Boolean + + + IdleTimeoutInMinutes + + Specifies the TCP idle time-out period, in minutes, for the endpoint. + + Int32 + + + InternalLoadBalancerName + + Specifies the name of the internal load balancer. + + String + + + LoadBalancerDistribution + + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. + + + sourceIP + sourceIPProtocol + none + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + PublicPort + + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + + Int32 + + + VirtualIPName + + Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + + String + + + LBSetName + + Specifies the name of the load balancer set for the endpoint. + + String + + + NoProbe + + Indicates that this cmdlet uses the no probe setting. + + + + VM + + Specifies the virtual machine to which the endpoint belongs. + + IPersistentVM + + + + + + ACL - Not Specified + Specifies an access control list (ACL) configuration object for the endpoint. - SwitchParameter + NetworkAclObject + + NetworkAclObject + + + none + + + DefaultProbe + + Indicates that this cmdlet uses the default probe setting. + + SwitchParameter SwitchParameter - - + none - + DirectServerReturn - - + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Boolean - System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Boolean - - + none - + IdleTimeoutInMinutes - - + Specifies the TCP idle time-out period, in minutes, for the endpoint. - System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Int32 - System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + Int32 - - + none - + InternalLoadBalancerName - The Internal LoadBalancer Name. + Specifies the name of the internal load balancer. - string + String - string + String - - + none - + LBSetName - - + Specifies the name of the load balancer set for the endpoint. - string + String - string + String - - + none - + LoadBalancerDistribution - - Load Balancer distribution algorithm + Specifies the load balancer distribution algorithm. Valid values are: - The value can be - sourceIP: 2 tuple affinity (Source IP, Destination IP) - sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) - none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value - +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. - string + String - string + String - - + none - + LocalPort - - + Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - int + Int32 - int + Int32 - - + none - + Name - - + Specifies a name for the endpoint. - string + String - string + String - - + none - + NoProbe - Not Specified + Indicates that this cmdlet uses the no probe setting. - SwitchParameter + SwitchParameter SwitchParameter - - + none - - PipelineVariable + + ProbeIntervalInSeconds - Not Specified + Specifies the probe polling interval, in seconds, for the endpoint. - string + Int32 - string + Int32 - - + none - - ProbeIntervalInSeconds + + ProbePath - - + Specifies the relative path to the HTTP probe. - int + String - int + String - - + none - - ProbePath + + ProbePort - - + Specifies the port that the endpoint uses. - string + Int32 - string + Int32 - - + none - - ProbePort + + ProbeProtocol - - + Specifies the port protocol. Valid values are: + +-- tcp +-- http - int + String - int + String - - + none - - ProbeProtocol + + ProbeTimeoutInSeconds - - + Specifies the probe polling time-out period in seconds. - string + Int32 - string + Int32 - - + none - - ProbeTimeoutInSeconds + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - int + AzureProfile - - + none - + Protocol - - + Specifies the protocol of the endpoint. Valid values are: + +-- tcp +-- udp - string + String - string + String - - + none - + PublicPort - - + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - int + Int32 - int + Int32 - - + none - + VirtualIPName - The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. + Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. - string + String - string + String - - + none - + VM - - + Specifies the virtual machine to which the endpoint belongs. IPersistentVM IPersistentVM - - + none - - - + + + + + - @@ -1578,142 +1852,111 @@ System.Object - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Add an endpoint - C:\PS> - - -Get-AzureVM -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 | Update-AzureVM - - Description - ----------- - This command retrieves the configuration of a virtual machine and adds a new endpoint named 'HttpIn' configured with public port 80 and local port 8080. The changed configuration is passed through the pipeline to Update-AzureVM to update the virtual machine. - - - - - - + + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirutalMachine01" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 | Update-AzureVM + + + This command retrieves the configuration of a virtual machine named VirtualMachine01 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet adds an endpoint named HttpIn. The endpoint has a public port 80 and local port 8080. The command passes the virtual machine object to the Update-AzureVM cmdlet, which implements your changes. + + - - + - - -------------------------- EXAMPLE 2 -------------------------- - + Example 2: Add an endpoint that belongs to a load balanced group - C:\PS> - - -Get-AzureVM -ServiceName "myLBSvc" -Name "MyVM2" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 -LBSetName "WebFarm" -ProbePort 80 -ProbeProtocol "http" -ProbePath '/' | Update-AzureVM - - Description - ----------- - This command retrieves the configuration of a virtual machine and adds a new endpoint named 'HttpIn' configured with public port 80 and local port 8080. The endpoint belongs to the shared load-balanced group named "WebFarm" and its availability is monitored by an HTTP probe on port 80, path '/'. The changed configuration is pass through the pipeline to Update-AzureVM to update the virtual machine. - - - - - - + + PS C:\>Get-AzureVM -ServiceName "LoadBalancedService" -Name "VirtualMachine12" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -PublicPort 80 -LocalPort 8080 -LBSetName "WebFarm" -ProbePort 80 -ProbeProtocol "http" -ProbePath '/' | Update-AzureVM + + + This command retrieves the configuration of a virtual machine named VirtualMachine07. The current cmdlet adds an endpoint named HttpIn. The endpoint has a public port 80 and local port 8080. The endpoint belongs to the shared load balanced group named WebFarm. An HTTP probe on port 80 with a path of '/' monitors the availability of the endpoint. The command implements your changes. + + - - + - - -------------------------- EXAMPLE 3 -------------------------- - + Example 3: Associate a virtual IP to an endpoint - C:\PS> - - -get-azurevm -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -LocalPort 8080 -PublicPort 80 -VirtualIPName "MyVip" | Update-AzureVM - - Description - ----------- - This command associates a virtual IP to a cloud service to an endpoint - - - - - - + + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine25" | Add-AzureEndpoint -Name "HttpIn" -Protocol "tcp" -LocalPort 8080 -PublicPort 80 -VirtualIPName "ContosoVip11" | Update-AzureVM + + + This command retrieves the configuration of a virtual machine named VirtualMachine25. The current cmdlet adds an endpoint named HttpIn. The endpoint has a public port 80 and local port 8080. This command associates a virtual IP to the endpoint. The command implements your changes. + + - - + - - - + Add-AzureVirtualIP + + + + Get-AzureEndpoint + + + + Get-AzureVM + + + + Remove-AzureEndpoint + + + + Set-AzureEndpoint + + + + Update-AzureVM - - + Add-AzureInternalLoadBalancer - Add-AzureInternalLoadBalancer [-InternalLoadBalancerName] <string> [-ServiceName] <string> [<CommonParameters>] - - Add-AzureInternalLoadBalancer [-InternalLoadBalancerName] <string> [-ServiceName] <string> [-SubnetName] <string> [<CommonParameters>] - - Add-AzureInternalLoadBalancer [-InternalLoadBalancerName] <string> [-ServiceName] <string> [-SubnetName] <string> [-StaticVNetIPAddress] <ipaddress> [<CommonParameters>] + Adds an internal load balancer to an Azure service. @@ -1723,148 +1966,163 @@ get-azurevm -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn - - The Add-InternalLoadbalancer cmdlet provides users the ability to add an Internal Loadbalancer configuration to a cloud service. For the users using Virtual network, they are allowed to specify a subnet or even the IP address directly of the internal load balancer. + The Add-AzureInternalLoadBalancer cmdlet adds an internal load balancer configuration to an Azure service. For a virtual network, you can specify a subnet or the IP address of the internal load balancer. Add-AzureInternalLoadBalancer - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet adds. String - + ServiceName - - + Specifies the name of the service to which this cmdlet adds an internal load balancer. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + Add-AzureInternalLoadBalancer - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet adds. String - + ServiceName - - + Specifies the name of the service to which this cmdlet adds an internal load balancer. String - + SubnetName - - + Specifies the name of the subnet for an internal load balancer that this cmdlet adds. String - + StaticVNetIPAddress - - + Specifies the virtual network IP address for an internal load balancer that this cmdlet adds. IPAddress + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + Add-AzureInternalLoadBalancer - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet adds. String - + ServiceName - - + Specifies the name of the service to which this cmdlet adds an internal load balancer. String - + SubnetName - - + Specifies the name of the subnet for an internal load balancer that this cmdlet adds. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet adds. String String - - + none - - ServiceName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - SubnetName + + ServiceName - - + Specifies the name of the service to which this cmdlet adds an internal load balancer. String String - - + none - + StaticVNetIPAddress - - + Specifies the virtual network IP address for an internal load balancer that this cmdlet adds. IPAddress IPAddress - - + none + + + SubnetName + + Specifies the name of the subnet for an internal load balancer that this cmdlet adds. + + String + + String + + + none @@ -1872,13 +2130,15 @@ get-azurevm -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn - + + - - + + + @@ -1886,887 +2146,1069 @@ get-azurevm -ServiceName "mySvc" -Name "MyVM1" | Add-AzureEndpoint -Name "HttpIn Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Add an internal load balancer - PS C:\> Add-AzureInternalLoadBalancer -ServiceName MyWebsite1 -InternalLoadBalancerName MyILB + PS C:\>Add-AzureInternalLoadBalancer -ServiceName "ContosoWebsite01" -InternalLoadBalancerName "ContosoILB" + - Description + This command adds an internal load balancer named ContosoILB to the service named ContosoWebsite01. + + - -----------Adds an internal load balancer object to a deployment + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Add an internal load balancer for a specified subnet - PS C:\> Add-AzureInternalLoadBalancer -ServiceName MyWebsite1 -InternalLoadBalancerName MyILB -SubnetName FrontEndSubnet + PS C:\>Add-AzureInternalLoadBalancer -ServiceName "ContosoWebsite01" -InternalLoadBalancerName "ContosoILB" -SubnetName "FrontEndSubnet" + - Description + This command adds an internal load balancer named ContosoILB to the service named ContosoWebsite01. The command specifies the subnet named FrontEndSubnet. + + - -----------Adds an internal load balancer object to a deployment in a Virtual Network. Specifies the Subnet in the VNet from which the load balancer IP should be allocated. + - -------------------------- EXAMPLE 3 -------------------------- + Example 3: Add an internal load balancer for a specified subnet and address - PS C:\> Add-AzureInternalLoadBalancer -ServiceName MyWebsite1 -InternalLoadBalancerName MyILB -ServiceName svc1 -SubnetName FrontEndSubnet -StaticVNetIPAddress 192.168.4.7 + PS C:\>Add-AzureInternalLoadBalancer -ServiceName "ContosoWebsite01" -InternalLoadBalancerName "ContosoILB" -SubnetName "FrontEndSubnet" -StaticVNetIPAddress 192.168.4.7 + - Description + This command adds an internal load balancer named ContosoILB to the service named ContosoWebsite01. The command specifies the subnet named FrontEndSubnet and the static address of the virtual network. + + - -----------Adds an internal load balancer object to a deployment in a Virtual Network. Specifies the Subnet in the VNet and the exact IP address from that subnet that should be allocated to the internal load balancer. + - Unknown - - + Get-AzureInternalLoadBalancer + + + + New-AzureInternalLoadBalancerConfig + + + + Remove-AzureInternalLoadBalancer + + + + Set-AzureInternalLoadBalancer + - - + - Add-AzureProvisioningConfig + Add-AzureNetworkInterfaceConfig - Adds the provisioning configuration to a Microsoft Azure virtual machine. + + Add - AzureProvisioningConfig + AzureNetworkInterfaceConfig - - The Add-AzureProvisioningConfig cmdlet adds configuration information to a virtual machine configuration used to create a new Virtual Machine. -Different provisioning configurations are supported including standalone Windows servers, Windows servers joined to an Active Directory domain, and Linux-based servers. -When creating an Active Directory domain joined server, the provisioning configuration must specify the fully qualified domain name of the Active Directory domain, as well as the domain credentials of a user with permission to join the machine to the domain. - Add-AzureProvisioningConfig - - VM - - Specifies the virtual machine object. - - IPersistentVM - - - DisableGuestAgent - - To disable IaaS provision guest agent. - - SwitchParameter - - - CustomDataFile - - This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. - -On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. -On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. - - String - - - Windows - - Specify to create a standalone Windows provisioning configuration. - - SwitchParameter - - - AdminUsername + Add-AzureNetworkInterfaceConfig + + Name - Specifies the Administrator account to create. String - - Password + + SubnetName - Specifies the password of the administrator account for the role. String - - ResetPasswordOnFirstLogon + + StaticVNetIPAddress - If specified, forces the user to change their password on first logon. - SwitchParameter + String - - DisableAutomaticUpdates + + NetworkSecurityGroup - If specified, the configuration will have automatic updates disabled. - SwitchParameter + String - - NoRDPEndpoint + + IPForwarding - If specified, create the virtual machine without a remote desktop endpoint. - SwitchParameter + + Enabled + Disabled + - - TimeZone + + Profile - Specifies the Microsoft Time Zone value to use to set the time zone for the virtual machine. Examples are: "Pacific Standard Time" and "Canada Central Standard Time". - String + AzureProfile - - Certificates + + VM - Specifies a set of certificates to install in the virtual machine. - CertificateSettingList + IPersistentVM - - EnableWinRMHttp + + + + + IPForwarding + + + String + + String + + + none + + + Name + + + String + + String + + + none + + + NetworkSecurityGroup + + + String + + String + + + none + + + Profile + + + AzureProfile + + AzureProfile + + + none + + + StaticVNetIPAddress + + + String + + String + + + none + + + SubnetName + + + String + + String + + + none + + + VM + + + IPersistentVM + + IPersistentVM + + + none + + + + + + + + + - Enables WinRM over http. + - SwitchParameter - - - DisableWinRMHttps + + + + + + + + + + + + - Disables WinRM on https which is added by default. + - SwitchParameter + + + + + + + + + + 1: + + + + + PS C:\> + + + + + + + + + + + + + + + + + Get-AzureNetworkInterfaceConfig + + + + Remove-AzureNetworkInterfaceConfig + + + + Set-AzureNetworkInterfaceConfig + + + + + + + Add-AzureProvisioningConfig + + Adds provisioning configuration for an Azure virtual machine. + + + + + Add + AzureProvisioningConfig + + + + The Add-AzureProvisioningConfig cmdlet adds provisioning configuration information to an Azure virtual machine configuration. You can use the configuration object to create a virtual machine. + This cmdlet supports different provisioning configurations, including standalone Windows servers, Windows servers joined to an Active Directory domain, and Linux-based servers. + To create an Active Directory domain joined server, specify the fully qualified domain name of the Active Directory domain and the domain credentials of a user who has permission to join the machine to the domain. + + + + Add-AzureProvisioningConfig + + AdminUsername + + Specifies the user name of the Administrator account that this configuration creates on the virtual machine. + + String - - WinRMCertificate + + Certificates - Certificate that will be associated with WinRM endpoint. + Specifies a set of certificates that this configuration installs on the virtual machine. - X509Certificate2 + CertificateSettingList - - X509Certificates + + CustomDataFile - X509 certificates that will be deployed to hosted service. + Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. + If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. + If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. - X509Certificate2[] + String - - NoExportPrivateKey + + DisableAutomaticUpdates - Prevents the private key from being uploaded + Indicates that this configuration disables automatic updates. - SwitchParameter - - NoWinRMEndpoint + + DisableGuestAgent - Prevents the WinRM endpoint from being added + Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. - SwitchParameter - - - Add-AzureProvisioningConfig - - VM + + DisableWinRMHttps - Specifies the virtual machine object. + Indicates that this configuration disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. - IPersistentVM - - DisableGuestAgent + + EnableWinRMHttp - To disable IaaS provision guest agent. + Indicates that this configuration enables WinRM over HTTP. - SwitchParameter - - Linux + + NoExportPrivateKey - Specify to create a Linux provisioning configuration. + Indicates that this configuration does not upload the private key. - SwitchParameter - - LinuxUser + + NoRDPEndpoint - Specifies the Linux administrative account name to create. + Indicates that this configuration creates a virtual machine without a remote desktop endpoint. - String - - DisableSSH + + NoWinRMEndpoint - If specified, the virtual machine is created with SSH disabled. + Indicates that this configuration does not add a WinRM endpoint for the virtual machine. - SwitchParameter - - NoSSHEndpoint + + Password - If specified, create the virtual machine without an SSH endpoint. + Specifies the password of the administrator account. - SwitchParameter + String - - NoSSHPassword + + Profile - Not Specified + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - SSHPublicKeys + + ResetPasswordOnFirstLogon - - + Indicates that the virtual machine requires the user to change the password at the first logon. - LinuxProvisioningConfigurationSet+SSHPublicKeyList - - SSHKeyPairs + + TimeZone - - + Specifies the time zone for the virtual machine, for example, Pacific Standard Time or Canada Central Standard Time. - LinuxProvisioningConfigurationSet+SSHKeyPairList + String - - CustomDataFile + + WinRMCertificate - This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. - -On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. -On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. + Specifies a certificate that this configuration associates to a WinRM endpoint. - String + X509Certificate2 - - Password + + X509Certificates - Specifies the password of the administrator account for the role. + Specifies an array of X509 certificates that are deployed to a hosted service. + + X509Certificate2[] + + + VM + + Specifies a virtual machine object. + + IPersistentVM + + + Windows + + Indicates that this configuration creates a standalone virtual machine that runs the Windows operating system. - String Add-AzureProvisioningConfig - - VM + + Certificates - Specifies the virtual machine object. + Specifies a set of certificates that this configuration installs on the virtual machine. - IPersistentVM + CertificateSettingList - + + CustomDataFile + + Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. + If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. + If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. + + String + + + DisableAutomaticUpdates + + Indicates that this configuration disables automatic updates. + + + DisableGuestAgent - To disable IaaS provision guest agent. + Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. - SwitchParameter - - CustomDataFile + + DisableWinRMHttps - This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. - -On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. -On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. + Indicates that this configuration disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. - String - - AdminUsername + + EnableWinRMHttp - Specifies the Administrator account to create. + Indicates that this configuration enables WinRM over HTTP. - String - - WindowsDomain + + MachineObjectOU - Specify to create a provisioning configuration for a Windows server joined to an Active Directory domain. + Specifies the fully qualified name of the organizational unit (OU) in which the configuration creates the computer account. - SwitchParameter + String - + + NoExportPrivateKey + + Indicates that this configuration does not upload the private key. + + + + NoRDPEndpoint + + Indicates that this configuration creates a virtual machine without a remote desktop endpoint. + + + + NoWinRMEndpoint + + Indicates that this configuration does not add a WinRM endpoint for the virtual machine. + + + Password - Specifies the password of the administrator account for the role. + Specifies the password of the administrator account. - String + String - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + ResetPasswordOnFirstLogon - If specified, forces the user to change their password on first logon. + Indicates that the virtual machine requires the user to change the password at the first logon. - SwitchParameter - - DisableAutomaticUpdates + + TimeZone - If specified, the configuration will have automatic updates disabled. + Specifies the time zone for the virtual machine, for example, Pacific Standard Time or Canada Central Standard Time. - SwitchParameter + String - - NoRDPEndpoint + + WinRMCertificate - If specified, create the virtual machine without a remote desktop endpoint. + Specifies a certificate that this configuration associates to a WinRM endpoint. - SwitchParameter + X509Certificate2 - - TimeZone + + X509Certificates - Specifies the Microsoft Time Zone value to use to set the time zone for the virtual machine. Examples are: "Pacific Standard Time" and "Canada Central Standard Time". + Specifies an array of X509 certificates that are deployed to a hosted service. - String + X509Certificate2[] - - Certificates + + AdminUsername - Specifies a set of certificates to install in the virtual machine. + Specifies the user name of the Administrator account that this configuration creates on the virtual machine. - CertificateSettingList + String - - JoinDomain + + Domain - Specifies the fully qualified domain name (FQDN) of the Windows domain to join. + Specifies the name of the domain of the account that has permission to add the computer to a domain. String - - Domain + + DomainPassword - Specifies the name of the domain of the account with permission to add the computer to a domain. + Specifies the password of the user account that has permission to add the computer to a domain. String - + DomainUserName - Specifies the name of the user account with permission to add the computer to a domain. + Specifies the name of the user account that has permission to add the computer to a domain. String - - DomainPassword + + JoinDomain - Specifies the password of the user account with permission to add the computer to a domain. + Specifies the fully qualified domain name (FQDN) of the domain to join. String - - MachineObjectOU + + VM - Specifies the fully qualified name of the organizational unit (OU) in which the computer account is created. + Specifies a virtual machine object. - String + IPersistentVM - - EnableWinRMHttp + + WindowsDomain - Enables WinRM over http. + Indicates that this configuration creates Windows server that is joined to an Active Directory domain. - SwitchParameter - - DisableWinRMHttps + + + Add-AzureProvisioningConfig + + CustomDataFile - Disables WinRM on https which is added by default. + Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. + If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. + If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. - SwitchParameter + String - - WinRMCertificate + + DisableGuestAgent - Certificate that will be associated with WinRM endpoint. + Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. - X509Certificate2 - - X509Certificates + + DisableSSH - X509 certificates that will be deployed to hosted service. + Indicates that this configuration disables SSH. - X509Certificate2[] - - NoExportPrivateKey + + LinuxUser - Prevents the private key from being uploaded + Specifies the user name of the Linux administrative account that this configuration creates on the virtual machine. - SwitchParameter + String - - NoWinRMEndpoint + + NoSSHEndpoint + + Indicates that this configuration creates a virtual machine without an SSH endpoint. + + + + NoSSHPassword + + Indicates that this configuration creates a virtual machine without an SSH password. + + + + Password + + Specifies the password of the administrator account. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + SSHKeyPairs + + Specifies SSH key pairs. + + LinuxProvisioningConfigurationSet+SSHKeyPairList + + + SSHPublicKeys + + Specifies SSH public keys. + + LinuxProvisioningConfigurationSet+SSHPublicKeyList + + + Linux + + Indicates that this configuration creates a Linux configuration. + + + + VM - Prevents the WinRM endpoint from being added + Specifies a virtual machine object. - SwitchParameter + IPersistentVM - - VM + + AdminUsername - Specifies the virtual machine object. + Specifies the user name of the Administrator account that this configuration creates on the virtual machine. - IPersistentVM + String - IPersistentVM + String - - + none - - DisableGuestAgent + + Certificates - To disable IaaS provision guest agent. + Specifies a set of certificates that this configuration installs on the virtual machine. - SwitchParameter + CertificateSettingList - SwitchParameter + CertificateSettingList - - + none - + CustomDataFile - This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. - -On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. -On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. + Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. + If the guest operating system is the Windows operating system, this configuration saves this data as a binary file named %SYSTEMDRIVE%\AzureData\CustomData.bin. + If the guest operating system is Linux, this configuration passes the data by using the ovf-env.xml file. Configuration copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. - String + String String - - + none - - Windows + + DisableAutomaticUpdates - Specify to create a standalone Windows provisioning configuration. + Indicates that this configuration disables automatic updates. SwitchParameter SwitchParameter - - + none - - AdminUsername + + DisableGuestAgent - Specifies the Administrator account to create. + Indicates that this configuration disables the infrastructure as a service (IaaS) guest agent. - String + SwitchParameter - String + SwitchParameter - - + none - - Password + + DisableSSH - Specifies the password of the administrator account for the role. + Indicates that this configuration disables SSH. - String + SwitchParameter - String + SwitchParameter - - + none - - ResetPasswordOnFirstLogon + + DisableWinRMHttps - If specified, forces the user to change their password on first logon. + Indicates that this configuration disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. SwitchParameter SwitchParameter - - + none - - DisableAutomaticUpdates + + Domain - If specified, the configuration will have automatic updates disabled. + Specifies the name of the domain of the account that has permission to add the computer to a domain. - SwitchParameter + String - SwitchParameter + String - - + none - - NoRDPEndpoint + + DomainPassword - If specified, create the virtual machine without a remote desktop endpoint. + Specifies the password of the user account that has permission to add the computer to a domain. - SwitchParameter + String - SwitchParameter + String - - + none - - TimeZone + + DomainUserName - Specifies the Microsoft Time Zone value to use to set the time zone for the virtual machine. Examples are: "Pacific Standard Time" and "Canada Central Standard Time". + Specifies the name of the user account that has permission to add the computer to a domain. String String - - + none - - Certificates + + EnableWinRMHttp - Specifies a set of certificates to install in the virtual machine. + Indicates that this configuration enables WinRM over HTTP. - CertificateSettingList + SwitchParameter - CertificateSettingList + SwitchParameter - - + none - - EnableWinRMHttp + + JoinDomain - Enables WinRM over http. + Specifies the fully qualified domain name (FQDN) of the domain to join. - SwitchParameter + String - SwitchParameter + String - - + none - - DisableWinRMHttps + + Linux - Disables WinRM on https which is added by default. + Indicates that this configuration creates a Linux configuration. - SwitchParameter + SwitchParameter SwitchParameter - - + none - - WinRMCertificate + + LinuxUser - Certificate that will be associated with WinRM endpoint. + Specifies the user name of the Linux administrative account that this configuration creates on the virtual machine. - X509Certificate2 + String - X509Certificate2 + String - - + none - - X509Certificates + + MachineObjectOU - X509 certificates that will be deployed to hosted service. + Specifies the fully qualified name of the organizational unit (OU) in which the configuration creates the computer account. - X509Certificate2[] + String - X509Certificate2[] + String - - + none - + NoExportPrivateKey - Prevents the private key from being uploaded + Indicates that this configuration does not upload the private key. SwitchParameter SwitchParameter - - + none - - NoWinRMEndpoint + + NoRDPEndpoint - Prevents the WinRM endpoint from being added + Indicates that this configuration creates a virtual machine without a remote desktop endpoint. SwitchParameter SwitchParameter - - + none - - Linux + + NoSSHEndpoint - Specify to create a Linux provisioning configuration. + Indicates that this configuration creates a virtual machine without an SSH endpoint. SwitchParameter SwitchParameter - - + none - - LinuxUser + + NoSSHPassword - Specifies the Linux administrative account name to create. + Indicates that this configuration creates a virtual machine without an SSH password. - String + SwitchParameter - String + SwitchParameter - - + none - - DisableSSH + + NoWinRMEndpoint - If specified, the virtual machine is created with SSH disabled. + Indicates that this configuration does not add a WinRM endpoint for the virtual machine. SwitchParameter SwitchParameter - - + none - - NoSSHEndpoint + + Password - If specified, create the virtual machine without an SSH endpoint. + Specifies the password of the administrator account. - SwitchParameter + String - SwitchParameter + String - - + none - - NoSSHPassword + + Profile - Not Specified + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - SSHPublicKeys + + ResetPasswordOnFirstLogon - - + Indicates that the virtual machine requires the user to change the password at the first logon. - LinuxProvisioningConfigurationSet+SSHPublicKeyList + SwitchParameter - LinuxProvisioningConfigurationSet+SSHPublicKeyList + SwitchParameter - - + none - + SSHKeyPairs - - + Specifies SSH key pairs. - LinuxProvisioningConfigurationSet+SSHKeyPairList + LinuxProvisioningConfigurationSet+SSHKeyPairList LinuxProvisioningConfigurationSet+SSHKeyPairList - - + none - - WindowsDomain + + SSHPublicKeys - Specify to create a provisioning configuration for a Windows server joined to an Active Directory domain. + Specifies SSH public keys. - SwitchParameter + LinuxProvisioningConfigurationSet+SSHPublicKeyList - SwitchParameter + LinuxProvisioningConfigurationSet+SSHPublicKeyList - - + none - - JoinDomain + + TimeZone - Specifies the fully qualified domain name (FQDN) of the Windows domain to join. + Specifies the time zone for the virtual machine, for example, Pacific Standard Time or Canada Central Standard Time. - String + String String - - + none - - Domain + + VM - Specifies the name of the domain of the account with permission to add the computer to a domain. + Specifies a virtual machine object. - String + IPersistentVM - String + IPersistentVM - - + none - - DomainUserName + + Windows - Specifies the name of the user account with permission to add the computer to a domain. + Indicates that this configuration creates a standalone virtual machine that runs the Windows operating system. - String + SwitchParameter - String + SwitchParameter - - + none - - DomainPassword + + WindowsDomain - Specifies the password of the user account with permission to add the computer to a domain. + Indicates that this configuration creates Windows server that is joined to an Active Directory domain. - String + SwitchParameter - String + SwitchParameter - - + none - - MachineObjectOU + + WinRMCertificate - Specifies the fully qualified name of the organizational unit (OU) in which the computer account is created. + Specifies a certificate that this configuration associates to a WinRM endpoint. - String + X509Certificate2 - String + X509Certificate2 - - + none - - PipelineVariable + + X509Certificates - Not Specified + Specifies an array of X509 certificates that are deployed to a hosted service. - string + X509Certificate2[] - string + X509Certificate2[] - - + none @@ -2774,13 +3216,15 @@ On Linux, this data is passed to the VM via the ovf-env.xml file, which is copie - + + - - + + + @@ -2789,191 +3233,175 @@ On Linux, this data is passed to the VM via the ovf-env.xml file, which is copie - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` -| Add-AzureProvisioningConfig -Windows -Pass word $Password -AdminUsername PsTestAdmin ` -| New-AzureVM -ServiceName $svcName - - Description - - - - -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is enabled by default on the VM. - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Create a standalone virtual machine - PS C:\> New-AzureVMConfig -Name "MyDomainVM" -InstanceSize Small -ImageName $img ` -| Add-AzureProvisioningConfig -WindowsDomain -Password $Password -AdminUsername PsTestAdmin -ResetPasswordOnFirstLogon -JoinDomain "contoso.com" -Domain "contoso" -DomainUserName "domainadminuser" -DomainPassword "domainPassword" -MachineObjectOU 'OU=AzureVMs,DC=contoso,DC=com' -| New-AzureVM -ServiceName $svcName + PS C:\>New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" | New-AzureVM -ServiceName "ContosoService" + - Description + This command creates a virtual machine configuration object by using the New-AzureVMConfig cmdlet. The command passes that object to the current cmdlet by using the pipeline operator. The current cmdlet adds provisioning configuration for a virtual machine that runs the Windows operating system. The configuration includes the administrator user name and password. The command passes the configuration to the New-AzureVM cmdlet, which creates the virtual machine. + + - -----------This example creates a new, domain-joined Windows virtual machine and adds it to the specified service. + - -------------------------- EXAMPLE 3 -------------------------- + Example 2: Create a domain joined virtual machine - PS C:\> New-AzureVMConfig -Name "MyLinuxVM" -InstanceSize Small -ImageName $LnxImg ` -| Add-AzureProvisioningConfig -Linux -LinuxUser $linuxUser -Password $Password ` -| New-AzureVM -ServiceName $svcName + PS C:\>New-AzureVMConfig -Name "DomainVM" -InstanceSize Small -ImageName "Image09" | Add-AzureProvisioningConfig -WindowsDomain -Password "password" -AdminUsername "AdminMain" -ResetPasswordOnFirstLogon -JoinDomain "contoso.com" -Domain "contoso" -DomainUserName "DomainAdminUser" -DomainPassword "DomainPassword" -MachineObjectOU 'OU=AzureVMs,DC=contoso,DC=com' | New-AzureVM -ServiceName "ContosoService" + - Description + This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration for a virtual machine to be joined with the contoso domain. The command includes user name and password necessary to join the virtual machine to the domain. The configuration requires the user to change the user password at the first logon. The command creates the virtual machine based on the provisioning object. + + - -----------This example creates a new Linux virtual machine and adds it to the specified service. + - -------------------------- EXAMPLE 4 -------------------------- + Example 3: Create a Linux-based virtual machine - PS C:\> $certs = Get-ChildItem Cert:\CurrentUser\My -New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` -| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] ` -| New-AzureVM -ServiceName $svcName -WaitForBoot + PS C:\>New-AzureVMConfig -Name "LinuxVM" -InstanceSize Small -ImageName "LinuxImage03" | Add-AzureProvisioningConfig -Linux -LinuxUser "LinuxRoot" -Password "password" | New-AzureVM -ServiceName "ContosoService" + - Description + This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration for a virtual machine that runs the Linux operating system. The configuration includes the root user name and password. The command creates the virtual machine based on the provisioning object. + + - -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is enabled by default on the VM. WaitForBoot option enables to wait for VM to boot. WinRMCertificate and X509Certificates are uploaded to hosted service by New-AzureVM. + - -------------------------- EXAMPLE 5 -------------------------- + Example 4: Create a virtual machine that includes certificates for WinRM - PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` -| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -EnableWinRMHttp ` -| New-AzureVM -ServiceName $svcName -WaitForBoot + PS C:\>$certs = Get-ChildItem Cert:\CurrentUser\My +New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image11" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] | New-AzureVM -ServiceName "ContosoService" -WaitForBoot + - Description + The first command gets certificates from a certificate store, and then stores them in the $certs array variable. + The second command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration that includes certificates for WinRM. The command creates the virtual machine based on the provisioning object. + + - -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. Both WinRM Https and Http listener is enabled on the VM. WaitForBoot option enables to wait for VM to boot. + - -------------------------- EXAMPLE 6 -------------------------- + Example 5: Create a virtual machine that has WinRM enabled over HTTP - PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` -| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -DisableWinRMHttps ` -| New-AzureVM -ServiceName $svcName -WaitForBoot + PS C:\>New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image14" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -EnableWinRMHttp | New-AzureVM -ServiceName "ContosoService" -WaitForBoot + - Description + This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration that has WinRM enabled over HTTP. The command creates the virtual machine based on the provisioning object. + + - -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is not enabled on the VM. WaitForBoot option enables to wait for VM to boot. + - -------------------------- EXAMPLE 7 -------------------------- + Example 6: Create a virtual machine that has WinRM disabled over HTTPS - PS C:\> $certs = Get-ChildItem Cert:\CurrentUser\My -New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` -| Add-AzureProvisioningConfig -Windows -Password $Password -AdminUsername PsTestAdmin -X509Certificates $certs[0], $certs[1] -NoExportPrivateKey ` -| New-AzureVM -ServiceName $svcName -WaitForBoot + PS C:\>New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -DisableWinRMHttps | New-AzureVM -ServiceName "ContosoService" -WaitForBoot + - Description + This command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration that disables WinRM over HTTPS. The command creates the virtual machine based on the provisioning object. + + - -----------This example creates a new Windows standalone virtual machine and adds it to the specified service. WinRM Https listener is enabled by default on the VM. WaitForBoot option enables to wait for VM to boot. WinRMCertificate and X509Certificates are uploaded to hosted service by New-AzureVM. PrivateKeys are removed from X509Certificates before uploading them. + - -------------------------- EXAMPLE 8 -------------------------- + Example 7: Create a virtual machine with no key export - PS C:\> New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` -| Add-AzureProvisioningConfig -Windows -Pass word $Password -AdminUsername PsTestAdmin ` -| New-AzureVM -ServiceName $svcName -DisableGuestAgent + PS C:\>$certs = Get-ChildItem Cert:\CurrentUser\My +New-AzureVMConfig -Name "NonDomainVM" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -Password "password" -AdminUsername "AdminMain" -X509Certificates $certs[0], $certs[1] -NoExportPrivateKey | New-AzureVM -ServiceName "ContosoService" -WaitForBoot + - Description + The first command gets certificates from a certificate store, and then stores them in the $certs array variable. + The second command creates a virtual machine configuration object, and then passes it to the current cmdlet. The current cmdlet adds provisioning configuration for a virtual machine that includes certificates and does not export private keys. The command creates the virtual machine based on the provisioning object. + + - -----------This example creates a new Windows standalone virtual machine without enabling the provision guest agent and adds it to the specified service. WinRM Https listener is enabled by default on the VM. + - Unknown - - + New-AzureVM + + + + New-AzureVMConfig + - - + Add-AzureVhd - Uploads a VHD file from an on premise machine to a blob in a cloud storage account in Microsoft Azure + Uploads a VHD file from an on-premise machine to a blob in a cloud storage account in Azure. @@ -2983,128 +3411,126 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Add-AzureVhd cmdlet allows to upload on premise VHD images to a blob storage account as fixed VHD images. It has parameters to configure the upload process such as specifying the number of uploader threads that will be used or overwriting a blob which already exists in the specified destination uri. For on premise VHD images, patching scenario is also supported so that diff disk images can be uploaded without having to upload the already uploaded base images. SAS Uri is supported as well. + The Add-AzureVhd cmdlet uploads on premise Virtual hard disk (VHD) images to a blob storage account as fixed .vhd images. It has parameters to configure the upload process such as specifying the number of uploader threads that will be used or overwriting a blob which already exists in the specified destination URI. For on premise VHD images, patching scenario is also supported so that diff disk images can be uploaded without having to upload the already uploaded base images. Shared Access Signature (SAS) URI is also supported. Add-AzureVhd - + Destination - A Uri to a blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well, however in patching scenarios destination cannot be a SAS Uri. + Specifies a URI to a blob in Microsoft Azure Blob Storage. SAS in URI input is supported. However, in patching scenarios the destination cannot be a SAS URI. Uri - + LocalFilePath - File path of the local Vhd file. + Species the file path of the local .vhd file. FileInfo - + NumberOfUploaderThreads - - + Specifies the number of threads to use for upload. - Int32 + Int32 - + BaseImageUriToPatch - A Uri to a base image blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well. + Specifies an URI to a base image blob in Azure Blob Storage. SAS in URI input is supported as well. - Uri + Uri - + OverWrite - Determines to delete the existing blob in the specified destination uri if it exists. + Specifies that this cmdlet deletes the existing blob in the specified destination URI if it exists. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - + + BaseImageUriToPatch + + Specifies an URI to a base image blob in Azure Blob Storage. SAS in URI input is supported as well. + + Uri + + Uri + + + none + + Destination - A Uri to a blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well, however in patching scenarios destination cannot be a SAS Uri. + Specifies a URI to a blob in Microsoft Azure Blob Storage. SAS in URI input is supported. However, in patching scenarios the destination cannot be a SAS URI. Uri Uri - - + none - + LocalFilePath - File path of the local Vhd file. + Species the file path of the local .vhd file. FileInfo FileInfo - - + none - + NumberOfUploaderThreads - - + Specifies the number of threads to use for upload. - Int32 + Int32 Int32 - - - - - BaseImageUriToPatch - - A Uri to a base image blob in Microsoft Azure Blob Storage. Shared Access Signature (SAS) in Uri input is supported as well. - - Uri - - Uri - - - - + none - + OverWrite - Determines to delete the existing blob in the specified destination uri if it exists. + Specifies that this cmdlet deletes the existing blob in the specified destination URI if it exists. SwitchParameter SwitchParameter - - + none - - NumberOfThreads + + Profile - Determines the number of uploader threads that will be used during upload. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - int + AzureProfile - 8 + none @@ -3112,13 +3538,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -3127,533 +3555,703 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - + + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Add a VHD file - PS C:\> Add-AzureVhd -Destination http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd + PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" + - Description + This command adds a .vhd file to a storage account. + + - -----------This command uploads the vhd file on premise as a fixed disk to the specified blob by destination uri. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Add a VHD file and overwrite the destination - PS C:\> Add-AzureVhd -Destination http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -Overwrite + PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -Overwrite + - Description + This command adds a .vhd file to a storage account. + + - -----------Overwrite option tells the cmdlet to delete if there is a blob already in the specified destination uri. + - -------------------------- EXAMPLE 3 -------------------------- + Example 3: Add a VHD file and specify the number of threads - PS C:\> Add-AzureVhd -Destination http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -NumberOfThreads 32 + PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -NumberOfThreads 32 + - Description + This command adds a .vhd file to a storage account and specifies the number of threads to use to upload the file. + + - -----------NumberOfThreads allows to change the default number of uploader threads, which is 8. + - -------------------------- EXAMPLE 4 -------------------------- + Example 4: Add a VHD file and specify the SAS URI - PS C:\> Add-AzureVhd -Destination "http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd?st=2013-01-09T22%3A15%3A49Z&amp;se=2013-01-09T23%3A10%3A49Z&amp;sr=b&amp;sp=w&amp;sig=13T9Ow%2FRJAMmhfO%2FaP3HhKKJ6AY093SmveOSIV4%2FR7w%3D" -LocalFilePath C:\vhd\win7baseimage.vhd + PS C:\>Add-AzureVhd -Destination "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd?st=2013-01-09T22%3A15%3A49Z&amp;se=2013-01-09T23%3A10%3A49Z&amp;sr=b&amp;sp=w&amp;sig=13T9Ow%2FRJAMmhfO%2FaP3HhKKJ6AY093SmveOSIV4%2FR7w%3D" -LocalFilePath "C:\vhd\win7baseimage.vhd" + - Description + This command adds a .vhd file to a storage account and specifies the SAS URI. + + - -----------Destination is provided with a SAS signature in the querystring of the Uri. SAS signature should have Read,Write, and Delete permissions. + - Unknown - - + Save-AzureVhd + - + - - Add-AzureVMImage - + Add-AzureVirtualIP - The Add-AzureVMImage cmdlet adds a new operating system (OS) image or a new VM Image to the image repository. The image should be a sysprep'd or generalized image. + Adds a virtual IP to a cloud service. - - + + + Add + AzureVirtualIP + + + + The Add-AzureVirtualIP cmdlet adds a new virtual IP (VIP) to your Azure service. The new virtual IP has a name but is not allocated an IP address. + The IP address is allocated only when you associate an endpoint to the VIP. See Add-AzureEndpoint for more details. + Your subscription is charged for extra VIPs only once they are associated with an endpoint. + + + + Add-AzureVirtualIP + + ServiceName + + Specifies the name of the service. + + String + + + VirtualIPName + + Specifies the name of the virtual IP address. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName + + Specifies the name of the service. + + String + + String + + + none + + + VirtualIPName + + Specifies the name of the virtual IP address. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + + + + + + + + + + + + + + + + Example 1: Add a virtual IP to a service + + + + + PS C:\>Add-AzureVirtualIP -VirtualIPName "Vip01" -ServiceName "ContosoService03" +OperationDescription OperationId OperationStatus +-------------------- ----------- --------------- +Add-AzureVirtualIP 4bd7b638-d2e7-216f-ba38-5221233d70ce Succeeded + + + This command adds a virtual IP address to a service. + + + + + + + + + + + + + Add-AzureEndpoint + + + + Remove-AzureVirtualIP + + + + + + + Add-AzureVMImage + + Adds a new operating system image or a new virtual machine image to the image repository. + + + Add AzureVMImage - - + - - + The Add-AzureVMImage cmdlet adds a new operating system image or a new virtual machine image to the image repository. The image is a generalized operating system image, using either Sysprep for Windows or, for Linux, using the appropriate tool for the distribution. - Add-AzureVMImage - + ImageName Specifies the name of the image being added to the image repository. - string + String + + + RecommendedVMSize + + Specifies the size to use for the virtual machine that is created from the operating system image. + The acceptable values for this parameter are: + +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 + + String + + + IconName + + Specifies the name of the icon that is used when the image is added to the repository. + + String + + + SmallIconName + + Specifies the name of the small icon that is used when the image is added to the repository. + + String + + + ShowInGui + + + + - + MediaLocation Specifies the location of the physical blob page where the image resides. This is a link to a blob page in the current subscription's storage. - string + String + + + OS + + Specifies the operating system version of the image. + + + Windows + Linux + - + Label Specifies a label to give the image. - string + String - + Eula - Specifies the End User License Aggreement, recommended value is a URL. + Specifies the End User License Agreement. It is recommended that you use an URL for this value. - string + String - + Description - Specifies the description of the OS image. + Specifies the description of the operating system image. - string + String - + ImageFamily - Specifies a value that can be used to group OS images. + Specifies a value that is used to group operating system images. - string + String - + PublishedDate - - + Specifies the date when the operating system image was added to the image repository. - System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + DateTime - + PrivacyUri - Specifies the URI that points to a document that contains the privacy policy related to the OS image. + Specifies the URL that points to a document that contains the privacy policy related to the OS image. - Uri + Uri - - RecommendedVMSize + + Profile - Specifies the size to use for the virtual machine that is created from the OS image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - - IconName + + + Add-AzureVMImage + + ImageName - Not Specified + Specifies the name of the image being added to the image repository. - string + String - - SmallIconName + + RecommendedVMSize - Not Specified + Specifies the size to use for the virtual machine that is created from the operating system image. + The acceptable values for this parameter are: + +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 - string + String - - ShowInGui + + IconName - Not Specified + Specifies the name of the icon that is used when the image is added to the repository. + String - - PipelineVariable + + SmallIconName - Not Specified + Specifies the name of the small icon that is used when the image is added to the repository. - string + String - - - Add-AzureVMImage - - ImageName + + ShowInGui - Specifies the name of the image being added to the image repository. + + - string - + DiskConfig - Not Specified + Specifies the operating system disk configuration for the virtual machine image. VirtualMachineImageDiskConfigSet - + OS Specifies the operating system version of the image. - string + + Windows + Linux + - + Label Specifies a label to give the image. - string + String - + Eula - Specifies the End User License Aggreement, recommended value is a URL. + Specifies the End User License Agreement. It is recommended that you use an URL for this value. - string + String - + Description - Specifies the description of the OS image. + Specifies the description of the operating system image. - string + String - + ImageFamily - Specifies a value that can be used to group OS images. + Specifies a value that is used to group operating system images. - string + String - + PublishedDate - - + Specifies the date when the operating system image was added to the image repository. - System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + DateTime - + PrivacyUri - Specifies the URI that points to a document that contains the privacy policy related to the OS image. - - Uri - - - RecommendedVMSize - - Specifies the size to use for the virtual machine that is created from the OS image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". - - string - - - IconName - - Not Specified - - string - - - SmallIconName - - Not Specified - - string - - - ShowInGui - - Not Specified + Specifies the URL that points to a document that contains the privacy policy related to the OS image. + Uri - - PipelineVariable + + Profile - Not Specified + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - - + Description - Specifies the description of the OS image. + Specifies the description of the operating system image. - string + String - string + String - - + none - + DiskConfig - Not Specified + Specifies the operating system disk configuration for the virtual machine image. VirtualMachineImageDiskConfigSet VirtualMachineImageDiskConfigSet - - + none - + Eula - Specifies the End User License Aggreement, recommended value is a URL. + Specifies the End User License Agreement. It is recommended that you use an URL for this value. - string + String - string + String - - + none - + IconName - Not Specified + Specifies the name of the icon that is used when the image is added to the repository. - string + String - string + String - - + none - + ImageFamily - Specifies a value that can be used to group OS images. + Specifies a value that is used to group operating system images. - string + String - string + String - - + none - + ImageName Specifies the name of the image being added to the image repository. - string + String - string + String - - + none - + Label Specifies a label to give the image. - string + String - string + String - - + none - + MediaLocation Specifies the location of the physical blob page where the image resides. This is a link to a blob page in the current subscription's storage. - string + String - string + String - - + none - + OS Specifies the operating system version of the image. - string + String - string + String - - + none - - PipelineVariable + + PrivacyUri - Not Specified + Specifies the URL that points to a document that contains the privacy policy related to the OS image. - string + Uri - string + Uri - - + none - - PrivacyUri + + Profile - Specifies the URI that points to a document that contains the privacy policy related to the OS image. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Uri + AzureProfile - Uri + AzureProfile - - + none - + PublishedDate - - + Specifies the date when the operating system image was added to the image repository. - System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + DateTime - System.Nullable`1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + DateTime - - + none - + RecommendedVMSize - Specifies the size to use for the virtual machine that is created from the OS image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". + Specifies the size to use for the virtual machine that is created from the operating system image. + The acceptable values for this parameter are: + +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 - string + String - string + String - - + none - + ShowInGui - Not Specified + + SwitchParameter SwitchParameter - - + none - + SmallIconName - Not Specified + Specifies the name of the small icon that is used when the image is added to the repository. - string + String - string + String - - + none - - - + + + + + - @@ -3662,126 +4260,71 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` OSImageContext - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Add an operating system image to the repository - C:\PS> - - - $s = New-AzureVMImageDiskConfigSet - - Set-AzureVMImageOSDiskConfig -DiskConfig $s -HostCaching ReadWrite -OSState 'Generalized' -OS 'Windows' -MediaLink $link - # A Uri link to the vhd in your storage account - - Set-AzureVMImageDataDiskConfig -DiskConfig $s -DataDiskName test1 -HostCaching ReadWrite -Lun 0 -MediaLink $link1 - - Set-AzureVMImageDataDiskConfig -DiskConfig $s -DataDiskName test4 -HostCaching ReadWrite -Lun 0 -MediaLink $link - - Remove-AzureVMImageDataDiskConfig -DiskConfig $s -DataDiskName test4 - - $imgname = 'testCREATEvmimage2'; - - Add-AzureVMImage -ImageName $imgname -Label test1 -Description test1 -DiskConfig $s -Eula 'http://www.test.com' -ImageFamily Windows -PublishedDate (Get-Date) -PrivacyUri 'http://www.test.com' -RecommendedVMSize Small -IconName test1 -SmallIconName test2 -ShowInGui - - - Description - ----------- - - Adds a VM Image to image repository - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - + PS C:\>$S = New-AzureVMImageDiskConfigSet +PS C:\> Set-AzureVMImageOSDiskConfig -DiskConfig $S -HostCaching ReadWrite -OSState "Generalized" -OS "Windows" -MediaLink $Link +PS C:\> Set-AzureVMImageDataDiskConfig -DiskConfig $S -DataDiskName "Test1" -HostCaching ReadWrite -Lun 0 -MediaLink $Link1 +PS C:\> Set-AzureVMImageDataDiskConfig -DiskConfig $S -DataDiskName "Test4" -HostCaching ReadWrite -Lun 0 -MediaLink $Link +PS C:\> Remove-AzureVMImageDataDiskConfig -DiskConfig $S -DataDiskName "Test4" +PS C:\> $IMGName = "TestCREATEvmimage2"; +PS C:\> Add-AzureVMImage -ImageName $IMGName -Label "Test1" -Description "Test1" -DiskConfig $S -Eula "http://www.contoso.com" -ImageFamily Windows -PublishedDate (Get-Date) -PrivacyUri '"http://www.test.com" -RecommendedVMSize Small -IconName "Icon01" -SmallIconName "SmallIcon01" -ShowInGui + - Description - ----------- - - - - - - - - - - + This example adds an operating system image to the repository. + + - - + - - - + Get-AzureVMImage + + + + Remove-AzureVMImage + + + + Save-AzureVMImage + + + + Update-AzureVMImage - - + Export-AzureVM - Exports a Microsoft Azure virtual machine state to a file. + Exports an Azure virtual machine state to a file. @@ -3791,76 +4334,90 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Export-AzureVM cmdlet exports the state of a virtual machine to an xml file. - - Note: Using Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. + The Export-AzureVM cmdlet exports the state of a virtual machine to an .xml file. + Running Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. Export-AzureVM - + ServiceName - Specifies the name of the Microsoft Azure service that hosts the virtual machine. + Specifies the name of the Azure service that hosts the virtual machine. String - + Name - Specifies the name of the virtual machine whose state you are exporting. + Specifies the name of the virtual machine for which this cmdlet exports state. String - + Path - Specifies the path and file name to which the virtual machine state will be saved. + Specifies the path and file name to which this cmdlet saves the virtual machine state. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - - ServiceName + + Name - Specifies the name of the Microsoft Azure service that hosts the virtual machine. + Specifies the name of the virtual machine for which this cmdlet exports state. String String - - + none - - Name + + Path - Specifies the name of the virtual machine whose state you are exporting. + Specifies the path and file name to which this cmdlet saves the virtual machine state. String String - - + none - - Path + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName - Specifies the path and file name to which the virtual machine state will be saved. + Specifies the name of the Azure service that hosts the virtual machine. String String - - + none @@ -3868,13 +4425,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -3883,44 +4442,37 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Export a virtual machine - PS C:\> C:\PS>Export-AzureVM -ServiceName $MyService -Name $MyRole -Path "C:\vms\VMstate.xml" + PS C:\>Export-AzureVM -ServiceName "ContosoService" -Name "ContosoRole06" -Path "C:\vms\VMstate.xml" + - This command exports the state of the $MyRole virtual machine to the “VMstate.xml” file. + This command exports the state of the specified virtual machine to the VMstate.xml file. + + - - + @@ -3928,22 +4480,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` Import-AzureVM - - - - - New-AzureVM - - + - - + Get-AzureAclConfig - Gets the ACL configuration object from an existing Azure VM. + Gets the ACL configuration object from an Azure virtual machine. @@ -3953,54 +4498,70 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureAclConfig cmdlet gets the ACL configuration object from an existing Azure VM. + The Get-AzureAclConfig cmdlet gets the access control list (ACL) configuration object from an existing Azure virtual machine. Get-AzureAclConfig - + EndpointName - Specifies the name of the endpoint. + Specifies the name of the endpoint for which this cmdlet gets an ACL. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + VM - Specifies the virtual machine object for which the endpoint will be created. + Specifies the virtual machine object for which this cmdlet gets ACL configuration. IPersistentVM - + EndpointName - Specifies the name of the endpoint. + Specifies the name of the endpoint for which this cmdlet gets an ACL. - String + String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none - + VM - Specifies the virtual machine object for which the endpoint will be created. + Specifies the virtual machine object for which this cmdlet gets ACL configuration. IPersistentVM IPersistentVM - - + none @@ -4008,13 +4569,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -4023,72 +4586,65 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get an ACL configuration object for a virtual machine endpoint - PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "myservice" -Name "MyVM" | Get-AzureAclConfig -EndpointName "Web" + PS C:\>$Acl = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureAclConfig -EndpointName "Web" + - This command will get the ACL configuration from the VM with name "MyVM". + The first command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the Get-AzureAclConfig cmdlet by using the pipeline operator. That cmdlet gets the ACL configuration for the endpoint named Web. The command stores that ACL configuration object in the $Acl variable. + + - - + + + Get-AzureVM + + New-AzureAclConfig - - + Remove-AzureAclConfig - - + Set-AzureAclConfig - - + - - + Get-AzureAffinityGroup - Returns an object that represents a Microsoft Azure affinity group. + Gets an Azure affinity group object. @@ -4098,34 +4654,51 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureAffinityGroup cmdlet returns an affinity group object that includes the affinity group name, location, label, description and the storage and hosted services that are part of the affinity group. + The Get-AzureAffinityGroup cmdlet gets an Azure affinity group. The affinity group object includes the affinity group name, location, label, description and the storage and hosted services that are part of the affinity group. Get-AzureAffinityGroup - + Name - Affinity Group name. A name is assigned to the affinity group at the time of creation. Note that names for affinity groups created through the Management Portal are typically GUIDs and that the UI shows its label. + Specifies the name of the affinity group that this cmdlet gets. Names for affinity groups created through the Management Portal are typically GUIDs. The Management Port shows the affinity group label. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + Name - Affinity Group name. A name is assigned to the affinity group at the time of creation. Note that names for affinity groups created through the Management Portal are typically GUIDs and that the UI shows its label. + Specifies the name of the affinity group that this cmdlet gets. Names for affinity groups created through the Management Portal are typically GUIDs. The Management Port shows the affinity group label. - String + String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none @@ -4133,13 +4706,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -4147,57 +4722,61 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` AffinityGroup - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get properties of an affinity group - PS C:\> C:\PS>Get-AzureAffinityGroup -Name "MyGroup1" + PS C:\>Get-AzureAffinityGroup -Name "South01" + - This example list the properties of the "MyGroup1" affinity group. + This command gets the properties of the affinity group named South01. + + - - + + + New-AzureAffinityGroup + + + + Remove-AzureAffinityGroup + + + + Set-AzureAffinityGroup + + - - + Get-AzureCertificate - Gets a certificate object from the specified Microsoft Azure service. + Gets a certificate object from an Azure service. @@ -4207,75 +4786,89 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - - + The Get-AzureCertificate cmdlet gets a certificate object from an Azure service. Get-AzureCertificate - + ServiceName - Specifies the name of the Microsoft Azure service that has the certificate. + Specifies the name of the Azure service from which this cmdlet gets a certificate. String - - ThumbprintAlgorithm + + Profile - Specifies the algorithm used to create the certificate thumbprint. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - + Thumbprint - Specifies the thumbprint that identifies the certificate. + Specifies the thumbprint of the certificate that this cmdlet gets. - String + String + + + ThumbprintAlgorithm + + Specifies the algorithm that is used to create the certificate thumbprint. + + String - - ServiceName + + Profile - Specifies the name of the Microsoft Azure service that has the certificate. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - ThumbprintAlgorithm + + ServiceName - Specifies the algorithm used to create the certificate thumbprint. + Specifies the name of the Azure service from which this cmdlet gets a certificate. String String - - + none - + Thumbprint - Specifies the thumbprint that identifies the certificate. + Specifies the thumbprint of the certificate that this cmdlet gets. - String + String + + String + + + none + + + ThumbprintAlgorithm + + Specifies the algorithm that is used to create the certificate thumbprint. + + String String - - + none @@ -4283,13 +4876,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -4297,61 +4892,56 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` CertificateContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get certificates from a service - PS C:\> C:\PS>$MyAzureCert = Get-AzureCertificate -ServiceName "MyService" + PS C:\>$AzureCert = Get-AzureCertificate -ServiceName "ContosoService" + - This command gets the certificate object from the specified cloud service, and stores it in the $MyAzureCert variable. + This command gets certificate objects from the service named ContosoService, and then stores them in the $AzureCert variable. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Get a certificate from a service - PS C:\> C:\PS>$MyAzureCert = Get-AzureCertificate -ServiceName "MyService" `-Thumbprint <CertThumbprint> + PS C:\>$AzureCert = Get-AzureCertificate -ServiceName "ContosoService" -Thumbprint '5383CE0343CB6563281CA97C1D4D712209CFFA97' + - This command gets the certificate object identified by the specified thumbprint from the specified hosted service, and stores it in the $MyAzureCert variable. + This command gets the certificate object identified by the specified thumbprint from the service named ContosoService, and then stores it in the $AzureCert variable. + + - - + @@ -4359,22 +4949,23 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` Add-AzureCertificate - - + + + + New-AzureCertificateSetting + Remove-AzureCertificate - - + - - + Get-AzureDataDisk - Gets a Microsoft Azure data disk object. + Gets Azure data disks. @@ -4384,54 +4975,70 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureDataDisk cmdlet gets an object that represents the Microsoft Azure data disks on the specified virtual machine. To get a specific data disk object, specify the disk's LUN. + The Get-AzureDataDisk cmdlet gets an object that represents the data disks on an Azure virtual machine. To get a specific data disk object, specify the logical unit number (LUN) of the disk. Get-AzureDataDisk - + Lun - Specifies the LUN where the data disk resides. + Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. + + Int32 + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Nullable`1[Int32] + AzureProfile - + VM - Specifies the virtual machine object from which to get data disk objects. + Specifies the virtual machine object for which this cmdlet gets data disks. To obtain a virtual machine object, use the Get-AzureVM cmdlet. IPersistentVM - + Lun - Specifies the LUN where the data disk resides. + Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. + + Int32 + + Int32 + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Nullable`1[Int32] + AzureProfile - Nullable`1[Int32] + AzureProfile - - + none - + VM - Specifies the virtual machine object from which to get data disk objects. + Specifies the virtual machine object for which this cmdlet gets data disks. To obtain a virtual machine object, use the Get-AzureVM cmdlet. IPersistentVM IPersistentVM - - + none @@ -4439,13 +5046,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -4454,175 +5063,248 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM "myservice" –Name "MyVM" | Get-AzureDataDisk - - This command gets the "MyVM" virtual machine running on the "myservice" cloud service, and then gets a list of the data disks mounted on the virtual machine. - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Get all data disks for a virtual machine - PS C:\> C:\PS>$dDisk = ( Get-AzureVM "myservice" -Name "MyVM" ` - | Get-AzureDataDisk -LUN 2 ) + PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Get-AzureDataDisk + - This command gets a data disk object, $dDisk, that represents the data disk mounted at LUN 2 on the Database virtual machine running on the Microsoft Azure service "myservice". + This command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet gets all the data disks for this virtual machine. + + - - + - -------------------------- Example 3 -------------------------- + Example 2: Get a specific data disk for a vitural machine - PS C:\> C:\PS>Get-AzureVM "MyService" –Name "MyVM" | Get-AzureDataDisk –LUN 1 + PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Get-AzureDataDisk -LUN 2 + - This command removes the data disk at LUN 1 on the "MyVM" virtual machine running on the Microsoft Azure service "MyService". + This command gets the virtual machine named VirtualMachine07 in the service named ContosoService. The command passes the virtual machine to the current cmdlet. The current cmdlet gets the data disk that has the LUN 2. + + - - + - - Get-AzureVM - - - Add-AzureDataDisk - - + - Set-AzureDataDisk - - + Get-AzureVM + Remove-AzureDataDisk - - + + + + Set-AzureDataDisk + - - + - Get-AzureDeployment + Get-AzureDeploymentEvent - - + Gets information about events that Azure initiates that impact virtual machines and cloud services. Get - AzureDeployment + AzureDeploymentEvent - - - + The Get-AzureDeploymentEvent cmdlet gets information regarding events that Azure initiates that impact virtual machines and cloud services. These events include planned maintenance events. This cmdlet returns a list of events that identify the role instance or virtual machine impacted, the reason for the impact, and the start time of the event. - Get-AzureDeployment - + Get-AzureDeploymentEvent + ServiceName - - + Specifies the name of the hosted service for which this cmdlet gets scheduled events. + + String + + + DeploymentName + + Specifies the name of the deployment for which this cmdlet gets events. String - + + StartTime + + Specifies the starting time for the scheduled events that this cmdlet gets. + + DateTime + + + EndTime + + Specifies the ending time for the scheduled events that this cmdlet gets. + + DateTime + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Get-AzureDeploymentEvent + + ServiceName + + Specifies the name of the hosted service for which this cmdlet gets scheduled events. + + String + + + StartTime + + Specifies the starting time for the scheduled events that this cmdlet gets. + + DateTime + + + EndTime + + Specifies the ending time for the scheduled events that this cmdlet gets. + + DateTime + + Slot - - + Specifies the environment of the deployment for which this cmdlet gets scheduled events. Valid values are: Staging and Production. The default value is Production. - String + + Staging + Production + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - ServiceName + + DeploymentName - - + Specifies the name of the deployment for which this cmdlet gets events. String String - - + none + + + EndTime + + Specifies the ending time for the scheduled events that this cmdlet gets. + + DateTime + + DateTime + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName + + Specifies the name of the hosted service for which this cmdlet gets scheduled events. + + String + + String + + + none - + Slot - - + Specifies the environment of the deployment for which this cmdlet gets scheduled events. Valid values are: Staging and Production. The default value is Production. - String + String String - - + none + + + StartTime + + Specifies the starting time for the scheduled events that this cmdlet gets. + + DateTime + + DateTime + + + none @@ -4630,13 +5312,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -4645,99 +5329,234 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + 1: - PS C:\> C:\PS>Get-AzureDeployment -ServiceName "MyService" - This command will return the details of the production deployment of "MyService". - - - - - - - - - - -------------------------- Example 2 -------------------------- - - - PS C:\> C:\PS>Get-AzureDeployment -ServiceName "MyService" -Slot Staging - - This command returns the details of the staging deployment of "MyService". + + - - + - Move-AzureDeployment - - - - - New-AzureDeployment - - - - - Remove-AzureDeployment - - - - - Set-AzureDeployment - - + Get-AzureDeployment + - - Unknown - - + + + + + Get-AzureDeployment + + Gets details of a deployment. + + + + + Get + AzureDeployment + + + + The Get-AzureDeployment cmdlet gets details of an Azure deployment. Specify the name of the Azure service and the slot of the deployment. + + + + Get-AzureDeployment + + ServiceName + + Specifies the name of the service. + + String + + + Slot + + Specifies the environment of the deployment. Valid values are: Staging or Production. The default value is Production. + + + Staging + Production + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName + + Specifies the name of the service. + + String + + String + + + none + + + Slot + + Specifies the environment of the deployment. Valid values are: Staging or Production. The default value is Production. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get details for a production deployment + + + + + PS C:\>Get-AzureDeployment -ServiceName "ContosoService" + + + This command returns the details of the deployment for the service named ContosoService. This command does not specify a slot. Therefore, the command uses the default value of Production. + + + + + + + + + + + Example 2: Get details for a staging deployment + + + + + PS C:\>Get-AzureDeployment -ServiceName "ContosoService" -Slot "Staging" + + + This command returns the details of the staging deployment of ContosoService. + + + + + + + + + + + + + Get-AzureDeploymentEvent + + + + Move-AzureDeployment + + + + New-AzureDeployment + + + + Remove-AzureDeployment + + + + Set-AzureDeployment + - - + Get-AzureDisk - Gets an object with information on disks in the Microsoft Azure disk repository. + Gets information about disks in the Azure disk repository. @@ -4747,34 +5566,51 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureDisk cmdlet retrieves an object with information about the disks stored in the Microsoft Azure disk repository for the current subscription. It returns a list object with information for all disks in the repository, or with information on a specific disk if its disk name is specified. + The Get-AzureDisk cmdlet gets information about the disks that are stored in the Azure disk repository for the current subscription. This cmdlet returns a list of information for all disks in the repository. To view information for a specific disk, specify the name of the disk. Get-AzureDisk - + DiskName - Specifies the name of the disk in the disk repository to return information about. + Specifies the name of the disk in the disk repository about which this cmdlet gets information. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + DiskName - Specifies the name of the disk in the disk repository to return information about. + Specifies the name of the disk in the disk repository about which this cmdlet gets information. - String + String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none @@ -4782,13 +5618,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -4797,79 +5635,75 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get information about a disk - PS C:\> C:\PS>Get-AzureDisk -DiskName MyDataDisk + PS C:\>Get-AzureDisk -DiskName "ContosoDataDisk" + - This command retrieves data about the "MyDataDisk" disk from the disk repository. + This command gets information data about the disk named ContosoDataDisk from the disk repository. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Get information about all disks - PS C:\> C:\PS>Get-AzureDisk + PS C:\>Get-AzureDisk + - This command retrieves data for all the disks in the disk repository. + This command gets information about all the disks in the disk repository. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Get information about a disk - PS C:\> C:\PS>Get-AzureDisk | Where-Object {$_.AttachedTo –eq $null } ` - | Format-Table –auto "DiskName","DiskSizeInGB","MediaLink" + PS C:\>Get-AzureDisk | Where-Object {$_.AttachedTo -eq $Null } | Format-Table -AutoSize -Property "DiskName","DiskSizeInGB","MediaLink" + - This command gets data for all of the disks in the disk repository that are not currently attached to a virtual machine and then formats the list as a table. + This command gets data for all of the disks in the disk repository that are not currently attached to a virtual machine. The command gets information about all of the disks, and passes each object to the Where-Object cmdlet. That cmdlet drops any disk that does not have a value of $Null for the AttachedTo property. The command formats the list as a table by using the Format-Table cmdlet. + + - - + @@ -4877,27 +5711,23 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` Add-AzureDisk - - + Remove-AzureDisk - - + Update-AzureDisk - - + - - + Get-AzureDns - Gets an object with the DNS settings for the Microsoft Azure deployment. + Gets the DNS settings for an Azure deployment. @@ -4907,34 +5737,32 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureDNS cmdlet gets the DNS settings for a Microsoft Azure deployment. The returned settings are "name" (a friendly name) and "Address" which is the IP address of the DNS server. + The Get-AzureDns cmdlet gets the DNS settings for an Azure deployment. The cmdlet returns the friendly name and IP address of the DNS server in a DNS settings object. Get-AzureDns - + DnsSettings Specifies a DnsSettings object. - DnsSettings + DnsSettings - + DnsSettings Specifies a DnsSettings object. - DnsSettings + DnsSettings DnsSettings - - + none @@ -4942,13 +5770,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -4957,57 +5787,69 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get DNS settings - PS C:\> C:\PS>Get-AzureDeployment -ServiceName "MySvc1" -Slot "Production" | Get-AzureDNS + PS C:\>Get-AzureDeployment -ServiceName "ContosoService" -Slot "Production" | Get-AzureDNS + - This command gets the production DNS settings for the specified deployment. + This command uses the Get-AzureDeployment cmdlet to get the production deployment of the service named ContosoService. The command passes that object to the current cmdlet by using the pipeline operator. The current cmdlet gets the DNS settings. + + - - + + + Add-AzureDns + + + + Get-AzureDeployment + + + + New-AzureDns + + + + Remove-AzureDns + + + + Set-AzureDns + + - - + Get-AzureEndpoint - Gets an object with information about the endpoints assigned to a Microsoft Azure virtual machine. + Gets information about the endpoints that are assigned to an Azure virtual machine. @@ -5017,54 +5859,70 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureEndpoint cmdlet returns an object with information about the endpoints that are assigned to a Microsoft Azure virtual machine. + The Get-AzureEndpoint cmdlet gets information about the endpoints that are assigned to an Azure virtual machine. Get-AzureEndpoint - + Name - Specifies the name of the input endpoint from which information will be retrieved. If the Name parameter is omitted, information about all endpoints assigned to the specified virtual machine is retrieved. + Specifies the name of the endpoint for which this cmdlet gets information. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + VM - Specifies the virtual machine object from which endpoint information will be retrieved. + Specifies the virtual machine from which this cmdlet gets endpoint information. IPersistentVM - + Name - Specifies the name of the input endpoint from which information will be retrieved. If the Name parameter is omitted, information about all endpoints assigned to the specified virtual machine is retrieved. + Specifies the name of the endpoint for which this cmdlet gets information. - String + String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none - + VM - Specifies the virtual machine object from which endpoint information will be retrieved. + Specifies the virtual machine from which this cmdlet gets endpoint information. IPersistentVM IPersistentVM - - + none @@ -5072,13 +5930,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -5087,44 +5947,37 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get endpoint information for a virtual machine - PS C:\> Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureEndpoint + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine12" | Get-AzureEndpoint + - This command gets endpoint information for the virtual machine “MyVM”. + This command retrieves the configuration of a virtual machine named VirtualMachine12 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet gets endpoint information for that virtual machine. + + - - + @@ -5132,32 +5985,27 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` Add-AzureEndpoint - - + - Remove-AzureEndpoint - - + Get-AzureVM + - Set-AzureEndpoint - - + Remove-AzureEndpoint + - Get-AzureVM - - + Set-AzureEndpoint + - - + Get-AzureInternalLoadBalancer - Get-AzureInternalLoadBalancer [-ServiceName] <string> [<CommonParameters>] + Gets the details of the internal load balancer configuration. @@ -5167,36 +6015,51 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - Returns the details of the Internal Load balancer configuration on the deployment. + The Get-AzureInternalLoadBalancer cmdlet gets the details of the internal load balancer configuration for an Azure service. Get-AzureInternalLoadBalancer - + ServiceName - - + Specifies the name of the service for which this cmdlet gets details for an internal load balancer. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName - - + Specifies the name of the service for which this cmdlet gets details for an internal load balancer. String String - - + none @@ -5204,13 +6067,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -5218,61 +6083,69 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` Microsoft.WindowsAzure.Commands.ServiceManagement.Model.InternalLoadBalancerContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get details for an internal load balancer - PS C:\> Get-AzureService -ServiceName ILBINVNet | Get-AzureInternalLoadBalancer + PS C:\>Get-AzureService -ServiceName "ContosoService" | Get-AzureInternalLoadBalancer + - Description + This command gets the service named ContosoService by using the Get-AzureService cmdlet. The command passes that service to the current cmdlet by using the pipeline operator. The current cmdlet gets details for the internal load balancer for that service. + + - -----------Returns information on the internal load balancer configuration on the deployment + - Unknown - - + Add-AzureInternalLoadBalancer + + + + Get-AzureService + + + + New-AzureInternalLoadBalancerConfig + + + + Remove-AzureInternalLoadBalancer + + + + Set-AzureInternalLoadBalancer + - - + Get-AzureLocation - Gets the available data center locations for the current Microsoft Azure subscription. + Gets the available data center locations for the current Azure subscription. @@ -5282,28 +6155,48 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureLocation cmdlet returns a list object with the available Microsoft Azure data centers and their properties for the current Microsoft Azure subscription. Before running this cmdlet, you need to set your current subscription with Select-AzureSubscription and Set-AzureSubscription. + The Get-AzureLocation cmdlet gets a list of the available Azure data centers and their properties for the current Azure subscription. Before you run this cmdlet, you must set your current subscription by using the Select-AzureSubscription and Set-AzureSubscription cmdlets. Get-AzureLocation + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + - + + - - + + + @@ -5312,109 +6205,99 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get locations - PS C:\> C:\PS>Get-AzureLocation + PS C:\>Get-AzureLocation + This command gets a list of available data centers, and their properties, for the current subscription. + + - - + - - Select-AzureSubscription - - - - - Set-AzureSubscription - - - - - Import-AzurePublishSettingsFile - - - - - + - Get-AzureOSDisk + Get-AzureNetworkInterfaceConfig - Gets the operating system disk object for the specified Microsoft Azure virtual machine. + + Get - AzureOSDisk + AzureNetworkInterfaceConfig - - The Get-AzureOSDisk cmdlet gets an object representing the operating system disk of the specified virtual machine object. - Get-AzureOSDisk - + Get-AzureNetworkInterfaceConfig + + Name + + + String + + VM - Specifies the virtual machine object whose operating system disk object you want to get. - IPersistentVM + PersistentVMRoleContext - + + Name + + + String + + String + + + none + + VM - Specifies the virtual machine object whose operating system disk object you want to get. - IPersistentVM + PersistentVMRoleContext - IPersistentVM + PersistentVMRoleContext - - + none @@ -5422,10 +6305,10 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + @@ -5437,88 +6320,130 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + 1: - PS C:\> Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureOSDisk + PS C:\> + - This command gets the operating system disk object for the "MyVM" virtual machine. + + + + - - + + + Add-AzureNetworkInterfaceConfig + + + + Remove-AzureNetworkInterfaceConfig + + + + Set-AzureNetworkInterfaceConfig + + - - + - Get-AzureOSVersion + Get-AzureOSDisk - Returns an object with all the available Microsoft Azure guest operating systems. + Gets the operating system disk of an Azure virtual machine. Get - AzureOSVersion + AzureOSDisk - - The Get-AzureOSVersion cmdlet returns a list object with all the available Microsoft Azure guest operating systems. + The Get-AzureOSDisk cmdlet gets the operating system disk of an Azure virtual machine. - Get-AzureOSVersion + Get-AzureOSDisk + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the virtual machine for which this cmdlet gets the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + + IPersistentVM + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies the virtual machine for which this cmdlet gets the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + + IPersistentVM + + IPersistentVM + + + none + - + + - - + + + @@ -5527,135 +6452,255 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureOSVersion - - This command retrieves an object containing a list of all versions of the guest operating system that are available in the current subscription. - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Get an operating system disk - PS C:\> C:\PS>Get-AzureOSVersion | Format-Table –auto "Family", "FamilyLabel", "Version" + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine02" | Get-AzureOSDisk + - This command retrieves an object containing a list of all versions of the guest operating system that are available in the current subscription, and formats them in a table showing the OS Family, OS Family Label, and Version. + This command gets the virtual machine named VirtualMachine02 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet gets the operating system disk of that virtual machine. + + - - + + + Get-AzureDataDisk + + + + Set-AzureOSDisk + + - - + - Get-AzurePublicIP + Get-AzureOSVersion - Get-AzurePublicIP [[-PublicIPName] <string>] -VM <IPersistentVM> [<CommonParameters>] + Lists all Azure guest operating systems. Get - AzurePublicIP + AzureOSVersion - - Returns the Instance Level Public IP information on the virtual machine. To obtain the IP Address of the Public IP use Get-AzureVM cmdlet. + The Get-AzureOSVersion cmdlet lists all the available Azure guest operating systems. - Get-AzurePublicIP - - PublicIPName - - - - - String - - - VM + Get-AzureOSVersion + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - - PublicIPName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - VM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Get all available operating systems + + + + + PS C:\>Get-AzureOSVersion + + + This command retrieves an object that contains a list of all versions of guest operating systems that are available in the current subscription. + + + + + + + + + + + Example 2: Display operating system information in a table + + + + + PS C:\>Get-AzureOSVersion | Format-Table -AutoSize -Property "Family", "FamilyLabel", "Version" + + + This command retrieves an object that contains a list of all versions of guest operating systems that are available in the current subscription. The command passes them to the Format-Table cmdlet by using the pipeline operator. That cmdlet formats them as a table that shows the operating system family, operating system family label, and version. + + + + + + + + + + + + + Get-AzureOSDisk + + + + + + + Get-AzurePublicIP + + Gets the Public IP information for an Azure virtual machine. + + + + + Get + AzurePublicIP + + + + The Get-AzurePublicIP cmdlet gets the Public IP information for an Azure virtual machine. To obtain the IP address of the Public IP, use the Get-AzureVM cmdlet. + + + + Get-AzurePublicIP + + PublicIPName + + Specifies the Public IP name. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the virtual machine for which this cmdlet gets Public IP configuration. + + IPersistentVM + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + PublicIPName + + Specifies the Public IP name. + + String + + String + + + none + + + VM + + Specifies the virtual machine for which this cmdlet gets Public IP configuration. + IPersistentVM IPersistentVM - - + none @@ -5663,13 +6708,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -5677,61 +6724,61 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` Microsoft.WindowsAzure.Commands.ServiceManagement.AssignPublicIPCollection - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get Public IP configuration - PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Get-AzurePublicIP + PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Get-AzurePublicIP + - Description + This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet gets Public IP configuration from the virtual machine. + + - -----------Returns the Public IP information on the virtual machine. To get the IP address of the public ip, use Get-AzureVM + - Unknown - - + Get-AzureVM + + + + Remove-AzurePublicIP + + + + Set-AzurePublicIP + - - + Get-AzureRemoteDesktopFile - Gets a remote desktop connection file (.RDP) for the specified Microsoft Azure virtual machine. + Gets an RDP file for an Azure virtual machine. @@ -5741,118 +6788,138 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - The Get-AzureRemoteDesktopFile cmdlet downloads and saves a remote desktop connection (RDP) file to a local disk file. The cmdlet can optionally launch a remote desktop connection to the specified virtual machine. + The Get-AzureRemoteDesktopFile cmdlet downloads and saves a remote desktop connection (RDP) file for an Azure virtual machine. The cmdlet can launch a remote desktop connection to the specified virtual machine. Get-AzureRemoteDesktopFile - + + ServiceName + + Specifies the name of the Azure service to which the virtual machine belongs. + + String + + Name - Specifies the virtual machine to download an RDP file for. + Specifies the virtual machine for which this cmdlet downloads an RDP file. String - + LocalPath - Specifies the path and name of the downloaded RDP file on the local disk. + Specifies the full path of the downloaded RDP file on the local computer. String - - ServiceName + + Launch - Specifies the Microsoft Azure service name. + Indicates that this cmdlet starts a remote desktop session to the virtual machine. - String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile Get-AzureRemoteDesktopFile - - Name + + ServiceName - Specifies the virtual machine to download an RDP file for. + Specifies the name of the Azure service to which the virtual machine belongs. String - - LocalPath + + Name - Specifies the path and name of the downloaded RDP file on the local disk. + Specifies the virtual machine for which this cmdlet downloads an RDP file. String - - Launch + + LocalPath - When specified, launches a remote desktop session to the specified virtual machine. + Specifies the full path of the downloaded RDP file on the local computer. - SwitchParameter + String - - ServiceName + + Profile - Specifies the Microsoft Azure service name. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - Name + + Launch - Specifies the virtual machine to download an RDP file for. + Indicates that this cmdlet starts a remote desktop session to the virtual machine. - String + SwitchParameter - String + SwitchParameter - - + none - + LocalPath - Specifies the path and name of the downloaded RDP file on the local disk. + Specifies the full path of the downloaded RDP file on the local computer. String String - - + none - - ServiceName + + Name - Specifies the Microsoft Azure service name. + Specifies the virtual machine for which this cmdlet downloads an RDP file. String String - - + none - - Launch + + Profile - When specified, launches a remote desktop session to the specified virtual machine. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile + + + none + + + ServiceName + + Specifies the name of the Azure service to which the virtual machine belongs. + + String + + String - - + none @@ -5860,13 +6927,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -5875,61 +6944,56 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get an RDP file - PS C:\> C:\PS>Get-AzureRemoteDesktopFile -ServiceName "myservice" -Name "MyVM-01_IN_0" -LocalPath "c:\temp\MyVM01.rdp" + PS C:\>Get-AzureRemoteDesktopFile -ServiceName "ContosoService" -Name "VirtualMachine07" -LocalPath "C:\temp\VirtualMachine07.rdp" + - This command gets an RDP file for the "MyVM-01_IN_0" virtual machine running on the "myservice" service and stores it as "c:\temp\MyVM01.rdp". + This command gets an RDP file for the VirtualMachine07 virtual machine named VirtualMachine07 that runs on the service named ContosoService. The command stores that file as C:\temp\VirtualMachine07.rdp. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Start a remote session - PS C:\> C:\PS>Get-AzureRemoteDesktopFile -ServiceName "myservice" -Name "MyVM-01_IN_0" –Launch + PS C:\>Get-AzureRemoteDesktopFile -ServiceName "ContosoService" -Name "VirtualMachine07" -Launch + - This command gets an RDP connection file for the "MyVM-01_IN_0" virtual machine running on the "myservice" service and launches a remote desktop connection to the specified virtual machine. The RDP file is deleted when the connection is closed. + This command gets an RDP file for the VirtualMachine07 virtual machine named VirtualMachine07 that runs on the service named ContosoService. The command launches a remote desktop session. The command deletes the RDP file when the connection is closed. + + - - + @@ -5942,12 +7006,11 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - + Get-AzureReservedIP - Get the Reserved IP by its name or lists all the Reserved IPs in the subscription. + Gets a reserved IP address by its name or lists all the reserved IP addresses in the subscription. @@ -5957,34 +7020,51 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - Get the reserved IP by its name or list all of them in the subscription. + The Get-AzureReservedIP cmdlet gets a reserved IP address by its name or lists all of the reserved IP addresses in the subscription. Get-AzureReservedIP - + ReservedIPName - Reserved IP Name + Specifies the reserved IP name. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ReservedIPName - Reserved IP Name + Specifies the reserved IP name. - String + String String - - + none @@ -5992,13 +7072,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -6007,174 +7089,130 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get all reserved IP addresses - PS C:\> Get-AzureReservedIP + PS C:\>Get-AzureReservedIP + - Description + This command gets all reserved IP addresses. + + - -----------List all the reserved IP(s) in this subscription. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Get a reserved IP address with a specified name - PS C:\> Get-AzureReservedIP -ReservedIPName $ipName + PS C:\>Get-AzureReservedIP -ReservedIPName $IpName + - Description + This command gets the reserved IP address that has the name specified by the $IpName variable. + + - -----------Get the reserved IP by the name in this subscription. + - Unknown - - + New-AzureReservedIP + + + + Remove-AzureReservedIP + - - + - Get-AzureRole + Get-AzureRoleSize - Returns a list of roles in your Microsoft Azure service. + Gets the role size information for the current subscription. Get - AzureRole + AzureRoleSize - - The Get-AzureRole cmdlet returns a list object with details on the roles in your Microsoft Azure service. If the RoleName parameter is specified, Get-AzureRole returns details on that role only. If the InstanceDetails parameter is specified, additional, instance specific details are returned. + The Get-AzureRoleSize cmdlet gets the role size information for the current subscription. - Get-AzureRole - - ServiceName - - Specifies the name of the Microsoft Azure service. - - String - - - Slot - - Specifies the Microsoft Azure deployment environment. Choices are "Production" or "Staging". - - String - - - RoleName + Get-AzureRoleSize + + InstanceSize - When specified, returns details only on the specified role. + Specifies the role size name, for example: ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7. - String + String - - InstanceDetails + + Profile - When specified, returns details about the instances on each role. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - ServiceName - - Specifies the name of the Microsoft Azure service. - - String - - String - - - - - - - Slot - - Specifies the Microsoft Azure deployment environment. Choices are "Production" or "Staging". - - String - - String - - - - - - - RoleName + + InstanceSize - When specified, returns details only on the specified role. + Specifies the role size name, for example: ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7. - String + String String - - + none - - InstanceDetails + + Profile - When specified, returns details about the instances on each role. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none @@ -6182,13 +7220,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -6197,151 +7237,243 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Production - - This command returns an object with details on all the production roles running on the "MySvc1" service. - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Get role size information - PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Staging –RoleName "MyTestVM3" + PS C:\> Get-AzureRoleSize + + InstanceSize : A6 + RoleSizeLabel : + Cores : 4 + MemoryInMb : 28672 + SupportedByWebWorkerRoles : True + SupportedByVirtualMachines : True + OperationDescription : Get-AzureRoleSize + OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce + OperationStatus : Succeeded + + InstanceSize : A7 + RoleSizeLabel : + Cores : 8 + MemoryInMb : 57344 + SupportedByWebWorkerRoles : True + SupportedByVirtualMachines : True + OperationDescription : Get-AzureRoleSize + OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce + OperationStatus : Succeeded + - This command returns an object with details on the "MyTestVM3" role, running on the staging environment of the "MySvc1" service. + This command gets role size information for the current subscription. + + - - + - -------------------------- Example 3 -------------------------- + Example 2: Get role size information and specify the role size name - PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Production –RoleName "MyTestVM2" -InstanceDetails + PS C:\> Get-AzureRoleSize -InstanceSize A7 + + InstanceSize : A7 + RoleSizeLabel : + Cores : 8 + MemoryInMb : 57344 + SupportedByWebWorkerRoles : True + SupportedByVirtualMachines : True + OperationDescription : Get-AzureRoleSize + OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce + OperationStatus : Succeeded + - This command returns an object with details on the instances of the "MyTestVM2" role running in the production environment on the "MySvc1" service. + This command gets role size information for the specified role size. + + - - + - -------------------------- Example 4 -------------------------- + Example 3: Get role size information for all virtual machines in all of the Azure services - PS C:\> C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Production -InstanceDetails ` - | Format-Table –Auto "InstanceName", "InstanceSize", "InstanceStatus" + PS C:\>Get-AzureService | Get-AzureVM | Get-AzureRoleSize + + - This command returns a table of the instance name, size, and status of all role instances running in the production environment on the "MySvc1" service. + This command gets role size information for all virtual machines in all of the Azure services. + + - - + - Set-AzureRole - - + Get-AzureRole + + + + Get-AzureService + + + + Get-AzureVM + - - + - Get-AzureRoleSize + Get-AzureRole - Get the role size information for the current subscription. + Returns a list of roles in your Microsoft Azure service. Get - AzureRoleSize + AzureRole - - Get the role size information for the current subscription. + The Get-AzureRole cmdlet returns a list object with details on the roles in your Microsoft Azure service. If you specify the RoleName parameter, Get-AzureRole returns details on that role only. If you specify the InstanceDetails parameter, additional, instance-specific details are returned. - Get-AzureRoleSize - - InstanceSize + Get-AzureRole + + ServiceName - The role size name, e.g. ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7, etc. + Specifies the name of the Azure service. String + + Slot + + Specifies the Azure deployment environment. The acceptable values for this parameter are: Production or Staging. + + + Staging + Production + + + + RoleName + + Specifies the name of the role to get. + + String + + + InstanceDetails + + Specifies that this cmdlet returns details about the instances on each role. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - - InstanceSize + + InstanceDetails + + Specifies that this cmdlet returns details about the instances on each role. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + RoleName + + Specifies the name of the role to get. + + String + + String + + + none + + + ServiceName - The role size name, e.g. ExtraSmall, Small, Large, ExtraLarge, A5, A6, A7, etc. + Specifies the name of the Azure service. String String - - + none + + + Slot + + Specifies the Azure deployment environment. The acceptable values for this parameter are: Production or Staging. + + String + + String + + + none @@ -6349,13 +7481,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -6364,278 +7498,110 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get a list of roles for a service - PS C:\> Get-AzureRoleSize - - InstanceSize : A6 - RoleSizeLabel : - Cores : 4 - MemoryInMb : 28672 - SupportedByWebWorkerRoles : True - SupportedByVirtualMachines : True - OperationDescription : Get-AzureRoleSize - OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce - OperationStatus : Succeeded - - InstanceSize : A7 - RoleSizeLabel : - Cores : 8 - MemoryInMb : 57344 - SupportedByWebWorkerRoles : True - SupportedByVirtualMachines : True - OperationDescription : Get-AzureRoleSize - OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce - OperationStatus : Succeeded + PS C:\>Get-AzureRole -ServiceName "MySvc01" -Slot "Production" + - Description + This command returns an object with details on all the production roles running on the MySvc01 service. + + - ----------- + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Get details on a role running on a service - PS C:\> Get-AzureRoleSize -InstanceSize A7 - - InstanceSize : A7 - RoleSizeLabel : - Cores : 8 - MemoryInMb : 57344 - SupportedByWebWorkerRoles : True - SupportedByVirtualMachines : True - OperationDescription : Get-AzureRoleSize - OperationId : c5ed7b3a-03b3-548d-876b-6688c5b29cce - OperationStatus : Succeeded + PS C:\>Get-AzureRole -ServiceName "MySvc1" -Slot "Staging" -RoleName "MyTestVM3" + - Description + This command returns an object with details on the MyTestVM3 role, running on the staging environment of the MySvc01 service. + + - ----------- + - -------------------------- EXAMPLE 3 -------------------------- + Example 3: Get instance information on instances of a role running on a service - PS C:\> Get-AzureService | Get-AzureVM | Get-AzureRoleSize - - # Output of the role size information for all VMs in all the cloud services + PS C:\>Get-AzureRole -ServiceName "MySvc01" -Slot "Production" -RoleName "MyTestVM02" -InstanceDetails + + + This command returns an object with details on the instances of the MyTestVM02 role running in the production environment on the MySvc01 service. + + + + + + + + + + + Example 4: Get a table of the role instances associated with a service + + + + + PS C:\>Get-AzureRole -ServiceName "MySvc01" -Slot "Production" -InstanceDetails | Format-Table -Auto "InstanceName", "InstanceSize", "InstanceStatus" + - Description + This command returns a table of the instance name, size, and status of all role instances running in the production environment on the MySvc01 service. + + - ----------- + - Unknown - - + Set-AzureRole + - - + - Get-AzureService + Get-AzureServiceADDomainExtension - Returns an object with information about the cloud services for the current subscription. - - - - - Get - AzureService - - - - - The Get-AzureService cmdlet returns a list object with all of the Microsoft Azure cloud services associated with the current subscription. If the ServiceName parameter is specified, Get-AzureService will return information on only the matching service. - - - - Get-AzureService - - ServiceName - - If specified, returns information on the specified service. - - String - - - - - - ServiceName - - If specified, returns information on the specified service. - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - HostedServiceContext - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureService - - This command returns a list object that contains information about all of the Microsoft Azure services associated with the current subscription. - - - - - - - - - - -------------------------- Example 2 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureService –ServiceName $MySvc - - This command returns information about the $MySvc service. - - - - - - - - - - -------------------------- Example 3 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureService | Get-Member - - This command displays the properties and methods that are available from the Get-AzureService cmdlet. - - - - - - - - - - - - Set-AzureService - - - - - New-AzureService - - - - - - - - - Get-AzureServiceADDomainExtension - - This cmdlet gets the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. + Gets the cloud service Active Directory (AD) domain extension that applies to all roles or to named roles at a specified deployment slot. @@ -6645,56 +7611,73 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - - This cmdlet gets the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. + The Get-AzureServiceADDomainExtension cmdlet gets the cloud service AD domain extension that applies to all roles or named roles at a specified deployment slot. Get-AzureServiceADDomainExtension - + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure service name of the deployment. - String + String - + Slot - - + Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure service name of the deployment. - String + String String - - + none - + Slot - - + Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. - String + String String - - + none @@ -6702,13 +7685,15 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + @@ -6717,61 +7702,57 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get the AD domain extension for a specified service - PS C:\> Get-AzureServiceADDomainExtension -ServiceName $svc + PS C:\>Get-AzureServiceADDomainExtension -ServiceName $Svc + - Description + This command gets the AD domain extension for the service specified in $Svc. + + - -----------This command returns the information of the cloud service AD domain extensions enabled on the roles of a certain deployment. + - Unknown - - + Remove-AzureServiceADDomainExtension + + + + Set-AzureServiceADDomainExtension + - - + Get-AzureServiceAntimalwareConfig - Gets configuration details for the Microsoft Antimalware extension for a service. + Gets configuration details for the Microsoft Antimalware service extension. @@ -6781,35 +7762,59 @@ New-AzureVMConfig -Name "MyNonDomainVM" -InstanceSize Small -ImageName $img ` - The Get-AzureServiceAntimalwareConfig cmdlet gets the antimalware configuration and monitoring configuration details associated with the Microsoft Antimalware extension for a cloud service. Get-AzureServiceAntimalwareConfig - + ServiceName Specifies the name of the cloud service. String - + Slot Specifies a deployment slot. Valid values are: + -- Production + -- Staging + The default value is Production. - String + + Production + Staging + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName Specifies the name of the cloud service. @@ -6821,17 +7826,20 @@ The default value is Production. none - + Slot Specifies a deployment slot. Valid values are: + -- Production + -- Staging + The default value is Production. - String + String String @@ -6844,13 +7852,15 @@ The default value is Production. - + + - - + + + @@ -6859,61 +7869,56 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1: Get configuration for a service -------------------------- + Example 1: Get a configuration for a service - PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" + PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" + This command returns the antimalware configuration object for the specified service name. Because this command does not specify the Slot parameter, the command gets the configuration for the default slot, Production. For services that have monitoring enabled, the command also returns a monitoring configuration object. + + - - + - -------------------------- Example 2: Get configuration for a service for the Staging slot -------------------------- + Example 2: Get a configuration for a service for the Staging slot - PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" -Slot Staging + PS C:\>Get-AzureServiceAntimalwareConfig -ServiceName "ContosoService03" -Slot Staging + This command returns the antimalware configuration object for the specified service name. Because this command specifies a value of Staging for the Slot parameter, the command gets the configuration for the Staging slot. For services that have monitoring enabled, the command also returns a monitoring configuration object. + + - - + @@ -6925,22 +7930,19 @@ The default value is Production. Remove-AzureServiceAntimalwareExtension - - + Set-AzureServiceAntimalwareExtension - - + - - + Get-AzureServiceAvailableExtension - Get information for the latest available extensions for hosted services. + Gets information about the available extensions for hosted services. @@ -6950,128 +7952,155 @@ The default value is Production. - - Get information for the latest available extensions for hosted services. + The Get-AzureServiceAvailableExtension cmdlet gets information for the latest available extensions for hosted services. Get-AzureServiceAvailableExtension - + ExtensionName - The Extension Name. + Specifies the extension name. - String + String - + ProviderNamespace - The Extension Provider Namespace. + Specifies the extension provider namespace. - String + String + + + AllVersions + + Indicates that this cmdlet gets all versions of an extension. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile Get-AzureServiceAvailableExtension - + ExtensionName - The Extension Name. + Specifies the extension name. - String + String - + ProviderNamespace - The Extension Provider Namespace. + Specifies the extension provider namespace. - String + String - - AllVersions + + Profile - Specify to list all versions of an extension. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile Get-AzureServiceAvailableExtension - + ExtensionName - The Extension Name. + Specifies the extension name. - String + String - + ProviderNamespace - The Extension Provider Namespace. + Specifies the extension provider namespace. - String + String - + Version - The Extension Version. + Specifies the extension version. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - - ExtensionName + + AllVersions - The Extension Name. + Indicates that this cmdlet gets all versions of an extension. - String + SwitchParameter - String + SwitchParameter - - + none - - ProviderNamespace + + ExtensionName - The Extension Provider Namespace. + Specifies the extension name. - String + String String - - + none - - AllVersions + + Profile - Specify to list all versions of an extension. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - Version + + ProviderNamespace - The Extension Version. + Specifies the extension provider namespace. - String + String String - - + none + + + Version + + Specifies the extension version. + + String + + String + + + none @@ -7079,13 +8108,15 @@ The default value is Production. - + + - - + + + @@ -7094,37 +8125,28 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get available extensions - PS C:\> Get-AzureServiceAvailableExtension + PS C:\>Get-AzureServiceAvailableExtension ProviderNameSpace : Microsoft.Windows.Azure.Extensions ExtensionName : RDP @@ -7142,23 +8164,26 @@ The default value is Production. name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> OperationDescription : Get-AzureServiceAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded + OperationStatus : Succeeded + - Description + This command gets all available extensions. + + - ----------- + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Get extensions in a specified namespace - PS C:\> Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName RDP -AllVersions + PS C:\>Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName "RDP" -AllVersions ProviderNameSpace : Microsoft.Windows.Azure.Extensions ExtensionName : RDP @@ -7176,23 +8201,26 @@ The default value is Production. name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> OperationDescription : Get-AzureServiceAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded + OperationStatus : Succeeded + - Description + This command gets the extensions with a specified name in a specified namespace. + + - ----------- + - -------------------------- EXAMPLE 3 -------------------------- + Example 3: Get a specific version of an extension - PS C:\> Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName RDP -Version 1.0.0.1 + PS C:\>Get-AzureServiceAvailableExtension -ProviderNamespace Microsoft.Windows.Azure.Extensions -ExtensionName "RDP" -Version 1.0.0.1 ProviderNameSpace : Microsoft.Windows.Azure.Extensions ExtensionName : RDP @@ -7210,31 +8238,32 @@ The default value is Production. name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> OperationDescription : Get-AzureServiceAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded + OperationStatus : Succeeded + - Description + This command gets information about a specific version of an extension. + + - ----------- + - Unknown - - + Get-AzureServiceExtension + - - + Get-AzureServiceDiagnosticsExtension - This cmdlet gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + Gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. @@ -7244,54 +8273,73 @@ The default value is Production. - - This cmdlet gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + The Get-AzureServiceDiagnosticsExtension cmdlet gets the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. Get-AzureServiceDiagnosticsExtension - + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure service name of the deployment. - String + String String - - + none - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + String String - - + none @@ -7299,13 +8347,15 @@ The default value is Production. - + + - - + + + @@ -7314,61 +8364,57 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Enable a diagnostic extension - PS C:\> Get-AzureServiceDiagnosticsExtension -ServiceName $svc + PS C:\>Get-AzureServiceDiagnosticsExtension -ServiceName $Svc + - Description + This command enables a diagnostic service across all roles. + + - -----------This command returns the information of the cloud service diagnostics extensions enabled on the roles of the Production deployment in the service $svc. + - Unknown - - + Remove-AzureServiceDiagnosticsExtension + + + + Set-AzureServiceDiagnosticsExtension + - - + Get-AzureServiceExtension - This cmdlet gets existing cloud service extensions that are applied on a deployment. + Gets cloud service extensions that are applied on a deployment. @@ -7378,96 +8424,111 @@ The default value is Production. - - This cmdlet gets existing cloud service extensions that are applied on a deployment. + The Get-AzureServiceExtension cmdlet gets existing cloud service extensions that are applied on a deployment. Get-AzureServiceExtension - + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure service name of the deployment. - String + String - + Slot - - + Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + - + ExtensionName - The Extension Name. + Specifies the extension name. - String + String - + ProviderNamespace - The Extension Provider Namespace. + Specifies the extension provider namespace. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - ServiceName + + ExtensionName - Specifies the Microsoft Azure service name of the deployment. + Specifies the extension name. - String + String String - - + none - - Slot + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile + + AzureProfile + + + none + + + ProviderNamespace + + Specifies the extension provider namespace. + + String String - - + none - - ExtensionName + + ServiceName - The Extension Name. + Specifies the Azure service name of the deployment. - String + String String - - + none - - ProviderNamespace + + Slot - The Extension Provider Namespace. + Specifies the deployment environment. The acceptable values for this parameter are: Production or Staging. - String + String String - - + none @@ -7475,13 +8536,15 @@ The default value is Production. - + + - - + + + @@ -7490,73 +8553,53 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Get-AzureServiceExtension -ServiceName $svc -Slot Production -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions - - Description - - - - -----------Get existing RDP extensions applied on all roles in the production deployment slot. - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Get a specified extension - PS C:\> Get-AzureServiceExtension -ServiceName $svc -Slot Production -Role WebRole1 -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions + PS C:\>Get-AzureServiceExtension -ServiceName $Svc -Slot "Production" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" + - Description + This command gets the cloud service extension with the specified name and namespace. + + - -----------Get existing RDP extensions applied on the 'WebRole1' role in the production deployment slot. + - Unknown - - + Remove-AzureServiceExtension + + + + Set-AzureServiceExtension + - - + Get-AzureServiceRemoteDesktopExtension @@ -7570,54 +8613,73 @@ The default value is Production. - - This cmdlet gets the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. + The Get-AzureServiceRemoteDesktopExtension cmdlet gets the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. Get-AzureServiceRemoteDesktopExtension - + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure service name of the deployment. - String + String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure service name of the deployment. - String + String String - - + none - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + String String - - + none @@ -7625,13 +8687,15 @@ The default value is Production. - + + - - + + + @@ -7640,98 +8704,107 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get remote desktop extension for the specified service - PS C:\> Get-AzureServiceRemoteDesktopExtension -ServiceName $svc + PS C:\>Get-AzureServiceRemoteDesktopExtension -ServiceName $svc + - Description + This command gets the remote desktop extension for the specified service. + + - -----------This command returns the information of the cloud service remote desktop extensions enabled on the roles of a certain deployment. + - Unknown - - + Set-AzureServiceRemoteDesktopExtension + - - + - Get-AzureStaticVNetIP + Get-AzureService - Get the static VNet IP address information from a VM object, if any. + Returns an object with information about the cloud services for the current subscription. Get - AzureStaticVNetIP + AzureService - - Get the static VNet IP address information from a VM object, if any. + The Get-AzureService cmdlet returns a list object with all of the Azure cloud services associated with the current subscription. If you specify the ServiceName parameter, Get-AzureService returns information on only the matching service. - Get-AzureStaticVNetIP - - VM + Get-AzureService + + ServiceName - Persistent VM object. + Specifies the name of a service on which to return information. - IPersistentVM + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - VM + + Profile - Persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile + + + none + + + ServiceName + + Specifies the name of a service on which to return information. + + String + + String - - + none @@ -7739,60 +8812,235 @@ The default value is Production. - + + - - + + + - - - + HostedServiceContext + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - - - - Unknown - - + + Example 1: Get information about all services + + + + + PS C:\>Get-AzureService + + + This command returns an object that contains information about all of the Azure services associated with the current subscription. + + + + + + + + + + + Example 2: Get information about a specified service + + + + + PS C:\>Get-AzureService -ServiceName $MySvc + + + This command returns information about the $MySvc service. + + + + + + + + + + + Example 3: Display available methods and properties + + + + + PS C:\>Get-AzureService | Get-Member + + + This command displays the properties and methods that are available from the Get-AzureService cmdlet. + + + + + + + + + + + + + New-AzureService + + + + Set-AzureService + + + + + + + Get-AzureStaticVNetIP + + Gets the static VNet IP address information from a virtual machine object, if any. + + + + + Get + AzureStaticVNetIP + + + + The Get-AzureStaticVNetIP cmdlet gets the static virtual network (VNet) IP address information from a virtual machine object, if any. + + + + Get-AzureStaticVNetIP + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies a persistent virtual machine object. + + IPersistentVM + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies a persistent virtual machine object. + + IPersistentVM + + IPersistentVM + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1: + + + + + + + + + + + + + + + + + + + + Set-AzureStaticVNetIP + - - + Get-AzureStorageAccount - Gets the storage accounts for the current Microsoft Azure subscription. + Gets the storage accounts for the current Azure subscription. @@ -7802,34 +9050,51 @@ The default value is Production. - - The Get-AzureStorageAccount cmdlet returns an object with the details about the storage accounts for the current subscription. If the StorageAccountName parameter is specified, then only that storage account is returned. + The Get-AzureStorageAccount cmdlet returns an object containing information about the storage accounts for the current subscription. If the StorageAccountName parameter is specified, then only information about the specified storage account is returned. Get-AzureStorageAccount - + StorageAccountName - If specified, the cmdlet returns only the specified storage account object. + Specifies the name of a storage account. If specified, this cmdlet returns only the specified storage account object. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + StorageAccountName - If specified, the cmdlet returns only the specified storage account object. + Specifies the name of a storage account. If specified, this cmdlet returns only the specified storage account object. - String + String String - - + none @@ -7837,13 +9102,15 @@ The default value is Production. - + + - - + + + @@ -7851,77 +9118,81 @@ The default value is Production. ManagementOperationContext - + + - - + + + - - - - + + - - + - node-dev, php-dev - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + Type help node-dev to get help on Node.js development-related cmdlets. Type help php-dev to get help on PHP development-related cmdlets. - -------------------------- Example 1 -------------------------- + Example 1: Return all storage accounts - PS C:\> C:\PS>Get-AzureStorageAccount + PS C:\>Get-AzureStorageAccount + This command returns an object with all the storage accounts associated with the current subscription. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Return account information for a specified account - PS C:\> C:\PS>Get-AzureStorageAccount –StorageAccountName "mystore1" + PS C:\>Get-AzureStorageAccount -StorageAccountName "ContosoStore01" + - This command returns an object with only the "mystore1" account information. + This command returns an object with only the ContosoStore01 account information. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Display a table of storage accounts - PS C:\> C:\PS>Get-AzureStorageAccount | Format-Table -auto @{Label="Name";Expression={$_.StorageAccountName}},"Label","Location" + PS C:\>Get-AzureStorageAccount | Format-Table -AutoSize -Property @{Label="Name";Expression={$_.StorageAccountName}},"Label","Location" + This command returns an object with all the storage accounts associated with the current subscription, and outputs them as a table showing the account name, the account label, and the storage location. + + - - + @@ -7929,27 +9200,19 @@ The default value is Production. New-AzureStorageAccount - - + Set-AzureStorageAccount - - - - - Get-AzureStorageAccount - - + - - + Get-AzureStorageKey - Returns the primary and secondary storage account keys for a Microsoft Azure storage account. + Returns the primary and secondary storage account keys for an Azure storage account. @@ -7959,23 +9222,41 @@ The default value is Production. - - The Get-AzureStorageKey cmdlet returns an object with the storage account name, the primary account key, and the secondary account key of the specified Microsoft Azure storage account as properties. + The Get-AzureStorageKey cmdlet returns an object with the Azure Storage account name, the primary account key, and the secondary account key of the specified Azure storage account as properties. Get-AzureStorageKey - + StorageAccountName Specifies the storage account name. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + StorageAccountName Specifies the storage account name. @@ -7985,8 +9266,7 @@ The default value is Production. String - - + none @@ -7994,13 +9274,15 @@ The default value is Production. - + + - - + + + @@ -8009,60 +9291,62 @@ The default value is Production. - + + - - + + + - - - - + + - - + - node-dev, php-dev - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + To get help with Node.js, use the help node-dev command. For help with PHP extensions, use the help php-dev command. - -------------------------- Example 1 -------------------------- + Example 1: Get an object that contains primary and secondary storage keys - PS C:\> Get-AzureStorageKey –StorageAccountName "mystore1" + PS C:\>Get-AzureStorageKey -StorageAccountName "ContosoStore01" + - This command gets an object with the primary and secondary storage keys for the "mystore1" storage account. + This command gets an object with the primary and secondary storage keys for the ContosoStore01 storage account. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Get the primary storage account key and store it in a variable - PS C:\> $myStoreKey = (Get-AzureStorageKey –StorageAccountName "mystore1").Primary + PS C:\>$ContosoStoreKey = (Get-AzureStorageKey -StorageAccountName "ContosoStore01").Primary + - This command puts the primary storage account key for the "mystore1" storage account in the $myStoreKey variable. + This command puts the primary storage account key for the ContosoStore01 storage account in the $ContosoStoreKey variable. + + - - + @@ -8070,37 +9354,31 @@ The default value is Production. Get-AzureStorageAccount - - + New-AzureStorageAccount - - + New-AzureStorageKey - - + Remove-AzureStorageAccount - - + Set-AzureStorageAccount - - + - - + Get-AzureSubnet - Gets a list of subnets associated with the specified Microsoft Azure virtual machine. + Gets a list of subnets associated with the specified Azure virtual machine. @@ -8110,13 +9388,19 @@ The default value is Production. - The Get-AzureSubnet cmdlet returns a list the subnets associated with the specified virtual machine. Use Get-AzureVM to specify the virtual machine. Get-AzureSubnet - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM Specifies the virtual machine object from which to get the subnet list. @@ -8126,7 +9410,19 @@ The default value is Production. - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM Specifies the virtual machine object from which to get the subnet list. @@ -8136,8 +9432,7 @@ The default value is Production. IPersistentVM - - + none @@ -8145,13 +9440,15 @@ The default value is Production. - + + - - + + + @@ -8160,45 +9457,39 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get subnets for a virtual machine - PS C:\> C:\PS>$myVM = Get-AzureVM –ServiceName "MySvc" –Name "MyVM" - C:\PS>Get-AzureSubnet –VM $myVM + PS C:\>$VM = Get-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine01" +C:\PS> Get-AzureSubnet -VM $VM + - This example gets the Microsoft Azure subnets for the virtual machine "MyVM" running in "MySvc" + The first command gets a virtual machine named VirtualMachine01 in the service named ContosoService03, and then stores it in the $VM variable. + The second command gets the Azure subnets for the virtual machine in $VM. + + - - + @@ -8206,257 +9497,73 @@ The default value is Production. Get-AzureVM - - + + + + Set-AzureSubnet + - - + - Get-AzureVM + Get-AzureVMAccessExtension - Retrieves information from one or more Microsoft Azure virtual machines. + Gets the VMAccess extension applied on a virtual machine. Get - AzureVM + AzureVMAccessExtension - - The Get-AzureVM cmdlet retrieves information about virtual machines running in Microsoft Azure. It returns an object with information on a specific virtual machine, or if no virtual machine is specified, for all the virtual machines in the specified service of the current subscription. + The Get-AzureVMAccessExtension cmdlet gets the VMAccess extension applied on a virtual machine. - Get-AzureVM - - - Get-AzureVM - - ServiceName + Get-AzureVMAccessExtension + + Profile - The name of the cloud service for which to return virtual machine information. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - Name + + VM - Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. + Specifies the persistent virtual machine object. - String + IPersistentVM - - ServiceName - - The name of the cloud service for which to return virtual machine information. - - String - - String - - - - - - - Name + + Profile - Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM1" - - This command returns an object with information on the "MyVM1" virtual machine running in the "MySvc1" cloud service. - - - - - - - - - - -------------------------- Example 2 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" - - This command retrieves a list object with information on all of the virtual machines running in the "MySvc1" cloud service. - - - - - - - - - - -------------------------- Example 3 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" ` - | Format-Table –auto "Name",@{Expression={$_.InstanceUpgradeDomain};Label="UpgDom";Align="Right"},"InstanceStatus" - - This command displays a table showing the virtual machines running on the "MySvc1" service, their Upgrade Domain, and the current status of each machine. - - - - - - - - - - - - New-AzureVMConfig - - - - - Remove-AzureVM - - - - - Restart-AzureVM - - - - - Start-AzureVM - - - - - Stop-AzureVM - - - - - Update-AzureVM - - - - - New-AzureVM - - - - - - - - - Get-AzureVMAccessExtension - - This cmdlet gets the VMAccess extension (if any) applied on the VM. - - - - - Get - AzureVMAccessExtension - - - - - This cmdlet gets the VMAccess extension (if any) applied on the VM. - - - - Get-AzureVMAccessExtension - - VM - - The persistent VM object. - - IPersistentVM - - - - - + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - + none @@ -8464,13 +9571,15 @@ The default value is Production. - + + - - + + + @@ -8479,61 +9588,57 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get the VMAccess extension for a virtual machine - PS C:\> Get-AzureVMAccessExtension -VM $vm; + PS C:\>Get-AzureVMAccessExtension -VM $VM; + - Description + This command gets the VMAccess extension for a virtual machine. + + - -----------This cmdlet gets the VMAccess extension (if any) applied on the VM. + - Unknown - - + Remove-AzureVMAccessExtension + + + + Set-AzureVMAccessExtension + - - + Get-AzureVMAvailableExtension - Get information for the latest available extensions for VMs. + Gets information for the latest available extensions for virtual machines. @@ -8543,128 +9648,155 @@ The default value is Production. - - Get information for the latest available extensions for VMs. + The Get-AzureVMAvailableExtension cmdlet gets information for the latest available extensions for virtual machines. Get-AzureVMAvailableExtension - + ExtensionName - The Extension Name. + Specifies the name of the available extension. - String + String - + Publisher - The Extension Publisher. + Specifies the publisher of the extension. - String + String + + + AllVersions + + Indicates that this cmdlet lists all versions of an extension. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile Get-AzureVMAvailableExtension - + ExtensionName - The Extension Name. + Specifies the name of the available extension. - String + String - + Publisher - The Extension Publisher. + Specifies the publisher of the extension. - String + String - - AllVersions + + Profile - Specify to list all versions of an extension. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile Get-AzureVMAvailableExtension - + ExtensionName - The Extension Name. + Specifies the name of the available extension. - String + String - + Publisher - The Extension Publisher. + Specifies the publisher of the extension. - String + String - + Version - The Extension Version. + Specifies the version of the extension. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + + AllVersions + + Indicates that this cmdlet lists all versions of an extension. + + SwitchParameter + + SwitchParameter + + + none + + ExtensionName - The Extension Name. + Specifies the name of the available extension. - String + String String - - + none - - Publisher + + Profile - The Extension Publisher. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - AllVersions + + Publisher - Specify to list all versions of an extension. + Specifies the publisher of the extension. - SwitchParameter + String - SwitchParameter + String - - + none - + Version - The Extension Version. + Specifies the version of the extension. String String - - + none @@ -8672,13 +9804,15 @@ The default value is Production. - + + - - + + + @@ -8687,39 +9821,29 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get information for the latest available extensions - PS C:\> Get-AzureVMAvailableExtension - - Publisher : Microsoft.Compute + PS C:\>Get-AzureVMAvailableExtension + Publisher : Contoso.Compute ExtensionName : VMAccessAgent Version : 1.0 PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> @@ -8744,31 +9868,33 @@ The default value is Production. </xs:complexType> </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded + OperationStatus : Succeeded + - Description + This command gets information for the latest available extensions for all virtual machines. + + - ----------- + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Get information from a specified extension name - PS C:\> Get-AzureVMAvailableExtension -Publisher Microsoft.Compute -ExtensionName VMAccessAgent -AllVersions - - Publisher : Microsoft.Compute + PS C:\>Get-AzureVMAvailableExtension -Publisher Contoso.Compute -ExtensionName "VMAccessAgent" -AllVersions + Publisher : Contoso.Compute ExtensionName : VMAccessAgent Version : 1.0.2 - PublicConfigurationSchema : + PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> @@ -8781,7 +9907,7 @@ The default value is Production. </xs:element> </xs:schema> - PrivateConfigurationSchema : + PrivateConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> @@ -8794,12 +9920,12 @@ The default value is Production. </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx OperationStatus : Succeeded - Publisher : Microsoft.Compute + Publisher : Contoso.Compute ExtensionName : VMAccessAgent Version : 1.0.3 PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> @@ -8824,28 +9950,30 @@ The default value is Production. </xs:complexType> </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded + OperationStatus : Succeeded + - Description + This command gets information from all versions of the extension named VMAccessAgent and the publisher named Contoso.Computer. + + - ----------- + - -------------------------- EXAMPLE 3 -------------------------- + Example 3: Get information from a specific virtual machine extension by version number - PS C:\> Get-AzureVMAvailableExtension -Publisher Microsoft.Compute -ExtensionName VMAccessAgent -Version 1.0.3 - - Publisher : Microsoft.Compute + PS C:\>Get-AzureVMAvailableExtension -Publisher Contoso.Compute -ExtensionName VMAccessAgent -Version 1.0.3 + Publisher : Contoso.Compute ExtensionName : VMAccessAgent Version : 1.0.3 PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?> @@ -8870,34 +9998,35 @@ The default value is Production. </xs:complexType> </xs:element> </xs:schema> - SampleConfig : + SampleConfig : OperationDescription : Get-AzureVMAvailableExtension OperationId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - OperationStatus : Succeeded + OperationStatus : Succeeded + - Description + This command gets information for the extension named VMAccessAgent and the publisher named Contoso.Compute for the extension version 1.0.3. + + - ----------- + - Unknown - - + Azure Service Cmdlets + - - + Get-AzureVMBGInfoExtension - This cmdlet gets the BGInfo extension (if any) applied on the VM. + Gets the BGInfo extension applied on a virtual machine. @@ -8907,34 +10036,51 @@ The default value is Production. - - This cmdlet gets the BGInfo extension (if any) applied on the VM. + The Get-AzureVMBGInfoExtension cmdlet gets the BGInfo extension applied on a virtual machine. Get-AzureVMBGInfoExtension - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - + none @@ -8942,13 +10088,15 @@ The default value is Production. - + + - - + + + @@ -8957,98 +10105,111 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get the BGInfo extension applied on a specified virtual machine - PS C:\> Get-AzureVMBGInfoExtension -VM $vm; + PS C:\>Get-AzureVMBGInfoExtension -VM $VM; + - Description + This command gets the BGInfo extension applied on a specified virtual machine + + - -----------This cmdlet gets the BGInfo extension (if any) applied on the VM. + - Unknown - - + Remove-AzureVMBGInfoExtension + + + + Set-AzureVMBGInfoExtension + - - + - Get-AzureVMCustomScriptExtension + Get-AzureVMChefExtension - Get Azure VM Custom Script Extension Information. + Gets the Chef extension applied on a virtual machine. Get - AzureVMCustomScriptExtension + AzureVMChefExtension - - Get Azure VM Custom Script Extension Information. + The Get-AzureVMChefExtension cmdlet gets the Chef extension applied on a virtual machine. - Get-AzureVMCustomScriptExtension - + Get-AzureVMChefExtension + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - + none @@ -9056,13 +10217,15 @@ The default value is Production. - + + - - + + + @@ -9071,102 +10234,115 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get the Chef extension applied on the specified virtual machine - PS C:\> Get-AzureVMCustomScriptExtension -VM $vm; + PS C:\>Get-AzureVMChefExtension -VM $VM; + - Description + This command gets the Chef extension applied on the specified virtual machine. + + - ----------- + - Unknown - - + Remove-AzureVMChefExtension + + + + Set-AzureVMChefExtension + + + + Azure Service Cmdlets + - - + - Get-AzureVMDiagnosticsExtension + Get-AzureVMCustomScriptExtension - - + Gets information from an Azure virtual machine custom script extension. Get - AzureVMDiagnosticsExtension + AzureVMCustomScriptExtension - - - + The Get-AzureVMCustomScriptExtension cmdlet gets information from an Azure virtual machine custom script extension. - Get-AzureVMDiagnosticsExtension - + Get-AzureVMCustomScriptExtension + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - - + Specifies the persistent virtual machine object. IPersistentVM - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - - + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - + none @@ -9174,13 +10350,15 @@ The default value is Production. - + + - - + + + @@ -9189,116 +10367,130 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + + + Example 1: Get an Azure virtual machine script extension + + + + + PS C:\>Get-AzureVMCustomScriptExtension -VM $VM; + + + This command gets an Azure virtual machine script extension stored in the variable $VM. + + + + + + + + + + + Remove-AzureVMCustomScriptExtension + + + + Set-AzureVMCustomScriptExtension + + + + Azure Service Cmdlets + + - - + - - Get-AzureVMDscExtension - + Get-AzureVMDiagnosticsExtension - Gets the settings of the DSC extension on a particular VM. + Gets the settings of the Azure Diagnostics extension on a virtual machine. - - + Get - AzureVMDscExtension - - + AzureVMDiagnosticsExtension + - Gets the settings of the DSC extension on a particular VM. + The Get-AzureVMDiagnosticsExtension cmdlet gets the settings of the Microsoft Azure Diagnostics extension on a virtual machine. - - Get-AzureVMDscExtension - - VM + Get-AzureVMDiagnosticsExtension + + Profile - The Virtual Machine to get the settings from. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - - Version + + VM - The specific version of the DSC extension that Get-AzureVMDSCExtension will get the settings from. + Specifies the persistent virtual machine object. - string + IPersistentVM - - - Version + + Profile - The specific version of the DSC extension that Get-AzureVMDSCExtension will get the settings from. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - string + AzureProfile - - + none - + VM - The Virtual Machine to get the settings from. + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - + none - - - + + + + + - @@ -9306,151 +10498,176 @@ The default value is Production. - Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionContext - - + + + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - + + Example 1: Get the diagnostics extension applied to a virtual machine + + + + + PS C:\>Get-AzureVMDiagnosticsExtension -VM $VM + + + This command gets the diagnostics extension applied to the specified virtual machine as stored in the variable $VM. + + + + + + + + + - - - + Remove-AzureVMDiagnosticsExtension + + + + Set-AzureVMDiagnosticsExtension - - + - - Get-AzureVMDscExtensionStatus - + Get-AzureVMDscExtensionStatus - Get the DSC Extension status for all the vm's deployed in a cloud service or for a particular vm in the service. + Gets the DSC extension status for all the virtual machines deployed in a cloud service or for a particular virtual machine in the service. - - + Get AzureVMDscExtensionStatus - - + - Get the DSC Extension status for all the vm's deployed in a cloud service or for a particular vm in the service. + The Get-AzureVMDscExtensionStatus cmdlet gets the Desired State Configuration (DSC) extension status for all the virtual machines deployed in a cloud service or for a particular virtual machine in the service. - Get-AzureVMDscExtensionStatus - + ServiceName - Name of the service + Specifies the name of the service. - string + String - + Name - Name of the vm + Specifies the name of the virtual machine. - string + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile Get-AzureVMDscExtensionStatus - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies the persistent virtual machine object. - PersistentVMRoleContext + IPersistentVM - - + Name - Name of the vm + Specifies the name of the virtual machine. - string + String - string + String - - + none - - ServiceName + + Profile - Name of the service + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - string + AzureProfile - - + none + + + ServiceName + + Specifies the name of the service. + + String + + String + + + none - + VM - The persistent VM object. + Specifies the persistent virtual machine object. - PersistentVMRoleContext + IPersistentVM - PersistentVMRoleContext + IPersistentVM - - + none - - - + + + + + - @@ -9459,181 +10676,339 @@ The default value is Production. Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionStatusContext - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - + + 1: + + + + + + + + + + + + + + - - - + Get-AzureVMDscExtension + + + + Remove-AzureVMDscExtension + + + + Set-AzureVMDscExtension - - + - Get-AzureVMExtension + Get-AzureVMDscExtension - This cmdlet gets resource extensions applied on VMs. + Gets the settings of the DSC extension on a virtual machine. Get - AzureVMExtension + AzureVMDscExtension - - This cmdlet gets resource extensions applied on VMs. + The Get-AzureVMDscExtension cmdlet gets the settings of the DSC extension on a virtual machine. - Get-AzureVMExtension - - ReferenceName + Get-AzureVMDscExtension + + VM - The extension's reference name. + Specifies the persistent virtual machine object. - String + IPersistentVM - - VM + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM + + + none + + + + + + + + + + + + + + + + + + + + + + + Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.VirtualMachineDscExtensionContext + + + + + + + + + + + + + + + + + Example 1: Get the setting of the DSC Extension on a virtual machine + + + + + PS C:\>Get-AzureVMDscExtension -VM $VMModulesUrl +https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.ps1.zipConfigurationFunction : MyConfiguration.ps1\MyConfigurationProperties : {ServerName}ExtensionName : DSCPublisher : Microsoft.PowershellVersion : 1.*PrivateConfiguration :PublicConfiguration : {"ModulesUrl": "https://myaccount.blob.core.contoso.net/windows-powershell-dsc/MyConfiguration.ps1.zip","ConfigurationFunction": "MyConfiguration.ps1\\MyConfiguration","Properties": {"ServerName": "C:\\MyDirectory"}}ReferenceName : DSCState : EnableRoleName : my-vm + + + + This command gets the settings of the DSC Extension on a virtual machine. + + + + + + + + + + + + + Remove-AzureVMDscExtension + + + + Set-AzureVMDscExtension + + + + Get-AzureVMDscExtensionStatus + + + + + + + Get-AzureVMExtension + + Gets resource extensions applied to virtual machines. + + + + + Get + AzureVMExtension + + + + The Get-AzureVMExtension cmdlet gets resource extensions applied to virtual machines. + + Get-AzureVMExtension - + ExtensionName - The Extension Name. + Specifies the virtual machine extension name. String - + Publisher - The Extension Publisher. + Specifies the publisher of the extension. String - + Version - The Extension Version. + Specifies the version of the extension. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - + VM - - + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Get-AzureVMExtension + + ReferenceName + + Specifies the reference name of the extension. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. IPersistentVM - - ReferenceName + + ExtensionName - The extension's reference name. + Specifies the virtual machine extension name. String String - - + none - - VM + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile - - + none - - ExtensionName + + Publisher - The Extension Name. + Specifies the publisher of the extension. String String - - + none - - Publisher + + ReferenceName - The Extension Publisher. + Specifies the reference name of the extension. - String + String String - - + none - + Version - The Extension Version. + Specifies the version of the extension. - String + String String - - + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM + + + none @@ -9641,13 +11016,15 @@ The default value is Production. - + + - - + + + @@ -9656,98 +11033,92 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get the resource extensions applied to a virtual machine - PS C:\> Get-AzureVM -ServiceName $svc -Name $vm | Get-AzureVMExtension; + PS C:\>Get-AzureVM -ServiceName $SVC -Name $VM | Get-AzureVMExtension; + - Description + This command gets the resource extensions applied to the specified virtual machine as stored in the variable $VM. + + - -----------Get the resource extensions applied on the VM '$vm'. + - Unknown - - + Remove-AzureVMExtension + + + + Set-AzureVMExtension + - - + - Get-AzureVMImage + Get-AzureVMImageDiskConfigSet - The Get-AzureVMImage cmdlet gets the properties on one or a list of OS or VM image in the image repository. + Gets a disk configuration set object from the input image context. Get - AzureVMImage + AzureVMImageDiskConfigSet - - The Get-AzureVMImage cmdlet returns one or a list of OS or VM object(s) with information on one or more operating system images stored in the image repository. The cmdlet returns information for all images in the repository, or about a specific image if its image name is provided. + The Get-AzureVMImageDiskConfigSet cmdlet gets a disk configuration set object from the input image context. - Get-AzureVMImage - - ImageName + Get-AzureVMImageDiskConfigSet + + ImageContext - Specifies the name of the OS or VM image in the image repository. If not specified, all the images will be returned. + Specifies the virtual machine image context. - String + OSImageContext - - ImageName + + ImageContext - Specifies the name of the OS or VM image in the image repository. If not specified, all the images will be returned. + Specifies the virtual machine image context. - String + OSImageContext - String + OSImageContext - - + none @@ -9755,147 +11126,127 @@ The default value is Production. - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Get-AzureVMImage -ImageName MyImage - - Description - - - - -----------This command retrieves the "MyImage" OS or VM image object from the current image repository. - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - - - PS C:\> Get-AzureVMImage - - Description - - - - -----------This command retrieves all the OS and VM images from the current image repository. - - - - - -------------------------- EXAMPLE 3 -------------------------- + Example 1: Get a disk configuration set object from a virtual machine - PS C:\> $subsId = <MySubscriptionID> - C:\PS>$cert = Get-AzureCertificate cert:\LocalMachine\MY\<CertificateThumbprint> - C:\PS>$MyOSImages = Get-AzureVMImage + PS C:\>Get-AzureVMImage -ImageName $Img | Get-AzureVMImageDiskConfigSet + - Description + This command gets a disk configuration set object from a virtual machine. + + - -----------This command sets the subscription context and then retrieves all the images from the image repository. + - Unknown - - + New-AzureVMImageDiskConfigSet + + + + Get-AzureVMImage + - - + - Get-AzureVMImageDiskConfigSet + Get-AzureVMImage - This cmdlet returns an object for disk configuration set, which is from the input image context. + Gets the properties on one or a list of operating systems or a virtual machine image in the image repository. Get - AzureVMImageDiskConfigSet + AzureVMImage - - This cmdlet returns an object for disk configuration set, which is from the input image context. + The Get-AzureVMImage cmdlet gets properties on one or a list of operating systems or a virtual machine image in the image repository. The cmdlet returns information for all images in the repository, or about a specific image if its image name is provided. - Get-AzureVMImageDiskConfigSet - - ImageContext + Get-AzureVMImage + + ImageName + + Specifies the name of the operating system or virtual machine image in the image repository. If you do not specify this parameter, all the images are returned. + + String + + + Profile - The VM image context. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - OSImageContext + AzureProfile - - ImageContext + + ImageName - The VM image context. + Specifies the name of the operating system or virtual machine image in the image repository. If you do not specify this parameter, all the images are returned. - OSImageContext + String - OSImageContext + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile - - + none @@ -9903,71 +11254,118 @@ The default value is Production. - + + - - + + + - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - + + + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get a specific image object from the current image repository. + + + + + PS C:\>Get-AzureVMImage -ImageName Image001 + + + This command gets the image object named Image001 from the current image repository. + + + + + + + + + + + Example 2: Get all images from the current image repository + + + + + PS C:\>Get-AzureVMImage + + + This command retrieves all the images from the current image repository. + + + + + + + + + + + Example 3: Set the subscription context and then get all the images - PS C:\> Get-AzureVMImage -ImageName $img | Get-AzureVMImageDiskConfigSet + PS C:\>$SubsId = <MySubscriptionID> +C:\PS>$Cert = Get-AzureCertificate cert:\LocalMachine\MY\<CertificateThumbprint> +C:\PS>$MyOSImages = Get-AzureVMImage + - Description + This command sets the subscription context and then retrieves all the images from the image repository. + + - ----------- + - Unknown - - + Add-AzureVMImage + + + + Remove-AzureVMImage + + + + Save-AzureVMImage + + + + Update-AzureVMImage + - - + Get-AzureVMMicrosoftAntimalwareExtension @@ -9981,13 +11379,19 @@ The default value is Production. - - The Get-AzureVMMicrosoftAntimalwareExtension cmdlet gets the Microsoft Antimalware extension details for a virtual machine. This cmdlet gets details for virtual machines that have the extension turned on programmatically by using the Set-AzureVMMicrosoftAntimalwareExtension cmdlet. The cmdlet gets the JavaScript Object Notation (JSON) equivalent for the configuration. If monitoring is turned on, the cmdlet also gets an XML representation of the antimalware monitoring configuration. + The Get-AzureVMMicrosoftAntimalwareExtension cmdlet gets the Microsoft Antimalware extension details for a virtual machine. This cmdlet gets details for virtual machines that have the extension turned on programmatically by using the Set-AzureVMMicrosoftAntimalwareExtension cmdlet. The cmdlet gets the JavaScript Object Notation (JSON) equivalent for the configuration. If monitoring is turned on, the cmdlet also gets an .xml representation of the antimalware monitoring configuration. Get-AzureVMMicrosoftAntimalwareExtension - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM Specifies the virtual machine as an IPersistentVM object. @@ -9997,7 +11401,19 @@ The default value is Production. - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM Specifies the virtual machine as an IPersistentVM object. @@ -10014,13 +11430,15 @@ The default value is Production. IPersistentVM - + + - - + + + @@ -10028,43 +11446,37 @@ The default value is Production. VirtualMachineMicrosoftAntimalwareExtensionContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1: Get information for the extension for a virtual machine -------------------------- + Example 1: Get information for the extension for a virtual machine - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Get-AzureVMMicrosoftAntimalwareExtension + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Get-AzureVMMicrosoftAntimalwareExtension + This command gets details for the Microsoft Antimalware extension for a virtual machine. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. Get-AzureVMMicrosoftAntimalwareExtension gets configuration information for the extension. + + - The configuration information for monitoring appears in the output field labeled AntimalwareMonitoringConfiguration. + @@ -10074,29 +11486,21 @@ The default value is Production. Online Version: http://go.microsoft.com/fwlink/?LinkID=402840 - - Get-AzureVM - - - Remove-AzureVMMicrosoftAntimalwareExtension - - + Set-AzureVMMicrosoftAntimalwareExtension - - + - - + Get-AzureVMPuppetExtension - This cmdlet gets the Puppet extension (if any) applied on the VM. + Gets the Puppet extension applied on a virtual machine. @@ -10106,34 +11510,51 @@ The default value is Production. - - This cmdlet gets the Puppet extension (if any) applied on the VM. + The Get-AzureVMPuppetExtension cmdlet gets the Puppet extension applied on a virtual machine. Get-AzureVMPuppetExtension - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - + none @@ -10141,13 +11562,15 @@ The default value is Production. - + + - - + + + @@ -10156,98 +11579,111 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get the Puppet extension applied on a virtual machine - PS C:\> Get-AzureVMPuppetExtension -VM $vm; + PS C:\>Get-AzureVMPuppetExtension -VM $VM + - Description + This command gets the Puppet extension applied on a virtual machine. + + - -----------This cmdlet gets the Puppet extension (if any) applied on the VM. + - Unknown - - + Remove-AzureVMPuppetExtension + + + + Set-AzureVMPuppetExtension + - - + - Get-AzureVNetConfig + Get-AzureVMSqlServerExtension - Gets the Microsoft Azure virtual network configuration from the current subscription. + Gets the settings of the SQL Server IaaS Agent on a particular virtual machine. Get - AzureVNetConfig + AzureVMSqlServerExtension - - The Get-AzureVNetConfig retrieves the virtual network configuration of the current Microsoft Azure subscription. If the ExportToFile parameter is specified, a network configuration file is created. + The Get-AzureVMSqlServerExtension cmdlet gets the settings of the SQL Server infrastructure as a service (IaaS) Agent on a particular virtual machine. - Get-AzureVNetConfig - - ExportToFile + Get-AzureVMSqlServerExtension + + VM - Specifies the path and file name of a network configuration file to be created from the settings. + Specifies the persistent virtual machine object that this cmdlet gets settings from. - String + IPersistentVM + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - ExportToFile + + Profile - Specifies the path and file name of a network configuration file to be created from the settings. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile + + + none + + + VM + + Specifies the persistent virtual machine object that this cmdlet gets settings from. + + IPersistentVM + + IPersistentVM - - + none @@ -10255,13 +11691,15 @@ The default value is Production. - + + - - + + + @@ -10270,126 +11708,200 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get the settings of a SQL Server extension on a virtual machine + + + + + PS C:\>Get-AzureVMSqlServerExtension-VM $VM + ExtensionName : SqlIaaSAgent + Publisher : Microsoft.SqlServer.Management + Version : 1.0 + State : Enable + RoleName : VMName + AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings + AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings + + + Gets the settings of the SQL Server extension on a particular virtual machine. + + + + + + + + + + + Example 2: Get the settings of a SQL Server IaaS Agent on a virtual machine - PS C:\> C:\PS>Get-AzureVNetConfig + PS C:\>Get-AzureVM -ServiceName "Service" -Name "VMName" | Get-AzureVMSqlServerExtension + ExtensionName : SqlIaaSAgent + Publisher : Microsoft.SqlServer.Management + Version : 1.0 + State : Enable + RoleName : VMName + AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings + AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings + - This command gets the virtual network configuration of the current Microsoft Azure subscription and displays it. + Gets the settings of the SQL Server IaaS Agent on a particular virtual machine using piped input. + + - - + - -------------------------- Example 2 -------------------------- + Example 3: Get the settings of specific SQL Server version IaaS Agent on a virtual machine - PS C:\> C:\PS>Get-AzureVNetConfig -ExportToFile "c:\temp\MyAzNets.netcfg" + PS C:\>Get-AzureVMSqlServerExtension -VM $VM -Version "1.0" + ExtensionName : SqlIaaSAgent + Publisher : Microsoft.SqlServer.Management + Version : 1.0 + State : Enable + RoleName : VMName + AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings + AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings + + - This command retrieves the virtual network configuration of the current Microsoft Azure subscription and then saves it to a local file. + This command gets the settings of the particular version of SQL Server IaaS Agent on a virtual machine. + + - - + - Get-AzureVNetSite - - - - - Remove-AzureVNetConfig - - + Remove-AzureVMSqlServerExtension + - Set-AzureVNetConfig - - + Set-AzureVMSqlServerExtension + - - + - Get-AzureVNetConnection + Get-AzureVM - Returns an object with all of the virtual network connections to the specified Microsoft Azure virtual network. + Retrieves information from one or more Azure virtual machines. Get - AzureVNetConnection + AzureVM - - The Get-AzureVNetConnections cmdlet returns an object with all of the current active connections to the specified Microsoft Azure virtual network. + The Get-AzureVM cmdlet retrieves information about virtual machines running in Azure. It returns an object with information on a specific virtual machine, or if no virtual machine is specified, for all the virtual machines in the specified service of the current subscription. - Get-AzureVNetConnection - - VNetName + Get-AzureVM + + ServiceName - Specifies the name of the virtual network from which to return connections. + Specifies the name of the cloud service for which to return virtual machine information. String + + Name + + Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Get-AzureVM + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - - VNetName + + Name + + Specifies the name of the virtual machine for which to retrieve information. If this parameter is not provided, the cmdlet returns a list object with information about all the virtual machines in the specified service. + + String + + String + + + none + + + Profile - Specifies the name of the virtual network from which to return connections. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName + + Specifies the name of the cloud service for which to return virtual machine information. String String - - + none @@ -10397,13 +11909,15 @@ The default value is Production. - + + - - + + + @@ -10412,104 +11926,169 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Retrieve information on a specified virtual machine + + + + + PS C:\>Get-AzureVM -ServiceName "ContosoService01" -Name "VirtualMachine02" + + + This command returns an object with information on the VirtualMachine02 virtual machine running in the ContosoService01 cloud service. + + + + + + + + + + + Example 2: Retrieve information on all virtual machines + + + + + PS C:\>Get-AzureVM -ServiceName "ContosoService01" + + + This command retrieves a list object with information on all of the virtual machines running in the ContosoService01 cloud service. + + + + + + + + + + + Example 3: Display a table of virtual machine statuses - PS C:\> C:\PS>Get-AzureVNetConnection –VNetName "VNet1" + PS C:\>Get-AzureVM -ServiceName "ContosoService01" | Format-Table AutoSize -Property "Name",@{Expression={$_.InstanceUpgradeDomain};Label="UpgDom";Align="Right"},"InstanceStatus" + - Gets a list of all of the current connections to the "VNet1" virtual network. + This command displays a table showing the virtual machines running on the ContosoService01 service, their Upgrade Domain, and the current status of each machine. + + - - + - Start-VirtualNetworkGateway - - + New-AzureVM + - End-VirtualNetworkGateway - - + New-AzureVMConfig + + + + Remove-AzureVM + + + + Restart-AzureVM + + + + Start-AzureVM + + + + Stop-AzureVM + + + + Update-AzureVM + - - + - Get-AzureVNetGateway + Get-AzureVNetConfig - Retrieves an object with information about a Microsoft Azure virtual network gateway. + Gets the Azure virtual network configuration from the current subscription. Get - AzureVNetGateway + AzureVNetConfig - - The Get-AzureVNetGateway cmdlet retrieves an object with information about a Microsoft Azure virtual network gateway from the current Microsoft Azure subscription. A virtual network gateway is a connection between a local network site with a VPN device and a Microsoft Azure virtual network. + The Get-AzureVNetConfig cmdlet retrieves the virtual network configuration of the current Azure subscription. If the ExportToFile parameter is specified, a network configuration file is created. - Get-AzureVNetGateway - - VNetName + Get-AzureVNetConfig + + ExportToFile - Specifies the virtual network name whose virtual network gateway object will be retrieved. + Specifies the path and file name of a network configuration file to be created from the settings. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - VNetName + + ExportToFile - Specifies the virtual network name whose virtual network gateway object will be retrieved. + Specifies the path and file name of a network configuration file to be created from the settings. - String + String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none @@ -10517,13 +12096,15 @@ The default value is Production. - + + - - + + + @@ -10532,114 +12113,134 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get the virtual network configuration of a current Azure subscription + + + + + PS C:\>Get-AzureVNetConfig + + + This command gets the virtual network configuration of the current Azure subscription and displays it. + + + + + + + + + + + Example 2: Get the virtual network configuration of the current Azure subscription and save it to a local file - PS C:\> C:\PS>Get-VNetGateway –VnetName "MyVNet01" + PS C:\>Get-AzureVNetConfig -ExportToFile "c:\temp\MyAzNets.netcfg" + - This command gets a Microsoft Azure virtual network gateway object from the "MyVNet01" virtual network. + This command gets the virtual network configuration of the current Azure subscription and then saves it to a local file. + + - - + + + Get-AzureVNetSite + + + + Remove-AzureVNetConfig + + + + Set-AzureVNetConfig + + - - + - Get-AzureVNetGatewayKey + Get-AzureVNetSite - Returns a shared key that can be used to configure a VPN device. + Gets a list object with information about Azure virtual networks. Get - AzureVNetGatewayKey + AzureVNetSite - - The Get-AzureVNetGatewayKey cmdlet returns the shared key used by the VPN device on the specified LocalNetworkSiteName to authenticate to the Microsoft Azure Virtual Network Gateway for the specified Microsoft Azure virtual network. + The Get-AzureVNetSite cmdlet gets a list object with information about Azurevirtual networks for the current subscription. If you specify a virtual network name, only information for that virtual network is returned. - Get-AzureVNetGatewayKey - + Get-AzureVNetSite + VNetName - Specifies the name of the Microsoft Azure virtual network that the VPN device connects to. + Specifies a virtual network name to return information about. - String + String - - LocalNetworkSiteName + + Profile - Specifies the local network site name for which to retrieve a shared key. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - VNetName + + Profile - Specifies the name of the Microsoft Azure virtual network that the VPN device connects to. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - LocalNetworkSiteName + + VNetName - Specifies the local network site name for which to retrieve a shared key. + Specifies a virtual network name to return information about. - String + String String - - + none @@ -10647,13 +12248,15 @@ The default value is Production. - + + - - + + + @@ -10662,171 +12265,56 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Get information about all virtual networks in the current subscription - PS C:\> Get-AzureVNetGatewayKey –VNetName "MyVirtualNetwork" –LocalNetworkSiteName "MyBranchOffice" + PS C:\>Get-AzureVNetSite + - This command retrieves a shared-key to allow the VPN device at the specified local network site to authenticate to the specified virtual network. + This command gets information about all the virtual networks in the current subscription. + + - - - - - - - - - - - - - Get-AzureVNetSite - - Returns an object describing Microsoft Azure virtual networks. - - - - - Get - AzureVNetSite - - - - - The Get-AzureVNetSite cmdlet returns a list object with information about Microsoft Azure virtual networks for the current subscription.. If you specify a virtual network name, only information for that virtual network is returned. - - - - Get-AzureVNetSite - - VNetName - - Specifies a virtual network name to return information about. - - String - - - - - - VNetName - - Specifies a virtual network name to return information about. - - String - - String - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVNetSite - - This example retrieves information about all the virtual networks in the current subscription. - - - - - + - -------------------------- Example 2 -------------------------- + Example 2: Get information about a specific virtual network in the current subscription - PS C:\> C:\PS>Get-AzureVNetSite –VNetName "MyProductionNetwork" + PS C:\>Get-AzureVNetSite -VNetName "MyProductionNetwork" + - This example retrieves information on the "MyProductionNetwork" virtual network only. + This command retrieves information on the MyProductionNetwork virtual network only. + + - - + @@ -10834,27 +12322,23 @@ The default value is Production. Get-AzureVNetConfig - - + Remove-AzureVNetConfig - - + Set-AzureVNetConfig - - + - - + Get-AzureWinRMUri - Retrieves the uri to WinRM https listener to a VM or a list of VMs in a hosted service. + Gets the URI to WinRM https listener to a virtual machine or a list of virtual machines in a hosted service. @@ -10864,54 +12348,70 @@ The default value is Production. - - Retrieves the uri to WinRM https listener to a VM or a list of VMs in a hosted service. + The Get-AzureWinRMUri cmdlet gets the URI of the Windows Remote Management (WinRM) https listener to a virtual machine or a list of virtual machines in a hosted service. Get-AzureWinRMUri - + ServiceName Specifies the name of the Microsoft Azure service that hosts the virtual machine. String - + Name - Specifies the name of the virtual machine to which the WinRM Uri is generated. + Specifies the name of the virtual machine to which the WinRM URI is generated. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - ServiceName + + Name - Specifies the name of the Microsoft Azure service that hosts the virtual machine. + Specifies the name of the virtual machine to which the WinRM URI is generated. - String + String String - - + none - - Name + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName - Specifies the name of the virtual machine to which the WinRM Uri is generated. + Specifies the name of the Microsoft Azure service that hosts the virtual machine. String String - - + none @@ -10919,13 +12419,15 @@ The default value is Production. - + + - - + + + @@ -10934,59 +12436,56 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Get the URI of the WinRM https listener to a virtual machine - PS C:\> Get-AzureWinRMUri -ServiceName MyService -Name MyVM + PS C:\>Get-AzureWinRMUri -ServiceName MyService -Name MyVM + - Description + This command gets the UIR of the WinRM https listener to a virtual machine. + + - -----------Returns a URI to WinRM https listener to the specified VM in the specified service. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Get the URI of the WinRM https listener to a virtual machine of a specific service - PS C:\> Get-AzureWinRMUri -ServiceName MyService + PS C:\>Get-AzureWinRMUri -ServiceName MyService + - Description + This command gets the UIR of the WinRM https listener to a virtual machine. + + - -----------Returns a list of URIs to WinRM https listeners to the VMs in the specified service. + @@ -10994,22 +12493,19 @@ The default value is Production. New-AzureVM - - + New-AzureQuickVM - - + - - + Import-AzureVM - Imports a Microsoft Azure virtual machine state from a file. + Imports an Azure virtual machine state from a file. @@ -11019,36 +12515,33 @@ The default value is Production. - - The Import-AzureVM cmdlet imports the previously saved state of a virtual machine from an xml file. This cmdlet is useful when you want to subsequently create a new virtual machine from the imported data. - - Note: Using Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. + The Import-AzureVM cmdlet imports the previously saved state of a virtual machine from an XML file. This cmdlet is useful when you want to subsequently create a virtual machine from the imported data. + Running Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original. Import-AzureVM - + Path - Specifies the path to the file with the previously saved virtual machine state. + Specifies the path of the file with the previously saved virtual machine state. String - + Path - Specifies the path to the file with the previously saved virtual machine state. + Specifies the path of the file with the previously saved virtual machine state. String String - - + none @@ -11056,13 +12549,15 @@ The default value is Production. - + + - - + + + @@ -11071,44 +12566,37 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Import a virtual machine state - PS C:\> C:\PS>Import-AzureVM -Path "C:\VMstate.xml" | New-AzureVM –ServiceName "mynewsvc" + PS C:\>Import-AzureVM -Path "C:\VMstate.xml" | New-AzureVM -ServiceName "ContosoService02" + - This command imports the state of a virtual machine from the "myvm.xml" file, and then creates a new virtual machine in the specified cloud service. + This command imports the state of a virtual machine from the VMstate.xml file, and then creates a virtual machine in the specified cloud service. + + - - + @@ -11116,22 +12604,19 @@ The default value is Production. Export-AzureVM - - + New-AzureVM - - + - - + Move-AzureDeployment - Swaps the deployments in production and staging. + Swaps deployments between production and staging. @@ -11141,34 +12626,51 @@ The default value is Production. - - The Move-AzureDeployment swaps the virtual IP addresses (VIPs) of deployments in production and staging environments. A deployment currently running in the staging environment will be swapped to the production environment, and a deployment running in the production environment will be swapped to the staging environment. If there is a deployment in the staging environment and no deployment in the production environment, the deployment will move to production. If there is no deployment in the staging environment, the cmdlet will fail. + The Move-AzureDeployment cmdlet swaps the virtual IP addresses of deployments in production and staging environments. This cmdlet swaps a deployment that currently runs in the staging environment to the production environment, and a deployment that runs in the production environment to the staging environment. If there is a deployment in the staging environment and no deployment in the production environment, the cmdlet moves the deployment to production. If there is a deployment in the production environment and no deployment in the staging environment, the cmdlet fails. Move-AzureDeployment - + ServiceName - Specifies the name of the service whose production and staging deployments will be swapped. + Specifies the name of the service for which this cmdlet swaps production and staging deployments. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName - Specifies the name of the service whose production and staging deployments will be swapped. + Specifies the name of the service for which this cmdlet swaps production and staging deployments. String String - - + none @@ -11176,13 +12678,15 @@ The default value is Production. - + + - - + + + @@ -11190,44 +12694,37 @@ The default value is Production. ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Swap deployments for a service - PS C:\> C:\PS>Move-AzureDeployment -ServiceName "myservice" + PS C:\>Move-AzureDeployment -ServiceName "ContosoService" + - This command swaps the deployments of the "myservice" service between the production and stanging environments. + This command swaps the deployments of the service named ContosoService between the production and staging environments. + + - - + @@ -11235,32 +12732,31 @@ The default value is Production. Get-AzureDeployment - - + + + + Get-AzureDeploymentEvent + New-AzureDeployment - - + Remove-AzureDeployment - - + Set-AzureDeployment - - + - - + New-AzureAclConfig - Creates a new empty ACL configuration object. + Creates an empty ACL configuration object. @@ -11270,8 +12766,7 @@ The default value is Production. - - The New-AzureAclConfig cmdlet creates a new empty ACL configuration object. + The New-AzureAclConfig cmdlet creates an empty access control list (ACL) configuration object. @@ -11285,13 +12780,15 @@ The default value is Production. - + + - - + + + @@ -11300,44 +12797,37 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Create an ACL configuration object - PS C:\> C:\PS> $acl = New-AzureAclConfig + PS C:\>$Acl = New-AzureAclConfig + - This command will create a new empty ACL configuration object. + This command creates an empty ACL configuration object, and then stores it in the $Acl variable. + + - - + @@ -11345,27 +12835,23 @@ The default value is Production. Get-AzureAclConfig - - + Remove-AzureAclConfig - - + Set-AzureAclConfig - - + - - + New-AzureAffinityGroup - Creates a new affinity group for the current Microsoft Azure subscription. + Creates an affinity group in the current subscription. @@ -11375,93 +12861,109 @@ The default value is Production. - - The New-AzureAffinityGroup cmdlet creates a new affinity group in the current subscription. An affinity group places your services and their resources together in a Microsoft Azure data center. The affinity group members are grouped together for optimal performance. Affinity groups are defined at the subscription level and are available to any subsequent cloud services or storage accounts that you create. Services can be added to an affinity group only at the time of creation. + The New-AzureAffinityGroup cmdlet creates an Azure affinity group in the current Azure subscription. + An affinity group puts your services and their resources together in an Azure datacenter. The affinity group groups members together for optimal performance. Define affinity groups at the subscription level. Your affinity groups are available to any subsequent cloud services or storage accounts that you create. You can add services to an affinity group only when you create it. New-AzureAffinityGroup - + Name - Specifies a name for the new affinity group that is unique to the subscription. + Specifies a name for the affinity group. The name must be unique to the subscription. String - + + Description + + Specifies a description for the affinity group. The description may be up to 1024 characters long. + + String + + Label - Specifies a label for the affinity group. The label may be up to 100 characters in length. + Specifies a label for the affinity group. The label may be up to 100 characters long. - String + String - - Description + + Profile - Specifies a description for the affinity group. The description may be up to 1024 characters in length. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - + Location - Required if AffinityGroup is not specified. The Location parameter specifies the geographical location of the data center where the affinity group will be created. + Specifies the geographical location of the Azure datacenter where this cmdlet creates the affinity group. String - - Name + + Description - Specifies a name for the new affinity group that is unique to the subscription. + Specifies a description for the affinity group. The description may be up to 1024 characters long. - String + String String - - + none - + Label - Specifies a label for the affinity group. The label may be up to 100 characters in length. + Specifies a label for the affinity group. The label may be up to 100 characters long. - String + String String - The same one as the Name + none - - Description + + Location - Specifies a description for the affinity group. The description may be up to 1024 characters in length. + Specifies the geographical location of the Azure datacenter where this cmdlet creates the affinity group. String String - - + none - - Location + + Name - Required if AffinityGroup is not specified. The Location parameter specifies the geographical location of the data center where the affinity group will be created. + Specifies a name for the affinity group. The name must be unique to the subscription. String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none @@ -11469,13 +12971,15 @@ The default value is Production. - + + - - + + + @@ -11484,44 +12988,37 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Create an affinity group - PS C:\> C:\PS>New-AzureAffinityGroup -Name South1 -Location "South Central US" -Label "South Region" -Description "Affinity group for production applications in southern region." + PS C:\>New-AzureAffinityGroup -Name "South01" -Location "South Central US" -Label "South Region" -Description "Affinity group for production applications in southern region." + - This command creates a new affinity group named "South1" in the "South Central US" region and specifies both a label and a description. + This command creates an affinity group named South01 in the South Central US region. The command specifies a label and a description. + + - - + @@ -11529,27 +13026,23 @@ The default value is Production. Get-AzureAffinityGroup - - + Remove-AzureAffinityGroup - - + Set-AzureAffinityGroup - - + - - + New-AzureCertificateSetting - Creates a setting object to insert an existing certificate into new Microsoft Azure virtual machines. + Creates a certificate setting object for a certificate is in a service. @@ -11559,20 +13052,38 @@ The default value is Production. - - The New-AzureCertificateSetting cmdlet creates a certificate setting object for a certificate that has already been added to Microsoft Azure. This certificate setting object can be used by New-AzureProvisioningConfig when creating the configuration object for a new virtual machine using New-AzureVM, or when creating a new virtual machine with New-AzureQuickVM. When included as part of a virtual machine creation script, this adds the specified certificate to the new virtual machine. + The New-AzureCertificateSetting cmdlet creates a certificate setting object for a certificate that is in an Azure service. + You can use a certificate setting object to create a configuration object by using the Add-AzureProvisioningConfig cmdlet. Use a configuration object to create virtual machine by using the New-AzureVM cmdlet. You can use a certificate setting object to create a virtual machine by using the New-AzureQuickVM cmdlet. New-AzureCertificateSetting - + StoreName - Specifies the Certificate Store to place the certificate in. + Specifies the certificate store in which to put the certificate. Valid values are: + +-- AddressBook +-- AuthRoot +-- CertificateAuthority +-- Disallowed +-- My +-- Root +-- TrustedPeople +-- TrustedPublisher - String + + AddressBook + AuthRoot + CertificateAuthority + Disallowed + My + Root + TrustedPeople + TrustedPublisher + - + Thumbprint Specifies the thumbprint of the certificate. @@ -11582,20 +13093,28 @@ The default value is Production. - + StoreName - Specifies the Certificate Store to place the certificate in. + Specifies the certificate store in which to put the certificate. Valid values are: + +-- AddressBook +-- AuthRoot +-- CertificateAuthority +-- Disallowed +-- My +-- Root +-- TrustedPeople +-- TrustedPublisher - String + String String - - + none - + Thumbprint Specifies the thumbprint of the certificate. @@ -11605,8 +13124,7 @@ The default value is Production. String - - + none @@ -11614,13 +13132,15 @@ The default value is Production. - + + - - + + + @@ -11629,78 +13149,102 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Create a certificate setting object - PS C:\> C:\PS>$myWinCert = New-AzureCertificateSetting –Thumbprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –StoreName "My" + PS C:\>New-AzureCertificateSetting -Thumbprint "D7BECD4D63EBAF86023BB41FA5FBF5C2C924902A" -StoreName "My" + - This command creates a certificate setting object for an existing certificate and then stores the object in a variable for later use. + This command creates a certificate setting object for an existing certificate. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Create a virtual machine that uses a configuration setting object - PS C:\> C:\PS>Add-AzureCertificate –ServiceName "MySvc" –CertToDeploy "C:\temp\MyWinCert.cer" - C:\PS>$myWinCert = New-AzureCertificateSetting –Thumbprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –StoreName "My" - C:\PC>New-AzureVMConfig -Name "MyVM2" -InstanceSize Small -ImageName $winImage ` - | Add-AzureProvisioningConfig -Windows -Certificates $myWinCert -Password 'pass@word1' ` - | New-AzureVM -ServiceName "MySvc" + PS C:\>Add-AzureCertificate -ServiceName "ContosoService" -CertToDeploy "C:\temp\ContosoCert.cer" +PS C:\> $CertificateSetting = New-AzureCertificateSetting -Thumbprint "D7BECD4D63EBAF86023BB41FA5FBF5C2C924902A" -StoreName "My" +PS C:\> $Image = Get-AzureVMImage -ImageName "ContosoStandard" +PS C:\> New-AzureVMConfig -Name "VirtualMachine17" -InstanceSize Small -ImageName $Image | Add-AzureProvisioningConfig -Windows -Certificates $CertificateSetting -Password "password" | New-AzureVM -ServiceName "ContosoService" + - This command adds a certificate to the Microsoft Azure service, and then creates a new Windows virtual machine that uses the certificate. + The first command adds the certificate ContosoCert.cer to the service named ContosoService by using the Add-AzureCertificate cmdlet. + The second command creates a certificate setting object, and then stores it in the $CertificateSetting variable. + The third command gets an image from the image repository by using the Get-AzureVMImage cmdlet. This command store the image in the $Image variable. + The final command creates a virtual machine configuration object based on the image in $Image by using the New-AzureVMConfig cmdlet. The command passes that object to the Add-AzureProvisioningConfig cmdlet by using the pipeline operator. That cmdlet add provisioning information to the configuration. The command passes the object to the New-AzureVM cmdlet, which creates the virtual machine. + + - - + + + Add-AzureCertificate + + + + Add-AzureProvisioningConfig + + + + Get-AzureCertificate + + + + Get-AzureVMImage + + + + New-AzureQuickVM + + + + New-AzureVM + + + + Remove-AzureCertificate + + - - + New-AzureDeployment - Creates a new deployment from a service comprising web roles and worker roles. + Creates a deployment from a service. @@ -11710,193 +13254,205 @@ The default value is Production. - - The New-AzureDeployment cmdlet creates a new deployment based on package files (.cspkg) and a service configuration files (.cscfg). Use the New-AzureVM cmdlet to create a new deployment based on Microsoft Azure virtual machines. - - There should not be an existing deployment with the same name nor in the same deployment environment when executing this command. If there is, the command will fail. + The New-AzureDeployment cmdlet creates an Azure deployment from a service that comprises web roles and worker roles. This cmdlet creates a deployment based on a package file (.cspkg) and a service configuration file (.cscfg). Specify a name that is unique within deployment environment. + Use the New-AzureVM cmdlet to create a deployment based on Azure virtual machines. New-AzureDeployment - + ServiceName - Specifies Microsoft Azure service name for the deployment. + Specifies the name of the Azure service for the deployment. String - + Package - Specifies the path or URI to a .cspkg blob in a storage within the same subscription/project. + Specifies the path or URI of a .cspkg file in storage within the same subscription or project. String - + Configuration - Specifies the path and file name of a service configuration file (.cscfg). + Specifies the full path of a service configuration file. String - + Slot - Specifies the environment where the deployment is created. Acceptable values are Staging or Production. If not specified, Production is used. + Specifies the environment where this cmdlet creates the deployment. Valid values are: Staging and Production. The default value is Production. - String + + Staging + Production + - + Label - Specifies the label name for the new deployment. If not specified, a Globally Unique Identifier (GUID) is used. + Specifies a label name for the deployment. If you do not specify a label, this cmdlet uses a GUID. - String + String - + Name - Specifies the deployment name. If not specified, a Global Unique Identifier is used. + Specifies a deployment name. If you do not specify a name, this cmdlet uses a GUID. - String + String - + DoNotStart - Specifies that the new deployment will not be started when it is created. + Specifies that this cmdlet does not start the deployment. - SwitchParameter - - TreatWarningsAsError + + ExtensionConfiguration - Causes warning messages to be treated as errors, resulting in the deployment failing on warnings. + Specifies an array of extension configuration objects. - SwitchParameter + ExtensionConfigurationInput[] - - ExtensionConfiguration + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + TreatWarningsAsError - Optional array of extension configuration objects. + Specifies that warning messages are errors. If you specify this parameter, a warning message causes the deployment to fail. - ExtensionConfigurationInput[] - - ServiceName + + Configuration - Specifies Microsoft Azure service name for the deployment. + Specifies the full path of a service configuration file. String String - - + none - - Package + + DoNotStart - Specifies the path or URI to a .cspkg blob in a storage within the same subscription/project. + Specifies that this cmdlet does not start the deployment. - String + SwitchParameter - String + SwitchParameter - - + none - - Configuration + + ExtensionConfiguration - Specifies the path and file name of a service configuration file (.cscfg). + Specifies an array of extension configuration objects. - String + ExtensionConfigurationInput[] - String + ExtensionConfigurationInput[] - - + none - - Slot + + Label - Specifies the environment where the deployment is created. Acceptable values are Staging or Production. If not specified, Production is used. + Specifies a label name for the deployment. If you do not specify a label, this cmdlet uses a GUID. - String + String String - Production + none - - Label + + Name - Specifies the label name for the new deployment. If not specified, a Globally Unique Identifier (GUID) is used. + Specifies a deployment name. If you do not specify a name, this cmdlet uses a GUID. - String + String String - The same as Name + none - - Name + + Package - Specifies the deployment name. If not specified, a Global Unique Identifier is used. + Specifies the path or URI of a .cspkg file in storage within the same subscription or project. String String - Guid + none - - DoNotStart + + Profile - Specifies that the new deployment will not be started when it is created. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - TreatWarningsAsError + + ServiceName - Causes warning messages to be treated as errors, resulting in the deployment failing on warnings. + Specifies the name of the Azure service for the deployment. - SwitchParameter + String - SwitchParameter + String - - + none - - ExtensionConfiguration + + Slot - Optional array of extension configuration objects. + Specifies the environment where this cmdlet creates the deployment. Valid values are: Staging and Production. The default value is Production. - ExtensionConfigurationInput[] + String - ExtensionConfigurationInput[] + String + + + none + + + TreatWarningsAsError + + Specifies that warning messages are errors. If you specify this parameter, a warning message causes the deployment to fail. + + SwitchParameter + + SwitchParameter - - + none @@ -11904,13 +13460,15 @@ The default value is Production. - + + - - + + + @@ -11919,61 +13477,56 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Create a deployment - PS C:\> New-AzureDeployment -ServiceName "myservice" -Slot "Production" -Package "https://mystorage.blob.core.windows.net/mycontainer/MyPackage.cspkg" -Configuration "c:\packages\mypackage.cscfg" -Label "MyDeployment" + PS C:\>New-AzureDeployment -ServiceName "ContosoService" -Slot "Production" -Package "https://contosostorage.blob.core.windows.net/container06/ContosoPackage.cspkg" -Configuration "C:\packages\ContosoConfiguration.cscfg" -Label "ContosoDeployment" + - This example creates a new deployment based on a package location and a configuration path. + This command creates a production deployment based on a package named ContosoPackage.cspkg and a configuration named ContosoConfiguration.cscfg. The command specifies a label for the deployment. It does not specify a name. This cmdlet creates a GUID as the name. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Create a deployment based on an extension configuration - PS C:\> New-AzureDeployment -ServiceName $svc -Package $pkg -Configuration $cnfg -Slot Production -ExtensionConfiguration $rdpConfig + PS C:\>New-AzureDeployment -ServiceName "ContosoService" -Slot "Production" -Package "https://contosostorage.blob.core.windows.net/container06/ContosoPackage.cspkg" -Configuration "C:\packages\ContosoConfiguration.cscfg" -ExtensionConfiguration "C:\packages\ContosoExtensionConfig.cscfg" + - - + This command creates a production deployment based on a package and configuration. The command specifies an extension configuration named ContosoExtensionConfig.cscfg. This cmdlet creates GUIDs as the name and the label. + + - This example installs the extension configuration in the specified Cloud Service and applies them on roles. + @@ -11981,32 +13534,35 @@ The default value is Production. Get-AzureDeployment - - + - Remove-AzureDeployment - - + Get-AzureDeploymentEvent + - New-AzureVMConfig - - + Move-AzureDeployment + + + + New-AzureVM + + + + Remove-AzureDeployment + Set-AzureDeployment - - + - - + New-AzureDns - Creates a DNS settings object to be used when creating a Microsoft Azure deployment. + Creates an Azure DNS settings object. @@ -12016,20 +13572,19 @@ The default value is Production. - - The New-AzureDNS cmdlet creates a DNS settings object for use by the New-AzureVM cmdlet. It accepts two parameters: Name and Address. The Name parameter is a friendly name, not necessarily a DNS resolvable name, and the Address parameter is the IP address of the DNS server. + The New-AzureDns cmdlet creates an Azure DNS settings object. You can use a DNS settings object when you create a virtual machine by using the New-AzureVM cmdlet. New-AzureDns - + Name - Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name. + Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. String - + IPAddress Specifies the IP address of the DNS server. @@ -12039,31 +13594,29 @@ The default value is Production. - - Name + + IPAddress - Specifies a friendly name to identify the DNS server. This name is not necessarily a fully qualified domain name. + Specifies the IP address of the DNS server. String String - - + none - - IPAddress + + Name - Specifies the IP address of the DNS server. + Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name. String String - - + none @@ -12071,13 +13624,15 @@ The default value is Production. - + + - - + + + @@ -12086,80 +13641,70 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>$dns1 = New-AzureDns –Name "dns1" –address "10.1.2.4" - - This command creates a new Microsoft Azure DNS settings object. - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Create a DNS settings object - PS C:\> C:\PS>$dns1 = New-AzureDns –Name "dns1" –address "10.1.2.4" - C:\PS>New-AzureVM –ServiceName $MyService –AffinityGroup $MyAG –VnetName $VNet1 –DnsSettings $dns1 –VMs $MyVMconfig + PS C:\>$Dns = New-AzureDns -Name "Dns01" -IPAddress "10.1.2.4" + - This command creates a new Microsoft Azure DNS settings object that is then used during the creation of a virtual machine with the New-AzureVM cmdlet. + This command creates an Azure DNS settings object. The DNS server has the specified address and the friendly name Dns01. The command stores the object in the $Dns variable for use by the New-AzureVM cmdlet. + + - - + - - - - - - New-AzureInternalLoadBalancerConfig - - New-AzureInternalLoadBalancerConfig [-InternalLoadBalancerName] <string> [<CommonParameters>] - - New-AzureInternalLoadBalancerConfig [-InternalLoadBalancerName] <string> [-SubnetName] <string> [-StaticVNetIPAddress] <ipaddress> [<CommonParameters>] - - New-AzureInternalLoadBalancerConfig [-InternalLoadBalancerName] <string> [-SubnetName] <string> [<CommonParameters>] - + + Add-AzureDns + + + + Get-AzureDns + + + + New-AzureVM + + + + Remove-AzureDns + + + + Set-AzureDns + + + + + + + New-AzureInternalLoadBalancerConfig + + Creates an internal load balancer configuration. + @@ -12168,110 +13713,130 @@ The default value is Production. - - The New-InternalLoadbalancerConfig creates a local object that can be used later during creation of a new azure virtual machine deployment. + The New-AzureInternalLoadBalancerConfig cmdlet creates an InternalLoadBalancerConfig object. You can use an internal load balancer configuration when you create an Azure virtual machine deployment. New-AzureInternalLoadBalancerConfig - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + New-AzureInternalLoadBalancerConfig - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. String - + SubnetName - - + Specifies the name of the subnet for an internal load balancer. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + New-AzureInternalLoadBalancerConfig - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. String - + SubnetName - - + Specifies the name of the subnet for an internal load balancer. String - + StaticVNetIPAddress - - + Specifies the virtual network IP address for an internal load balancer that this cmdlet includes in the configuration. IPAddress + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. String String - - + none - - SubnetName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - + StaticVNetIPAddress - - + Specifies the virtual network IP address for an internal load balancer that this cmdlet includes in the configuration. IPAddress IPAddress - - + none + + + SubnetName + + Specifies the name of the subnet for an internal load balancer. + + String + + String + + + none @@ -12279,13 +13844,15 @@ The default value is Production. - + + - - + + + @@ -12293,844 +13860,929 @@ The default value is Production. Microsoft.WindowsAzure.Commands.ServiceManagement.Model.InternalLoadBalancerConfig - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Create an internal load balancer configuration - PS C:\> $myilbconfig = New-AzureInternalLoadBalancerConfig -InternalLoadBalancerName "MyILB" -SubnetName "FrontEndSubnet" + PS C:\>$IlbConfig = New-AzureInternalLoadBalancerConfig -InternalLoadBalancerName "Contoso" -SubnetName "FrontEndSubnet" + - Description + This command creates an internal load balancer configuration for the subnet named FrontEndSubnet. The command stores the configuration in the $IlbConfig variable for you to use for a virtual machine deployment. + + - -----------Creates a local Internal load balancer object that can be referenced later in the New-AzureVM operation + - Unknown - - + Add-AzureInternalLoadBalancer + + + + Get-AzureInternalLoadBalancer + + + + Remove-AzureInternalLoadBalancer + + + + Set-AzureInternalLoadBalancer + - - + - - New-AzureQuickVM - + New-AzureQuickVM - - + Configures and creates an Azure virtual machine. - - + New AzureQuickVM - - + - The New-AzureQuickVM sets the configuration for a new virtual machine and creates the virtual machine. It can create a new Microsoft Azure service, or deploy the new virtual machine into an existing service if neither -Location or -AffinityGroup is specified. + The New-AzureQuickVM cmdlet configures and creates an Azure virtual machine. This cmdlet can deploy a virtual machine into an existing Azure service. This cmdlet can alternatively create an Azure service that hosts the new virtual machine. - New-AzureQuickVM - - ImageName + + AdminUsername - Specifies the name of the operating system image to use to create the operating system disk. + Specifies the user name of the Administrator account that this cmdlet creates on the virtual machine. - string + String - - Linux + + AffinityGroup - Specify to create a Linux virtual machine. + Specifies the affinity group for the virtual machine. Specify this parameter or the Location parameter only if this cmdlet creates an Azure service for the virtual machine. + String - - ServiceName + + AvailabilitySetName - - Specifies the new or existing service name. - - If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. - If the service exists, the -Location or -AffinityGroup parameter is not needed. - + Specifies the name of the availability set in which this cmdlet creates the virtual machine. - string + String - - AffinityGroup + + Certificates - Specifies the Microsoft Azure affinity group the virtual machine will reside in. Only valid for a new cloud service. + Specifies a list of certificates that this cmdlet uses to create the service. - string + CertificateSettingList - - AvailabilitySetName + + CustomDataFile - Specify the availability set to use. + Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. + If the guest operating system is the Windows operating system, this cmdlet saves this data as a binary file that is named %SYSTEMDRIVE%\AzureData\CustomData.bin. + If the guest operating system is Linux, this cmdlet passes the data by using the ovf-env.xml file. Installation copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. - string + String - - CustomDataFile + + DisableGuestAgent - - This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. - - On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. - On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. - + Indicates that this cmdlet disables the infrastructure as a service (IaaS) provision guest agent. - string - - DisableGuestAgent + + DisableWinRMHttps - Not Specified + Indicates that this cmdlet disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. - + DnsSettings - Specifies a DNS Server object that defines the DNS settings for the new deployment. Use New-AzureDNS to create the DNS server object. + Specifies an array of DNS server objects that defines the DNS settings for the new deployment. To create a DnsServer object, use the New-AzureDns cmdlet. - DnsServer[] + DnsServer[] - + + EnableWinRMHttp + + Indicates that this cmdlet enables WinRM over HTTP. + + + HostCaching - Specifies the host caching mode to use. Supported options are: "ReadOnly" and "ReadWrite". + Specifies the host caching mode for the operating system disk. Valid values are: + +-- ReadOnly +-- ReadWrite - string + + ReadWrite + ReadOnly + - + InstanceSize - Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. + Specifies the size of the instance. Valid values are: + +-- ExtraSmall +-- Small +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 +-- A8 +-- A9 +-- Basic_A0 +-- Basic_A1 +-- Basic_A2 +-- Basic_A3 +-- Basic_A4 +-- Standard_D1 +-- Standard_D2 +-- Standard_D3 +-- Standard_D4 +-- Standard_D11 +-- Standard_D12 +-- Standard_D13 +-- Standard_D14 + + String + + + Location + + Specifies the Azure datacenter that hosts the virtual machine. If you specify this parameter, the cmdlet creates an Azure service in the specified location. Specify this parameter or the AffinityGroup parameter only if this cmdlet creates an Azure service for the virtual machine. - string + String - - LinuxUser + + MediaLocation - Specifies the Linux administrative account name to create. + Specifies the Azure Storage location where this cmdlet creates the virtual machines disks. - string + String - - Location + + Name - Specifies the Microsoft Azure data center location that will host the virtual machine. When specified, New-AzureQuickVM will create a new Microsoft Azure service in the specified location. Only valid for a new cloud service. + Specifies the name of the virtual machine that this cmdlet creates. - string + String - - MediaLocation + + NoExportPrivateKey - Specifies the Microsoft Azure storage location to use for the virtual machines disks. + Indicates that this configuration does not upload the private key. - string - - Name + + NoWinRMEndpoint - Specifies the name of the virtual machine. + Indicates that this cmdlet does not add a WinRM endpoint for the virtual machine. - string - + Password Specifies the password for the administrative account. - string + String - - ReservedIPName + + Profile - Not Specified + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - - SSHKeyPairs + + ReservedIPName - - + Specifies the reserved IP name. - LinuxProvisioningConfigurationSet+SSHKeyPairList + String - - SSHPublicKeys + + ReverseDnsFqdn - - + Specifies the fully qualified domain name for reverse DNS look up. - LinuxProvisioningConfigurationSet+SSHPublicKeyList + String - + SubnetNames - Specifies a list of subnet names the virtual machine will use. + Specifies an array of names of subnet for the virtual machine. - string[] + String[] - + VNetName - Specifies the name of a virtual network the virtual machine will use. + Specifies the name of a virtual network for the virtual machine. - string + String - + WaitForBoot - Waits for VM to reach ReadyRole state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + Indicates that this cmdlet waits for the virtual machine to reach the state ReadyRole. If the virtual machine reaches one of the following states, the cmdlet fails: FailedStartingVM, ProvisioningFailed, or ProvisioningTimeout. - - - New-AzureQuickVM - - ImageName + + WinRMCertificate - Specifies the name of the operating system image to use to create the operating system disk. + Specifies a certificate that this cmdlet associates to a WinRM endpoint. - string + X509Certificate2 - - ServiceName + + X509Certificates - - Specifies the new or existing service name. - - If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. - If the service exists, the -Location or -AffinityGroup parameter is not needed. - + Specifies an array of X509 certificates that are deployed to a hosted service. - string + X509Certificate2[] - - Windows + + ImageName - Include to create a Windows virtual machine. + Specifies the name of the disk image this cmdlet uses to create the operating system disk. + String - - AdminUsername + + ServiceName - Specifies the Administrator account to create. + Specifies the name of a new or existing Azure service to which this cmdlet adds the new virtual machine. + If you specify a new service, this cmdlets creates it. To create a new service, you must specify the Location or AffinityGroup parameter. + If you specify an existing service, do not specify Location or AffinityGroup. - string + String - - AffinityGroup + + Windows - Specifies the Microsoft Azure affinity group the virtual machine will reside in. Only valid for a new cloud service. + Indicates that this cmdlet creates a Windows virtual machine. - string - - AvailabilitySetName + + + New-AzureQuickVM + + AffinityGroup - Specify the availability set to use. + Specifies the affinity group for the virtual machine. Specify this parameter or the Location parameter only if this cmdlet creates an Azure service for the virtual machine. - string + String - - Certificates + + AvailabilitySetName - Specifies a certificate list to use for creating the service. + Specifies the name of the availability set in which this cmdlet creates the virtual machine. - CertificateSettingList + String - + CustomDataFile - - This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. - - On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. - On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. - + Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. + If the guest operating system is the Windows operating system, this cmdlet saves this data as a binary file that is named %SYSTEMDRIVE%\AzureData\CustomData.bin. + If the guest operating system is Linux, this cmdlet passes the data by using the ovf-env.xml file. Installation copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. - string + String - + DisableGuestAgent - Not Specified - - - - DisableWinRMHttps - - Disables WinRM on https which is added by default. + Indicates that this cmdlet disables the infrastructure as a service (IaaS) provision guest agent. - + DnsSettings - Specifies a DNS Server object that defines the DNS settings for the new deployment. Use New-AzureDNS to create the DNS server object. - - DnsServer[] - - - EnableWinRMHttp - - Enables WinRM over http. + Specifies an array of DNS server objects that defines the DNS settings for the new deployment. To create a DnsServer object, use the New-AzureDns cmdlet. + DnsServer[] - + HostCaching - Specifies the host caching mode to use. Supported options are: "ReadOnly" and "ReadWrite". + Specifies the host caching mode for the operating system disk. Valid values are: + +-- ReadOnly +-- ReadWrite - string + + ReadWrite + ReadOnly + - + InstanceSize - Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. + Specifies the size of the instance. Valid values are: + +-- ExtraSmall +-- Small +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 +-- A8 +-- A9 +-- Basic_A0 +-- Basic_A1 +-- Basic_A2 +-- Basic_A3 +-- Basic_A4 +-- Standard_D1 +-- Standard_D2 +-- Standard_D3 +-- Standard_D4 +-- Standard_D11 +-- Standard_D12 +-- Standard_D13 +-- Standard_D14 + + String + + + LinuxUser + + Specifies the user name of the Linux administrative account that this cmdlet creates on the virtual machine. - string + String - + Location - Specifies the Microsoft Azure data center location that will host the virtual machine. When specified, New-AzureQuickVM will create a new Microsoft Azure service in the specified location. Only valid for a new cloud service. + Specifies the Azure datacenter that hosts the virtual machine. If you specify this parameter, the cmdlet creates an Azure service in the specified location. Specify this parameter or the AffinityGroup parameter only if this cmdlet creates an Azure service for the virtual machine. - string + String - + MediaLocation - Specifies the Microsoft Azure storage location to use for the virtual machines disks. + Specifies the Azure Storage location where this cmdlet creates the virtual machines disks. - string + String - + Name - Specifies the name of the virtual machine. + Specifies the name of the virtual machine that this cmdlet creates. - string + String - - NoExportPrivateKey + + Password - Prevents the private key from being uploaded + Specifies the password for the administrative account. + String - - NoWinRMEndpoint + + Profile - Prevents the WinRM endpoint from being added + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + AzureProfile - - Password + + ReservedIPName - Specifies the password for the administrative account. + Specifies the reserved IP name. - string + String - - ReservedIPName + + ReverseDnsFqdn - Not Specified + Specifies the fully qualified domain name for reverse DNS look up. - string + String - + + SSHKeyPairs + + Specifies SSH key pairs. + + LinuxProvisioningConfigurationSet+SSHKeyPairList + + + SSHPublicKeys + + Specifies SSH public keys. + + LinuxProvisioningConfigurationSet+SSHPublicKeyList + + SubnetNames - Specifies a list of subnet names the virtual machine will use. + Specifies an array of names of subnet for the virtual machine. - string[] + String[] - + VNetName - Specifies the name of a virtual network the virtual machine will use. + Specifies the name of a virtual network for the virtual machine. - string + String - + WaitForBoot - Waits for VM to reach ReadyRole state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + Indicates that this cmdlet waits for the virtual machine to reach the state ReadyRole. If the virtual machine reaches one of the following states, the cmdlet fails: FailedStartingVM, ProvisioningFailed, or ProvisioningTimeout. - - WinRMCertificate + + ImageName - Certificate that will be associated with WinRM endpoint. + Specifies the name of the disk image this cmdlet uses to create the operating system disk. - X509Certificate2 + String - - X509Certificates + + Linux + + Indicates that this cmdlet creates a Linux based virtual machine. + + + + ServiceName - X509 certificates that will be deployed to hosted service. + Specifies the name of a new or existing Azure service to which this cmdlet adds the new virtual machine. + If you specify a new service, this cmdlets creates it. To create a new service, you must specify the Location or AffinityGroup parameter. + If you specify an existing service, do not specify Location or AffinityGroup. - X509Certificate2[] + String - - + AdminUsername - Specifies the Administrator account to create. + Specifies the user name of the Administrator account that this cmdlet creates on the virtual machine. - string + String - string + String - - + none - + AffinityGroup - Specifies the Microsoft Azure affinity group the virtual machine will reside in. Only valid for a new cloud service. + Specifies the affinity group for the virtual machine. Specify this parameter or the Location parameter only if this cmdlet creates an Azure service for the virtual machine. - string + String - string + String - - + none - + AvailabilitySetName - Specify the availability set to use. + Specifies the name of the availability set in which this cmdlet creates the virtual machine. - string + String - string + String - - + none - + Certificates - Specifies a certificate list to use for creating the service. + Specifies a list of certificates that this cmdlet uses to create the service. - CertificateSettingList + CertificateSettingList CertificateSettingList - - + none - + CustomDataFile - - This parameter takes a file name as an argument. PowerShell will then base64 encode the contents of the file and send it along with the provisioning configuration information. The file must be less than 64KB or the Azure API will not accept the request. - - On Windows this data ends up in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file. - On Linux, this data is passed to the VM via the ovf-env.xml file, which is copied to the /var/lib/waagent directory during provisioning. The agent will also place the base-64 encoded data in /var/lib/waagent/CustomData during provisioning. - + Specifies a data file for the virtual machine. This cmdlet encodes the contents of the file as Base64. The file must be less than 64 kilobytes long. + If the guest operating system is the Windows operating system, this cmdlet saves this data as a binary file that is named %SYSTEMDRIVE%\AzureData\CustomData.bin. + If the guest operating system is Linux, this cmdlet passes the data by using the ovf-env.xml file. Installation copies that file to the /var/lib/waagent directory. The agent also stores the Base64 encoded data in /var/lib/waagent/CustomData. - string + String - string + String - - + none - + DisableGuestAgent - Not Specified + Indicates that this cmdlet disables the infrastructure as a service (IaaS) provision guest agent. SwitchParameter SwitchParameter - - + none - + DisableWinRMHttps - Disables WinRM on https which is added by default. + Indicates that this cmdlet disables Windows Remote Management (WinRM) on HTTPS. By default, WinRM is enabled over HTTPS. SwitchParameter SwitchParameter - - + none - + DnsSettings - Specifies a DNS Server object that defines the DNS settings for the new deployment. Use New-AzureDNS to create the DNS server object. + Specifies an array of DNS server objects that defines the DNS settings for the new deployment. To create a DnsServer object, use the New-AzureDns cmdlet. - DnsServer[] + DnsServer[] DnsServer[] - - + none - + EnableWinRMHttp - Enables WinRM over http. + Indicates that this cmdlet enables WinRM over HTTP. SwitchParameter SwitchParameter - - + none - + HostCaching - Specifies the host caching mode to use. Supported options are: "ReadOnly" and "ReadWrite". + Specifies the host caching mode for the operating system disk. Valid values are: + +-- ReadOnly +-- ReadWrite - string + String - string + String - - + none - + ImageName - Specifies the name of the operating system image to use to create the operating system disk. + Specifies the name of the disk image this cmdlet uses to create the operating system disk. - string + String - string + String - - + none - + InstanceSize - Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. - - string + Specifies the size of the instance. Valid values are: + +-- ExtraSmall +-- Small +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 +-- A8 +-- A9 +-- Basic_A0 +-- Basic_A1 +-- Basic_A2 +-- Basic_A3 +-- Basic_A4 +-- Standard_D1 +-- Standard_D2 +-- Standard_D3 +-- Standard_D4 +-- Standard_D11 +-- Standard_D12 +-- Standard_D13 +-- Standard_D14 + + String - string + String - - + none - + Linux - Specify to create a Linux virtual machine. + Indicates that this cmdlet creates a Linux based virtual machine. - SwitchParameter + SwitchParameter SwitchParameter - - + none - + LinuxUser - Specifies the Linux administrative account name to create. + Specifies the user name of the Linux administrative account that this cmdlet creates on the virtual machine. - string + String - string + String - - + none - + Location - Specifies the Microsoft Azure data center location that will host the virtual machine. When specified, New-AzureQuickVM will create a new Microsoft Azure service in the specified location. Only valid for a new cloud service. + Specifies the Azure datacenter that hosts the virtual machine. If you specify this parameter, the cmdlet creates an Azure service in the specified location. Specify this parameter or the AffinityGroup parameter only if this cmdlet creates an Azure service for the virtual machine. - string + String - string + String - - + none - + MediaLocation - Specifies the Microsoft Azure storage location to use for the virtual machines disks. + Specifies the Azure Storage location where this cmdlet creates the virtual machines disks. - string + String - string + String - - + none - + Name - Specifies the name of the virtual machine. + Specifies the name of the virtual machine that this cmdlet creates. - string + String - string + String - - + none - + NoExportPrivateKey - Prevents the private key from being uploaded + Indicates that this configuration does not upload the private key. SwitchParameter SwitchParameter - - + none - + NoWinRMEndpoint - Prevents the WinRM endpoint from being added + Indicates that this cmdlet does not add a WinRM endpoint for the virtual machine. SwitchParameter SwitchParameter - - + none - + Password Specifies the password for the administrative account. - string + String - string + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile - - + none - + ReservedIPName - Not Specified + Specifies the reserved IP name. - string + String - string + String + + + none + + + ReverseDnsFqdn + + Specifies the fully qualified domain name for reverse DNS look up. + + String + + String - - + none - + ServiceName - - Specifies the new or existing service name. - - If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. - If the service exists, the -Location or -AffinityGroup parameter is not needed. - + Specifies the name of a new or existing Azure service to which this cmdlet adds the new virtual machine. + If you specify a new service, this cmdlets creates it. To create a new service, you must specify the Location or AffinityGroup parameter. + If you specify an existing service, do not specify Location or AffinityGroup. - string + String - string + String - - + none - + SSHKeyPairs - - + Specifies SSH key pairs. - LinuxProvisioningConfigurationSet+SSHKeyPairList + LinuxProvisioningConfigurationSet+SSHKeyPairList LinuxProvisioningConfigurationSet+SSHKeyPairList - - + none - + SSHPublicKeys - - + Specifies SSH public keys. - LinuxProvisioningConfigurationSet+SSHPublicKeyList + LinuxProvisioningConfigurationSet+SSHPublicKeyList LinuxProvisioningConfigurationSet+SSHPublicKeyList - - + none - + SubnetNames - Specifies a list of subnet names the virtual machine will use. + Specifies an array of names of subnet for the virtual machine. - string[] + String[] - string[] + String[] - - + none - + VNetName - Specifies the name of a virtual network the virtual machine will use. + Specifies the name of a virtual network for the virtual machine. - string + String - string + String - - + none - + WaitForBoot - Waits for VM to reach ReadyRole state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + Indicates that this cmdlet waits for the virtual machine to reach the state ReadyRole. If the virtual machine reaches one of the following states, the cmdlet fails: FailedStartingVM, ProvisioningFailed, or ProvisioningTimeout. SwitchParameter SwitchParameter - - + none - + Windows - Include to create a Windows virtual machine. + Indicates that this cmdlet creates a Windows virtual machine. - SwitchParameter + SwitchParameter SwitchParameter - - + none - + WinRMCertificate - Certificate that will be associated with WinRM endpoint. + Specifies a certificate that this cmdlet associates to a WinRM endpoint. - X509Certificate2 + X509Certificate2 X509Certificate2 - - + none - + X509Certificates - X509 certificates that will be deployed to hosted service. + Specifies an array of X509 certificates that are deployed to a hosted service. - X509Certificate2[] + X509Certificate2[] X509Certificate2[] - - + none - - - + + + + + - @@ -13140,392 +14792,376 @@ The default value is Production. - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Create a virtual machine - C:\PS> - - - New-AzureQuickVM -Windows -ServiceName "MySvc1" -name "MyWinVM1" -ImageName $image -Password $adminPasswd -AdminUsername PsTestAdmin -WaitForBoot - - - Description - ----------- - This example creates a new Windows virtual machine in an existing service from an image. (Use Get-AzureVMImage to get a list of images.) Optional WaitForBoot flag blocks New-AzureVM till the VM boots. - - - - - - + + PS C:\>New-AzureQuickVM -Windows -ServiceName "ContosoService17" -Name "VirutalMachine01" -ImageName "Image07" -Password "password" -AdminUsername "AdminMain" -WaitForBoot + + + This command creates a virtual machine that runs the Windows operating system in an existing service. The cmdlet bases the virtual machine on the specified image. The command specifies the WaitForBoot parameter. Therefore, the cmdlet waits for the virtual machine to start. + + - - + - - -------------------------- EXAMPLE 2 -------------------------- - + Example 2: Create a virtual machine that by using certificates - C:\PS> - - - $certs = Get-ChildItem Cert:\CurrentUser\My - New-AzureQuickVM -Windows -ServiceName "MySvc1" -name "MyWinVM1" -ImageName $image -Password $adminPasswd -AdminUserName PsTestAdmin -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] -WaitForBoot - - - Description - ----------- - - This example creates a new Windows virtual machine in an existing service from an image. WinRM Https listener is enabled by default on the VM. WaitForBoot option enables to wait for VM to boot. WinRMCertificate and X509Certificates are uploaded to hosted service by New-AzureQuickVM. - - - - - - - + + PS C:\>$certs = Get-ChildItem Cert:\CurrentUser\My +PS C:\> New-AzureQuickVM -Windows -ServiceName "MySvc1" -name "MyWinVM1" -ImageName "Image07" -Password "password" -AdminUserName "AdminMain" -WinRMCertificate $certs[0] -X509Certificates $certs[1], $certs[2] -WaitForBoot + + + The first command gets certificates from a store, and stores them in the $certs variable. + The second command creates a virtual machine that runs the Windows operating system in an existing service from an image. By default, WinRM Https listener is enabled on the virtual machine. The command specifies the WaitForBoot parameter. Therefore, the cmdlet waits for the virtual machine to start. The command uploads a WinRM Certificate and X509Certificates to the hosted service. + + - - + - - -------------------------- EXAMPLE 3 -------------------------- - + Example 3: Create a virtual machine that runs the Linux operating system - C:\PS> - - - New-AzureQuickVM -Linux -ServiceName "MySvc2" -name "MyLxVM1" -ImageName $image -LinuxUser $user -Password $adminPasswd -Location $dclocation - - - Description - ----------- - This example creates a new Linux virtual machine from an image, and creates a new service to host it. - - - - - - + + PS C:\>New-AzureQuickVM -Linux -ServiceName "ContosoServiceLinux01" -Name "LinuxVirtualMachine01" -ImageName "LinuxImage01" -LinuxUser "RootMain" -Password "password" -Location "Central US" + + + This command creates a virtual machine that runs the Linux operating system from an image. This command creates a service to host the new virtual machine. The command specifies a location for the service. + + - - + - - -------------------------- EXAMPLE 4 -------------------------- - + Example 4: Create a virtual machine and create a service to host the new virtual machine - C:\PS> - - - $dclocations = Get-AzureLocation - $images = Get-AzureVMImage - New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "MySvc3" -name "MyWinVM1" -ImageName $images[4].imagename -Password $adminPasswd -AdminUsername PSTestAdmin -location $dclocations[0].name - - - Description - ----------- - - This example gets a list of data center locations, and a list of virtual machine images, and then creates a new large Windows virtual machine and a new service. - - - - - - - + + PS C:\>$Locations = Get-AzureLocation +PS C:\> $Images = Get-AzureVMImage +PS C:\> New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "ContosoService03" -Name " VirtualMachine25" -ImageName $images[4].imagename -Password "password" -AdminUsername "AdminMain" -Location $Locations[0].name + + + The first command gets locations by using the Get-AzureLocation cmdlet, and then stores them in the $Locations array variable. + The second command gets available images by using the Get-AzureVMImage cmdlet, and then stores them in the $Images array variable. + The final command creates a large virtual machine named VirtualMachine25. The virtual machine runs the Windows operating system. It is based on one of the images in $Images. The command creates a service named ContosoService03 for the new virtual machine. The service is in a location in $Locations. + + - - + - - -------------------------- EXAMPLE 5 -------------------------- - + Example 5: Create a virtual machine that has a reserved IP name - C:\PS> - - - $dclocations = Get-AzureLocation - $images = Get-AzureVMImage - New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "MySvc3" -name "MyWinVM1" -ImageName $images[4].imagename -Password $adminPasswd -AdminUsername PSTestAdmin -location $dclocations[0].name -ReservedIPName $ipName - - - Description - ----------- - - This example creates a new Windows virtual machine with a Reserved IP - - - - - - - + + PS C:\>$Locations = Get-AzureLocation +PS C:\> $Images = Get-AzureVMImage +PS C:\> New-AzureQuickVM -Windows -InstanceSize "Large" -ServiceName "ContosoService04" -Name "VirtualMachine27" -ImageName $Images[4].imagename -Password "password" -AdminUsername "AdminMain" -Location $Locations[0].name -ReservedIPName $ipName + + + The first command gets locations, and then stores them in the $Locations array variable. + The second command gets available images, and then stores them in the $Images array variable. + The final command creates a virtual machine named VirtualMachine27 based on one of the images in $Images. The command creates a service in a location in $Locations. The virtual machine has a reserved IP name, previously stored in the $ipName variable. + + - - + - - - + Get-AzureLocation + + + + Get-AzureVMImage + + + + New-AzureDns - - + - - New-AzureReservedIP - + New-AzureReservedIP - Create a Reserved IP. + Creates a reserved IP address. - - + New AzureReservedIP - - + - Create a reserved IP. + The New-AzureReservedIP cmdlet creates a reserved IP address. - New-AzureReservedIP - + ReservedIPName - Reserved IP Name + Specifies the reserved IP address name. - string + String - + Label - Reserved IP Label + Specifies a label for the reserved IP address. - string + String - + Location - Location where the Reserved IP should be created + Specifies a location at which to create the reserved IP address. - string + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + New-AzureReservedIP + + ReservedIPName + + Specifies the reserved IP address name. + + String + + + Label + + Specifies a label for the reserved IP address. + + String + + + Location + + Specifies a location at which to create the reserved IP address. + + String - + ServiceName - Service name. + Specifies a service name. - string + String - + VirtualIPName - Use the VirtualIPName parameter to reserve an existing VIP in your deployment. If not specified, you will reserve a new VIP. + Specifies that this cmdlet uses the VirtualIPName parameter to reserve an existing virtual IP address (VIP) in your deployment. If this parameter is not specified, this cmdlet reserves a new VIP. - string + String - + Slot - Deployment slot [Staging | Production]. + Specifies the deployment slot. The acceptable values for this parameter are: Staging, Production. - string + + Staging + Production + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile New-AzureReservedIP - + ReservedIPName - Reserved IP Name + Specifies the reserved IP address name. - string + String - + Label - Reserved IP Label + Specifies a label for the reserved IP address. - string + String - + Location - Location where the Reserved IP should be created + Specifies a location at which to create the reserved IP address. - string + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - + Label - Reserved IP Label + Specifies a label for the reserved IP address. - string + String - string + String - - + none - + Location - Location where the Reserved IP should be created + Specifies a location at which to create the reserved IP address. - string + String - string + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile - - + none - + ReservedIPName - Reserved IP Name + Specifies the reserved IP address name. - string + String - string + String - - + none - + ServiceName - Service name. + Specifies a service name. - string + String - string + String - - + none - + Slot - Deployment slot [Staging | Production]. + Specifies the deployment slot. The acceptable values for this parameter are: Staging, Production. - string + String - string + String - - + none - + VirtualIPName - Use the VirtualIPName parameter to reserve an existing VIP in your deployment. If not specified, you will reserve a new VIP. + Specifies that this cmdlet uses the VirtualIPName parameter to reserve an existing virtual IP address (VIP) in your deployment. If this parameter is not specified, this cmdlet reserves a new VIP. - string + String - string + String - - + none - - - + + + + + - @@ -13535,1076 +15171,724 @@ The default value is Production. - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Create a new reserved IP - C:\PS> - - -New-AzureReservedIP -ReservedIPName $name -Label $label -Location $location - - Description - ----------- - Create a new Reserved IP in the Subscription which can be used for Creating Cloud Services (Web/Worker/Virtual Machines) - - - - - - - + + PS C:\>New-AzureReservedIP -ReservedIPName $Name -Label $Label -Location $Location + + + This command creates a new reserved IP address in the subscription, which can be used for creating cloud services that include Web, Worker, and Virtual Machines. + + - - + - - -------------------------- EXAMPLE 2 -------------------------- - + Example 2: Create a reserved IP based on an existing IP - C:\PS> - - -New-AzureReservedIP -ReservedIPName resip14 -Location "West Europe" -ServiceName piptestwesteurope - - Description - ----------- - Existing VIP (Virtual IP) on the given service can be reserved. - - - - - - + + PS C:\>New-AzureReservedIP -ReservedIPName resip14 -Location "West Europe" -ServiceName piptestwesteurope + + + This command creates an existing VIP (Virtual IP) on the specified service. + + - - + - - - + Get-AzureReservedIP + + + + Remove-AzureReservedIP - - + - - Set-AzureReservedIPAssociation - + New-AzureServiceADDomainExtensionConfig - This cmdlet associates a Reserved IP Address to an existing VM's or a cloud service's VIP (Virtual IP). ReservedIPName is the name of the reserved IP in the subscription. It has to be a free IP, (i.e. not in use). - + Generates the configuration for the AD domain extension for cloud services. - - + - Set - AzureReservedIPAssociation - - + New + AzureServiceADDomainExtensionConfig + - The cmdlet provides means to associate a Reserved IP Address to a running VM or cloud service. The ReservedIP Address should not be in use at the time of invocation of this cmdlet. The Reserved IP and the VM/CloudService has to be in the same region. -The operation will take about 30 seconds to complete, after which the VM/Service will be accessible via the Reserved IP. + The New-AzureServiceADDomainExtensionConfig cmdlet generates the configuration for the Active Directory (AD) domain extension for cloud services. - - Set-AzureReservedIPAssociation - - ReservedIPName + New-AzureServiceADDomainExtensionConfig + + Role - The Name of the Reserved IP that is being associated with the VM/Service. + Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - string + String[] - - ServiceName + + Version - - Name of the service which has the deployment with which we want to associate the Reserved IP - + Specifies the extension version. - string + String - - VirtualIPName + + CertificateThumbprint - Use the VirtualIPName paramter to associate a reserved IP with an existing VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - string + String - - Slot + + ThumbprintAlgorithm - Deployment slot [Staging | Production]. + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - string + String - - PipelineVariable + + DomainName - Not Specified + Specifies the AD domain name. - string + String - + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to use to join the AD domain. Credentials include a user name and password. + + PSCredential + + + UnjoinDomainCredential + + Specifies the credentials (user name and password) to unjoin the AD domain. + + PSCredential + + + Options + + Specifies the unsigned integer join option. + + + JoinDomain + AccountCreate + Win9XUpgrade + UnsecuredJoin + PasswordPass + DeferSPNSet + JoinWithNewName + JoinReadOnly + InstallInvoke + + + + OUPath + + Specifies the organization unit (OU) path for AD domain join operation. + + String + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureProfile + AzureProfile - - - - - PipelineVariable - - Not Specified - - string - - string - - - - - - - Profile - - - - - AzureProfile - - AzureProfile - - - - - - - ReservedIPName - - The Name of the Reserved IP that is being associated with the VM/Service. - - string - - string - - - - - - - ServiceName - - - - - string - - string - - - - - - - Slot - - Deployment slot [Staging | Production]. - - string - - string - - - Production - - - VirtualIPName - - Use the VirtualIPName paramter to associate a reserved IP with an existing VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. - - string - - string - - - - - - - - - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - -Set-AzureReservedIPAssociation -ReservedIPName resip14 -ServiceName piptestwesteurope - - Description - ----------- - 'resip14' will be assigned to the service 'piptestwesteurope'. 'resip14' is a reserved IP in the West Europe region. - - - - - - - - - - - - - - - - - - - - - https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx - - - - - - - - - Remove-AzureReservedIPAssociation - - - This cmdlet removes the association of the Reserved IP Address from the VM/Cloud Service. - - - - - - Remove - AzureReservedIPAssociation - - - - - This cmdlet dis-associates a reserved IP Address from a VM or Cloud Service. When the operation completes, the Reserved Ip Address will become free and the VM/VIP will get a dynamic public Ip Address from the Azure Inventory. - - - - Remove-AzureReservedIPAssociation - - ReservedIPName + New-AzureServiceADDomainExtensionConfig + + Role - - + Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. - string + String[] - - ServiceName + + CertificateThumbprint - - + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - string + String - - VirtualIPName + + ThumbprintAlgorithm - Use VirtualIPName parameter to remove the association from a given virtual IP. + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - string + String - - Slot + + WorkgroupName - - + Specifies the workgroup name. - string + String - - Force + + Restart - Use this flag to bypass warning messages when removing the Reserved IP association. + Specifies whether to restart the computer if the join operation succeeds. - - PipelineVariable + + Credential - Not Specified + Specifies the credentials to use to join the AD domain. Credentials include a user name and password. - string + PSCredential - + + Version + + Specifies the extension version. + + String + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureProfile + AzureProfile - - - - - Force - - Use this flag to bypass warning messages when removing the Reserved IP association. - - SwitchParameter - - SwitchParameter - - - - - - - PipelineVariable - - Not Specified - - string - - string - - - - - - - Profile - - - - - AzureProfile - - AzureProfile - - - - - - - ReservedIPName - - - - - string - - string - - - - - - - ServiceName - - - - - string - - string - - - - - - - Slot - - - - - string - - string - - - Production - - - VirtualIPName - - Use VirtualIPName parameter to remove the association from a given virtual IP. - - string - - string - - - - - - - - - - - - - - - - - - - - - - - - - - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - -Remove-AzureReservedIPAssociation -ReservedIPName resip14 -ServiceName piptestwesteurope - - Description - ----------- - resip14 will be disassociated from service piptestwesteurope. piptestwesteurope will be assigned a new dynamic VIP. - - - - - - - - - - - - - - - - - - - - - https://msdn.microsoft.com/en-us/library/azure/dn690120.aspx - - - - - - - - - Add-AzureVirtualIP - - - Add a virtual IP to your Cloud Service. -Add-AzureVirtualIP [-ServiceName] <string> [-VirtualIPName] <string> [-Profile <AzureProfile>] [<CommonParameters>] - - - - - - - Add - AzureVirtualIP - - - - - The Add-AzureVirtualIP cmdlet adds a new virtual IP (VIP) to your service. the new vitual IP has a name but is not allocated an IP address. -The IP address is only allocated when you associate an endpoint to the VIP. See Add-AzureEndpoint for more details -Your subscription will only be charged for extra VIPs once they are associated with an endpoint. - - - - Add-AzureVirtualIP - - - - - - InformationAction - - Not Specified - The following values are permitted for this object type. - - ActionPreference - - ActionPreference - - - - - - - SilentlyContinue - - - - - - - Stop - - - - - - - Continue - - - - - - - Inquire - - - - - - - - - InformationVariable - - Not Specified - - string - - string - - - - - - - PipelineVariable - - Not Specified - - string - - string + New-AzureServiceADDomainExtensionConfig + + Role + + Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + Version + + Specifies the extension version. + + String + + + CertificateThumbprint + + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + + String + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + DomainName + + Specifies the AD domain name. + + String + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to use to join the AD domain. Credentials include a user name and password. + + PSCredential + + + UnjoinDomainCredential + + Specifies the credentials (user name and password) to unjoin the AD domain. + + PSCredential + + + JoinOption + + Specifies the join option enumeration. + + UInt32 + + + OUPath + + Specifies the organization unit (OU) path for AD domain join operation. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + New-AzureServiceADDomainExtensionConfig + + Role + + Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + Version + + Specifies the extension version. + + String + + + X509Certificate + + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + DomainName + + Specifies the AD domain name. + + String + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to use to join the AD domain. Credentials include a user name and password. + + PSCredential + + + UnjoinDomainCredential + + Specifies the credentials (user name and password) to unjoin the AD domain. + + PSCredential + + + Options + + Specifies the unsigned integer join option. + + + JoinDomain + AccountCreate + Win9XUpgrade + UnsecuredJoin + PasswordPass + DeferSPNSet + JoinWithNewName + JoinReadOnly + InstallInvoke + + + + OUPath + + Specifies the organization unit (OU) path for AD domain join operation. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + New-AzureServiceADDomainExtensionConfig + + Role + + Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + Version + + Specifies the extension version. + + String + + + X509Certificate + + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + DomainName + + Specifies the AD domain name. + + String + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to use to join the AD domain. Credentials include a user name and password. + + PSCredential + + + UnjoinDomainCredential + + Specifies the credentials (user name and password) to unjoin the AD domain. + + PSCredential + + + JoinOption + + Specifies the join option enumeration. + + UInt32 + + + OUPath + + Specifies the organization unit (OU) path for AD domain join operation. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + New-AzureServiceADDomainExtensionConfig + + Role + + Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + X509Certificate + + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + WorkgroupName + + Specifies the workgroup name. + + String + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to use to join the AD domain. Credentials include a user name and password. + + PSCredential + + + Version + + Specifies the extension version. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + CertificateThumbprint + + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + + String + + String - - + none - - Profile + + Credential - - + Specifies the credentials to use to join the AD domain. Credentials include a user name and password. - AzureProfile + PSCredential - AzureProfile + PSCredential - - + none - - ServiceName + + DomainName - Enter the name of a cloud service. This parameter is required. + Specifies the AD domain name. - string + String - string + String - - + none - - VirtualIPName + + JoinOption - Enter the name of your virtual IP. This parameter is required. + Specifies the join option enumeration. - string + UInt32 - string + UInt32 - - + none - - - - + + Options + + Specifies the unsigned integer join option. + + JoinOptions - - + JoinOptions - + none + + + OUPath - - - + Specifies the organization unit (OU) path for AD domain join operation. - - - - + String - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - + String - + none + + + Profile - - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - -Add-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" - -<Output>OperationDescription OperationId OperationStatus --------------------- ----------- --------------- -Add-AzureVirtualIP 4bd7b638-d2e7-216f-ba38-5221233d70ce Succeeded - - Description - ----------- - Add a virtual IP to your service - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Remove-AzureVirtualIP - - - Deletes a virtual IP from your Cloud Service. -Remove-AzureVirtualIP [-ServiceName] <string> [-VirtualIPName] <string> [-Force] [-Profile <AzureProfile>] [<CommonParameters>] - - - - - - - Remove - AzureVirtualIP - - - - - The Remove-AzureVirtualIP cmdlet deletes a new virtual IP (VIP) to your Cloud Service. The operation succeeds only if the virtual IP has no endpoints associated to it. - - - - - Remove-AzureVirtualIP - - ServiceName - - - - - string - - - VirtualIPName - - - - - string - - - Force - - - - - - - InformationAction - - Not Specified - - - SilentlyContinue - Stop - Continue - Inquire - - - - InformationVariable - - Not Specified - - string - - - PipelineVariable - - Not Specified - - string - - - Profile - - - - - AzureProfile - - - - - - - Force + AzureProfile + + AzureProfile + + + none + + + Restart - - + Specifies whether to restart the computer if the join operation succeeds. SwitchParameter SwitchParameter - - + none - - InformationAction - - Not Specified - The following values are permitted for this object type. - - ActionPreference - - ActionPreference - - - - - - - SilentlyContinue - - - - - - - Stop - - - - - - - Continue - - - - - - - Inquire - - - - - - + + Role + + Specifies an optional array of roles to specify the remote desktop configuration for the AD domain configuration. If you do not specify this parameter, the AD domain configuration is applied as the default configuration for all roles. + + String[] + + String[] + + + none - - InformationVariable + + ThumbprintAlgorithm - Not Specified + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - string + String - string + String - - + none - - PipelineVariable + + UnjoinDomainCredential - Not Specified + Specifies the credentials (user name and password) to unjoin the AD domain. - string + PSCredential - string + PSCredential - - + none - - Profile + + Version - - + Specifies the extension version. - AzureProfile + String - AzureProfile + String - - + none - - ServiceName + + WorkgroupName - - + Specifies the workgroup name. - string + String - string + String - - + none - - VirtualIPName + + X509Certificate - - + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - string + X509Certificate2 - string + X509Certificate2 - - + none - - - + + + + + - @@ -14612,252 +15896,248 @@ Remove-AzureVirtualIP [-ServiceName] <string> [-VirtualIPName] <string& - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - - - + + + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Specify an AD domain configuration - C:\PS> - - -Remove-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" - - Description - ----------- - Remove a virtual IP from your Cloud Service - - - - - - + + PS C:\>$ExtensionCfg = New-AzureServiceADDomainExtensionConfig -Role WorkerRole1 -DomainName $Domain -Credential $Cred -JoinOption 35; + +PS C:\> New-AzureDeployment -ServiceName $CloudSvc -Slot "Production" -Package $Pkg -Configuration $Config -ExtensionConfiguration $ExtensionCfg; + + + This command generates a configuration for the AD domain extension. + + - - + - - - + Get-AzureServiceADDomainExtension + + + + Set-AzureServiceADDomainExtension - - + - New-AzureService + New-AzureServiceDiagnosticsExtensionConfig - Creates a new Microsoft Azure service. + Generates a configuration for a diagnostics extension for specified role(s) or all roles. New - AzureService + AzureServiceDiagnosticsExtensionConfig - - The New-AzureService cmdlet creates a new Microsoft Azure service in the current subscription. + The New-AzureServiceDiagnosticsExtensionConfig cmdlet generates a configuration for a diagnostics extension for specified roles or all roles. - New-AzureService - - ServiceName + New-AzureServiceDiagnosticsExtensionConfig + + Role - Specifies the name of the new service. The name must be unique to the subscription. + Specifies an optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String + String[] - - AffinityGroup + + CertificateThumbprint - Specifies the affinity group associated with the subscription. An affinity group is required if the Location isn't specified. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String - - Label + + ThumbprintAlgorithm - Specifies a label for the service. The label may be up to 100 characters in length. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - Description + + StorageContext - Specifies a description for the service. The description may be up to 1024 characters in length. + Specifies an Azure storage context. - String + AzureStorageContext - - ReverseDnsFqdn + + DiagnosticsConfigurationPath - - + Specifies the diagnostics configuration path. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - New-AzureService - - ServiceName + New-AzureServiceDiagnosticsExtensionConfig + + Role - Specifies the name of the new service. The name must be unique to the subscription. + Specifies an optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String + String[] - - Location + + X509Certificate - Specifies the location for the service. A location is required if there isn't a specified Affinity Group. + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - - Label + + ThumbprintAlgorithm - Specifies a label for the service. The label may be up to 100 characters in length. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - Description + + StorageContext - Specifies a description for the service. The description may be up to 1024 characters in length. + Specifies an Azure storage context. - String + AzureStorageContext - - ReverseDnsFqdn + + DiagnosticsConfigurationPath - - + Specifies the diagnostics configuration path. - String + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - ServiceName + + CertificateThumbprint - Specifies the name of the new service. The name must be unique to the subscription. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String String - - + none - - AffinityGroup + + DiagnosticsConfigurationPath - Specifies the affinity group associated with the subscription. An affinity group is required if the Location isn't specified. + Specifies the diagnostics configuration path. - String + String String - - + none - - Label + + Profile - Specifies a label for the service. The label may be up to 100 characters in length. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - Service name + none - - Description + + Role - Specifies a description for the service. The description may be up to 1024 characters in length. + Specifies an optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - String + String[] - String + String[] - - + none - - ReverseDnsFqdn + + StorageContext - - + Specifies an Azure storage context. - String + AzureStorageContext - String + AzureStorageContext - - + none - - Location + + ThumbprintAlgorithm - Specifies the location for the service. A location is required if there isn't a specified Affinity Group. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - - + none + + + X509Certificate + + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + X509Certificate2 + + + none @@ -14865,13 +16145,15 @@ Remove-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" - + + - - + + + @@ -14880,672 +16162,341 @@ Remove-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Create the Azure Diagnostics extension for all roles in the cloud service - PS C:\> C:\PS>New-AzureService -ServiceName "MySvc1" -Label "MyTestService" -Location "South Central US" + PS C:\>$WadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML + - This command creates a new service named "MySvc1" in the South Central US location. + This command creates the Azure Diagnostics extension for all of the roles in the cloud service. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Create the Azure Diagnostics extension for a role - PS C:\> C:\PS>New-AzureService -ServiceName "MySvc1" -AffinityGroup NorthRegion + PS C:\>$WadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML -Role "WebRole1" + - This command creates a new service named "MySvc1" using the NorthRegion affinity group. + This command creates the Azure Diagnostics extension for the role WebRole01 in the cloud service. + + - - + - Get-AzureService - - - - - Remove-AzureService - - + Get-AzureServiceDiagnosticsExtension + - Set-AzureService - - + Set-AzureServiceDiagnosticsExtension + - - + - New-AzureServiceADDomainExtensionConfig + New-AzureServiceExtensionConfig - This cmdlet generates the configuration for AD Domain extension for cloud services. + Creates a cloud service extension configuration for a deployment. New - AzureServiceADDomainExtensionConfig + AzureServiceExtensionConfig - - This cmdlet generates the configuration for AD Domain extension for cloud services. + The New-AzureServiceExtensionConfig cmdlet creates a cloud service extension configuration for a deployment. - New-AzureServiceADDomainExtensionConfig - + New-AzureServiceExtensionConfig + Role - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - DomainName - - The AD domain name. - - String - - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - - UnjoinDomainCredential - - The credentials (user name/password) to unjoin the AD domain. - - PSCredential - - - Options - - The unsigned integer join option. - - JoinOptions - - - OUPath - - The OU path for AD domain join operation. + Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String + String[] - - Version + + CertificateThumbprint - - + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String - - - New-AzureServiceADDomainExtensionConfig - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - + ThumbprintAlgorithm - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - DomainName + + ExtensionName - The AD domain name. + Specifies the name of the extension. String - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - - UnjoinDomainCredential - - The credentials (user name/password) to unjoin the AD domain. - - PSCredential - - - JoinOption - - The join option enumeration. - - UInt32 - - - OUPath + + ProviderNamespace - The OU path for AD domain join operation. + Specifies the Extension's Provider Namespace. String - - Version + + PublicConfiguration - - + Specifies the public configuration text. String - - - New-AzureServiceADDomainExtensionConfig - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm + + PrivateConfiguration - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the private configuration text. String - - WorkgroupName + + Version - The workgroup name. + Specifies the extension version. String - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential + + Profile - The credentials (user name/password) to join the AD domain. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - PSCredential + AzureProfile - New-AzureServiceADDomainExtensionConfig - + New-AzureServiceExtensionConfig + Role - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - String[] + String[] - - CertificateThumbprint + + X509Certificate - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - + ThumbprintAlgorithm - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - WorkgroupName - - The workgroup name. - - String - - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - - - New-AzureServiceADDomainExtensionConfig - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String[] + String - - CertificateThumbprint + + ExtensionName - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the name of the extension. String - - ThumbprintAlgorithm + + ProviderNamespace - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the Extension's Provider Namespace. String - - DomainName + + PublicConfiguration - The AD domain name. + Specifies the public configuration text. String - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - - UnjoinDomainCredential - - The credentials (user name/password) to unjoin the AD domain. - - PSCredential - - - JoinOption - - The join option enumeration. - - UInt32 - - - OUPath + + PrivateConfiguration - The OU path for AD domain join operation. + Specifies the private configuration text. String - + Version - - - - String - - - - New-AzureServiceADDomainExtensionConfig - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint - - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - - String - - - ThumbprintAlgorithm - - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - DomainName - - The AD domain name. + Specifies the extension version. String - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - - UnjoinDomainCredential + + Profile - The credentials (user name/password) to unjoin the AD domain. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - PSCredential - - - Options - - The unsigned integer join option. - - JoinOptions - - - OUPath - - The OU path for AD domain join operation. - - String - - - Version - - - - - String + AzureProfile - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - - - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - X509Certificate2 - - - - - - - ThumbprintAlgorithm + + CertificateThumbprint - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String String - - + none - - DomainName + + ExtensionName - The AD domain name. + Specifies the name of the extension. String String - - - - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - SwitchParameter - - - - - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - PSCredential - - - - + none - - UnjoinDomainCredential + + PrivateConfiguration - The credentials (user name/password) to unjoin the AD domain. + Specifies the private configuration text. - PSCredential + String - PSCredential + String - - + none - - Options + + Profile - The unsigned integer join option. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - JoinOptions + AzureProfile - JoinOptions + AzureProfile - - + none - - OUPath + + ProviderNamespace - The OU path for AD domain join operation. + Specifies the Extension's Provider Namespace. String String - - + none - - Version + + PublicConfiguration - - + Specifies the public configuration text. String String - - + none - - JoinOption + + Role - The join option enumeration. + Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - UInt32 + String[] - UInt32 + String[] - - + none - - WorkgroupName + + ThumbprintAlgorithm - The workgroup name. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - - + none - - CertificateThumbprint + + Version - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the extension version. String String - - + none - - Slot + + X509Certificate - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - string + X509Certificate2 - string + X509Certificate2 - - + none @@ -15553,13 +16504,15 @@ Remove-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" - + + - - + + + @@ -15568,866 +16521,289 @@ Remove-AzureVirtualIP -VirtualIPName "MyVip" -ServiceName "mySvc" - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Create an extension configuration - PS C:\> $extensionCfg = New-AzureServiceADDomainExtensionConfig -Role WorkerRole1 -DomainName $domain -Credential $cred -JoinOption 35; - -New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Configuration $config -ExtensionConfiguration $extensionCfg; + PS C:\>New-AzureServiceExtensionConfig -ExtensionName 'RDP' -Version '1.0' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; + + + This command specifies an extension configuration. + + + + + + + + + + + Example 2: Create an extension configuration for a role + + + + + PS C:\>New-AzureServiceExtensionConfig -Role WebRole1 -ExtensionName 'RDP' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; + - Description + This command specifies an extension configuration for the role WebRole1. + + - ----------- + - Unknown - - + Get-AzureServiceExtension + + + + Set-AzureServiceExtension + - - + - New-AzureServiceDiagnosticsExtensionConfig + New-AzureServiceRemoteDesktopExtensionConfig - This cmdlet generates configuration of diagnostics extension for specified role(s) or all roles. + Generates a remote desktop extension configuration for a deployment. New - AzureServiceDiagnosticsExtensionConfig + AzureServiceRemoteDesktopExtensionConfig - - This cmdlet generates configuration of diagnostics extension for specified role(s) or all roles. + The New-AzureServiceRemoteDesktopExtensionConfig cmdlet generates a configuration for a remote desktop extension for a deployment. - New-AzureServiceDiagnosticsExtensionConfig - + New-AzureServiceRemoteDesktopExtensionConfig + Role - An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. - String[] + String[] - - X509Certificate + + CertificateThumbprint - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - X509Certificate2 + String - + ThumbprintAlgorithm - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - StorageContext + + Credential - - + Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - AzureStorageContext + PSCredential - - DiagnosticsConfigurationPath + + Expiration - - + Specifies a DateTime object that allows the user to specify when the user account expires. - String + DateTime + + + Version + + Specifies the extension version. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - New-AzureServiceDiagnosticsExtensionConfig - + New-AzureServiceRemoteDesktopExtensionConfig + Role - An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. - String[] + String[] - - CertificateThumbprint + + X509Certificate - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - + ThumbprintAlgorithm - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - StorageContext + + Credential - - + Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - AzureStorageContext + PSCredential - - DiagnosticsConfigurationPath + + Expiration - - + Specifies a DateTime object that allows the user to specify when the user account expires. - String + DateTime + + + Version + + Specifies the extension version. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - Role + + CertificateThumbprint - An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - String[] + String - String[] + String - - + none - - X509Certificate + + Credential - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - X509Certificate2 + PSCredential - X509Certificate2 + PSCredential - - + none - - ThumbprintAlgorithm + + Expiration - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a DateTime object that allows the user to specify when the user account expires. - String + DateTime - String + DateTime - - + none - - StorageContext + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureStorageContext + AzureProfile - AzureStorageContext + AzureProfile - - + none - - DiagnosticsConfigurationPath + + Role - - + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. - String + String[] + + String[] + + + none + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String String - - + none - - CertificateThumbprint + + Version - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the extension version. - String + String String - - - - - DiagnosticsConfiguration - - Configuration for Microsoft Azure diagnostics. The schema is: -<?xml version="1.0" encoding="utf-8"?> -<xs:schema id="DiagnosticsConfigSchema" - targetNamespace="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" - elementFormDefault="qualified" - xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" - xmlns:wad="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" - xmlns:mstns="http://tempuri.org/XMLSchema.xsd" - xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:simpleType name="PositiveDuration"> - <xs:restriction base="xs:duration"> - <xs:minInclusive value="PT0S" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="LogLevel"> - <xs:restriction base="xs:string"> - <xs:enumeration value="Undefined" /> - <xs:enumeration value="Verbose" /> - <xs:enumeration value="Information" /> - <xs:enumeration value="Warning" /> - <xs:enumeration value="Error" /> - <xs:enumeration value="Critical" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="ContainerName"> - <xs:restriction base="xs:string"> - <xs:pattern value="[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="locale"> - <xs:restriction base="xs:string"> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="displayName"> - <xs:restriction base="xs:string"> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="AbsolutePathWithEnvironmentExpansion"> - <xs:restriction base="xs:string"> - <xs:pattern value="([a-zA-Z]:\)?([^&lt;&gt;:&quot;/|?*]+)*(\)?" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="RelativePathWithEnvironmentExpansion"> - <xs:restriction base="xs:string"> - <xs:pattern value="([^&lt;&gt;:&quot;/\|?*]+)(\([^&lt;&gt;:&quot;/\|?*]+))*(\)?" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="PerformanceCounterPath"> - <xs:restriction base="xs:string"> - <xs:pattern value="\.*" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="EventNameType"> - <xs:restriction base="xs:string"> - <xs:pattern value="[a-zA-Z][_a-zA-Z0-9]{0,59}" /> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="CrashDumpType" > - <xs:restriction base="xs:string"> - <xs:enumeration value="Mini"/> - <xs:enumeration value="Full"/> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="NamedElementNameString"> - <xs:restriction base="xs:string"> - <xs:pattern value="^[a-zA-Z_][^\\/\:\*\?\&quot;\&lt;\&gt;\|]*(?&lt;![\.\s])$" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="format"> - <xs:restriction base="xs:string"> - <xs:enumeration value="Manifest" /> - <xs:enumeration value="EventSource" /> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="directoryQuotaPercentage"> - <xs:restriction base="xs:integer"> - <xs:minInclusive value="0"/> - <xs:maxInclusive value="100"/> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="guidType"> - <xs:annotation> - <xs:documentation> - A GUID. Brackets (and only brakets) before and/or after are ignored. e.g. {12345678-1234-1234-1234-123456789abc}, {12345678-1234-1234-1234-123456789abc, 12345678-1234-1234-1234-123456789abc} and 12345678-1234-1234-1234-123456789abc are valid. - </xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$"/> - </xs:restriction> - </xs:simpleType> - - <xs:attributeGroup name="BasicConfiguration"> - <xs:attribute name="scheduledTransferPeriod" type="PositiveDuration" use="optional" default="PT0S"> - <xs:annotation> - <xs:documentation> - The interval between scheduled transfers for this data, rounded up to the nearest minute. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:attributeGroup> - - <xs:attributeGroup name="ETWConfiguration"> - <xs:attribute name="scheduledTransferPeriod" type="PositiveDuration" use="optional" default="PT0S"> - <xs:annotation> - <xs:documentation> - The interval between scheduled transfers for this data, rounded up to the nearest minute. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="scheduledTransferLogLevelFilter" type="LogLevel" use="optional" default="Undefined"> - <xs:annotation> - <xs:documentation> - The minimum log severity to transfer. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="provider" type="xs:string" use="required"> - <xs:annotation> - <xs:documentation> - The provider guid or class name for event source - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="scheduledTransferKeywordFilter" type="xs:unsignedLong" use="optional" default="0" > - <xs:annotation> - <xs:documentation> - The keyword to filter by - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:attributeGroup> - - <xs:attributeGroup name="LogLevel"> - <xs:attribute name="scheduledTransferLogLevelFilter" type="LogLevel" use="optional" default="Undefined"> - <xs:annotation> - <xs:documentation> - The minimum log severity to transfer. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:attributeGroup> - - <xs:attributeGroup name="DirectoryAttributes"> - <xs:attribute name="containerName" type="wad:ContainerName" use="required"> - <xs:annotation> - <xs:documentation> - The name of the container where the content of the directory is to be transferred. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:attributeGroup> - - <xs:attributeGroup name="CrashDumpConfiguration"> - <xs:attribute name="directoryQuotaPercentage" type="directoryQuotaPercentage" use="optional" default="10"> - <xs:annotation> - <xs:documentation> - The percentage of directory quota used by crashdumps - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="dumpType" type="CrashDumpType" use="optional" default="Mini"> - <xs:annotation> - <xs:documentation> - The type of crashdump - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="containerName" type="wad:ContainerName" use="optional" default="wad-crashdumps"> - <xs:annotation> - <xs:documentation> - The blob container to store the crashdumps - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:attributeGroup> - - <xs:complexType name="LogsBase"> - <xs:attributeGroup ref="BasicConfiguration" /> - </xs:complexType> - - <xs:complexType name="EtwEventsBase"> - <xs:attributeGroup ref="ETWConfiguration" /> - </xs:complexType> - - <xs:complexType name ="CrashDumpsBase"> - <xs:attributeGroup ref="CrashDumpConfiguration"/> - </xs:complexType> - - <xs:complexType name="EtwManifestProviderConfiguration"> - <xs:complexContent> - <xs:extension base="EtwEventsBase"> - <xs:sequence> - <xs:element maxOccurs="unbounded" name="Event" minOccurs="0"> - <xs:complexType> - <xs:attribute name="id" type="xs:int" use="required"> - <xs:annotation> - <xs:documentation> - The id of the ETW event that is to be collected - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="eventDestination" type="EventNameType" use="optional"> - <xs:annotation> - <xs:documentation> - The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Event'+'MD5 of the provider'+EventId#. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - </xs:element> - <xs:element name="DefaultEvents" minOccurs="0" maxOccurs="1"> - <xs:complexType> - <xs:attribute name="eventDestination" type="EventNameType" use="optional"> - <xs:annotation> - <xs:documentation> - The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Default'+'MD5 of the provider'+EventId#. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="EtwEventSourceProviderConfiguration"> - <xs:complexContent> - <xs:extension base="EtwEventsBase"> - <xs:sequence> - <xs:element maxOccurs="unbounded" name="Event" minOccurs="0"> - <xs:complexType> - <xs:attribute name="id" type="xs:int" use="required"> - <xs:annotation> - <xs:documentation> - The id of the ETW event that is to be collected - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="eventDestination" type="EventNameType" use="optional"> - <xs:annotation> - <xs:documentation> - The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Event'+'MD5 of the provider'+EventId#. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - </xs:element> - <xs:element name="DefaultEvents" minOccurs="0" maxOccurs="1"> - <xs:complexType> - <xs:attribute name="eventDestination" type="EventNameType" use="optional"> - <xs:annotation> - <xs:documentation> - The name of the table in which the event data will be stored. If this attribute is not defined the table's name is 'Default'+'MD5 of the provider'+EventId#. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="EtwProviders"> - <xs:sequence maxOccurs="unbounded"> - <xs:element name="EtwEventSourceProviderConfiguration" type="EtwEventSourceProviderConfiguration" minOccurs="0" > - <xs:annotation> - <xs:documentation> - ETW collection by event source - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="EtwManifestProviderConfiguration" type="EtwManifestProviderConfiguration" minOccurs="0"> - <xs:annotation> - <xs:documentation> - ETW collection by manifest - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="CrashDumpConfiguration"> - <xs:attribute name="processName" type="xs:string" use="required"> - <xs:annotation> - <xs:documentation> - The name of the process to to monitor for crashes. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - - <xs:complexType name="CrashDumps"> - <xs:complexContent> - <xs:extension base="CrashDumpsBase"> - <xs:sequence maxOccurs="unbounded"> - <xs:element name="CrashDumpConfiguration" type="CrashDumpConfiguration"> - <xs:annotation> - <xs:documentation> - The crashdump to collect - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="DiagnosticInfrastructureLogs"> - <xs:complexContent> - <xs:extension base="LogsBase"> - <xs:attributeGroup ref="LogLevel" /> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - - <xs:complexType name="DirectoryBase" /> - - <xs:complexType name="DirectoryAbsolute"> - <xs:complexContent> - <xs:extension base="DirectoryBase"> - <xs:attribute name="path" type="AbsolutePathWithEnvironmentExpansion" use="required"> - <xs:annotation> - <xs:documentation> - The absolute path to the directory to monitor. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="expandEnvironment" type="xs:boolean" use="required"> - <xs:annotation> - <xs:documentation> - If true, then environment variables in the path will be expanded. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="DirectoryLocalResource"> - <xs:complexContent> - <xs:extension base="DirectoryBase"> - <xs:attribute name="relativePath" type="RelativePathWithEnvironmentExpansion" use="required"> - <xs:annotation> - <xs:documentation> - The path relative to the local resource to monitor. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="name" type="NamedElementNameString" use="required"> - <xs:annotation> - <xs:documentation> - The local resource that contains the directory to monitor. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="DirectoryConfiguration"> - <xs:choice> - <xs:element name="Absolute" type="DirectoryAbsolute"> - <xs:annotation> - <xs:documentation> - The absolute path to the directory to monitor. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="LocalResource" type="DirectoryLocalResource"> - <xs:annotation> - <xs:documentation> - The path relative to a local resource to monitor. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:choice> - <xs:attributeGroup ref="DirectoryAttributes" /> - </xs:complexType> - - <xs:complexType name="SpecialLogDirectory"> - <xs:attributeGroup ref="DirectoryAttributes" /> - </xs:complexType> - - <xs:complexType name="DataSources"> - <xs:sequence> - <xs:element name="DirectoryConfiguration" type="DirectoryConfiguration" maxOccurs="unbounded"> - <xs:annotation> - <xs:documentation> - The directory of log files to monitor. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="Directories"> - <xs:complexContent> - <xs:extension base="LogsBase"> - <xs:all> - <xs:element name="IISLogs" type="SpecialLogDirectory" minOccurs="0"> - <xs:annotation> - <xs:documentation> - The IIS log directory. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="FailedRequestLogs" type="SpecialLogDirectory" minOccurs="0"> - <xs:annotation> - <xs:documentation> - The failed request log directory. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="DataSources" type="DataSources" minOccurs="0"> - <xs:annotation> - <xs:documentation> - Additional log directories. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:all> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="annotation"> - <xs:attribute name="displayName" type="displayName" use="required"> - <xs:annotation> - <xs:documentation> - The display name for the performance counter. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="locale" type="locale" use="optional" default="en-US"> - <xs:annotation> - <xs:documentation> - The locale for the performance counter diplay name. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - - <xs:complexType name="PerformanceCounterConfiguration"> - <xs:sequence minOccurs="0"> - <xs:element maxOccurs="unbounded" name="annotation" type="annotation"> - <xs:annotation> - <xs:documentation> - The display name and locale for the performance counter - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - <xs:attribute name="counterSpecifier" type="PerformanceCounterPath" use="required"> - <xs:annotation> - <xs:documentation> - The path to the performance counter to collect. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="sampleRate" type="PositiveDuration" use="required"> - <xs:annotation> - <xs:documentation> - The rate at which the performance counter should be sampled. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="unit" type="xs:string" use="optional"> - <xs:annotation> - <xs:documentation> - The unit for the performance counter for display purposes. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - - <xs:complexType name="PerformanceCounters"> - <xs:complexContent> - <xs:extension base="LogsBase"> - <xs:sequence maxOccurs="unbounded"> - <xs:element name="PerformanceCounterConfiguration" type="PerformanceCounterConfiguration"> - <xs:annotation> - <xs:documentation> - The performance counter to collect. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - - - <xs:complexType name="DataSource"> - <xs:attribute name="name" type="xs:string" use="required"> - <xs:annotation> - <xs:documentation> - An XPath expression specifying the logs to collect. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - - <xs:complexType name="WindowsEventLog"> - <xs:complexContent> - <xs:extension base="LogsBase"> - <xs:sequence maxOccurs="unbounded"> - <xs:element name="DataSource" type="DataSource"> - <xs:annotation> - <xs:documentation> - The event log to monitor. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:extension> - </xs:complexContent> - </xs:complexType> - - <xs:complexType name="DiagnosticMonitorConfiguration"> - <xs:all> - <xs:element name="DiagnosticInfrastructureLogs" type="DiagnosticInfrastructureLogs" minOccurs="0"> - <xs:annotation> - <xs:documentation> - Configures the logs generated by the underlying diagnostics infrastructure. The diagnostic infrastructure logs are useful for troubleshooting the diagnostics system itself. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="Directories" type="Directories" minOccurs="0"> - <xs:annotation> - <xs:documentation> - Describes the configuration of a directory to which file-based logs are written. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="PerformanceCounters" type="PerformanceCounters" minOccurs="0"> - <xs:annotation> - <xs:documentation> - Configures performance counter collection. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="WindowsEventLog" type="WindowsEventLog" minOccurs="0"> - <xs:annotation> - <xs:documentation> - Configures Windows event log collection. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="EtwProviders" type="EtwProviders" minOccurs="0"> - <xs:annotation> - <xs:documentation> - Configures ETW event collection. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="CrashDumps" type="CrashDumps" minOccurs="0"> - <xs:annotation> - <xs:documentation> - Configures crashdump collection. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:all> - - <xs:attribute name="overallQuotaInMB" type="xs:unsignedInt" use="optional" default="5120"> - <xs:annotation> - <xs:documentation> - The total amount of file system storage allocated for all logging buffers. - </xs:documentation> - </xs:annotation> - </xs:attribute> - <xs:attribute name="useProxyServer" type="xs:boolean" use="optional" default="true"> - <xs:annotation> - <xs:documentation> - Force the Monitoring Agent to use the specified IE proxy server if specified. - </xs:documentation> - </xs:annotation> - </xs:attribute> - </xs:complexType> - - <xs:element name="PublicConfig"> - <xs:complexType> - <xs:all> - <xs:element name="WadCfg"> - <xs:complexType> - <xs:sequence> - <xs:element name="DiagnosticMonitorConfiguration" type="DiagnosticMonitorConfiguration" minOccurs="1" maxOccurs="1" /> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="LocalResourceDirectory" minOccurs="0" maxOccurs="1" type="DirectoryAbsolute" /> - <xs:element name="StorageAccount" minOccurs="0" maxOccurs="1" type="xs:string" /> - </xs:all> - </xs:complexType> - </xs:element> -</xs:schema> - - xmldocument - - xmldocument - - - - + none - - StorageAccountName + + X509Certificate - The name of the storage account diagnostics will use to store diagnostics data such as performance counter data and file logs. + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - string + X509Certificate2 - string + X509Certificate2 - - + none @@ -16435,13 +16811,15 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + @@ -16450,329 +16828,259 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Generate a remote desktop extension configuration - PS C:\> $wadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML + PS C:\>$rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred + - Description + This command generates a remote desktop extension configuration for the specified credentials. + + - -----------Creates an object that has the service extension object default for all roles that will be installed with the deployment and the role configuration. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Generate a remote desktop extension configuration for a specified role - PS C:\> $wadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML -Role "WebRole1" + PS C:\>$rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred -Role "WebRole01" + - Description + This command generates a remote desktop extension configuration for the specified credentials and the WebRole01 role. + + - -----------Creates an object that has the service extension object for a specific role that will be installed with the deployment and the role configuration. + - Unknown - - + Set-AzureServiceRemoteDesktopExtension + - - + - New-AzureServiceExtensionConfig + New-AzureService - This cmdlet creates a cloud service extension configuration for a deployment. + Creates an Azure service. New - AzureServiceExtensionConfig + AzureService - - This cmdlet creates a cloud service extension configuration for a deployment. + The New-AzureService cmdlet creates a new Azure service in the current subscription. - New-AzureServiceExtensionConfig - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm + New-AzureService + + ServiceName - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of the new service. The name must be unique to the subscription. String - - ExtensionName + + AffinityGroup - - + Specifies the affinity group associated with the subscription. If you do not specify the Location parameter, an affinity group is required. String - - ProviderNamespace + + Label - The Extension's Provider Namespace. + Specifies a label for the service. The label may be up to 100 characters in length. - String + String - - PublicConfiguration + + Description - The public configuration text. + Specifies a description for the service. The description may be up to 1024 characters in length. - String + String - - PrivateConfiguration + + ReverseDnsFqdn - The private configuration text. + Specifies the fully qualified domain name for reverse DNS. - String + String - - Version + + Profile - The Extension Version. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - New-AzureServiceExtensionConfig - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint - - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - - String - - - ThumbprintAlgorithm + New-AzureService + + ServiceName - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of the new service. The name must be unique to the subscription. String - - ExtensionName + + Location - - + Specifies the location for the service. A location is required if there isn't a specified Affinity Group. String - - ProviderNamespace + + Label - The Extension's Provider Namespace. + Specifies a label for the service. The label may be up to 100 characters in length. - String + String - - PublicConfiguration + + Description - The public configuration text. + Specifies a description for the service. The description may be up to 1024 characters in length. - String + String - - PrivateConfiguration + + ReverseDnsFqdn - The private configuration text. + Specifies the fully qualified domain name for reverse DNS. - String + String - - Version + + Profile - The Extension Version. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - - - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - X509Certificate2 - - - - - - - ThumbprintAlgorithm + + AffinityGroup - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the affinity group associated with the subscription. If you do not specify the Location parameter, an affinity group is required. String String - - + none - - ExtensionName + + Description - - + Specifies a description for the service. The description may be up to 1024 characters in length. - String + String String - - + none - - ProviderNamespace + + Label - The Extension's Provider Namespace. + Specifies a label for the service. The label may be up to 100 characters in length. - String + String String - - + none - - PublicConfiguration + + Location - The public configuration text. + Specifies the location for the service. A location is required if there isn't a specified Affinity Group. String String - - + none - - PrivateConfiguration + + Profile - The private configuration text. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Version + + ReverseDnsFqdn - The Extension Version. + Specifies the fully qualified domain name for reverse DNS. - String + String String - - + none - - CertificateThumbprint + + ServiceName - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the name of the new service. The name must be unique to the subscription. String String - - + none @@ -16780,13 +17088,15 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + @@ -16795,275 +17105,183 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Create a service - PS C:\> New-AzureServiceExtensionConfig -ExtensionName 'RDP' -Version '1.0' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; + PS C:\>New-AzureService -ServiceName "MySvc01" -Label "MyTestService" -Location "South Central US" + - Description + This command creates a new service named MySvc01 in the South Central US location. + + - -----------Create the Remote Desktop Extension configuration in version 1.0 for all roles in the cloud service. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Create a service in an affinity group - PS C:\> New-AzureServiceExtensionConfig -Role WebRole1 -ExtensionName 'RDP' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; + PS C:\>New-AzureService -ServiceName "MySvc01" -AffinityGroup NorthRegion + - Description + This command creates a new service named MySvc01 using the NorthRegion affinity group. + + - -----------Create the Remote Desktop Extension configuration for the 'WebRole1' role in the cloud service. + - Unknown - - + Get-AzureService + + + + Set-AzureService + - - + - New-AzureServiceRemoteDesktopExtensionConfig + New-AzureSSHKey - This cmdlets generates configuration of remote desktop extension for any deployment. + Creates a SSH Key object to insert an existing certificate into a new Linux-based Azure virtual machines. New - AzureServiceRemoteDesktopExtensionConfig + AzureSSHKey - - This cmdlets generates configuration of remote desktop extension for any deployment. + The New-AzureSSHKey cmdlet creates an SSH Key object for a certificate that has already been added to Azure. This SSH Key object can then be used by New-AzureProvisioningConfig when creating the configuration object for a new virtual machine using New-AzureVM, or when creating a new virtual machine with New-AzureQuickVM. When included as part of a virtual machine creation script, this adds the specified SSH Public Key or Key Pair to the new virtual machine. - New-AzureServiceRemoteDesktopExtensionConfig - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate + New-AzureSSHKey + + KeyPair - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies that this cmdlet creates an object for inserting an SSH Key Pair into the new virtual machine configuration. - X509Certificate2 - - ThumbprintAlgorithm + + Fingerprint - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the fingerprint of the certificate. String - - Credential - - The credentials (user name/password) to enable for remote desktop. - - PSCredential - - - Expiration - - A date time object that allows the user to specify when the user account will expire. - - DateTime - - - Version + + Path - - + Specifies the path to store the SSH Public Key or Key Pair. String - New-AzureServiceRemoteDesktopExtensionConfig - - Role + New-AzureSSHKey + + PublicKey - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies that this cmdlet creates an object for inserting an SSH Public Key into the new virtual machine configuration. - String[] - - CertificateThumbprint + + Fingerprint - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the fingerprint of the certificate. String - - ThumbprintAlgorithm + + Path - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - Credential - - The credentials (user name/password) to enable for remote desktop. - - PSCredential - - - Expiration - - A date time object that allows the user to specify when the user account will expire. - - DateTime - - - Version - - - + Specifies the path to store the SSH Public Key or Key Pair. String - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - - - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - X509Certificate2 - - - - - - - ThumbprintAlgorithm + + Fingerprint - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the fingerprint of the certificate. String String - - - - - Credential - - The credentials (user name/password) to enable for remote desktop. - - PSCredential - - PSCredential - - - - + none - - Expiration + + KeyPair - A date time object that allows the user to specify when the user account will expire. + Specifies that this cmdlet creates an object for inserting an SSH Key Pair into the new virtual machine configuration. - DateTime + SwitchParameter - DateTime + SwitchParameter - - + none - - Version + + Path - - + Specifies the path to store the SSH Public Key or Key Pair. String String - - + none - - CertificateThumbprint + + PublicKey - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies that this cmdlet creates an object for inserting an SSH Public Key into the new virtual machine configuration. - String + SwitchParameter - String + SwitchParameter - - + none @@ -17071,13 +17289,15 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + @@ -17086,191 +17306,302 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Create a certificate setting object - PS C:\> $rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred + PS C:\>$myLxCert = New-AzureSSHKey -Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" -Path "/home/username/.ssh/authorized_keys" + - Description + This command creates a certificate setting object for an existing certificate and then stores the object in a variable for later use. + + - -----------Creates an object that has the service extension object default for all roles that will be installed with the deployment and the role configuration. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Add a certificate to a service - PS C:\> $rdpConfig = New-AzureServiceRemoteDesktopExtensionConfig -Credential $cred -Role "WebRole1" + PS C:\>Add-AzureCertificate -ServiceName "MySvc" -CertToDeploy "C:\temp\MyLxCert.cer" +$myLxCert = New-AzureSSHKey ?Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" -Path "/home/username/.ssh/authorized_keys" +New-AzureVMConfig -Name "MyVM2" -InstanceSize Small -ImageName $LxImage ` + | Add-AzureProvisioningConfig -Linux -LinuxUser $lxUser -SSHPublicKeys $myLxCert -Password 'pass@word1' ` + | New-AzureVM -ServiceName "MySvc" + - Description + This command adds a certificate to an Azure service, and then creates a new Linux virtual machine that uses the certificate. + + - -----------Creates an object that has the service extension object for a specific role that will be installed with the deployment and the role configuration. + - Unknown - - + Add-AzureProvisioningConfig + + + + New-AzureVMConfig + + + + New-AzureVM + + + + New-AzureQuickVM + - - + - New-AzureSSHKey + New-AzureStorageAccount - Creates a SSH Key object to insert an existing certificate into new Linux-based Microsoft Azure virtual machines. + Creates a new storage account in an Azure subscription. New - AzureSSHKey + AzureStorageAccount - - The New-AzureSSHKey cmdlet creates an SSH Key object for a certificate that has already been added to Microsoft Azure. This SSH Key object can then be used by New-AzureProvisioningConfig when creating the configuration object for a new virtual machine using New-AzureVM, or when creating a new virtual machine with New-AzureQuickVM. When included as part of a virtual machine creation script, this adds the specified SSH Public Key or Key Pair to the new virtual machine. + The New-AzureStorageAccount cmdlet creates an account that provides access to Azure storage services. A storage account is a globally unique resource within the storage system. The account is the parent namespace for the Blob, Queue, and Table services. - New-AzureSSHKey - - KeyPair + New-AzureStorageAccount + + StorageAccountName - When specified, creates an object for inserting an SSH Key Pair into the new virtual machine configuration. + Specifies a name for the storage account. The storage account name must be unique to Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. - SwitchParameter + String - - Fingerprint + + Description - Specifies the fingerprint of the certificate. + Specifies a description for the storage account. The description may be up to 1024 characters in length. - String + String - - Path + + Label - Specifies the path to store the SSH Public Key or Key Pair. + Specifies a label for the storage account. The label may be up to 100 characters in length. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Type + + Specifies the type of the storage account. Valid values are: + +-- Standard_LRS +-- Standard_ZRS +-- Standard_GRS +-- Standard_RAGRS +-- Premium_LRS + +If this parameter is not specified, the default value is Standard_GRS. + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + + String + + + AffinityGroup + + Specifies the name of an existing affinity group in the current subscription. You can specify either the Location or AffinityGroup parameter, but not both. String - New-AzureSSHKey - - PublicKey + New-AzureStorageAccount + + StorageAccountName - When specified, creates an object for inserting an SSH Public Key into the new virtual machine configuration. + Specifies a name for the storage account. The storage account name must be unique to Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. - SwitchParameter + String - - Fingerprint + + Description - Specifies the fingerprint of the certificate. + Specifies a description for the storage account. The description may be up to 1024 characters in length. - String + String - - Path + + Label - Specifies the path to store the SSH Public Key or Key Pair. + Specifies a label for the storage account. The label may be up to 100 characters in length. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Type + + Specifies the type of the storage account. Valid values are: + +-- Standard_LRS +-- Standard_ZRS +-- Standard_GRS +-- Standard_RAGRS +-- Premium_LRS + +If this parameter is not specified, the default value is Standard_GRS. + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + + String + + + Location + + Specifies the Azure data center location where the storage account is created. You can include either the Location or AffinityGroup parameter, but not both. String - - KeyPair + + AffinityGroup - When specified, creates an object for inserting an SSH Key Pair into the new virtual machine configuration. + Specifies the name of an existing affinity group in the current subscription. You can specify either the Location or AffinityGroup parameter, but not both. - SwitchParameter + String - SwitchParameter + String - - + none - - Fingerprint + + Description - Specifies the fingerprint of the certificate. + Specifies a description for the storage account. The description may be up to 1024 characters in length. + + String + + String + + + none + + + Label + + Specifies a label for the storage account. The label may be up to 100 characters in length. + + String + + String + + + none + + + Location + + Specifies the Azure data center location where the storage account is created. You can include either the Location or AffinityGroup parameter, but not both. String String - - + none - - Path + + Profile - Specifies the path to store the SSH Public Key or Key Pair. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + StorageAccountName + + Specifies a name for the storage account. The storage account name must be unique to Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. String String - - + none - - PublicKey + + Type - When specified, creates an object for inserting an SSH Public Key into the new virtual machine configuration. + Specifies the type of the storage account. Valid values are: + +-- Standard_LRS +-- Standard_ZRS +-- Standard_GRS +-- Standard_RAGRS +-- Premium_LRS + +If this parameter is not specified, the default value is Standard_GRS. + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. - SwitchParameter + String - SwitchParameter + String - - + none @@ -17278,13 +17609,15 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + @@ -17293,309 +17626,152 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Create a storage account for a specified affinity group - PS C:\> C:\PS>$myLxCert = New-AzureSSHKey –Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –Path "/home/username/.ssh/authorized_keys" + PS C:\>New-AzureStorageAccount -StorageAccountName "azure01" -Label "AzureOne" -AffinityGroup "prodapps" + - This command creates a certificate setting object for an existing certificate and then stores the object in a variable for later use. + This command creates a storage account for a specified affinity group. + + - - + - -------------------------- Example 2 -------------------------- + Example 1: Create a storage account in a specified location - PS C:\> C:\PS>Add-AzureCertificate –ServiceName "MySvc" –CertToDeploy "C:\temp\MyLxCert.cer" - C:\PS>$myLxCert = New-AzureSSHKey –Fingerprint "D7BECD4D63EBAF86023BB4F1A5FBF5C2C924902A" –Path "/home/username/.ssh/authorized_keys" - C:\PC>New-AzureVMConfig -Name "MyVM2" -InstanceSize Small -ImageName $LxImage ` - | Add-AzureProvisioningConfig -Linux -LinuxUser $lxUser -SSHPublicKeys $myLxCert -Password 'pass@word1' ` - | New-AzureVM -ServiceName "MySvc" + PS C:\>New-AzureStorageAccount -StorageAccountName "azure02" -Label "AzureTwo" -Location "North Central US" + - This command adds a certificate to the Microsoft Azure service, and then creates a new Linux virtual machine that uses the certificate. + This command creates a storage account in a specified location. + + - - + - Add-AzureProvisioningConfig - - - - - New-AzureVMConfig - - - - - New-AzureVM - - + Get-AzureStorageAccount + - New-AzureQuickVM - - + Set-AzureStorageAccount + - - + - New-AzureStorageAccount + New-AzureStorageKey - Creates a new storage account in a Microsoft Azure subscription. + Regenerates storage keys for an Azure storage account. New - AzureStorageAccount + AzureStorageKey - - The New-AzureStorageAccount cmdlet creates an account that provides access to Microsoft Azure storage services. A storage account is a globally unique resource within the storage system. The account is the parent namespace for the Blob, Queue, and Table services. + The New-AzureStorageKey cmdlet regenerates the primary or secondary key for an Azure Storage account. It returns an object that contains the storage account name, primary key, and secondary key as properties. - New-AzureStorageAccount - - StorageAccountName + New-AzureStorageKey + + KeyType - Specifies a name for the storage account. The storage account name must be unique to Microsoft Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. + Specifies which key to regenerate. Valid values are: Primary and Secondary. - String + + Primary + Secondary + - - Label + + StorageAccountName - Specifies a label for the storage account. The label may be up to 100 characters in length. + Specifies the name of the Azure Storage account for which to regenerate a key. String - - Description + + Profile - Specifies a description for the storage account. The description may be up to 1024 characters in length. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String - - - AffinityGroup - - Specifies the name of an existing affinity group in the current subscription. You can specify either a Location or an AffinityGroup parameter, but not both. - - String - - - Type - - Specifies the type of the storage account. Valid values are - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - - If this parameter is not specified, a default value of Standard_GRS is used - - Note: - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. - - String - - - - New-AzureStorageAccount - - StorageAccountName - - Specifies a name for the storage account. The storage account name must be unique to Microsoft Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. - - String - - - Label - - Specifies a label for the storage account. The label may be up to 100 characters in length. - - String - - - Description - - Specifies a description for the storage account. The description may be up to 1024 characters in length. - - String - - - Location - - Specifies the Microsoft Azure data center location where the storage account is created. You can include either a Location or an AffinityGroup parameter, but not both. - - String - - - Type - - Specifies the type of the storage account. Valid values are - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - - If this parameter is not specified, a default value of Standard_GRS is used - - Note: - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. - - String + AzureProfile - - StorageAccountName - - Specifies a name for the storage account. The storage account name must be unique to Microsoft Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only. - - String - - String - - - - - - - Label - - Specifies a label for the storage account. The label may be up to 100 characters in length. - - String - - String - - - - - - - Description - - Specifies a description for the storage account. The description may be up to 1024 characters in length. - - String - - String - - - - - - - AffinityGroup + + KeyType - Specifies the name of an existing affinity group in the current subscription. You can specify either a Location or an AffinityGroup parameter, but not both. + Specifies which key to regenerate. Valid values are: Primary and Secondary. String String - - + none - - Type + + Profile - Specifies the type of the storage account. Valid values are - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - - If this parameter is not specified, a default value of Standard_GRS is used - - Note: - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Location + + StorageAccountName - Specifies the Microsoft Azure data center location where the storage account is created. You can include either a Location or an AffinityGroup parameter, but not both. + Specifies the name of the Azure Storage account for which to regenerate a key. String String - - - - - PipelineVariable - - Not Specified - - string - - string - - - - + none @@ -17603,612 +17779,837 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + - - - + StorageServiceKeys + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Regenerate a primary storage key - PS C:\> New-AzureStorageAccount -StorageAccountName "azure1" -Label "AzureOne" -AffinityGroup "prodapps" + PS C:\>New-AzureStorageKey -KeyType "Primary" -StorageAccountName "ContosoStore01" + - Description + This command regenerates the primary storage key for the ContosoStore01 storage account. + + - -----------Creates a new storage account named "azure1" and assigns it to the "prodapps" affinity group. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Regenerate a secondary storage key and save it in a variable - PS C:\> New-AzureStorageAccount -StorageAccountName "azuretwo" -Label "AzureTwo" -Location "North Central US" + PS C:\>$ContosoStoreKey = New-AzureStorageKey -KeyType "Secondary" -StorageAccountName "ContosoStore01" + - Description + This command regenerate the secondary storage key for the ContosoStore01 storage account and stores the updated storage account key information in the $ContosoStoreKey. + + - -----------Creates a new storage account named "azuretwo" in the "North Central US" data center location. + - Unknown - - + Get-AzureStorageKey + - - + - New-AzureStorageKey + New-AzureVMConfig - Regenerates storage keys for a Microsoft Azure storage account. + Creates an Azure virtual machine configuration object. New - AzureStorageKey + AzureVMConfig - - The New-AzureStorageKey cmdlet regenerates the primary or secondary key for a Microsoft Azure storage account. It returns an object with the storage account name, primary key, and secondary key as properties. + The New-AzureVMConfig cmdlet creates an Azure virtual machine configuration object. You can use this object to perform a new deployment and add a new virtual machine to an existing deployment. - New-AzureStorageKey - - KeyType + New-AzureVMConfig + + Name - Specifies which key to regenerate. Supported values are "Primary" and "Secondary". + Specifies the name of the virtual machine. String - - StorageAccountName + + InstanceSize + + Specifies the size of the instance. + The acceptable values for this parameter are: + +-- ExtraSmall +-- Small +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 +-- A8 +-- A9 +-- Basic_A0 +-- Basic_A1 +-- Basic_A2 +-- Basic_A3 +-- Basic_A4 +-- Standard_D1 +-- Standard_D2 +-- Standard_D3 +-- Standard_D4 +-- Standard_D11 +-- Standard_D12 +-- Standard_D13 +-- Standard_D14 + + String + + + HostCaching + + Specifies the host caching mode for the operating system disk. + Valid values are: + +-- ReadOnly +-- ReadWrite + + + ReadWrite + ReadOnly + + + + AvailabilitySetName + + Specifies the name of the availability set. + + String + + + Label + + Specifies a label to assign to the virtual machine. + + String + + + ImageName + + Specifies the name of the virtual machine image to use for the operating system disk. + + String + + + DiskLabel + + Specifies a label for the operating system disk. + + String + + + MediaLocation + + Specifies the Azure storage location for the new virtual machine disk. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + New-AzureVMConfig + + Name + + Specifies the name of the virtual machine. + + String + + + InstanceSize + + Specifies the size of the instance. + The acceptable values for this parameter are: + +-- ExtraSmall +-- Small +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 +-- A8 +-- A9 +-- Basic_A0 +-- Basic_A1 +-- Basic_A2 +-- Basic_A3 +-- Basic_A4 +-- Standard_D1 +-- Standard_D2 +-- Standard_D3 +-- Standard_D4 +-- Standard_D11 +-- Standard_D12 +-- Standard_D13 +-- Standard_D14 + + String + + + HostCaching + + Specifies the host caching mode for the operating system disk. + Valid values are: + +-- ReadOnly +-- ReadWrite + + + ReadWrite + ReadOnly + + + + AvailabilitySetName + + Specifies the name of the availability set. + + String + + + Label + + Specifies a label to assign to the virtual machine. + + String + + + DiskName - Specifies the name of the Microsoft Azure storage account to regenerate a key for. + Specifies a name for the operating system disk. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - - KeyType + + AvailabilitySetName - Specifies which key to regenerate. Supported values are "Primary" and "Secondary". + Specifies the name of the availability set. - String + String String - - + none - - StorageAccountName + + DiskLabel - Specifies the name of the Microsoft Azure storage account to regenerate a key for. + Specifies a label for the operating system disk. - String + String String - - + none - - - + + DiskName + + Specifies a name for the operating system disk. + + String - - + String - - - - + none + + + HostCaching + Specifies the host caching mode for the operating system disk. + Valid values are: + +-- ReadOnly +-- ReadWrite - - - - + String - StorageServiceKeys + String - - - - + none + + + ImageName + Specifies the name of the virtual machine image to use for the operating system disk. - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + String + + String + + + none + + + InstanceSize + + Specifies the size of the instance. + The acceptable values for this parameter are: + +-- ExtraSmall +-- Small +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 +-- A8 +-- A9 +-- Basic_A0 +-- Basic_A1 +-- Basic_A2 +-- Basic_A3 +-- Basic_A4 +-- Standard_D1 +-- Standard_D2 +-- Standard_D3 +-- Standard_D4 +-- Standard_D11 +-- Standard_D12 +-- Standard_D13 +-- Standard_D14 + + String + + String + + + none + + + Label + + Specifies a label to assign to the virtual machine. + + String + + String + + + none + + + MediaLocation + + Specifies the Azure storage location for the new virtual machine disk. + + String + + String + + + none + + + Name + + Specifies the name of the virtual machine. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -------------------------- Example 1 -------------------------- + Example 1: Create a Windows virtual machine configuration - PS C:\> New-AzureStorageKey –KeyType "Primary" –StorageAccountName "mystore1" + PS C:\>$Image = (Get-AzureVMImage)[4].ImageName +C:\PS> New-AzureVMConfig -Name "MyVM1" -InstanceSize ExtraSmall -ImageName $Image | Add-AzureProvisioningConfig -Windows -Password $AdminPassword | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "Datadisk1" -LUN 0 | New-AzureVM –ServiceName "MySvc1" + - This command regenerate the primary storage key for the "mystore1" storage account. + This command creates a Windows virtual machine configuration with operating system disk, data disk and provisioning configuration. This configuration is then used to create a new virtual machine. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Create a Linux virtual machine configuration - PS C:\> $myStoreKey = New-AzureStorageKey –KeyType "Secondary" –StorageAccountName "mystore1" + PS C:\>$Image = (Get-AzureVMImage)[7].ImageName +C:\PS> New-AzureVMConfig -Name "MyVM1" -InstanceSize ExtraSmall -ImageName $Image | Add-AzureProvisioningConfig –Linux –LinuxUser $LinuxUser -Password $AdminPassword | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "Datadisk1" -LUN 0 | New-AzureVM –ServiceName "MySvc1" + - This command regenerate the secondary storage key for the "mystore1" storage account and stores the updated storage account key information in $myStoreKey. + This command creates a new Linux virtual machine configuration with operating system disk, data disk and provisioning configuration. This configuration is then used to create a new virtual machine. + + - - + + + Azure Service Cmdlets + + - - + - New-AzureVM + New-AzureVMImageDiskConfigSet - Creates a new Microsoft Azure virtual machine. + Creates a disk configuration set object. New - AzureVM + AzureVMImageDiskConfigSet - - The New-AzureVM cmdlet adds a new virtual machine to an existing Microsoft Azure service, or creates a new virtual machine and service in the current subscription if either the -Location or -AffinityGroup is specified. + The New-AzureVMImageDiskConfigSet cmdlet creates a disk configuration set object that is passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the virtual machine image. - New-AzureVM - - ServiceName + New-AzureVMImageDiskConfigSet + + + + + + + + + + + - Specifies the new or existing service name. - - If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. - If the service exists, the -Location or -AffinityGroup parameter is not needed. + - String - - - DeploymentLabel + + + + + + + + + + + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + - Specifies a label for the deployment + - String - - - DeploymentName + + + + + + + + + + + + Example 1: Create a disk configuration set object + + + + + PS C:\>$Disk = New-AzureDiskConfigSet +PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite +PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -Name "Test" -HostCaching "ReadWrite" -LUN 0 +PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description "Test1" -DiskConfigSet $Disk; + + + This command creates a disk configuration set object and stores the results in the variable named $Disk. After the disk configuration is created, it is used to set the OSDiskConfig and DataDiskConfig. Then the virtual machine is updated with the configuration. + + + + + + + + + + + + + Get-AzureVMImageDiskConfigSet + + + + Set-AzureVMImageOSDiskConfig + + + + Set-AzureVMImageDataDiskConfig + + + + + + + New-AzureVMSqlServerAutoBackupConfig + + Creates a configuration object for SQL Server automatic backup. + + + + + New + AzureVMSqlServerAutoBackupConfig + + + + The New-AzureVMSqlServerAutoBackupConfig cmdlet creates a configuration object for SQL Server automatic backup. + + + + New-AzureVMSqlServerAutoBackupConfig + + Enable - Specifies a deployment name. If not specified, the service name will be used as the deployment name. + Indicates that automated backup for the SQL Server virtual machine is enabled. If you use this parameter, automated backup sets a backup schedule for all current and new databases. This updates your Managed Backup settings to follow this schedule. - String - - VNetName + + RetentionPeriodInDays - Specifies the virtual network name where the new virtual machine will be deployed. - String + Int32 - - DnsSettings + + EnableEncryption - Specifies a DNS Server object that defines the DNS settings for the new deployment. + + - DnsServer[] - - InternalLoadBalancerConfig + + CertificatePassword - Not Specified + Specifies a password to encrypt the certificate that is used to perform SQL Server encrypted backups. - InternalLoadBalancerConfig + SecureString - - VMs + + StorageUri - A list of virtual machine objects to create. + Specifies a URI to the blob storage account. - PersistentVM[] + Uri - - WaitForBoot + + StorageKey - Waits for VM to reach "ReadyRole" state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + Specifies the storage key of the blob storage account. - SwitchParameter + SecureString - - ReservedIPName + + Profile - Reserved IP Name. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - New-AzureVM - - ServiceName - - Specifies the new or existing service name. - - If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. - If the service exists, the -Location or -AffinityGroup parameter is not needed. - - String - - - Location - - Specifies the location where the new service will be hosted. This parameter should not be used if you are using a service that already exists. - - String - - - AffinityGroup + New-AzureVMSqlServerAutoBackupConfig + + Enable - Specifies the Microsoft Azure affinity group the cloud service will reside in. Only valid when creating a new cloud service. + Indicates that automated backup for the SQL Server virtual machine is enabled. If you use this parameter, automated backup sets a backup schedule for all current and new databases. This updates your Managed Backup settings to follow this schedule. - String - - ServiceLabel + + RetentionPeriodInDays - Specifies a label for the new service. - String + Int32 - - ReverseDnsFqdn + + EnableEncryption - String - - - ServiceDescription - - Specifies a description for the new service. - - String - - - DeploymentLabel - - Specifies a label for the deployment - - String - - - DeploymentName - - Specifies a deployment name. If not specified, the service name will be used as the deployment name. - - String - - - VNetName - - Specifies the virtual network name where the new virtual machine will be deployed. - - String - - DnsSettings + + CertificatePassword - Specifies a DNS Server object that defines the DNS settings for the new deployment. + Specifies a password to encrypt the certificate that is used to perform SQL Server encrypted backups. - DnsServer[] + SecureString - - InternalLoadBalancerConfig + + StorageContext - Not Specified + Specifies the storage account to be used to store backups. Default is the storage account associated with the SQL Server virtual machine. - InternalLoadBalancerConfig + AzureStorageContext - - VMs + + StorageUri - A list of virtual machine objects to create. + Specifies a URI to the blob storage account. - PersistentVM[] + Uri - - WaitForBoot + + StorageKey - Waits for VM to reach "ReadyRole" state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + Specifies the storage key of the blob storage account. - SwitchParameter + SecureString - - ReservedIPName + + Profile - Reserved IP Name. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - ServiceName + + CertificatePassword - Specifies the new or existing service name. - - If the service does not exist, this parameter will create it for you. Use the -Location or -AffinityGroup parameter to specify where to create the service. - If the service exists, the -Location or -AffinityGroup parameter is not needed. + Specifies a password to encrypt the certificate that is used to perform SQL Server encrypted backups. - String + SecureString - String - - - - - - - DeploymentLabel - - Specifies a label for the deployment - - String - - String - - - - - - - DeploymentName - - Specifies a deployment name. If not specified, the service name will be used as the deployment name. - - String - - String - - - - - - - VNetName - - Specifies the virtual network name where the new virtual machine will be deployed. - - String - - String - - - - - - - DnsSettings - - Specifies a DNS Server object that defines the DNS settings for the new deployment. - - DnsServer[] - - DnsServer[] - - - - - - - InternalLoadBalancerConfig - - Not Specified - - InternalLoadBalancerConfig - - InternalLoadBalancerConfig - - - - - - - VMs - - A list of virtual machine objects to create. - - PersistentVM[] - - PersistentVM[] + SecureString - - + none - - WaitForBoot + + Enable - Waits for VM to reach "ReadyRole" state. Cmdlet fails if VM falls in one of the following states while waiting: "FailedStartingVM", "ProvisioningFailed", "ProvisioningTimeout". + Indicates that automated backup for the SQL Server virtual machine is enabled. If you use this parameter, automated backup sets a backup schedule for all current and new databases. This updates your Managed Backup settings to follow this schedule. SwitchParameter SwitchParameter - - + none - - ReservedIPName + + EnableEncryption - Reserved IP Name. + + - String + SwitchParameter - String + SwitchParameter - - + none - - Location + + Profile - Specifies the location where the new service will be hosted. This parameter should not be used if you are using a service that already exists. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - AffinityGroup + + RetentionPeriodInDays - Specifies the Microsoft Azure affinity group the cloud service will reside in. Only valid when creating a new cloud service. - String + Int32 - String + Int32 - - + none - - ServiceLabel + + StorageContext - Specifies a label for the new service. + Specifies the storage account to be used to store backups. Default is the storage account associated with the SQL Server virtual machine. - String + AzureStorageContext - String + AzureStorageContext - - + none - - ReverseDnsFqdn + + StorageKey - - + Specifies the storage key of the blob storage account. - String + SecureString - String + SecureString - - + none - - ServiceDescription + + StorageUri - Specifies a description for the new service. + Specifies a URI to the blob storage account. - String + Uri - String + Uri - - + none @@ -18216,13 +18617,15 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + @@ -18231,408 +18634,254 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> New-AzureVMConfig -Name "MyNewVM" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName ` - | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername PsTestAdmin` - | New-AzureVM -ServiceName "MySvc2" -AffinityGroup "Contoso" -WaitForBoot - - Description - - - - -----------This example creates a new Microsoft Azure virtual machine, "MyNewVM", and a new Microsoft Azure service, "MySvc2". Optional WaitForBoot flag blocks New-AzureVM till the VM boots. - Description - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Create an auto-backup configuration using storage URI and account key - PS C:\> New-AzureVMConfig -Name "MySUSEVM2" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[7].ImageName ` - | Add-AzureProvisioningConfig -Linux -LinuxUser $lxUser -Password $adminPassword -AdminUsername PsTestAdmin` - | New-AzureVM + PS C:\>$ABS = New-AzureVMSqlServerAutoBackupConfig -Enable -RetentionPeriod 10 -StorageUri $StorageUrl -StorageKey $StorageAccountKeySecure +Enable : True +EnableEncryption : False +RetentionPeriodInDays : 10 + - Description + This command creates an auto-backup configuration object by specifying storage URL and account key. + + - -----------This example adds a new Linux virtual machine to an existing service. + - -------------------------- EXAMPLE 3 -------------------------- + Example 2: Create an auto-backup configuration using storage context - PS C:\> $Images = Get-AzureVMImage - $myImage = $Images[4] - $myVM = New-AzureVMConfig -Name "MyVM2" -InstanceSize ExtraSmall -ImageName $myImage.ImageName ` - | Add-AzureProvisioningConfig -Windows -Password $adminPassword ` - | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "DataDisk50" -LUN 0 + PS C:\>$ABS = New-AzureVMSqlServerAutoBackupConfig -StorageContext $StorageContext -Enable -RetentionPeriod 10 +Enable : True +EnableEncryption : False +RetentionPeriodInDays : 10 + - Description + This command creates an auto-backup configuration object by specifying storage context. + + - -----------This example builds a new virtual machine configuration and then creates the virtual machine with New-AzureVM. + - -------------------------- EXAMPLE 4 -------------------------- + Example 3: Create an auto-backup configuration using storage context with encryption and password - PS C:\> New-AzureVMConfig -Name "MyNewVM" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName ` - | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername PsTestAdmin` - | New-AzureVM -ServiceName "MySvc2" -AffinityGroup "Contoso" -ReservedIPName $ipName + PS C:\>$ABS = New-AzureVMSqlServerAutoBackupConfig -StorageContext $StorageContext -Enable -RetentionPeriod 10 -EnableEncryption -CertificatePassword $CertPasswd +Enable : True +EnableEncryption : True +RetentionPeriodInDays : 10 + - Description + This command creates an auto-backup configuration object by specifying Storage context and enabling encryption option with password. The certificatepassword ist stored in the variable named $CertPasswd. + + - -----------This example creates a new Microsoft Azure virtual machine, "MyNewVM", and a new Microsoft Azure service, "MySvc2", using a reserved IP on the VM deployment + - Unknown - - + New-AzureVMSqlServerAutoPatchingConfig + - - + - - New-AzureVMConfig - + New-AzureVMSqlServerAutoPatchingConfig - Creates a new Windows Azure virtual machine configuration object. + Creates a configuration object for virtual machine automatic patching. - - + New - AzureVMConfig - - + AzureVMSqlServerAutoPatchingConfig + - The New-AzureVMConfig cmdlet creates a new virtual machine configuration object. This object can then be used to perform a new deployment, as well as to add a new virtual machine to an existing deployment. + The New-AzureVMSqlServerAutoPatchingConfig cmdlet creates a configuration object for virtual machine automatic patching. - - New-AzureVMConfig - - Name - - Specifies the name of the virtual machine. - - string - - - InstanceSize - - Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. - - string - - - HostCaching - - Specifies the host caching mode for the operating system disk. Supported values are: "ReadOnly" and "ReadWrite". - - string - - - AvailabilitySetName - - Specifies the name of the availability set. - - string - - - Label - - Specifies a label to assign to the virtual machine. - - string - - - DiskName - - Specifies a name for the operating system disk. - - string - - - MediaLocation - - Specifies the Windows Azure storage location for the new virtual machine disk. - - string - - - PipelineVariable - - Not Specified - - string - - - - New-AzureVMConfig - - Name - - Specifies the name of the virtual machine. - - string - - - InstanceSize - - Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. - - string - - - HostCaching - - Specifies the host caching mode for the operating system disk. Supported values are: "ReadOnly" and "ReadWrite". - - string - - - AvailabilitySetName - - Specifies the name of the availability set. - - string - - - Label + New-AzureVMSqlServerAutoPatchingConfig + + DayOfWeek - Specifies a label to assign to the virtual machine. + Specifies the day of the week when updates should be installed. + The acceptable values for this parameter are: + +-- Sunday +-- Monday +-- Tuesday +-- Wednesday +-- Thursday +-- Friday +-- Saturday +-- Everyday - string + + Sunday + Monday + Tuesday + Wednesday + Thursday + Friday + Saturday + Everyday + - - ImageName + + Enable - Specifies the name of the virtual machine image to use for the operating system disk. + Indicates that automated patching for the virtual machine is enabled. If you enable automated patching the cmdlet will put Windows Update into interactive mode. If you disable automated patching, Windows Update settings will not change. - string - - DiskLabel + + MaintenanceWindowDuration - Specifies a label for the operating system disk. + Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. - string + Int32 - - MediaLocation + + MaintenanceWindowStartingHour - Specifies the Windows Azure storage location for the new virtual machine disk. + Specifies the hour of the day when maintenance window starts. This time defines when updates start installing and is rounded to the hour. - string + Int32 - - PipelineVariable + + PatchCategory - Not Specified + Specifies whether important updates should be included. - string + String - - - AvailabilitySetName + + DayOfWeek - Specifies the name of the availability set. + Specifies the day of the week when updates should be installed. + The acceptable values for this parameter are: + +-- Sunday +-- Monday +-- Tuesday +-- Wednesday +-- Thursday +-- Friday +-- Saturday +-- Everyday - string + String - string + String - - + none - - DiskLabel + + Enable - Specifies a label for the operating system disk. + Indicates that automated patching for the virtual machine is enabled. If you enable automated patching the cmdlet will put Windows Update into interactive mode. If you disable automated patching, Windows Update settings will not change. - string + SwitchParameter - string + SwitchParameter - - + none - - DiskName - - Specifies a name for the operating system disk. - - string - - string - - - - - - - HostCaching - - Specifies the host caching mode for the operating system disk. Supported values are: "ReadOnly" and "ReadWrite". - - string - - string - - - - - - - ImageName - - Specifies the name of the virtual machine image to use for the operating system disk. - - string - - string - - - - - - - InstanceSize - - Specifies the size of the instance. Allowed values are ExtraSmall, Small, Medium, Large, ExtraLarge, A5, A6, A7, A8, A9, Basic_A0, Basic_A1, Basic_A2, Basic_A3, Basic_A4, Standard_D1, Standard_D2, Standard_D3, Standard_D4, Standard_D11, Standard_D12, Standard_D13, Standard_D14. - - string - - string - - - - - - - Label - - Specifies a label to assign to the virtual machine. - - string - - string - - - - - - - MediaLocation + + MaintenanceWindowDuration - Specifies the Windows Azure storage location for the new virtual machine disk. + Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. - string + Int32 - string + Int32 - - + none - - Name + + MaintenanceWindowStartingHour - Specifies the name of the virtual machine. + Specifies the hour of the day when maintenance window starts. This time defines when updates start installing and is rounded to the hour. - string + Int32 - string + Int32 - - + none - - PipelineVariable + + PatchCategory - Not Specified + Specifies whether important updates should be included. - string + String - string + String - - + none - - - + + + + + - @@ -18640,684 +18889,466 @@ New-AzureDeployment -ServiceName $cloudSvc -Slot Production -Package $pkg -Confi - - - - + AutoPatchingSettings + + + + + - - - + This cmdlet returns object contains settings for automated patching. - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Create a configuration object to configure automatic patching - C:\PS> - - - - - Description - ----------- - - Description - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - + PS C:\>$APS = New-AzureVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Thursday" -MaintenanceWindowStartingHour 11 -MaintenanceWindowDuration 120 -PatchCategory "Important" + Enable : True + DayOfWeek : Thursday + MaintenanceWindowStartingHour : 11 + MaintenanceWindowDuration : 120 + PatchCategory : Important + + - Description - ----------- - - Description - - - - - - - - - + This command creates configuration object that can be used to configure automatic patching using Set-AzureVMSqlServerExtension. + + - - + - - - + Set-AzureVMSqlServerExtension + + + + Remove-AzureVMSqlServerExtension + + + + Set-AzureVMSqlServerExtension - - + - New-AzureVMImageDiskConfigSet + New-AzureVM - This cmdlet returns a new object for disk configuration set, which would be passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the VM Image. + Creates an Azure virtual machine. New - AzureVMImageDiskConfigSet + AzureVM - - This cmdlet returns a new object for disk configuration set, which would be passed to the image update cmdlet. It encapsulates the OSDiskConfig and the DataDiskConfig object. Use the Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets to set the OS Disk and Data Disk properties for the VM Image. + The New-AzureVM cmdlet adds a new virtual machine to an existing Azure service, or creates a virtual machine and service in the current subscription if either the Location or AffinityGroup is specified. - New-AzureVMImageDiskConfigSet - - - - - - - - - - + New-AzureVM + + AffinityGroup - - + Specifies the Azure affinity group in which the cloud service resides. This parameter is required only when this cmdlet creates a cloud service. - - - - - - - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - + String + + + DeploymentLabel - - + Specifies a label for the deployment. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> $s = New-AzureDiskConfigSet - # returns DiskConfigSet object; - - $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite - # returns DiskConfigSet object; - - $s = Set-AzureDataDiskConfig -DiskConfig $s -Name 'test' -HostCaching 'ReadWrite' -LUN 0 - # returns DiskConfigSet object - - # Final step - Update the VM Image - - Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1 -DiskConfigSet $s; - - # OR - - $s | Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1; - - Description - - - - ----------- - - - - - - - Unknown - - - - - - - - - New-AzureVNetGateway - - Creates a new Microsoft Azure Virtual Network Gateway to the specified Microsoft Azure virtual network. - - - - - New - AzureVNetGateway - - - - - The New-AzureVNetGateway cmdlet creates a new virtual network gateway for the specified Microsoft Azure virtual network. A virtual network gateway is a VPN endpoint for connecting to a Microsoft Azure virtual network.After the virtual network gateway has been created, you can get the shared key to allow you to configure the VPN device at the local network site to authenticate to the gateway with the Get-AzureVNetGatewayKey cmdlet. - - - - New-AzureVNetGateway - - VNetName + String + + + DeploymentName - Specifies the name of the virtual network for which the gateway is created. + Specifies a deployment name. If not specified, this cmdlet uses the service name as the deployment name. - String + String - - GatewayType + + DnsSettings - - + Specifies a DNS Server object that defines the DNS settings for the new deployment. - GatewayType + DnsServer[] - - - - - VNetName - - Specifies the name of the virtual network for which the gateway is created. - - String - - String - - - - - - - GatewayType - - - - - GatewayType - - GatewayType - - - - - - - - - - - - + + InternalLoadBalancerConfig - - + Specifies an internal load balancer. This parameter is not used. - - - - - - - - - - - + InternalLoadBalancerConfig + + + Location - - + Specifies the location that hosts the new service. If the service already exists, do not specify this parameter. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>New-AzureVNetGateway –VNetName "MyProdNet" - - This command creates a new VPN endpoint for the "MyProdNet" network. - - - - - - - - - - - - - - - - - - Publish-AzureVMDscConfiguration - - - Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureVMDscExtension cmdlet. - - - - - - Publish - AzureVMDscConfiguration - - - - - Uploads a Desired State Configuration script to Azure blob storage, which later can be applied to Azure Virtual Machines using the Set-AzureVMDscExtension cmdlet. - - - - - Publish-AzureVMDscConfiguration - - ConfigurationPath + String + + + Profile - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) containing a set of PowerShell modules, each module in a separate directory. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - - AdditionalPath + + ReservedIPName - Path to a file or a directory to include in the configuration archive + Specifies the name of the reserved IP address. - string[] + String - - ConfigurationArchivePath + + ReverseDnsFqdn - Path to a local ZIP file to write the configuration archive to. - -When this parameter is used, the configuration script is not uploaded to Azure blob storage. + Specifies the fully-qualified domain name for reverse DNS. - string + String - - ConfigurationDataPath + + ServiceDescription - Path to a .psd1 file that specifies the data for the Configuration + Specifies a description for the new service. - string + String - - Force + + ServiceLabel - By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + Specifies a label for the new service. + String - - SkipDependencyDetection + + VNetName - Excludes DSC resource dependencies from the configuration archive + Specifies the virtual network name where this cmdlet deploys the virtual machine. + String - - Confirm + + WaitForBoot - Prompts you for confirmation before executing the command. + Specifies that this cmdlet waits for the virtual machine to reach the ReadyRole state. This cmdlet fails if the virtual machine falls in one of the following states while waiting: FailedStartingVM, ProvisioningFailed, ProvisioningTimeout. - - WhatIf + + ServiceName - Describes what would happen if you executed the command without actually executing the command. + Specifies the new or existing service name. + + + If the service does not exist, this cmdlet creates it for you. Use the Location or AffinityGroup parameter to specify where to create the service. + If the service exists, the Location or AffinityGroup parameter is not needed. + String - - PassThru + + VMs - Outputs the blob url for configuration archive path + Specifies a list of virtual machine objects to create. + PersistentVM[] - Publish-ASMVMDscConfiguration - - ConfigurationPath - - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) containing a set of PowerShell modules, each module in a separate directory. - - string - - - AdditionalPath + New-AzureVM + + DeploymentLabel - Path to a file or a directory to include in the configuration archive + Specifies a label for the deployment. - string[] + String - - ConfigurationDataPath + + DeploymentName - Path to a .psd1 file that specifies the data for the Configuration + Specifies a deployment name. If not specified, this cmdlet uses the service name as the deployment name. - string + String - - ContainerName + + DnsSettings - Name of the Azure Storage Container the configuration is uploaded to. + Specifies a DNS Server object that defines the DNS settings for the new deployment. - string + DnsServer[] - - Force + + InternalLoadBalancerConfig - By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + Specifies an internal load balancer. This parameter is not used. + InternalLoadBalancerConfig - - SkipDependencyDetection + + Profile - Excludes DSC resource dependencies from the configuration archive + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + AzureProfile - - StorageContext + + ReservedIPName - The Azure Storage Context that provides the security settings used to upload the configuration script to the container specified by ContainerName. This context should provide write access to the container. - + Specifies the name of the reserved IP address. - AzureStorageContext + String - - StorageEndpointSuffix + + VNetName - Suffix for the storage end point, e.g. core.windows.net + Specifies the virtual network name where this cmdlet deploys the virtual machine. - string + String - - Confirm + + WaitForBoot - Prompts you for confirmation before executing the command. + Specifies that this cmdlet waits for the virtual machine to reach the ReadyRole state. This cmdlet fails if the virtual machine falls in one of the following states while waiting: FailedStartingVM, ProvisioningFailed, ProvisioningTimeout. - - WhatIf + + ServiceName - Describes what would happen if you executed the command without actually executing the command. + Specifies the new or existing service name. + + + If the service does not exist, this cmdlet creates it for you. Use the Location or AffinityGroup parameter to specify where to create the service. + If the service exists, the Location or AffinityGroup parameter is not needed. + String - - PassThru + + VMs - Outputs the blob url for configuration archive path + Specifies a list of virtual machine objects to create. + PersistentVM[] - - - AdditionalPath + + AffinityGroup - Path to a file or a directory to include in the configuration archive + Specifies the Azure affinity group in which the cloud service resides. This parameter is required only when this cmdlet creates a cloud service. - string[] + String - string[] + String - - + none - - ConfigurationArchivePath + + DeploymentLabel - Path to a local ZIP file to write the configuration archive to. - -When this parameter is used, the configuration script is not uploaded to Azure blob storage. + Specifies a label for the deployment. - string + String - string + String - - + none - - ConfigurationDataPath + + DeploymentName - Path to a .psd1 file that specifies the data for the Configuration + Specifies a deployment name. If not specified, this cmdlet uses the service name as the deployment name. - string + String - string + String - - + none - - ConfigurationPath + + DnsSettings - Path to a file containing one or more configurations. The file can be a PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) containing a set of PowerShell modules, each module in a separate directory. + Specifies a DNS Server object that defines the DNS settings for the new deployment. - string + DnsServer[] - string + DnsServer[] - - + none - - ContainerName + + InternalLoadBalancerConfig - Name of the Azure Storage Container the configuration is uploaded to. + Specifies an internal load balancer. This parameter is not used. - string + InternalLoadBalancerConfig - string + InternalLoadBalancerConfig - windows-powershell-dsc + none - - Force + + Location - By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs or files. Use -Force to overwrite them. + Specifies the location that hosts the new service. If the service already exists, do not specify this parameter. - SwitchParameter + String - SwitchParameter + String - - + none - - SkipDependencyDetection + + Profile - Excludes DSC resource dependencies from the configuration archive. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - StorageContext + + ReservedIPName - The Azure Storage Context that provides the security settings used to upload the configuration script to the container specified by ContainerName. This context should provide write access to the container. - + Specifies the name of the reserved IP address. - AzureStorageContext + String - AzureStorageContext + String - - + none - - StorageEndpointSuffix + + ReverseDnsFqdn - Suffix for the storage end point, e.g. core.windows.net + Specifies the fully-qualified domain name for reverse DNS. - string + String - string + String - - + none - - Confirm + + ServiceDescription - Prompts you for confirmation before executing the command. + Specifies a description for the new service. - SwitchParameter + String - SwitchParameter + String - + none - - WhatIf + + ServiceLabel - Describes what would happen if you executed the command without actually executing the command. + Specifies a label for the new service. - SwitchParameter + String - SwitchParameter + String - + none - - PassThru + + ServiceName + + Specifies the new or existing service name. + + + If the service does not exist, this cmdlet creates it for you. Use the Location or AffinityGroup parameter to specify where to create the service. + If the service exists, the Location or AffinityGroup parameter is not needed. + + String + + String + + + none + + + VMs + + Specifies a list of virtual machine objects to create. + + PersistentVM[] + + PersistentVM[] + + + none + + + VNetName + + Specifies the virtual network name where this cmdlet deploys the virtual machine. + + String + + String + + + none + + + WaitForBoot - Outputs the blob url for configuration archive path + Specifies that this cmdlet waits for the virtual machine to reach the ReadyRole state. This cmdlet fails if the virtual machine falls in one of the following states while waiting: FailedStartingVM, ProvisioningFailed, ProvisioningTimeout. SwitchParameter SwitchParameter - - + none - - - + + + + + - @@ -19327,256 +19358,344 @@ When this parameter is used, the configuration script is not uploaded to Azure b - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Create a virtual machine for a Windows configuration - C:\PS> - - -Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 - - Description - ----------- - This command creates a ZIP package for the given script and any dependent resource modules and uploads it to Azure Storage. - -By default the command does no produce any output; use the -Verbose option to display an indication of the operations performed by the command - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - -Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 -ConfigurationArchivePath .\MyConfiguration.ps1.zip - + PS C:\>New-AzureVMConfig -Name "VirtualMachine07" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername PsTestAdmin | New-AzureVM -ServiceName "ContosoService" -AffinityGroup "Contoso" -WaitForBoot + - Description - ----------- - This command creates a ZIP package for the given script and any dependent resource modules and stores it in the local file .\MyConfiguration.ps1.zip. - - - - - - - - + This command creates a provisioning configuration based on a virtual machine configuration for the Windows operating system, and uses it to create a virtual machine in a specified affinity group. + + - - + - - -------------------------- EXAMPLE 3 -------------------------- - + Example 2: Create a virtual machine for a Linux configuration - C:\PS> - - -Publish-AzureVMDscConfiguration -ConfigurationPath 'C:\Sample.ps1 -SkipDependencyDetection - - Description - ----------- - Use -SkipDependencyDetection to skip adding modules to the configuration archive - - - - - - + + PS C:\>New-AzureVMConfig -Name "SUSEVM02" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[7].ImageName | Add-AzureProvisioningConfig -Linux -LinuxUser "RootMain" -Password "password" -AdminUsername PsTestAdmin | New-AzureVM + + + This command creates a provisioning configuration based on a virtual machine configuration for Linux, and uses it to create a virtual machine in a specified affinity group. + + - - + - - -------------------------- EXAMPLE 4 -------------------------- - + Example 3: Create a virtual machine and add a data disk - C:\PS> - - -Publish-AzureVMDscConfiguration -ConfigurationPath C:\Sample.ps1 -ConfigurationDataPath 'C:\SampleData.psd1' - - Description - ----------- - Adding configuration data to the archive - - - - - - + + PS C:\>$Images = Get-AzureVMImage +PS C:\> $Image = $Images[4] +PS C:\> $VirtualMachine02 = New-AzureVMConfig -Name "VirtualMachine02" -InstanceSize ExtraSmall -ImageName $myImage.ImageName | Add-AzureProvisioningConfig -Windows -Password "password" | Add-AzureDataDisk -CreateNew -DiskSizeInGB 50 -DiskLabel "DataDisk50" -LUN 0 + + + The first two commands get available images by using the Get-AzureVMImage cmdlet, and stores one of them in the $Image variable. + This command creates a provisioning configuration based on a virtual machine configuration for the Windows operating system, and uses it to create a virtual machine with an Azure data disk. + + - - + - - -------------------------- EXAMPLE 5 -------------------------- - + Example 4: Create a virtual machine with a reserved IP address - C:\PS> - - -Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPath @("C:\ContentDir1", "C:\File.txt") -ConfigurationDataPath "C:\SampleData.psd1" - - Description - ----------- - Adding additional content (files or directories) used by the configuration - - - - - - + + PS C:\>New-AzureVMConfig -Name "VirtualMachine06" -InstanceSize ExtraSmall -ImageName (Get-AzureVMImage)[4].ImageName | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername "AdminMain" | New-AzureVM -ServiceName "ContosoService02" -AffinityGroup "Contoso" -ReservedIPName $ipName + + + This command creates a provisioning configuration based on a virtual machine configuration for the Windows operating system, and uses it to create a virtual machine with a reserved IP address. + + - - + - - - + Add-AzureDataDisk + + + + Add-AzureProvisioningConfig + + + + Get-AzureVMImage + + + + New-AzureVMConfig - - + - Remove-AzureAclConfig + Publish-AzureVMDscConfiguration - Remove the ACL configuration object from an existing Azure VM configuration. + Publishes a desired state configuration script to Azure blob storage. - Remove - AzureAclConfig + Publish + AzureVMDscConfiguration - - The Remove-AzureAclConfig cmdlet removes the ACL configuration object from an existing Azure VM configuration. + The Publish-AzureVMDscConfiguration cmdlet publishes a desired state configuration script to Azure blob storage, which later can be applied to Azure virtual machines using the Set-AzureVMDscExtension cmdlet. - Remove-AzureAclConfig - - EndpointName + Publish-AzureVMDscConfiguration + + ConfigurationPath - Specifies the name of the endpoint. + Specifies the path of a file that contains one or more configurations. The file can be a Windows PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) that contains a set of Windows PowerShell modules, with each module in a separate directory. String - - VM + + ConfigurationArchivePath - Specifies the virtual machine object for which the endpoint will be created. + Specifies the path of a local .zip file that this cmdlet writes the configuration archive. The configuration script is not uploaded to Azure blob storage if you use this parameter. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Confirm + + Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + + + Publish-AzureVMDscConfiguration + + ConfigurationPath + + Specifies the path of a file that contains one or more configurations. The file can be a Windows PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) that contains a set of Windows PowerShell modules, with each module in a separate directory. + + String + + + ContainerName + + Specifies the name of the Azure storage container the configuration is uploaded to. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + StorageContext + + Specifies the Azure storage context that provides the security settings used to upload the configuration script to the container specified by the ContainerName parameter. This context provides write access to the container. + + AzureStorageContext + + + StorageEndpointSuffix + + Specifies the suffix for the storage end-point, for instance, core.contoso.net + + String + + + Confirm + + Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - IPersistentVM - - EndpointName + + ConfigurationArchivePath - Specifies the name of the endpoint. + Specifies the path of a local .zip file that this cmdlet writes the configuration archive. The configuration script is not uploaded to Azure blob storage if you use this parameter. + + String + + String + + + none + + + ConfigurationPath + + Specifies the path of a file that contains one or more configurations. The file can be a Windows PowerShell script (.ps1 file), module (.psm1 file), or an archive (.zip file) that contains a set of Windows PowerShell modules, with each module in a separate directory. String String - - + none - - VM + + ContainerName - Specifies the virtual machine object for which the endpoint will be created. + Specifies the name of the Azure storage container the configuration is uploaded to. - IPersistentVM + String - IPersistentVM + String + + + none + + + Force + + Forces the command to run without asking for user confirmation. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + StorageContext + + Specifies the Azure storage context that provides the security settings used to upload the configuration script to the container specified by the ContainerName parameter. This context provides write access to the container. + + AzureStorageContext + + AzureStorageContext + + + none + + + StorageEndpointSuffix + + Specifies the suffix for the storage end-point, for instance, core.contoso.net + + String + + String + + + none + + + Confirm + + Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + + SwitchParameter + + SwitchParameter + + + false + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + + SwitchParameter + + SwitchParameter - - + false @@ -19584,13 +19703,15 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + @@ -19599,72 +19720,232 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Publish a state configuration script to blob storage + + + + + PS C:\>Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 + + + This command creates a .zip package for the given script and any dependent resource modules and uploads it to Azure storage. + + + + + + + + + + + Example 2: Publish a state configuration script to a local file - PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "myservice" -Name "MyVM" | Remove-AzureAclConfig -EndpointName "Web" | Update-AzureVM + PS C:\>Publish-AzureVMDscConfiguration .\MyConfiguration.ps1 -ConfigurationArchivePath .\MyConfiguration.ps1.zip + - This command will remove the ACL configuration from "MyVM". + This command creates a .zip package for the given script and any dependent resource modules and stores it in the local file .\MyConfiguration.ps1.zip. + + - - + - New-AzureAclConfig - - - - - Get-AzureAclConfig - - + Set-AzureVMDscExtension + - - Set-AzureAclConfig - - + + + + + Remove-AzureAclConfig + + Removes an ACL configuration object from an Azure virtual machine configuration. + + + + + Remove + AzureAclConfig + + + + The Remove-AzureAclConfig cmdlet removes an access control list (ACL) configuration object from an Azure virtual machine configuration. + + + + Remove-AzureAclConfig + + EndpointName + + Specifies the name of the endpoint from which this cmdlet removes the ACL configuration. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the virtual machine from which this cmdlet removes an ACL configuration. + + IPersistentVM + + + + + + EndpointName + + Specifies the name of the endpoint from which this cmdlet removes the ACL configuration. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies the virtual machine from which this cmdlet removes an ACL configuration. + + IPersistentVM + + IPersistentVM + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Remove an ACL configuration + + + + + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Remove-AzureAclConfig -EndpointName "Web" | Update-AzureVM + + + This command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the current cmdlet by using the pipeline operator. That cmdlet removes the ACL configuration for the endpoint named Web. The command passes the result to the Update-AzureVM cmdlet, which updates the virtual machine. + + + + + + + + + + + + + Get-AzureAclConfig + + + + Get-AzureVM + + + + New-AzureAclConfig + + + + Set-AzureAclConfig + + + + Update-AzureVM + - - + Remove-AzureAffinityGroup - Deletes an affinity group in the specified subscription. + Deletes an affinity group in a subscription. @@ -19674,34 +19955,51 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - - The Remove-AzureAffinityGroup cmdlet deletes an affinity group in the subscription. You can't delete an affinity group that has any members. You must first delete all the members of an affinity group and then use Remove-AzureAffinityGroup to delete the affinity group. + The Remove-AzureAffinityGroup cmdlet deletes an Azure affinity group in the current subscription. You cannot delete an affinity group that has any members. You must first delete all the members of an affinity group. Remove-AzureAffinityGroup - + Name - Specifies the name of the affinity group to delete. + Specifies the name of the affinity group that this cmdlet deletes. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + Name - Specifies the name of the affinity group to delete. + Specifies the name of the affinity group that this cmdlet deletes. String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none @@ -19709,13 +20007,15 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + @@ -19724,44 +20024,37 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove an affinity group - PS C:\> C:\PS>Remove-AzureAffinityGroup -name "South1" + PS C:\>Remove-AzureAffinityGroup -Name "South01" + - This command deletes the 'South1' affinity group in the current subscription. + This command deletes the South01 affinity group in the current subscription. + + - - + @@ -19769,28 +20062,23 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa Get-AzureAffinityGroup - - + New-AzureAffinityGroup - - + Set-AzureAffinityGroup - - + - - + Remove-AzureAvailabilitySet - - + Removes an availability set from an Azure virtual machine. @@ -19800,37 +20088,51 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - - - + The Remove-AzureAvailabilitySet cmdlet removes an availability set from an Azure virtual machine. Remove-AzureAvailabilitySet - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - - + Specifies the virtual machine from which this cmdlet removes an availability set. IPersistentVM - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - - + Specifies the virtual machine from which this cmdlet removes an availability set. IPersistentVM IPersistentVM - - + none @@ -19838,13 +20140,15 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + @@ -19853,40 +20157,52 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + + + 1: + + + + + + + + + + + + + + + + + + Set-AzureAvailabilitySet + + - - + Remove-AzureCertificate - Deletes the specified certificate from the Microsoft Azure service. + Removes a certificate from an Azure service. @@ -19896,75 +20212,89 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - - - + The Remove-AzureCertificate cmdlet removes a certificate from an Azure service. Remove-AzureCertificate - + ServiceName - Specifies the Microsoft Azure service with which the certificate is associated. + Specifies the name of the Azure service from which this cmdlet removes a certificate. String - + ThumbprintAlgorithm - Specifies the algorithm used to create the certificate thumbprint. + Specifies the algorithm that is used to create the certificate thumbprint. String - + Thumbprint - Specifies the thumbprint that identifies the certificate. + Specifies the thumbprint of the certificate that this cmdlet removes. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName - Specifies the Microsoft Azure service with which the certificate is associated. + Specifies the name of the Azure service from which this cmdlet removes a certificate. String String - - + none - - ThumbprintAlgorithm + + Thumbprint - Specifies the algorithm used to create the certificate thumbprint. + Specifies the thumbprint of the certificate that this cmdlet removes. String String - - + none - - Thumbprint + + ThumbprintAlgorithm - Specifies the thumbprint that identifies the certificate. + Specifies the algorithm that is used to create the certificate thumbprint. String String - - + none @@ -19972,13 +20302,15 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + @@ -19986,79 +20318,75 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove a certificate from a service - PS C:\> C:\PS>Remove-AzureCertificate -ServiceName "MyService" -Thumbprint '5383CE0343CB6563281CA97C1B5D712209CFFA97' + PS C:\>Remove-AzureCertificate -ServiceName "ContosoService" -Thumbprint '5383CE0343CB6563281CA97C1D4D712209CFFA97' + - This command removes the certificate object identified by the specified thumbprint from the specified cloud service. + This command removes the certificate object that has the specified thumbprint from the cloud service. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Remove all certificates from a service - PS C:\> C:\PS>Get-Certificate -ServiceName "MyService" | Remove-AzureCertificate + PS C:\>Get-AzureCertificate -ServiceName "ContosoService" | Remove-AzureCertificate + - This command removes all certificates from the specified cloud service. + This command gets all the certificates from the service named ContosoService by using the Get-AzureCertificate cmdlet. The command passes each certificate to the current cmdlet by using the pipeline operator. That cmdlet removes each certificate from the cloud service. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Remove all certificates from a service that use a specific thumbprint algorithm - PS C:\> C:\PS>Get-Certificate –ServiceName "MyService" -ThumbprintAlgorithm "sha1" ` - | Remove-AzureCertificate + PS C:\>Get-AzureCertificate -ServiceName "ContosoService" -ThumbprintAlgorithm "sha1" | Remove-AzureCertificate + - This command removes all certificates that use the "sha1" thumbprint algorithm from the specified cloud service. + This command gets all the certificates from the service named ContosoService that use the sha1 thumbprint algorithm. The command passes each certificate to the current cmdlet, which removes each certificate. + + - - + @@ -20066,22 +20394,23 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa Add-AzureCertificate - - + Get-AzureCertificate - - + + + + New-AzureCertificateSetting + - - + Remove-AzureDataDisk - Removes a data disk from a virtual machine object. + Removes a data disk from an Azure virtual machine. @@ -20091,74 +20420,88 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - - The Remove-AzureDataDisk cmdlet detaches a data disk from a virtual machine. The data disk blob is not removed from the storage account. + The Remove-AzureDataDisk cmdlet removes a data disk from an Azure virtual machine. By default, this cmdlet does not remove the data disk blob from the storage account. Remove-AzureDataDisk - + LUN - Specifies the slot where the data disk to be detached is currently mounted. + Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Int32 - + DeleteVHD - Specify to remove the data disk and the underlying disk blob. + Indicates that this cmdlet removes the data disk and the virtual hard disk (VHD) from blob storage. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - + VM - Specifies the slot where the data disk to be detached is currently mounted. + Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. IPersistentVM - + + DeleteVHD + + Indicates that this cmdlet removes the data disk and the virtual hard disk (VHD) from blob storage. + + SwitchParameter + + SwitchParameter + + + none + + LUN - Specifies the slot where the data disk to be detached is currently mounted. + Specifies the logical unit number (LUN) for the data drive in the virtual machine. Valid values are: 0 through 15. Int32 Int32 - - + none - - DeleteVHD + + Profile - Specify to remove the data disk and the underlying disk blob. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - + VM - Specifies the slot where the data disk to be detached is currently mounted. + Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. IPersistentVM IPersistentVM - - + none @@ -20166,13 +20509,15 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + @@ -20181,61 +20526,56 @@ Publish-AzureVMDscConfiguration -ConfigurationPath "C:\Sample.ps1" -AdditionalPa - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove a data disk - PS C:\> Get-AzureVM -ServiceName MyDemoService01 -Name MyDemoVM01 | Remove-AzureDataDisk -LUN 0 + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Remove-AzureDataDisk -LUN 0 + - Description + This command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet removes the data disk that has the LUN 0. + + - -----------This command gets the virtual machine object with the name "MyDemoVM01" running on the "MyDemoService01" cloud service, and then detaches the data disk at LUN 0 from virtual machine object. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Remove a data disk and the virtual hard disk file - PS C:\> Get-AzureVM -ServiceName MyDemoService01 -Name MyDemoVM01 | Remove-AzureDataDisk -LUN 0 -DeleteVHD | Update-AzureVM - -This command gets the virtual machine object with the name "MyDemoVM01" running on the "MyDemoService01" cloud service, then detaches the data disk at LUN 0 from virtual machine object. It also updates the VM in the cloud and then delete the underlying VHD(s). + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Remove-AzureDataDisk -LUN 0 -DeleteVHD | Update-AzureVM + - Description + This command gets the virtual machine named VirtualMachine07 in the service named ContosoService. The command passes the virtual machine to the current cmdlet. The current cmdlet removes the data disk that has the LUN 0. The command includes the DeleteVHD parameter. Therefore, it also deletes the underlying virtual hard disk. The command updates the virtual machine to reflect your changes by using the Update-AzureVM cmdlet. + + - ----------- + @@ -20243,22 +20583,31 @@ This command gets the virtual machine object with the name "MyDemoVM01" running Add-AzureDataDisk - - + + + + Get-AzureDataDisk + + + + Get-AzureVM + Set-AzureDataDisk - - + + + + Update-AzureVM + - - + Remove-AzureDeployment - Deletes the specified deployment of a Microsoft Azure service. + Deletes a deployment of a cloud service. @@ -20268,96 +20617,109 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - - The Remove-AzureDeployment cmdlet deletes the specified deployment of a Microsoft Azure cloud service. The deployment should be in the suspended state. + The Remove-AzureDeployment cmdlet deletes a deployment of an Azure cloud service. To delete a deployment, first suspend it. Remove-AzureDeployment - + ServiceName - Specifies the name of the service whose deployment will be deleted. + Specifies the name of the service for which this cmdlet deletes a deployment. String - + Slot - Specifies the deployment environment from which the deployment of the specified Microsoft Azure service will be deleted. Choices are Staging or Production. If no slot is specified, the production environment is assumed. + Specifies the deployment environment from which this cmdlet deletes the deployment. Valid values are: Staging and Production. The default value is Production. - String + + Staging + Production + - + DeleteVHD - Specify to remove the deployment and the underlying disk blob(s). + Specifies that this cmdlet removes the deployment and the virtual hard disks (VHDs) from blob storage. - SwitchParameter - + Force - - + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - ServiceName + + DeleteVHD - Specifies the name of the service whose deployment will be deleted. + Specifies that this cmdlet removes the deployment and the virtual hard disks (VHDs) from blob storage. - String + SwitchParameter - String + SwitchParameter - - + none - - Slot + + Force - Specifies the deployment environment from which the deployment of the specified Microsoft Azure service will be deleted. Choices are Staging or Production. If no slot is specified, the production environment is assumed. + Forces the command to run without asking for user confirmation. - String + SwitchParameter - String + SwitchParameter - - + none - - DeleteVHD + + Profile - Specify to remove the deployment and the underlying disk blob(s). + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - Force + + ServiceName - - + Specifies the name of the service for which this cmdlet deletes a deployment. - SwitchParameter + String - SwitchParameter + String + + + none + + + Slot + + Specifies the deployment environment from which this cmdlet deletes the deployment. Valid values are: Staging and Production. The default value is Production. + + String + + String - - + none @@ -20365,13 +20727,15 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + @@ -20379,61 +20743,56 @@ This command gets the virtual machine object with the name "MyDemoVM01" running ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove a deployment - PS C:\> C:\PS>Remove-AzureDeployment -ServiceName "myservice" + PS C:\>Remove-AzureDeployment -ServiceName "ContosoService" + - This command removes the deployment of the Microsoft Azure service "myservice" from the production environment. + This command removes the deployment of the Azure service named ContosoService. Because this command does not specify a slot, it removes the service from the production environment. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Remove a deployment and virtual hard disks - PS C:\> C:\PS>Remove-AzureDeployment -ServiceName "myservice" -DeleteVHD + PS C:\>Remove-AzureDeployment -ServiceName "ContosoService" -DeleteVHD + - This command removes the deployment of the Microsoft Azure service "myservice" from the production environment, and the underlying VHD(s). + This command removes the deployment of the service named ContosoService from the production environment. The command also removes the underlying virtual hard disks. + + - - + @@ -20441,32 +20800,31 @@ This command gets the virtual machine object with the name "MyDemoVM01" running Get-AzureDeployment - - + + + + Get-AzureDeploymentEvent + Move-AzureDeployment - - + New-AzureDeployment - - + Set-AzureDeployment - - + - - + Remove-AzureDisk - Removes a disk from the Microsoft Azure disk repository. + Removes a disk from the Azure disk repository. @@ -20476,55 +20834,69 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - - The Remove-AzureDisk cmdlet removes a disk from the Microsoft Azure disk repository in the current subscription. - By default, this does not delete the associated physical VHD file from the blob storage location. To delete the associated physical VHD, specify the DeleteVHD parameter. + The Remove-AzureDisk cmdlet removes a disk from the Azure disk repository in the current subscription. By default, this cmdlet does not delete the virtual hard disk (VHD) file from blob storage. To delete the VHD, specify the DeleteVHD parameter. Remove-AzureDisk - + DiskName - Name of the data disk in the disk repository to remove. + Specifies the name of the data disk in the disk repository that this cmdlet removes. String - + DeleteVHD - Removes the underlying VHD from blob storage. + Indicates that this cmdlet removes the VHD from blob storage. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - + + DeleteVHD + + Indicates that this cmdlet removes the VHD from blob storage. + + SwitchParameter + + SwitchParameter + + + none + + DiskName - Name of the data disk in the disk repository to remove. + Specifies the name of the data disk in the disk repository that this cmdlet removes. String String - - + none - - DeleteVHD + + Profile - Removes the underlying VHD from blob storage. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none @@ -20532,13 +20904,15 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + @@ -20547,61 +20921,56 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove a disk - PS C:\> C:\PS>Remove-AzureDisk -DiskName "MyDataDisk" + PS C:\>Remove-AzureDisk -DiskName "ContosoDataDisk" + - This example removes the "MyDataDisk" disk from the disk repository but does not remove the VHD from Microsoft Azure storage. + This command removes the disk named ContosoDataDisk disk from the disk repository. The command does not delete the VHD. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Remove and delete a disk - PS C:\> C:\PS>Remove-AzureDisk -DiskName "MyDataDisk" –DeleteVHD + PS C:\>Remove-AzureDisk -DiskName "ContosoDataDisk" -DeleteVHD + - This example removes the "MyDataDisk" disk from the disk repository and also removes the VHD from Microsoft Azure storage. + This command removes the disk named ContosoDataDisk disk from the disk repository. This command specifies the DeleteVHD parameter. Therefore, the command deletes the VHD from Azure Storage. + + - - + @@ -20609,27 +20978,23 @@ This command gets the virtual machine object with the name "MyDemoVM01" running Add-AzureDisk - - + Get-AzureDisk - - + Update-AzureDisk - - + - - + Remove-AzureDns - Removes a DNS server to an existing cloud service. + Removes a DNS server from an Azure service. @@ -20639,90 +21004,88 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - - The Remove-AzureDns cmdlet removes the specified DNS server from a cloud service. + The Remove-AzureDns cmdlet removes a DNS server from an Azure service. Remove-AzureDns - + Name - Specifies the name of the DNS server to be removed + Specifies the name of the DNS server that this cmdlet removes. String - + ServiceName - Specifies the name of the cloud service + Specifies the name of the service from which this cmdlet removes a DNS server. String - + Force - - + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - Name + + Force - Specifies the name of the DNS server to be removed + Forces the command to run without asking for user confirmation. - String + SwitchParameter - String + SwitchParameter - - + none - - ServiceName + + Name - Specifies the name of the cloud service + Specifies the name of the DNS server that this cmdlet removes. String String - - + none - - Force + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - PipelineVariable + + ServiceName - - + Specifies the name of the service from which this cmdlet removes a DNS server. - string + String - string + String - - + none @@ -20730,13 +21093,15 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + @@ -20744,61 +21109,65 @@ This command gets the virtual machine object with the name "MyDemoVM01" running Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove a DNS server from a service - PS C:\> Remove-AzureDns -ServiceName "myservice" -Name "mydns" + PS C:\>Remove-AzureDns -ServiceName "ContosoService" -Name "Dns07" + - Description + This command removes the DNS server named Dns07 from ContosoService. + + - -----------This command removes the DNS server "mydns" from the specified cloud service + - Unknown - - + Add-AzureDns + + + + Get-AzureDns + + + + New-AzureDns + + + + Set-AzureDns + - - + Remove-AzureEndpoint - Deletes an endpoint from a Microsoft Azure virtual machine object. + Deletes an endpoint from an Azure virtual machine. @@ -20808,54 +21177,70 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - - The Remove-AzureEndpoint cmdlet deletes an endpoint from a specified virtual machine object. + The Remove-AzureEndpoint cmdlet deletes an endpoint from an Azure virtual machine object. Remove-AzureEndpoint - + Name - Specifies the name of the endpoint to be deleted from the virtual machine. + Specifies the name of the endpoint that this cmdlet deletes from the virtual machine. String - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - Specifies the virtual machine object from which the endpoint will be deleted. + Specifies the virtual machine from which this cmdlet deletes an endpoint. IPersistentVM - + Name - Specifies the name of the endpoint to be deleted from the virtual machine. + Specifies the name of the endpoint that this cmdlet deletes from the virtual machine. String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none - + VM - Specifies the virtual machine object from which the endpoint will be deleted. + Specifies the virtual machine from which this cmdlet deletes an endpoint. IPersistentVM IPersistentVM - - + none @@ -20863,13 +21248,15 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + @@ -20878,62 +21265,69 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove an endpoint - PS C:\> Get-AzureVM –ServiceName "MyService" –Name “MyVM” | Remove-AzureEndpoint –Name "HttpIn" | Update-AzureVM + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirutalMachine01" | Remove-AzureEndpoint -Name "HttpIn" | Update-AzureVM + - This command deletes the endpoint "HttpIn" from the "MyVM" virtual machine. + This command retrieves the configuration of a virtual machine named VirtualMachine01 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet removes an endpoint named HttpIn. The command passes the virtual machine object to the Update-AzureVM cmdlet, which implements your changes. + + - - + - Online Version: - - + Add-AzureEndpoint + + + + Get-AzureEndpoint + + + + Get-AzureVM + + + + Set-AzureEndpoint + + + + Update-AzureVM + - - + Remove-AzureInternalLoadBalancer - Remove-AzureInternalLoadBalancer [-ServiceName] <string> [<CommonParameters>] + Removes an internal load balancer configuration. @@ -20943,36 +21337,51 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - - The Remove-AzureInternalLoadbalancer cmdlet removes the internal load balancer configuration from a deployment, if there are endpoints still referring to the internal load balancer the remove operation will fail + The Remove-AzureInternalLoadBalancer cmdlet removes the internal load balancer configuration from an Azure service. If any endpoint currently refers to the internal load balancer, this cmdlet cannot remove the configuration. Remove-AzureInternalLoadBalancer - + ServiceName - - + Specifies the name of the service from which this cmdlet removes an internal load balancer. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + ServiceName - - + Specifies the name of the service from which this cmdlet removes an internal load balancer. String String - - + none @@ -20980,13 +21389,15 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + @@ -20994,122 +21405,132 @@ This command gets the virtual machine object with the name "MyDemoVM01" running Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove an internal load balancer configuration - PS C:\> Remove-AzureInternalLoadBalancer -ServiceName "ILBInVNet" + PS C:\>Remove-AzureInternalLoadBalancer -ServiceName "ContosoService" + - Description + This command removes the internal load balancer configuration for the service named ContosoService. + + - -----------Removes the Internal load balancer configuration from the deployment. + - Unknown - - + Add-AzureInternalLoadBalancer + + + + Get-AzureInternalLoadBalancer + + + + New-AzureInternalLoadBalancerConfig + + + + Set-AzureInternalLoadBalancer + - - + - Remove-AzurePublicIP + Remove-AzureNetworkInterfaceConfig - Remove-AzurePublicIP [[-PublicIPName] <string>] -VM <IPersistentVM> [<CommonParameters>] + + Remove - AzurePublicIP + AzureNetworkInterfaceConfig - - Removed Public IP configuration from the virtual machine. - Remove-AzurePublicIP - - PublicIPName + Remove-AzureNetworkInterfaceConfig + + Name - - String - + + Profile + + + AzureProfile + + VM - - IPersistentVM - - PublicIPName + + Name - - String String - - + none + + + Profile + + + AzureProfile + + AzureProfile + + + none - + VM - - IPersistentVM IPersistentVM - - + none @@ -21117,10 +21538,10 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + @@ -21130,119 +21551,129 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM - + + + + - - + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + 1: - PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Remove-AzurePublicIP | Update-AzureVM + PS C:\> + - Description + + + + - -----------Removes the public ip configuration from the virtual machine. + - Unknown - - + Add-AzureNetworkInterfaceConfig + + + + Get-AzureNetworkInterfaceConfig + + + + Set-AzureNetworkInterfaceConfig + - - + - Remove-AzureReservedIP + Remove-AzureNetworkSecurityGroupConfig - Remove the Reserved IP by its name. + + Remove - AzureReservedIP + AzureNetworkSecurityGroupConfig - - Remove the reserved IP by its name. - Remove-AzureReservedIP - - ReservedIPName + Remove-AzureNetworkSecurityGroupConfig + + NetworkSecurityGroupName - Reserved IP Name - String + String - - Force + + Profile + + + AzureProfile + + + VM - Not Specified - SwitchParameter + IPersistentVM - - ReservedIPName + + NetworkSecurityGroupName - Reserved IP Name - String + String String - - + none - - Force + + Profile - Not Specified - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile + + + none + + + VM + + + IPersistentVM + + IPersistentVM - - + none @@ -21250,10 +21681,10 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + @@ -21265,178 +21696,125 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + 1: - PS C:\> Remove-AzureReservedIP -ReservedIPName $name + PS C:\> + - Description + + + + - -----------Deletes the Reserved IP from the Subscription by name + - Unknown - - + Set-AzureNetworkSecurityGroupConfig + - - + - Remove-AzureServiceADDomainExtension + Remove-AzurePublicIP - This cmdlet removes the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. + Removes Public IP configuration from an Azure virtual machine. Remove - AzureServiceADDomainExtension + AzurePublicIP - - This cmdlet removes the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. + The Remove-AzurePublicIP cmdlet removes Public IP configuration from an Azure virtual machine. - Remove-AzureServiceADDomainExtension - - ServiceName + Remove-AzurePublicIP + + PublicIPName - - + Specifies the Public IP name. - String + String - - Slot + + Profile - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - Role + + VM - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies the virtual machine from which this cmdlet removes Public IP configuration. - String[] - - - - Remove-AzureServiceADDomainExtension - - ServiceName - - - - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - - UninstallConfiguration - - If specified uninstall all AD Domain configurations from the cloud service. - - SwitchParameter + IPersistentVM - - ServiceName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Slot + + PublicIPName - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the Public IP name. - String + String String - - - - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - - + none - - UninstallConfiguration + + VM - If specified uninstall all AD Domain configurations from the cloud service. + Specifies the virtual machine from which this cmdlet removes Public IP configuration. - SwitchParameter + IPersistentVM - SwitchParameter + IPersistentVM - - + none @@ -21444,176 +21822,172 @@ This command gets the virtual machine object with the name "MyDemoVM01" running - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Remove-AzureServiceADDomainExtension -ServiceName $svc - - Description - - - - -----------Removing the configured AD domain extension from all roles of a cloud service. - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Remove Public IP configuration - PS C:\> Remove-AzureServiceADDomainExtension -ServiceName $svc -Role "WebRole1" + PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Remove-AzurePublicIP | Update-AzureVM + - Description + This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet removes Public IP configuration from the virtual machine. The command passes the virtual machine to the Update-AzureVM cmdlet, which implements your changes. + + - -----------Removing the configured AD domain extension from the role 'WebRole1' of a cloud service. + - Unknown - - + Get-AzurePublicIP + + + + Get-AzureVM + + + + Set-AzurePublicIP + + + + Update-AzureVM + - - + - Remove-AzureServiceAntimalwareExtension + Remove-AzureReservedIPAssociation - Removes the antimalware configuration from a cloud service. + Removes the association from the reserved IP address to the VM or cloud service. Remove - AzureServiceAntimalwareExtension + AzureReservedIPAssociation - - The Remove-AzureServiceAntimalwareExtension cmdlet removes the antimalware configuration and any associated antimalware monitoring from the Microsoft Antimalware extension associated with a cloud service. + The Remove-AzureReservedIPAssociation cmdlet disassociates a reserved IP address from a virtual machine (VM) or Cloud Service. When the operation completes, the reserved IP address is free and the VM/VIP gets a dynamic public IP Address from the Azure Inventory. - Remove-AzureServiceAntimalwareExtension - - ServiceName + Remove-AzureReservedIPAssociation + + ReservedIPName - Specifies the name of the cloud service. + Specifies the name of the reserved IP address. String - - Slot + + ServiceName - Specifies a deployment slot. Valid values are: - --- Production --- Staging - -The default value is Production. + Specifies the name of the service. String - - Role - - Specifies an array of roles. The default value is all roles. - - String[] - - - EndpointSuffix + + VirtualIPName - Specifies the storage endpoint suffix. + Specifies a virtual IP address from which to remove the association with a service or VM. - String + String - - - Remove-AzureServiceAntimalwareExtension - - ServiceName + + Slot - Specifies the name of the cloud service. + Specifies the deployment environment. The acceptable values for this parameter are: Production, Staging. - String + + Staging + Production + - - Slot + + Force - Specifies a deployment slot. Valid values are: - --- Production --- Staging - -The default value is Production. + Forces the command to run without asking for user confirmation. + Use this flag to bypass warning messages when removing the reserved IP association. - String - - EndpointSuffix + + Profile - Specifies the storage endpoint suffix. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - ServiceName + + Force - Specifies the name of the cloud service. + Forces the command to run without asking for user confirmation. + Use this flag to bypass warning messages when removing the reserved IP association. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ReservedIPName + + Specifies the name of the reserved IP address. String @@ -21622,15 +21996,10 @@ The default value is Production. none - - Slot + + ServiceName - Specifies a deployment slot. Valid values are: - --- Production --- Staging - -The default value is Production. + Specifies the name of the service. String @@ -21639,24 +22008,24 @@ The default value is Production. none - - Role + + Slot - Specifies an array of roles. The default value is all roles. + Specifies the deployment environment. The acceptable values for this parameter are: Production, Staging. - String[] + String - String[] + String none - - EndpointSuffix + + VirtualIPName - Specifies the storage endpoint suffix. + Specifies a virtual IP address from which to remove the association with a service or VM. - String + String String @@ -21669,228 +22038,141 @@ The default value is Production. - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + - - + + + - - - - - - - - - This cmdlet removes only the configuration associated with the specified role. It does not uninstall or remove any already running instances of the Microsoft Antimalware extension from roles. To return these roles to a start state that does not have Microsoft Antimalware running, first remove the configuration by using this cmdlet, and then reimage or redeploy the service. - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1: Remove the extension -------------------------- - - - - - PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - - This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03. - - - - - - - - - - -------------------------- Example 2: Remove the extension for the Staging slot -------------------------- - - - - - PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging" - - This command removes the antimalware extension and monitoring of associated antimalware events from all roles in the staging slot of the service named ContosoService03. - - - - - - - - - - -------------------------- Example 3: Remove the extension for a specified slot and role -------------------------- + Example 1: Remove a reserved IP association - PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Production" -Role "web role" + PS C:\>Remove-AzureReservedIPAssociation -ReservedIPName "ResIp14" -ServiceName "PipTestWestEurope" + - This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03 in the specified slot and role. + This command disassociates the reserved IP address named ResIp14 from the service named PipTestWestEurope. PipTestWestEurope will be assigned a new dynamic VIP. + + - - + - Online Version: - http://go.microsoft.com/fwlink/?LinkID=402841 - - - Set-AzureServiceAntimalwareExtension - - + Set-AzureReservedIPAssociation + - - + - Remove-AzureServiceDiagnosticsExtension + Remove-AzureReservedIP - This cmdlet removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + Removes a reserved IP address by its name. Remove - AzureServiceDiagnosticsExtension + AzureReservedIP - - This cmdlet removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. + The Remove-AzureReservedIP cmdlet removes a reserved IP address by its name. - Remove-AzureServiceDiagnosticsExtension - - ServiceName + Remove-AzureReservedIP + + ReservedIPName - Specifies the Microsoft Azure service name of the deployment. + Specifies the name of the reserved IP address. String - - Slot + + Force - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Forces the command to run without asking for user confirmation. - String - - Role + + Profile - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String[] - - - - Remove-AzureServiceDiagnosticsExtension - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - - UninstallConfiguration - - If specified uninstall all RDP configurations from the cloud service. - - SwitchParameter + AzureProfile - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - String - - - - - - - Slot + + Force - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Forces the command to run without asking for user confirmation. - String + SwitchParameter - String + SwitchParameter - - + none - - Role + + Profile - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String[] + AzureProfile - String[] + AzureProfile - - + none - - UninstallConfiguration + + ReservedIPName - If specified uninstall all RDP configurations from the cloud service. + Specifies the name of the reserved IP address. - SwitchParameter + String - SwitchParameter + String - - + none @@ -21898,13 +22180,15 @@ The default value is Production. - + + - - + + + @@ -21913,245 +22197,201 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Remove-AzureServiceDiagnosticsExtension -ServiceName $svc - - Description - - - - -----------Removing the configured diagnostics extension from all roles of a cloud service. - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Remove a reserved IP address by its name - PS C:\> Remove-AzureServiceDiagnosticsExtension -ServiceName $svc -Role "WebRole1" + PS C:\>Remove-AzureReservedIP -ReservedIPName $name + - Description + This command removes a reserved IP address by its name. + + - -----------Removing the configured diagnostics extension from the role 'WebRole1' of a cloud service. + - Unknown - - + Get-AzureReservedIP + + + + New-AzureReservedIP + + + + Set-AzureReservedIPAssociation + - - + - Remove-AzureServiceExtension + Remove-AzureServiceADDomainExtension - This cmdlet removes given cloud service extensions that are applied on a deployment. + Removes the cloud service AD domain extension applied on all roles or named roles at a certain deployment slot. Remove - AzureServiceExtension + AzureServiceADDomainExtension - - This cmdlet removes given cloud service extensions that are applied on a deployment. + The Remove-AzureServiceADDomainExtension cmdlet removes the cloud service Active Directory (AD) domain extension applied on all roles or named roles at a certain deployment slot. - Remove-AzureServiceExtension - + Remove-AzureServiceADDomainExtension + ServiceName - The cloud service name. + Specifies the name of an Azure service. - String + String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the environment of the deployment to modify. Valid values are: Production or Staging. - String + + Production + Staging + - + Role - An optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. - - String[] - - - ExtensionName - - The Extension Name. + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified, the AD domain configuration is applied as the default configuration for all roles. - String + String[] - - ProviderNamespace + + Profile - The Extension Provider Namespace. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - Remove-AzureServiceExtension - + Remove-AzureServiceADDomainExtension + ServiceName - The cloud service name. + Specifies the name of an Azure service. - String + String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - - ExtensionName - - The Extension Name. + Specifies the environment of the deployment to modify. Valid values are: Production or Staging. - String + + Production + Staging + - - ProviderNamespace + + UninstallConfiguration - The Extension Provider Namespace. + Indicates that this cmdlet uninstalls all AD domain configurations from the cloud service. - String - - UninstallConfiguration + + Profile - If specified uninstall all configurations from the cloud service. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - ServiceName - - The cloud service name. - - String - - String - - - - - - - Slot + + Profile - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - + Role - An optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified, the AD domain configuration is applied as the default configuration for all roles. - String[] + String[] String[] - - + none - - ExtensionName + + ServiceName - The Extension Name. + Specifies the name of an Azure service. - String + String String - - + none - - ProviderNamespace + + Slot - The Extension Provider Namespace. + Specifies the environment of the deployment to modify. Valid values are: Production or Staging. - String + String String - - + none - + UninstallConfiguration - If specified uninstall all configurations from the cloud service. + Indicates that this cmdlet uninstalls all AD domain configurations from the cloud service. - SwitchParameter + SwitchParameter SwitchParameter - - + none @@ -22159,13 +22399,15 @@ The default value is Production. - + + - - + + + @@ -22174,205 +22416,260 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove an AD domain extension - PS C:\> Remove-AzureServiceExtension -ServiceName $svc -Slot Production -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions + PS C:\>Remove-AzureServiceADDomainExtension -ServiceName $Svc + - Description + This command removes the extension specified by the $Svc variable. + + - -----------Remove the existing RDP extension applied on all roles. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Remove an AD Domain extension for a specified role - PS C:\> Remove-AzureServiceExtension -ServiceName $svc -Slot Production -ExtensionName RDP -ProviderNamespace Microsoft.Windows.Azure.Extensions -UninstallConfiguration + PS C:\>Remove-AzureServiceADDomainExtension -ServiceName $Svc -Role "WebRole1" + - Description + This command removes the service extension for the specified role. + + - -----------Remove the existing RDP extension applied on all roles, and uninstall it from the cloud service. + - Unknown - - + Get-AzureServiceADDomainExtension + - - + - Remove-AzureServiceRemoteDesktopExtension + Remove-AzureServiceAntimalwareExtension - This cmdlet removes the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. + Removes the antimalware configuration from a cloud service. Remove - AzureServiceRemoteDesktopExtension + AzureServiceAntimalwareExtension - - This cmdlet removes the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. + The Remove-AzureServiceAntimalwareExtension cmdlet removes the antimalware configuration and any associated antimalware monitoring from the Microsoft Antimalware extension associated with a cloud service. - Remove-AzureServiceRemoteDesktopExtension - + Remove-AzureServiceAntimalwareExtension + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the name of the cloud service. String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies a deployment slot. Valid values are: + + +-- Production + +-- Staging + + +The default value is Production. - String + + Production + Staging + - + Role - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies an array of roles. The default value is all roles. - String[] + String[] + + + EndpointSuffix + + Specifies the storage endpoint suffix. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - Remove-AzureServiceRemoteDesktopExtension - + Remove-AzureServiceAntimalwareExtension + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the name of the cloud service. String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies a deployment slot. Valid values are: + + +-- Production + +-- Staging + + +The default value is Production. - String + + Production + Staging + - - UninstallConfiguration + + EndpointSuffix + + Specifies the storage endpoint suffix. + + String + + + Profile - If specified uninstall all RDP configurations from the cloud service. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - ServiceName + + EndpointSuffix - Specifies the Microsoft Azure service name of the deployment. + Specifies the storage endpoint suffix. - String + String String - - + none - - Slot + + Profile - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - + Role - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies an array of roles. The default value is all roles. - String[] + String[] String[] - - + none - - UninstallConfiguration + + ServiceName - If specified uninstall all RDP configurations from the cloud service. + Specifies the name of the cloud service. - SwitchParameter + String - SwitchParameter + String - - + none - - - - - - - - - - - + + Slot + + Specifies a deployment slot. Valid values are: + + +-- Production + +-- Staging + + +The default value is Production. + + String + + String + + + none + + + + + + + + + + + + + + @@ -22381,212 +22678,241 @@ The default value is Production. - + + - - + + + - - - - + + - - + - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + This cmdlet removes only the configuration associated with the specified role. It does not uninstall or remove any already running instances of the Microsoft Antimalware extension from roles. To return these roles to a start state that does not have Microsoft Antimalware running, first remove the configuration by using this cmdlet, and then reimage or redeploy the service. - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove the extension + + + + + PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" + + + This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03. + + + + + + + + + + + Example 2: Remove the extension for the Staging slot - PS C:\> Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc + PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging" + - Description + This command removes the antimalware extension and monitoring of associated antimalware events from all roles in the staging slot of the service named ContosoService03. + + - -----------Removing the configured remote desktop extension from all roles of a cloud service. + - -------------------------- EXAMPLE 2 -------------------------- + Example 3: Remove the extension for a specified slot and role - PS C:\> Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc -Role "WebRole1" + PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Production" -Role "web role" + - Description + This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03 in the specified slot and role. + + - -----------Removing the configured remote desktop extension from the role 'WebRole1' of a cloud service. + - Unknown - - + Online Version: + http://go.microsoft.com/fwlink/?LinkID=402841 + + + Set-AzureServiceAntimalwareExtension + - - + - Remove-AzureStaticVNetIP + Remove-AzureServiceDiagnosticsExtension - Remove the static VNet IP address information from a VM object, if any. + Removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. Remove - AzureStaticVNetIP + AzureServiceDiagnosticsExtension - - Remove the static VNet IP address information from a VM object, if any. + The Remove-AzureServiceDiagnosticsExtension cmdlet removes the cloud service diagnostics extension applied on all roles or named roles at a certain deployment slot. - Remove-AzureStaticVNetIP - - VM + Remove-AzureServiceDiagnosticsExtension + + ServiceName - Persistent VM object. + Specifies the Azure service name of the deployment. - IPersistentVM + String + + + Slot + + Specifies the environment of the deployment to modify. Valid values are Production or Staging. + + + Production + Staging + + + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If you do not specify this parameter, the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Remove-AzureServiceDiagnosticsExtension + + ServiceName + + Specifies the Azure service name of the deployment. + + String + + + Slot + + Specifies the environment of the deployment to modify. Valid values are Production or Staging. + + + Production + Staging + + + + UninstallConfiguration + + Indicates that this cmdlet uninstalls all RDP configurations from the cloud service. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - VM + + Profile - Persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile - - + none - - - + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If you do not specify this parameter, the remote desktop configuration is applied as the default configuration for all roles. + + String[] - - + String[] - - - - + none + + + ServiceName + Specifies the Azure service name of the deployment. - - - - + String - - + String - - - - + none + + + Slot + Specifies the environment of the deployment to modify. Valid values are Production or Staging. - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - Unknown - - - - - - - - - Remove-AzureStorageAccount - - Deletes the specified storage account from a subscription. - - - - - Remove - AzureStorageAccount - - - - - The Remove-AzureStorageAccount cmdlet removes an account from a Microsoft Azure subscription. - - - - Remove-AzureStorageAccount - - StorageAccountName - - The name of the storage account to be removed. - - String - - - - - - StorageAccountName + String + + String + + + none + + + UninstallConfiguration - The name of the storage account to be removed. + Indicates that this cmdlet uninstalls all RDP configurations from the cloud service. - String + SwitchParameter - String + SwitchParameter - - + none @@ -22594,13 +22920,15 @@ The default value is Production. - + + - - + + + @@ -22609,149 +22937,268 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove the diagnostic extension for a service + + + + + PS C:\>Remove-AzureServiceDiagnosticsExtension -ServiceName $Svc + + + This command removes the diagnostic extension for a specified role. + + + + + + + + + + + Example 2: Remove the diagnostic extension for a service in a specified role - PS C:\> C:\PS>Remove-AzureStorageAccount -StorageAccountName "mystore1" + PS C:\>Remove-AzureServiceDiagnosticsExtension -ServiceName $Svc -Role "WebRole01" + - This command removes the "mystore1" storage account from the specified subscription. + This command removes the diagnostic extension for a specified role. + + - - + - New-AzureStorageAccount - - - - - Set-AzureStorageAccount - - + Get-AzureServiceDiagnosticsExtension + - Get-AzureStorageAccount - - + Set-AzureServiceDiagnosticsExtension + - - + - Remove-AzureVM + Remove-AzureServiceExtension - Removes a Microsoft Azure virtual machine. + Removes cloud service extensions that are applied on a deployment. Remove - AzureVM + AzureServiceExtension - - The Remove-AzureVM cmdlet deletes a Microsoft Azure virtual machine. This process doesn’t delete the underlying .vhd files of the disks mounted on that virtual machine. + The Remove-AzureServiceExtension cmdlet removes cloud service extensions that are applied on a deployment. - Remove-AzureVM - - Name + Remove-AzureServiceExtension + + ServiceName - Specifies the name of the virtual machine being removed. + Specifies the cloud service name. - String + String - - DeleteVHD + + Slot - Specify to remove the VM and the underlying disk blob(s). + Specifies the environment of the deployment to modify. Valid values are Production or Staging. - SwitchParameter + + Production + Staging + - - ServiceName + + Role - Specifies the Microsoft Azure service name from which the virtual machine is being removed. + Specifies an optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. - String + String[] - + + ExtensionName + + Specifies the extension name. + + String + + + ProviderNamespace + + Specifies the extension provider namespace. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Remove-AzureServiceExtension + + ServiceName + + Specifies the cloud service name. + + String + + + Slot + + Specifies the environment of the deployment to modify. Valid values are Production or Staging. + + + Production + Staging + + + + ExtensionName + + Specifies the extension name. + + String + + + ProviderNamespace + + Specifies the extension provider namespace. + + String + + + UninstallConfiguration + + Indicates that this cmdlet uninstalls all configurations from the cloud service. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + - - Name + + ExtensionName - Specifies the name of the virtual machine being removed. + Specifies the extension name. String String - - + none - - DeleteVHD + + Profile - Specify to remove the VM and the underlying disk blob(s). + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - ServiceName + + ProviderNamespace - Specifies the Microsoft Azure service name from which the virtual machine is being removed. + Specifies the extension provider namespace. String String - - + none + + + Role + + Specifies an optional array of roles to specify the extension for. If not specified the extension is applied as the default configuration for all roles. + + String[] + + String[] + + + none + + + ServiceName + + Specifies the cloud service name. + + String + + String + + + none + + + Slot + + Specifies the environment of the deployment to modify. Valid values are Production or Staging. + + String + + String + + + none + + + UninstallConfiguration + + Indicates that this cmdlet uninstalls all configurations from the cloud service. + + SwitchParameter + + SwitchParameter + + + none @@ -22759,13 +23206,15 @@ The default value is Production. - + + - - + + + @@ -22774,140 +23223,216 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove a service extension - PS C:\> C:\PS>Remove-AzureVM -ServiceName "MySvc1" -Name "MyVM" + PS C:\>Remove-AzureServiceExtension -ServiceName $Svc -Slot "Production" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" + - This command removes the "MyVM" virtual machine running in the "MySvc1" service. + This command removes a service extension. + + - - + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Remove a service extension and uninstall all configurations - PS C:\> Remove-AzureVM -ServiceName "MySvc1" -Name "MyVM" -DeleteVHD + PS C:\>Remove-AzureServiceExtension -ServiceName $Svc -Slot "Production" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" -UninstallConfiguration + - Description + This command removes a service extension and uninstalls all configurations. + + - -----------This command removes the "MyVM" virtual machine running in the "MySvc1" service, and the underlying VHD(s). + - New-AzureVMConfig - - - - - Restart-AzureVM - - - - - Start-AzureVM - - - - - Stop-AzureVM - - - - - Update-AzureVM - - + Get-AzureServiceExtension + - New-AzureVM - - + Set-AzureServiceExtension + - - + - Remove-AzureVMAccessExtension + Remove-AzureServiceRemoteDesktopExtension - This cmdlet removes the VMAcess extension (if any) applied on the VM. + Removes the cloud service remote desktop extension applied on all roles or named roles at a specified deployment slot. Remove - AzureVMAccessExtension + AzureServiceRemoteDesktopExtension - - This cmdlet removes the VMAcess extension (if any) applied on the VM. + The Remove-AzureServiceRemoteDesktopExtension cmdlet removes the cloud service remote desktop extension applied on all roles or named roles at a certain deployment slot. - Remove-AzureVMAccessExtension - - VM + Remove-AzureServiceRemoteDesktopExtension + + ServiceName - The persistent VM object. + Specifies the Azure service name of the deployment. - IPersistentVM + String + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + + Production + Staging + + + + Role + + Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Remove-AzureServiceRemoteDesktopExtension + + ServiceName + + Specifies the Azure service name of the deployment. + + String + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + + Production + Staging + + + + UninstallConfiguration + + Specifies that this cmdlet uninstalls all RDP configurations from the cloud service. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - VM + + Profile - The persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile - - + none + + + Role + + Specifies an optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + String[] + + + none + + + ServiceName + + Specifies the Azure service name of the deployment. + + String + + String + + + none + + + Slot + + Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + + String + + String + + + none + + + UninstallConfiguration + + Specifies that this cmdlet uninstalls all RDP configurations from the cloud service. + + SwitchParameter + + SwitchParameter + + + none @@ -22915,13 +23440,15 @@ The default value is Production. - + + - - + + + @@ -22930,98 +23457,126 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove the remote desktop extension - PS C:\> Remove-AzureVMAccessExtension -VM $vm; + PS C:\>Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc + - Description + This command removes the remote desktop extension. + + - -----------This cmdlet removes the VMAcess extension (if any) applied on the VM. + - - - - Unknown - - - - - - - + + Example 2: Remove the remote desktop extension from a specified role + + + + + PS C:\>Remove-AzureServiceRemoteDesktopExtension -ServiceName $svc -Role "WebRole1" + + + This command removes the remote desktop extension from a specified role. + + + + + + + + + + + + + Set-AzureServiceRemoteDesktopExtension + + + + + - Remove-AzureVMBGInfoExtension + Remove-AzureStaticVNetIP - This cmdlet removes the BGInfo extension (if any) applied on the VM. + Removes the static virtual network IP address information from a virtual machine object, if any. Remove - AzureVMBGInfoExtension + AzureStaticVNetIP - - This cmdlet removes the BGInfo extension (if any) applied on the VM. + The Remove-AzureStaticVNetIP cmdlet removes the static virtual network (VNet) IP address information from a virtual machine object, if any. - Remove-AzureVMBGInfoExtension - + Remove-AzureStaticVNetIP + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies a persistent virtual machine object. IPersistentVM - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - The persistent VM object. + Specifies a persistent virtual machine object. IPersistentVM IPersistentVM - - + none @@ -23029,13 +23584,15 @@ The default value is Production. - + + - - + + + @@ -23044,98 +23601,110 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + 1: - PS C:\> Remove-AzureVMBGInfoExtension -VM $vm; - Description + + + + - -----------This cmdlet removes the BGInfo extension (if any) applied on the VM. + - Unknown - - + Get-AzureStaticVNetIP + + + + Set-AzureStaticVNetIP + - - + - Remove-AzureVMCustomScriptExtension + Remove-AzureStorageAccount - Remove Azure VM Custom Script Extension from a VM. + Deletes the specified storage account from a subscription. Remove - AzureVMCustomScriptExtension + AzureStorageAccount - - Remove Azure VM Custom Script Extension from a VM. + The Remove-AzureStorageAccount cmdlet removes an account from an Azure subscription. - Remove-AzureVMCustomScriptExtension - - VM + Remove-AzureStorageAccount + + StorageAccountName - The persistent VM object. + Specifies the name of the storage account to remove. - IPersistentVM + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - VM + + Profile - The persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile + + + none + + + StorageAccountName + + Specifies the name of the storage account to remove. + + String + + String - - + none @@ -23143,13 +23712,15 @@ The default value is Production. - + + - - + + + @@ -23158,102 +23729,152 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove a storage account - PS C:\> Remove-AzureVMCustomScriptExtension -VM $vm; + PS C:\>Remove-AzureStorageAccount -StorageAccountName "ContosoStore01" + - Description + This command removes the ContosoStore01 storage account from the specified subscription. + + - -----------Remove Azure VM Custom Script Extension from a VM. + - Unknown - - + Get-AzureStorageAccount + + + + New-AzureStorageAccount + + + + Set-AzureStorageAccount + - - + - Remove-AzureVMDiagnosticsExtension + Remove-AzureVirtualIP - - + Deletes a virtual IP address from your Cloud Service. Remove - AzureVMDiagnosticsExtension + AzureVirtualIP - - - + The Remove-AzureVirtualIP cmdlet deletes a virtual IP (VIP) from an Azure service. The operation succeeds only if the virtual IP has no endpoints associated with it. - Remove-AzureVMDiagnosticsExtension - - VM + Remove-AzureVirtualIP + + ServiceName - - + Specifies the name of the service from which to remove a virtual IP address. - IPersistentVM + String + + + VirtualIPName + + Specifies the name of the virtual IP address to remove. + + String + + + Force + + Forces the command to run without asking for user confirmation. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - VM + + Force - - + Forces the command to run without asking for user confirmation. - IPersistentVM + SwitchParameter - IPersistentVM + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName + + Specifies the name of the service from which to remove a virtual IP address. + + String + + String + + + none + + + VirtualIPName + + Specifies the name of the virtual IP address to remove. + + String + + String - - + none @@ -23261,137 +23882,138 @@ The default value is Production. - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + + + Example 1: Remove a virtual IP address from a service + + + + + PS C:\>Remove-AzureVirtualIP -VirtualIPName "Vip01" -ServiceName "ContosoService03" + + + This command removes a virtual IP address from a service. + + + + + + + + + + + Add-AzureVirtualIP + + - - + - - Remove-AzureVMDscExtension - + Remove-AzureVMAccessExtension - Removes DSC extension handler from a given virtual machine(s) in a cloud service. Output of this cmdlet needs to be piped to Update-AzureVM cmdlet. To get detailed output -Verbose flag need to be specified. + Removes the VMAccess extension applied on a virtual machine. - - + Remove - AzureVMDscExtension - - + AzureVMAccessExtension + - Removes DSC extension handler from a given virtual machine(s) in a cloud service. Output of this cmdlet needs to be piped to Update-AzureVM cmdlet. To get detailed output -Verbose flag need to be specified. + The Remove-AzureVMAccessExtension cmdlet removes the VMAccess extension applied on a virtual machine. - - Remove-AzureVMDscExtension - + Remove-AzureVMAccessExtension + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies the persistent virtual machine object that this cmdlet removes the VMAccess extension from. IPersistentVM - - - VM + + Profile - The persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile - - + none - - Confirm + + VM - Prompts you for confirmation before executing the command. + Specifies the persistent virtual machine object that this cmdlet removes the VMAccess extension from. - switchparameter + IPersistentVM - switchparameter + IPersistentVM - - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - switchparameter - - switchparameter - - - - + none - - - + + + + + - @@ -23401,205 +24023,111 @@ The default value is Production. - -- -- -- -- + + + + + + + + -- -- - + + - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove a VMAccess extension from a virtual machine - PS C:\> Remove-AzureVMDscExtension -VM $vm | Update-AzureVM + PS C:\>Remove-AzureVMAccessExtension -VM $VM; + - Description + This command removes a VMAccess extension from a virtual machine. + + - -----------Remove Azure VM DSC Extension from a VM. + - Unknown - - + Get-AzureVMAccessExtension + + + + Set-AzureVMAccessExtension + - - + - Remove-AzureVMExtension + Remove-AzureVMBGInfoExtension - This cmdlet removes resource extensions from VMs. + Removes the BGInfo extension applied on a virtual machine. Remove - AzureVMExtension + AzureVMBGInfoExtension - - This cmdlet removes resource extensions from VMs. + The Remove-AzureVMBGInfoExtension cmdlet removes the BGInfo extension applied on a virtual machine. - Remove-AzureVMExtension - - ExtensionName - - The Extension Name. - - String - - - Publisher - - The Extension Publisher. - - String - - - VM - - - - - IPersistentVM - - - - Remove-AzureVMExtension - - ReferenceName - - The extension's reference name. - - String - - - VM - - - - - IPersistentVM - - - - Remove-AzureVMExtension - - RemoveAll + Remove-AzureVMBGInfoExtension + + Profile - Specify to remove all extensions. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - + VM - - + Specifies the persistent virtual machine object. IPersistentVM - - ExtensionName - - The Extension Name. - - String - - String - - - - - - - Publisher + + Profile - The Extension Publisher. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - + VM - - + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - - - - ReferenceName - - The extension's reference name. - - String - - String - - - - - - - RemoveAll - - Specify to remove all extensions. - - SwitchParameter - - SwitchParameter - - - - + none @@ -23607,13 +24135,15 @@ The default value is Production. - + + - - + + + @@ -23622,134 +24152,111 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> $vm = Remove-AzureVMExtension -VM $vm -ExtensionName $ext -Publisher $pub; - - Description - - - - -----------Remove a given extension with the name and publisher - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Remove the BGInfo extension on a virtual machine - PS C:\> $vm = Remove-AzureVMExtension -VM $vm -RemoveAll; + PS C:\>Remove-AzureVMBGInfoExtension -VM $VM; + - Description + This command removes the BGInfo extension applied on a virtual machine. + + - -----------Remove all extensions. + - Unknown - - + Get-AzureVMBGInfoExtension + + + + Set-AzureVMBGInfoExtension + - - + - Remove-AzureVMImage + Remove-AzureVMChefExtension - Removes an OS or VM image from the Image Repository. + Removes the Chef extension applied on the virtual machine. Remove - AzureVMImage + AzureVMChefExtension - - Removes an OS or VM image from the Image Repository. + The Remove-AzureVMChefExtension cmdlet deletes the Chef extension applied on the virtual machine. - Remove-AzureVMImage - - ImageName + Remove-AzureVMChefExtension + + Profile - Specifies the OS or VM image to remove from the image repository. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - DeleteVHD + + VM - When specified, the physical VHD image blob is deleted from the storage account. + Specifies the persistent virtual machine object. - SwitchParameter + IPersistentVM - - ImageName + + Profile - Specifies the OS or VM image to remove from the image repository. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - DeleteVHD + + VM - When specified, the physical VHD image blob is deleted from the storage account. + Specifies the persistent virtual machine object. - SwitchParameter + IPersistentVM - SwitchParameter + IPersistentVM - - + none @@ -23757,13 +24264,15 @@ The default value is Production. - + + - - + + + @@ -23772,202 +24281,115 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Remove-AzureVMImage -ImageName MyOSImage - - Description - - - - -----------This command removes the "MyOSImage" image from the image repository. - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - - - PS C:\> Remove-AzureVMImage -ImageName MyOSImage -DeleteVHD - - Description - - - - -----------This command removes the "MyOSImage" image from the image repository and also deletes the physical VHD image from the storage account. - - - - - -------------------------- EXAMPLE 3 -------------------------- + Example 1: Remove the Chef extension applied on the specified virtual machine - PS C:\> $subsId = &amp;lt;MySubscriptionID&amp;gt; -$cert = Get-AzureCertificate cert:\LocalMachine\MY\&amp;lt;CertificateThumbprint&amp;gt; -Get-AzureVMImage ` - | Where-Object {$_.Label -match "Beta" }` - | Foreach-Object {Remove-AzureVMImage -ImageName $_.name } + PS C:\>Remove-AzureVMChefExtension -VM $VM; + - Description + This command removes the Chef extension applied on the virtual machine. + + - -----------This command sets the subscription context and then removes all the images from the image repository whose Label includes "Beta". + - Add-AzureVMImage - - + Get-AzureVMChefExtension + - Get-AzureVMImage - - + Set-AzureVMChefExtension + - Update-AzureVMImage - - + Azure Service Cmdlets + - - + - Remove-AzureVMImageDataDiskConfig + Remove-AzureVMCustomScriptExtension - This cmdlet removes the Data Disk Config from the DiskConfigSet object + Removes the custom script extension from a virtual machine. Remove - AzureVMImageDataDiskConfig + AzureVMCustomScriptExtension - - - + The Remove-AzureVMCustomScriptExtension cmdlet removes the custom script extension from a virtual machine. - Remove-AzureVMImageDataDiskConfig - - DiskConfig + Remove-AzureVMCustomScriptExtension + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - VirtualMachineImageDiskConfigSet + AzureProfile - - DataDiskName + + VM - - + Specifies the persistent virtual machine object. - String - - - - Remove-AzureVMImageDataDiskConfig - - DiskConfig - - - - - VirtualMachineImageDiskConfigSet - - - Lun - - - - - Int32 + IPersistentVM - - DiskConfig - - - - - VirtualMachineImageDiskConfigSet - - VirtualMachineImageDiskConfigSet - - - - - - - DataDiskName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Lun + + VM - - + Specifies the persistent virtual machine object. - Int32 + IPersistentVM - Int32 + IPersistentVM - - + none @@ -23975,120 +24397,132 @@ Get-AzureVMImage ` - + + - - + + + - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - + + + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove a virtual machine custom script extension - PS C:\> $s = New-AzureDiskConfigSet - # returns DiskConfigSet object; - - $s = Set-AzureDataDiskConfig -DiskConfig $s -HostCaching ReadWrite - # returns DiskConfigSet object; - - Remove-AzureVMImageDataDiskConfig -DiskConfig $s - # removes the Data DiskConfig object from the DiskConfigSet object + PS C:\> Remove-AzureVMCustomScriptExtension -VM $VM; + - Description + This command removes the Azure virtual machine custom script extension from the specified virtual machine as stored in the variable $VM. + + - ----------- + - Unknown - - + Get-AzureVMCustomScriptExtension + + + + Set-AzureVMCustomScriptExtension + + + + Azure Service Cmdlets + - - + - Remove-AzureVMImageOSDiskConfig + Remove-AzureVMDiagnosticsExtension - This cmdlet removes the OS Disk Config from the DiskConfigSet object + Removes the Azure Diagnostics extension from a virtual machine. Remove - AzureVMImageOSDiskConfig + AzureVMDiagnosticsExtension - - - + The Remove-AzureVMDiagnosticsExtension cmdlet removes a Microsoft Azure Diagnostics extension from a virtual machine. You must pass the output of this cmdlet to the Update-AzureVM cmdlet. - Remove-AzureVMImageOSDiskConfig - - DiskConfig + Remove-AzureVMDiagnosticsExtension + + Profile - The disk config object that encapsulates the OS Disk and Data Disk objects. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - VirtualMachineImageDiskConfigSet + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM - - DiskConfig + + Profile - The disk config object that encapsulates the OS Disk and Data Disk objects. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - VirtualMachineImageDiskConfigSet + AzureProfile - VirtualMachineImageDiskConfigSet + AzureProfile + + + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM - - + none @@ -24096,111 +24530,137 @@ Get-AzureVMImage ` - + + - - + + + - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - + + + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove the Azure Diagnostics extension from a virtual machine - PS C:\> $s = New-AzureDiskConfigSet - # returns DiskConfigSet object; - - $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite - # returns DiskConfigSet object; - - Remove-AzureVMImageOSDiskConfig -DiskConfig $s - # removes the OS DiskConfig object from the DiskConfigSet object + PS C:\>Remove-AzureVMDiagnosticsExtension -VM $VM | Update-AzureVM + - Description + This command removes the Azure Diagnostics extension from a virtual machine. + + - ----------- + - Unknown - - + Get-AzureVMDiagnosticsExtension + + + + Set-AzureVMDiagnosticsExtension + + + + Update-AzureVM + - - + - Remove-AzureVMMicrosoftAntimalwareExtension + Remove-AzureVMDscExtension - Removes the Microsoft Antimalware extension from a virtual machine. + Removes an Azure DSC extension from a virtual machine. Remove - AzureVMMicrosoftAntimalwareExtension + AzureVMDscExtension - - The Remove-AzureVMMicrosoftAntimalwareExtension cmdlet removes the Microsoft Antimalware extension from a virtual machine. If monitoring was turned on, this cmdlet also removes the collection of Microsoft Antimalware events. + The Remove-AzureVMDscExtension cmdlet removes an Azure DSC extension from a virtual machine. The output of this cmdlet needs to be piped to the Update-AzureVM cmdlet. - Remove-AzureVMMicrosoftAntimalwareExtension - + Remove-AzureVMDscExtension + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - Specifies the virtual machine as an IPersistentVM object. + Specifies the persistent virtual machine object. IPersistentVM + + Confirm + + Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + + - + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - Specifies the virtual machine as an IPersistentVM object. + Specifies the persistent virtual machine object. IPersistentVM @@ -24209,18 +24669,45 @@ Get-AzureVMImage ` none + + Confirm + + Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + + SwitchParameter + + SwitchParameter + + + false + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. + + SwitchParameter + + SwitchParameter + + + false + - IPersistentVM - + + + + - - + + + @@ -24229,117 +24716,224 @@ Get-AzureVMImage ` - + + - - + + + - - - - - - - - - To avoid interfering with monitoring for other applications or services, this cmdlet removes only the collection of Microsoft Antimalware events. It does not change other application configurations or the default monitoring configuration. - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1: Remove the extension -------------------------- + Example 1: Remove a DSC extension from a virtual machine - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Remove-AzureVMMicrosoftAntimalwareExtension | Update-AzureVM + PS C:\>Remove-AzureVMDscExtension -VM $VM | Update-AzureVM + - This command removes the Microsoft Antimalware extension. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. Remove-AzureVMMicrosoftAntimalwareExtension removes the extension. The command passes the result to the Update-AzureVM cmdlet to update the virtual machine. + This command removes an Azure DSC extension from a virtual machine. + + - - + - Online Version: - http://go.microsoft.com/fwlink/?LinkID=402842 + Get-AzureVMDscExtension + - Get-AzureVM - - + Set-AzureVMDscExtension + Update-AzureVM - - - - - Get-AzureVMMicrosoftAntimalwareExtension - - - - - Set-AzureVMMicrosoftAntimalwareExtension - - + - - + - Remove-AzureVMPuppetExtension + Remove-AzureVMExtension - This cmdlet removes the Puppet extension (if any) applied on the VM. + Removes resource extensions from a virtual machine. Remove - AzureVMPuppetExtension + AzureVMExtension - - This cmdlet removes the Puppet extension (if any) applied on the VM. + The Remove-AzureVMExtension cmdlet removes resource extensions from a virtual machine. - Remove-AzureVMPuppetExtension - + Remove-AzureVMExtension + + ExtensionName + + Specifies the extension name that this cmdlet removes. + + String + + + Publisher + + Specifies the extension publisher. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM - - - - VM - - The persistent VM object. - - IPersistentVM - - IPersistentVM - + + Remove-AzureVMExtension + + ReferenceName + + Specifies the reference name of the extension. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Remove-AzureVMExtension + + RemoveAll + + Indicates that this cmdlet removes all resource extensions from the virtual machine. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + + + ExtensionName + + Specifies the extension name that this cmdlet removes. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + Publisher + + Specifies the extension publisher. + + String + + String + + + none + + + ReferenceName + + Specifies the reference name of the extension. + + String + + String + + + none + + + RemoveAll + + Indicates that this cmdlet removes all resource extensions from the virtual machine. + + SwitchParameter + + SwitchParameter + - - + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM + + + none @@ -24347,13 +24941,15 @@ Get-AzureVMImage ` - + + - - + + + @@ -24362,203 +24958,274 @@ Get-AzureVMImage ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove an extension using a specific name and publisher + + + + + PS C:\>$VM = Remove-AzureVMExtension -VM $VM -ExtensionName $EXT -Publisher $PUB; + + + This command removes an extension with the specified name and publisher. + + + + + + + + + + + Example 2: Remove all extensions from a specific virtual machine - PS C:\> Remove-AzureVMPuppetExtension -VM $vm; + PS C:\>$VM = Remove-AzureVMExtension -VM $VM -RemoveAll; + - Description + This command removes all extensions from the specified virtual machine as stored in the variable $VM. + + - -----------This cmdlet removes the Puppet extension (if any) applied on the VM. + - Unknown - - + Get-AzureVMExtension + + + + Set-AzureVMExtension + + + + Azure Service Cmdlets + - - + - Remove-AzureVNetConfig + Remove-AzureVMImageDataDiskConfig - Deletes the network configuration from the current Microsoft Azure subscription. + Removes the data disk configuration from the DiskConfigSet object. Remove - AzureVNetConfig + AzureVMImageDataDiskConfig - - The Remove-AzureVNetConfig cmdlet removes all virtual network settings from the current Microsoft Azure subscription. + The Remove-AzureVMImageDataDiskConfig cmdlet removes the data disk configuration from the DiskConfigSet object. - Remove-AzureVNetConfig + Remove-AzureVMImageDataDiskConfig + + DiskConfig + + Specifies the disk configuration object that encapsulates the operating system disk and data disk objects. + + VirtualMachineImageDiskConfigSet + + + DataDiskName + + Specifies the name of the data disk that this cmdlet removes. + + String + + + + Remove-AzureVMImageDataDiskConfig + + DiskConfig + + Specifies the disk configuration object that encapsulates the operating system disk and data disk objects. + + VirtualMachineImageDiskConfigSet + + + Lun + + Specifies the slot where the data drive is mounted in the virtual machine. + + Int32 + + + DataDiskName + + Specifies the name of the data disk that this cmdlet removes. + + String + + String + + + none + + + DiskConfig + + Specifies the disk configuration object that encapsulates the operating system disk and data disk objects. + + VirtualMachineImageDiskConfigSet + + VirtualMachineImageDiskConfigSet + + + none + + + Lun + + Specifies the slot where the data drive is mounted in the virtual machine. + + Int32 + + Int32 + + + none + - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove the data disk configuration from the DiskConfigSet object - PS C:\> C:\PS>Remove-AzureVNetConfig + PS C:\>$Disk = New-AzureDiskConfigSet +PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -HostCaching ReadWrite +PS C:\> Remove-AzureVMImageDataDiskConfig -DiskConfig $Disk + - This command removes the virtual network configuration from the current subscription. + This example creates a DiskConfigSet, configures it, then removes the data disk. + + - - + - Get-AzureVNetConfig - - - - - Get-AzureVNetSite - - + Set-AzureVMImageDataDiskConfig + - Set-AzureVNetConfig - - + Azure Service Cmdlets + - - + - Remove-AzureVNetGateway + Remove-AzureVMImageOSDiskConfig - Removes the Microsoft Azure virtual network gateway to the specified virtual network. + Removes the operating system disk configuration from the DiskConfigSet object. Remove - AzureVNetGateway + AzureVMImageOSDiskConfig - - The Remove-AzureVNetGateway cmdlet removes the virtual network gateway to the specified Microsoft Azure virtual network. A virtual network gateway is a VPN endpoint for connecting to a virtual network. If you remove the virtual network gateway, the underlying virtual network is unaffected and still in place, allowing you to create a new gateway with New-VNetGateway. However, the shared key for the gateway will be different, requiring reconfiguration of the VPN device at the local network site. + The Remove-AzureVMImageOSDiskConfig cmdlet removes the operating system disk configuration from the DiskConfigSet object. - Remove-AzureVNetGateway - - VNetName + Remove-AzureVMImageOSDiskConfig + + DiskConfig - Specifies the name of the virtual network to remove the gateway from. + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet - - VNetName + + DiskConfig - Specifies the name of the virtual network to remove the gateway from. + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet - String + VirtualMachineImageDiskConfigSet - - + none @@ -24566,190 +25233,143 @@ Get-AzureVMImage ` - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove the operating system disk configuration from a DiskConfigSet - PS C:\> C:\PS>Remove-AzureVNetGateway –VNetName "MyProdNet" + PS C:\> $Disk = New-AzureDiskConfigSet +PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite +PS C:\> Remove-AzureVMImageOSDiskConfig -DiskConfig $Disk + - This command removes the virtual network gateway (VPN endpoint) from the "MyProdNet" virtual network. + This command removes the operating system disk configuration from the DiskConfigSet object + + - - + + + Set-AzureVMImageOSDiskConfig + + - - + - Reset-AzureRoleInstance + Remove-AzureVMImage - Requests a reboot or reimage of a single role instance or all role instances of a specific role. + Removes an operating system image from the image repository. - Reset - AzureRoleInstance + Remove + AzureVMImage - - The ReSet-AzureRoleInstance cmdlet requests a reboot or a reimage of a role instance that is running in a deployment. This operation executes synchronously. When you reboot a role instance, Microsoft Azure takes the instance offline, restarts the underlying operating system for that instance, and brings the instance back online. Any data that is written to the local disk persists across reboots. Any data that is in-memory is lost. Reimaging a role instance results in different behavior depending on the type of role. For a web or worker role, when the role is reimaged, Microsoft Azure takes the role offline and writes a fresh installation of the Microsoft Azure guest operating system to the virtual machine. The role is then brought back online. For a VM role, when the role is reimaged, Microsoft Azure takes the role offline, reapplies the custom image that you provided for it, and brings the role back online. - Microsoft Azure attempts to maintain data in any local storage resources when the role is reimaged; however, in case of a transient hardware failure, the local storage resource may be lost. If your application requires that data persist, writing to a durable data source, such as a Microsoft Azure drive, is recommended. Any data that is written to a local directory other than that defined by the local storage resource will be lost when the role is reimaged. + The Remove-AzureVMImage cmdlet removes an operating system image from the image repository. By default, this cmdlet does not delete the associated physical image blob from the storage account. To delete the associated virtual hard drive (VHD), use the DeleteVHD parameter. - Reset-AzureRoleInstance - - ServiceName - - Specifies the name of the service. - - String - - - Slot - - The deployment environment where the role instances are running. Supported values are "Production" and "Staging". You can include either a DeploymentName or Slot parameter, but not both. - - String - - - InstanceName + Remove-AzureVMImage + + ImageName - Specifies the name of the role instance to reimage or reboot. + Specifies the operating system or virtual machine image to remove from the image repository. String - - Reboot + + DeleteVHD - If this parameter is specified, reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. + Indicates that this cmdlet deletes the physical VHD image blob from the storage account. - SwitchParameter - - Reimage + + Profile - If this parameter is specified, reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - ServiceName - - Specifies the name of the service. - - String - - String - - - - - - - Slot + + DeleteVHD - The deployment environment where the role instances are running. Supported values are "Production" and "Staging". You can include either a DeploymentName or Slot parameter, but not both. + Indicates that this cmdlet deletes the physical VHD image blob from the storage account. - String + SwitchParameter - String + SwitchParameter - - + none - - InstanceName + + ImageName - Specifies the name of the role instance to reimage or reboot. + Specifies the operating system or virtual machine image to remove from the image repository. String String - - - - - Reboot - - If this parameter is specified, reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - - SwitchParameter - - SwitchParameter - - - - + none - - Reimage + + Profile - If this parameter is specified, reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none @@ -24757,13 +25377,15 @@ Get-AzureVMImage ` - + + - - + + + @@ -24772,192 +25394,176 @@ Get-AzureVMImage ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Remove an image from the image repository - PS C:\> C:\PS>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot Staging -InstanceName "MyWebRole_IN_0" –reboot + PS C:\>Remove-AzureVMImage -ImageName "Image001" + - This command reboots the "MyWebRole_IN_0" role instance in the staging deployment of the "MySvc1" service. + This command removes the image named Image001 from the image repository. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Remove an image from the image repository and also the VHD - PS C:\> C:\PS>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot Staging –Reimage + PS C:\>Remove-AzureVMImage -ImageName " Image001" -DeleteVHD + - This command reimages the role instances in the staging deployment of the MyTodo cloud service. + This command removes the image named Image001 from the image repository and also deletes the physical VHD image from the storage account. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Set a subscription context and then remove all the images - PS C:\> C:\PS>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot "Production –Reimage + PS C:\>$SubsId = &amp;lt;MySubscriptionID&amp;gt; +PS C:\> $Cert = Get-AzureCertificate cert:\LocalMachine\MY\&amp;lt;CertificateThumbprint&amp;gt; +PS C:\>Get-AzureVMImage ` +| Where-Object {$_.Label -match "Beta" }` +| Foreach-Object {Remove-AzureVMImage -ImageName $_.name } + - This command reimages all role instances in the production deployment of the "MySvc1" service. + This command sets the subscription context and then removes all the images from the image repository whose Label includes the name Beta. + + - - + + + Add-AzureVMImage + + + + Get-AzureVMImage + + + + Save-AzureVMImage + + + + Update-AzureVMImage + + - - + - Restart-AzureVM + Remove-AzureVMMicrosoftAntimalwareExtension - Restarts a Microsoft Azure virtual machine. + Removes the Microsoft Antimalware extension from a virtual machine. - Restart - AzureVM + Remove + AzureVMMicrosoftAntimalwareExtension - - The Restart-AzureVM cmdlet requests a reboot of a virtual machine. + The Remove-AzureVMMicrosoftAntimalwareExtension cmdlet removes the Microsoft Antimalware extension from a virtual machine. If monitoring was turned on, this cmdlet also removes the collection of Microsoft Antimalware events. - Restart-AzureVM - - Name - - Specifies the name of the virtual machine to restart. - - String - - - ServiceName + Remove-AzureVMMicrosoftAntimalwareExtension + + Profile - Specifies the name of the Microsoft Azure service that contains the virtual machine to restart. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - - Restart-AzureVM - + VM - A virtual machine object that identifies the virtual machine to restart. - - PersistentVM - - - ServiceName - - Specifies the name of the Microsoft Azure service that contains the virtual machine to restart. + Specifies the virtual machine as an IPersistentVM object. - String + IPersistentVM - - Name - - Specifies the name of the virtual machine to restart. - - String - - String - - - - - - - ServiceName + + Profile - Specifies the name of the Microsoft Azure service that contains the virtual machine to restart. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - + VM - A virtual machine object that identifies the virtual machine to restart. + Specifies the virtual machine as an IPersistentVM object. - PersistentVM + IPersistentVM - PersistentVM + IPersistentVM - - + none - - - + IPersistentVM + + - - + + + @@ -24966,217 +25572,129 @@ Get-AzureVMImage ` - + + - - + + + - - - - + + - - + - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service + To avoid interfering with monitoring for other applications or services, this cmdlet removes only the collection of Microsoft Antimalware events. It does not change other application configurations or the default monitoring configuration. - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Restart-AzureVM -ServiceName "myservice1" –Name "MyVM" - - This command restarts the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service. - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Remove a Antimalware extension - PS C:\> C:\PS>Get-AzureVM -ServiceName "myservice1" -Name "MyVM" | Restart-AzureVM + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Remove-AzureVMMicrosoftAntimalwareExtension | Update-AzureVM + - This command retrieves the virtual machine object for the virtual machine whose name is "MyVM" and then restarts it. + This command removes the Microsoft Antimalware extension. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. Remove-AzureVMMicrosoftAntimalwareExtension removes the extension. The command passes the result to the Update-AzureVM cmdlet to update the virtual machine. + + - - + - Get-AzureVM - - + Online Version: + http://go.microsoft.com/fwlink/?LinkID=402842 - Remove-AzureVM - - + Get-AzureVMMicrosoftAntimalwareExtension + - Start-AzureVM - - + Set-AzureVMMicrosoftAntimalwareExtension + - Stop-AzureVM - - + Get-AzureVM + Update-AzureVM - - + - - + - Save-AzureVhd + Remove-AzureVMPuppetExtension - - + Removes the Puppet extension applied on a virtual machine. - Save - AzureVhd + Remove + AzureVMPuppetExtension - - The Save-AzureVhd cmdlet allows to download VHD images stored in a blob in to a file. It has parameters to configure the download process such as specifying the number of downloader threads that will be used or overwriting the file which already exists in the specified file path. Save-AzureVhd doesn't do any VHD format conversion and the blob is downloaded as it is. + The Remove-AzureVMPuppetExtension cmdlet removes the Puppet extension applied on a virtual machine. - Save-AzureVhd - - Source - - Uri to the blob in Microsoft Azure. - - Uri - - - LocalFilePath - - - - - FileInfo - - - NumberOfThreads - - Determines the number of download threads that will be used during download. - - Int32 - - - StorageKey + Remove-AzureVMPuppetExtension + + Profile - Storage key of the blob storage account. If it is not provided, Save-AzureVhd tries to determine the storage key of the account in Source Uri from Microsoft Azure Cloud. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - OverWrite + + VM - Determines to delete the file specified by LocalFilePath file if it exists. + Specifies the persistent virtual machine object. - SwitchParameter + IPersistentVM - - Source + + Profile - Uri to the blob in Microsoft Azure. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Uri + AzureProfile - Uri + AzureProfile - - + none - - LocalFilePath + + VM - - + Specifies the persistent virtual machine object. - FileInfo + IPersistentVM - FileInfo + IPersistentVM - 2 - - - NumberOfThreads - - Determines the number of download threads that will be used during download. - - Int32 - - Int32 - - - 8 - - - StorageKey - - Storage key of the blob storage account. If it is not provided, Save-AzureVhd tries to determine the storage key of the account in Source Uri from Microsoft Azure Cloud. - - String - - String - - - - - - - OverWrite - - Determines to delete the file specified by LocalFilePath file if it exists. - - SwitchParameter - - SwitchParameter - - - - + none @@ -25184,13 +25702,15 @@ Get-AzureVMImage ` - + + - - + + + @@ -25199,239 +25719,274 @@ Get-AzureVMImage ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Remove the Puppet extension applied on a virtual machine - PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd + PS C:\>Remove-AzureVMPuppetExtension -VM $VM; + - Description + This command removes the Puppet extension applied on the specified virtual machine. + + - -----------Downloads the specified blob to the specified local file path. + - - -------------------------- EXAMPLE 2 -------------------------- - + + + + Get-AzureVMPuppetExtension + + + + Set-AzureVMPuppetExtension + + + + + + + Remove-AzureVMSqlServerExtension + + Removes an Azure virtual machine SQL Server extension from a virtual machine object. + + + + + Remove + AzureVMSqlServerExtension + + + + The Remove-AzureVMSqlServerExtension cmdlet removes an Azure virtual machine SQL Server extension from a virtual machine object. + + + + Remove-AzureVMSqlServerExtension + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object that this cmdlet removes the extension from. + + IPersistentVM + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + VM + + Specifies the persistent virtual machine object that this cmdlet removes the extension from. + + IPersistentVM + + IPersistentVM + + + none + + + + + + + + + + + + + + - - PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -Overwrite - - Description - - - - -----------Overwrite options tells to delete if local file exists. - - - - - -------------------------- EXAMPLE 3 -------------------------- - + + + + + + + + + + + + + + + - - PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -NumberOfThreads 32 - - Description - - - - -----------NumberOfThreads allows to override the default number of threads, which is 8, used to download. - - - + + + + + + - -------------------------- EXAMPLE 4 -------------------------- + 1: - PS C:\> Save-AzureVhd -Source http://mytestaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd -LocalFilePath C:\vhd\MyWin7Image.vhd -StorageKey zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw== - Description + + - -----------If storage key is specified, Save-AzureVhd doesn't attempt to get the storage key from Microsoft Azure Cloud and uses the provided the key in download. + - Unknown - - + Get-AzureVMSqlServerExtension + + + + Set-AzureVMSqlServerExtension + - - + - Save-AzureVMImage + Remove-AzureVM - Save OS or VM images from existing VMs. For capturing a VM Image, use the -OSState parameter. + Removes an Azure virtual machine. - Save - AzureVMImage + Remove + AzureVM - - Save OS or VM images from existing VMs + The Remove-AzureVM cmdlet deletes an Azure virtual machine. This process does not delete the underlying .vhd files of the disks mounted on that virtual machine. - Save-AzureVMImage - + Remove-AzureVM + ServiceName - The Service Name. + Specifies the name of the Azure service from which the virtual machine is being removed. String - + Name - The VM Name. - - String - - - ImageName - - Not Specified + Specifies the name of the virtual machine being removed. String - - ImageLabel + + DeleteVHD - Not Specified + Specifies whether this cmdlet removes the virtual machine and the underlying disk blobs. - String - - OSState + + Profile - The OS State for VM Image only: 'Generalized' or 'Specialized'. The use of this parameter indicates your intent to capture VM Image to Azure. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - ServiceName + + DeleteVHD - The Service Name. + Specifies whether this cmdlet removes the virtual machine and the underlying disk blobs. - String + SwitchParameter - String + SwitchParameter - - + none - + Name - The VM Name. - - String - - String - - - - - - - ImageName - - Not Specified + Specifies the name of the virtual machine being removed. String String - - + none - - ImageLabel + + Profile - Not Specified + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - OSState + + ServiceName - The OS State for VM Image only: 'Generalized' or 'Specialized'. The use of this parameter indicates your intent to capture VM Image to Azure. + Specifies the name of the Azure service from which the virtual machine is being removed. String String - - - - - PipelineVariable - - Not Specified - - string - - string - - - - + none @@ -25439,13 +25994,15 @@ Get-AzureVMImage ` - + + - - + + + @@ -25454,345 +26011,339 @@ Get-AzureVMImage ` - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> - - Description - - - - -----------Description - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Remove a virtual machine from a service - PS C:\> + PS C:\>Remove-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine03" + - Description + This command removes the virtual machine named VirtualMachine03 that runs in the ContosoService03 service. + + - -----------Description + - -------------------------- EXAMPLE 3 -------------------------- + Example 2: Remove a virtual machine and delete the .vhd files - PS C:\> + PS C:\>Remove-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine04" -DeleteVHD + - Description + This command removes the VirtualMachine04 virtual machine that runs in the ContosoService03 service, and specifies to remove the .vhd files using the DeleteVHD parameter. + + - -----------Description + - Unknown - - + New-AzureVM + - - - - - - Set-AzureAclConfig - - Sets the ACL configuration object on an existing Azure VM configuration. - - - - - Set - AzureAclConfig + + New-AzureVMConfig + + + + Restart-AzureVM + + + + Start-AzureVM + + + + Stop-AzureVM + + + + Update-AzureVM + + + + + + + Remove-AzureVNetConfig + + Deletes the network configuration from the current Azure subscription. + + + + + Remove + AzureVNetConfig - - The Set-AzureAclConfig cmdlet sets the ACL configuration object from an existing Azure VM configuration. + The Remove-AzureVNetConfig cmdlet removes all virtual network settings from the current Azure subscription. - Set-AzureAclConfig - - AddRule - - Indicates that a rule should be added. - - SwitchParameter - - - Action - - Specifies this rules action. Must be either Permit or Deny. - - String - - - RemoteSubnet - - Specifies the remote subnet for this rule. Must be a valid CIDR Address. - - String - - - Order - - Specifies the processing order for this rule. - - Int32 - - - Description - - A description for this rule. - - String - - - ACL + Remove-AzureVNetConfig + + Profile - The ACL configuration object to add this rule to. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - NetworkAclObject + AzureProfile - - Set-AzureAclConfig - - RemoveRule - - Indicates that a rule should be removed. - - SwitchParameter - - - RuleId + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + + + + + + + - Specifies the rule ID to remove from the given ACL configuration. + - Int32 - - - ACL + + + + + + + + + + + + + + - The ACL configuration object to add this rule to. + - NetworkAclObject - - + + + + + + + + + + + + Example 1: Remove a virtual network configuration from the current subscription + + + + + PS C:\>Remove-AzureVNetConfig + + + This command removes the virtual network configuration from the current subscription. + + + + + + + + + + + + + Get-AzureVNetConfig + + + + Get-AzureVNetSite + + + + Set-AzureVNetConfig + + + + + + + Reset-AzureRoleInstance + + Requests a reboot or reimage of a single role instance or all role instances of a specific role. + + + + + Reset + AzureRoleInstance + + + + The Reset-AzureRoleInstance cmdlet requests a reboot or a reimage of a role instance that is running in a deployment. This operation executes synchronously. When you reboot a role instance, Azure takes the instance offline, restarts the underlying operating system for that instance, and brings the instance back online. Any data that is written to the local disk persists across reboots. Any data that is in-memory is lost. + Reimaging a role instance results in different behavior depending on the type of role. For a web or worker role, when the role is reimaged, Azure takes the role offline and writes a fresh installation of the Azure guest operating system to the virtual machine. The role is then brought back online. For a VM role, when the role is reimaged, Azure takes the role offline, reapplies the custom image that you provided for it, and brings the role back online. + Azure attempts to maintain data in any local storage resources when the role is reimaged; however, in case of a transient hardware failure, the local storage resource may be lost. If your application requires that data persist, writing to a durable data source, such as an Azure drive, is recommended. Any data that is written to a local directory other than that defined by the local storage resource will be lost when the role is reimaged. + + - Set-AzureAclConfig - - SetRule - - Indicates that a rule should be changed. - - SwitchParameter - - - RuleId + Reset-AzureRoleInstance + + ServiceName - Specifies the rule ID to remove from the given ACL configuration. + Specifies the name of the service. - Int32 + String - - Action + + Profile - Specifies this rules action. Must be either Permit or Deny. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - RemoteSubnet + + Reboot - Specifies the remote subnet for this rule. Must be a valid CIDR Address. + Specifies that this cmdlet reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - String - - Order + + Reimage - Specifies the processing order for this rule. + Specifies that this cmdlet reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - Int32 - - Description + + InstanceName - A description for this rule. + Specifies the name of the role instance to reimage or reboot. String - - ACL + + Slot - The ACL configuration object to add this rule to. + Specifies the deployment environment where the role instances run. Valid values are: Production and Staging. You can include either the DeploymentName or Slot parameter, but not both. - NetworkAclObject + + Staging + Production + - - AddRule - - Indicates that a rule should be added. - - SwitchParameter - - SwitchParameter - - - - - - - Action - - Specifies this rules action. Must be either Permit or Deny. - - String - - String - - - - - - - RemoteSubnet + + InstanceName - Specifies the remote subnet for this rule. Must be a valid CIDR Address. + Specifies the name of the role instance to reimage or reboot. String String - - - - - Order - - Specifies the processing order for this rule. - - Int32 - - Int32 - - - - + none - - Description + + Profile - A description for this rule. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - ACL + + Reboot - The ACL configuration object to add this rule to. + Specifies that this cmdlet reboots the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. - NetworkAclObject + SwitchParameter - NetworkAclObject + SwitchParameter - - + none - - RemoveRule + + Reimage - Indicates that a rule should be removed. + Specifies that this cmdlet reimages the specified role instance or, if none is specified, all role instances. You must include either a Reboot or Reimage parameter, but not both. SwitchParameter SwitchParameter - - + none - - RuleId + + ServiceName - Specifies the rule ID to remove from the given ACL configuration. + Specifies the name of the service. - Int32 + String - Int32 + String - - + none - - SetRule + + Slot - Indicates that a rule should be changed. + Specifies the deployment environment where the role instances run. Valid values are: Production and Staging. You can include either the DeploymentName or Slot parameter, but not both. - SwitchParameter + String - SwitchParameter + String - - + none @@ -25800,13 +26351,15 @@ Get-AzureVMImage ` - + + - - + + + @@ -25815,188 +26368,200 @@ Get-AzureVMImage ` - + + - - + - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Reboot a role instance - PS C:\> C:\PS> $acl = New-AzureAclConfig -C:\PS> Set-AzureAclConfig -AddRule -ACL $acl Permit 172.0.0.0/8 100 "Rule Description" + PS C:\>ReSet-AzureRoleInstance -ServiceName "MySvc01" -Slot "Staging" -InstanceName "MyWebRole_IN_0" -Reboot + - This command will create a new ACL configuration and add a new rule to the configuration. + This command reboots the role instance named MyWebRole_IN_0 in the staging deployment of the MySvc01 service. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Reimage a role instance - PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Get-AzureAclConfig -EndpointName "Web" -C:\PS> Set-AzureAclConfig –SetRule -ID 0 -ACL $acl -Order 102 -Description "New Description" -C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -ACL $acl -Name "Web" | Update-AzureVM + PS C:\>ReSet-AzureRoleInstance -ServiceName "MySvc01" -Slot "Staging" -Reimage + - This command will get the ACL Configuration of the endpoint "Web" on "MyVM" and set the Order of the first ACL rule to 102, and change it's description, then update the VM. + This command reimages the role instances in the staging deployment of the MySvc01 cloud service. + + - - + - -------------------------- Example 3 -------------------------- + Example 3: Reimage all role instances - PS C:\> C:\PS> $acl = Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Get-AzureAclConfig -EndpointName "Web" -C:\PS> Set-AzureAclConfig –RemoveRule -ID 0 -ACL $acl -C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -ACL $acl -Name "Web" | Update-AzureVM + PS C:\>ReSet-AzureRoleInstance -ServiceName "MySvc1" -Slot "Production" -Reimage + - This command will get the ACL Configuration of the endpoint "Web" on "MyVM" and remove the first ACL rule, then update the VM. + This command reimages all role instances in the production deployment of the MySvc01 service. + + - - + - New-AzureAclConfig - - - - - Remove-AzureAclConfig - - - - - Get-AzureAclConfig - - + Set-AzureRole + - - + - Set-AzureAffinityGroup + Restart-AzureVM - Updates the properties of a Microsoft Azure affinity group. + Restarts an Azure virtual machine. - Set - AzureAffinityGroup + Restart + AzureVM - - The Set-AzureAffinityGroup cmdlet updates properties of the specified affinity group. The properties that can be changed are the Label and the Description. + The Restart-AzureVM cmdlet requests a restart of an Azure virtual machine. - Set-AzureAffinityGroup - - Name + Restart-AzureVM + + ServiceName - Specifies the name of the affinity group to change the properties of. + Specifies the name of the Azure service that contains the virtual machine to restart. String - - Label + + Name - Specifies a label for the affinity group. The label can be up to 100 characters in length. + Specifies the name of the virtual machine to restart. String - - Description + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Restart-AzureVM + + ServiceName - Specifies the description of the affinity group. The description can be up to 1024 characters in length. + Specifies the name of the Azure service that contains the virtual machine to restart. String + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies a virtual machine object that identifies the virtual machine to restart. + + PersistentVM + - + Name - Specifies the name of the affinity group to change the properties of. + Specifies the name of the virtual machine to restart. String String - - + none - - Label + + Profile - Specifies a label for the affinity group. The label can be up to 100 characters in length. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Description + + ServiceName - Specifies the description of the affinity group. The description can be up to 1024 characters in length. + Specifies the name of the Azure service that contains the virtual machine to restart. String String - - + none + + + VM + + Specifies a virtual machine object that identifies the virtual machine to restart. + + PersistentVM + + PersistentVM + + + none @@ -26004,13 +26569,15 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + @@ -26019,142 +26586,218 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Restart a virtual machine + + + + + PS C:\>Restart-AzureVM -ServiceName "MyService01" -Name "MyVM" + + + This command restarts the VirtualMachine27 virtual machine running in the Azure service named Service01. + + + + + + + + + + + Example 2: Restart a virtual machine by using a virtual machine object - PS C:\> C:\PS>Set-AzureAffinityGroup -Name "MyGroup1" -Label "SouthUSProduction" -Description "Production applications for Southern US locations" + PS C:\>Get-AzureVM -ServiceName "MyService01" -Name "VirtualMachine27" | Restart-AzureVM + - This command sets the label of the affinity group MyGroup1 to "SouthUSProduction" and sets the description to "Production applications for Southern US locations" + This command retrieves the virtual machine object for the virtual machine named MyVM and then restarts it. + + - - + - Get-AzureAffinityGroup - - + Get-AzureVM + - New-AzureAffinityGroup - - + Remove-AzureVM + - Remove-AzureAffinityGroup - - + Start-AzureVM + + + + Stop-AzureVM + + + + Update-AzureVM + - - + - Set-AzureAvailabilitySet + Save-AzureVhd - Sets the availability set name of an Azure VM after deployment. + Enables download of .vhd images. - Set - AzureAvailabilitySet + Save + AzureVhd - - The Set-AzureAvailabilitySet cmdlet sets the availability set name of an Azure VM after deployment. + The Save-AzureVhd cmdlet enables download of .vhd images from a blob where they are stored to a file. It has parameters to configure the download process by specifying the number of downloader threads that are used or overwriting the file which already exists in the specified file path. + Save-AzureVhd does not do any VHD format conversion and the blob is downloaded as it is. - Set-AzureAvailabilitySet - - AvailabilitySetName + Save-AzureVhd + + Source - Name of the availability set on the virtual machine + Specifies the Uniform Resource Identifier (URI) to the blob in azure_2. - String + Uri - - VM + + LocalFilePath - An Azure VM configuration to modify. + Specifies the local file path. - IPersistentVM + FileInfo + + + NumberOfThreads + + Specifies the number of download threads that this cmdlet uses during download. + + Int32 + + + StorageKey + + Specifies the storage key of the blob storage account. If it is not provided, Save-AzureVhd attempts to determine the storage key of the account in SourceUri from Azure. + + String + + + OverWrite + + Specifies that this cmdlet deletes the file specified by LocalFilePath file if it exists. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - AvailabilitySetName + + LocalFilePath - Name of the availability set on the virtual machine + Specifies the local file path. - String + FileInfo - String + FileInfo - - + none - - VM + + NumberOfThreads - An Azure VM configuration to modify. + Specifies the number of download threads that this cmdlet uses during download. - IPersistentVM + Int32 - IPersistentVM + Int32 - - + none - - PipelineVariable + + OverWrite - Not Specified + Specifies that this cmdlet deletes the file specified by LocalFilePath file if it exists. - string + SwitchParameter - string + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + Source + + Specifies the Uniform Resource Identifier (URI) to the blob in azure_2. + + Uri + + Uri + + + none + + + StorageKey + + Specifies the storage key of the blob storage account. If it is not provided, Save-AzureVhd attempts to determine the storage key of the account in SourceUri from Azure. + + String + + String - - + none @@ -26162,13 +26805,15 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + @@ -26177,188 +26822,252 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Download a VHD file - PS C:\> Get-AzureVM -ServiceName "MyAzureCS" -Name "MyVM" | Set-AzureAvailabilitySetName "MyASet" | Update-AzureVM + PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" + - Description + This command downloads a .vhd file. + + - -----------Adds the VM to an availability set "MyAset" + - - - - Unknown - - - - - - - - - Set-AzureDataDisk - - Sets the host-cache mode on an existing data disk object. - - - - - Set - AzureDataDisk - - - - - The Set-AzureDataDisk cmdlet updates the cache attributes of an existing data disk object on a Microsoft Azure virtual machine. The possible host caching values are: None, ReadOnly, and ReadWrite. You can specify which data disk to update by specifying its logical unit number (LUN). - - - - Set-AzureDataDisk - - HostCaching + + Example 2: Download a VHD file and overwrite the local file + + + + + PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -Overwrite + + + This command downloads a .vhd file and overwrites any file in the destination path. + + + + + + + + + + + Example 3: Download a VHD file and specify the number of threads + + + + + PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -NumberOfThreads 32 + + + This command downloads a .vhd file and specifies the number of threads. + + + + + + + + + + + Example 4: Download a VHD file and specify the storage key + + + + + PS C:\>Save-AzureVhd -Source "http://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd" -LocalFilePath "C:\vhd\Win7Image.vhd" -StorageKey "zNvcH0r5vAGmC5AbwEtpcyWCMyBd3eMDbdaa4ua6kwxq6vTZH3Y+sw==" + + + + This command downloads a .vhd file and specifies the storage key. + + + + + + + + + + + + + Add-AzureVhd + + + + + + + Save-AzureVMImage + + Captures and saves the image of a stopped Azure virtual machine. + + + + + Save + AzureVMImage + + + + The Save-AzureVMImage cmdlet captures and saves the image of a stopped Azure virtual machine. For Windows virtual machines, run the Sysprep tool to prepare the image before it is captured. After the image is captured, the virtual machine is deleted. + + + + Save-AzureVMImage + + ServiceName - Sets the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. + Specifies the name of the Azure service. String - - LUN + + Name - Numerical value that defines the slot where the data drive is mounted in the virtual machine. + Specifies the name of the source virtual machine. - Int32 + String - - VM + + ImageName - The virtual machine where the data disk is mounted. + Specifies the name of the virtual machine image. - IPersistentVM + String - - - Set-AzureDataDisk - - DiskName + + ImageLabel - The Name of the DataDiskConfiguration being referenced to. + Specifies the label of the virtual machine image. - string + String - - ResizedSizeInGB + + OSState - Resize the new data disk to a larger size. + Specifies the operation system state for the virtual machine image. Use this parameter if you intend to capture a virtual machine image to Azure. + Valid values are: + +-- Generalized +-- Specialized - int + + Generalized + Specialized + - - VM + + Profile - The virtual machine where the data disk is mounted. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - - DiskName + + ImageLabel - The Name of the DataDiskConfiguration being referenced to. + Specifies the label of the virtual machine image. - string + String - string + String - - + none - - HostCaching + + ImageName - Sets the host level caching settings of the disk. Possible values are: None, ReadOnly and ReadWrite. + Specifies the name of the virtual machine image. String String - - + none - - LUN + + Name - Numerical value that defines the slot where the data drive is mounted in the virtual machine. + Specifies the name of the source virtual machine. - Int32 + String - Int32 + String - - + none - - ResizedSizeInGB + + OSState - Resize the new data disk to a larger size. + Specifies the operation system state for the virtual machine image. Use this parameter if you intend to capture a virtual machine image to Azure. + Valid values are: + +-- Generalized +-- Specialized - int + String - int + String - - + none - - VM + + Profile - The virtual machine where the data disk is mounted. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile + + + none + + + ServiceName + + Specifies the name of the Azure service. + + String + + String - - + none @@ -26366,13 +27075,15 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + @@ -26381,419 +27092,310 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM "myservice" ` - | Set-AzureDataDisk -VM "MyVM" -LUN 2 -HostCaching ReadOnly | Update-AzureVM - - This command gets the virtual machines running on the "myservice" cloud service, and then sets the data disk at LUN 2 of the "MyVM" virtual machine to use ReadOnly host caching. - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Save an existing virtual machine and then delete it from a deployment - PS C:\> C:\PS>Get-AzureVM "myservice" -Name "MyVM" ` - | Get-AzureDataDisk ` - | Set-AzureDataDisk -HostCaching ReadWrite ' - | Update-AzureVM + PS C:\>Save-AzureVMImage -ServiceName "MyService" -Name "MyVM" -NewImageName "MyBaseImage" -NewImageLabel "MyBaseVM" + - This command gets an object representing the "MyVM" virtual machine running on the "myservice" cloud service, gets an object or objects representing all the data disks on the virtual machine, and then sets the host caching mode of those data disks to ReadWrite. + This command captures an existing virtual machine and deletes it from the deployment. + + - - + - Add-AzureDataDisk - - + Add-AzureVMImage + - Get-AzureVM - - + Get-AzureVMImage + - Update-AzureVM - - + Remove-AzureVMImage + + + + Update-AzureVMImage + - - + - Set-AzureDeployment + Set-AzureAclConfig - Sets status, upgrade mode, and configuration settings of a Microsoft Azure deployment. + Modifies an ACL configuration object. Set - AzureDeployment + AzureAclConfig - - The Set-AzureDeployment cmdlet sets the status, configuration settings, or upgrade mode of a Microsoft Azure deployment. - With the -Status parameter, you can change the status of the deployment to either "Running" or "Suspended". With the -Config parameter, you can update the .cscfg file, and with the -Upgrade parameter, you set the upgrade mode and update configuration files. Use the Set-AzureWalkUpgradeDomain cmdlet to actually initiate the upgrade. + The Set-AzureAclConfig cmdlet modifies an access control list (ACL) configuration object from an existing Azure virtual machine configuration. - Set-AzureDeployment - - Upgrade - - When specified, requests an upgrade to the Microsoft Azure deployment. - - SwitchParameter - - - ServiceName + Set-AzureAclConfig + + Action - Specifies the Microsoft Azure service name of the deployment. + Specifies the action for the rule that this cmdlet adds or modifies. Valid values are: Permit and Deny. - String + + Permit + Deny + - - Package + + RemoteSubnet - Specifies the full path to the upgrade package (.cspkg) file. + Specifies the remote subnet for the rule that this cmdlet adds or modifies. Specifies an address in Classless Interdomain Routing (CIDR) format. String - - Configuration + + Order - Specifies the path to the new configuration (.cscfg) file when performing an upgrade or configuration change. + Specifies the processing order for the rule that this cmdlet adds or modifies. - String + Int32 - - Slot + + Description - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies a description for the rule that this cmdlet adds or modifies. - String + String - - Mode + + ACL - Specifies the mode of upgrade. Supported values are: "Auto", "Manual", and "Simultaneous". + Specifies an ACL configuration object that this cmdlet modifies. - String + NetworkAclObject - - Label + + AddRule - Specifies a new label for the upgraded deployment. + Indicates that this cmdlet adds a rule to the ACL configuration. - String - - RoleName + + + Set-AzureAclConfig + + RuleId - Specifies the name of the role to upgrade. + Specifies the ID of the rule that this cmdlet removes or modifies for the ACL configuration. - String + Int32 - - Force + + ACL - When specified, sets the upgrade to a forced upgrade. + Specifies an ACL configuration object that this cmdlet modifies. - SwitchParameter + NetworkAclObject - - ExtensionConfiguration + + RemoveRule - When specified, requests an upgrade to the Microsoft Azure deployment. + Indicates that this cmdlet removes a rule from the ACL configuration. - ExtensionConfigurationInput[] - Set-AzureDeployment - - Config - - When specified, modifies the .cscfg file for the deployment. - - SwitchParameter - - - ServiceName + Set-AzureAclConfig + + Action - Specifies the Microsoft Azure service name of the deployment. + Specifies the action for the rule that this cmdlet adds or modifies. Valid values are: Permit and Deny. - String + + Permit + Deny + - - Configuration + + RuleId - Specifies the path to the new configuration (.cscfg) file when performing an upgrade or configuration change. + Specifies the ID of the rule that this cmdlet removes or modifies for the ACL configuration. - String + Int32 - - Slot + + RemoteSubnet - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the remote subnet for the rule that this cmdlet adds or modifies. Specifies an address in Classless Interdomain Routing (CIDR) format. String - - ExtensionConfiguration - - When specified, requests an upgrade to the Microsoft Azure deployment. - - ExtensionConfigurationInput[] - - - - Set-AzureDeployment - - Status + + Order - When specified, requests a status change for the Microsoft Azure deployment. + Specifies the processing order for the rule that this cmdlet adds or modifies. - SwitchParameter + Int32 - - ServiceName + + Description - Specifies the Microsoft Azure service name of the deployment. + Specifies a description for the rule that this cmdlet adds or modifies. - String + String - - Slot + + ACL - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies an ACL configuration object that this cmdlet modifies. - String + NetworkAclObject - - NewStatus + + SetRule - Specifies the target status for the deployment. Supported values are "Running" or "Suspended". + Indicates that this cmdlet modifies a rule in the ACL configuration. - String - - Upgrade + + ACL - When specified, requests an upgrade to the Microsoft Azure deployment. + Specifies an ACL configuration object that this cmdlet modifies. - SwitchParameter + NetworkAclObject - SwitchParameter + NetworkAclObject - - - - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - String - - - - - - - Package - - Specifies the full path to the upgrade package (.cspkg) file. - - String - - String - - - - + none - - Configuration + + Action - Specifies the path to the new configuration (.cscfg) file when performing an upgrade or configuration change. + Specifies the action for the rule that this cmdlet adds or modifies. Valid values are: Permit and Deny. String String - - + none - - Slot + + AddRule - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Indicates that this cmdlet adds a rule to the ACL configuration. - String + SwitchParameter - String + SwitchParameter - - + none - - Mode + + Description - Specifies the mode of upgrade. Supported values are: "Auto", "Manual", and "Simultaneous". + Specifies a description for the rule that this cmdlet adds or modifies. - String + String String - - + none - - Label + + Order - Specifies a new label for the upgraded deployment. + Specifies the processing order for the rule that this cmdlet adds or modifies. - String + Int32 - String + Int32 - - + none - - RoleName + + RemoteSubnet - Specifies the name of the role to upgrade. + Specifies the remote subnet for the rule that this cmdlet adds or modifies. Specifies an address in Classless Interdomain Routing (CIDR) format. String String - - + none - - Force + + RemoveRule - When specified, sets the upgrade to a forced upgrade. + Indicates that this cmdlet removes a rule from the ACL configuration. - SwitchParameter + SwitchParameter SwitchParameter - - - - - ExtensionConfiguration - - When specified, requests an upgrade to the Microsoft Azure deployment. - - ExtensionConfigurationInput[] - - ExtensionConfigurationInput[] - - - - + none - - Config + + RuleId - When specified, modifies the .cscfg file for the deployment. + Specifies the ID of the rule that this cmdlet removes or modifies for the ACL configuration. - SwitchParameter + Int32 - SwitchParameter + Int32 - - + none - - Status + + SetRule - When specified, requests a status change for the Microsoft Azure deployment. + Indicates that this cmdlet modifies a rule in the ACL configuration. - SwitchParameter + SwitchParameter SwitchParameter - - - - - NewStatus - - Specifies the target status for the deployment. Supported values are "Running" or "Suspended". - - String - - String - - - - + none @@ -26801,13 +27403,15 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + @@ -26816,215 +27420,213 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Set-AzureDeployment -Status -ServiceName "MySvc1" -Slot "Production" -NewStatus "Running" - - Description - - - - -----------This command sets the status of the deployment in the production environment to Running. - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Add a rule to a new ACL configuration - PS C:\> Set-AzureDeployment -Config -ServiceName "MySvc1" -Slot "Staging" -Configuration "C:\Temp\MyServiceConfig.Cloud.csfg" + PS C:\>$Acl = New-AzureAclConfig +PS C:\> Set-AzureAclConfig -AddRule -ACL $Acl -Action Permit -RemoteSubnet "172.0.0.0/8" -Order 100 -Description "Permit ACL rule" + - Description + The first command creates an ACL configuration, and then stores it in the $Acl variable. + The second command adds a new rule to the configuration stored in $Acl. The command specifies an action, subnet, order, and description for the rule. + + - -----------This command updates the deployment in the staging environment with a new configuration file. + - -------------------------- EXAMPLE 3 -------------------------- + Example 2: Modify a rule in an ACL configuration - PS C:\> Set-AzureDeployment -Upgrade -ServiceName "MySvc1" -Mode Auto -Package "C:\Temp\MyApp.cspkg" -Configuration "C:\Temp\MyServiceConfig.Cloud.csfg" + PS C:\>$Acl = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureAclConfig -EndpointName "Web" +PS C:\> Set-AzureAclConfig -SetRule -RuleId 0 -ACL $Acl -Order 102 -Description "Web endpoint rule" +PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Set-AzureEndpoint -ACL $Acl -Name "Web" | Update-AzureVM + - Description + The first command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the Get-AzureAclConfig cmdlet by using the pipeline operator. That cmdlet gets the ACL configuration for the endpoint named Web. The command stores that ACL configuration object in the $Acl variable. + The second command modifies the rule that has the ID of 0. The command changes the order and the description of the rule. + The final command sets the ACL configuration object for that virtual machine by using the Set-AzureEndpoint cmdlet. The command also updates that virtual machine. + + - -----------This command sets the upgrade mode to Auto and specifies an upgrade package and a new configuration file. + - -------------------------- EXAMPLE 4 -------------------------- + Example 3: Remove a rule from an ACL configuration - PS C:\> Set-AzureDeployment –ServiceName –Mode Automatic $svc -Package $pkg -Configuration $cnfg -Slot Production -ExtensionConfiguration $wadConfig + PS C:\>$Acl = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Get-AzureAclConfig -EndpointName "Web" +PS C:\> Set-AzureAclConfig -RemoveRule -ID 0 -ACL $Acl +PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine07" | Set-AzureEndpoint -ACL $Acl -Name "Web" | Update-AzureVM + - Description + The first command stores an ACL configuration object in the $Acl variable. This is the same as the previous example. + The second command removes the rule that has the ID 0 from the ACL configuration in $Acl. + The final command sets the ACL configuration object for the virtual machine and updates that virtual machine. This is the same as the previous example. + + - -----------This example installs the extension configuration in the specified Cloud Service and applies them on roles. + - Get-AzureDeployment - - + Get-AzureAclConfig + - Move-AzureDeployment - - + Get-AzureVM + - New-AzureDeployment - - + New-AzureAclConfig + - Remove-AzureDeployment - - + Remove-AzureAclConfig + + + + Set-AzureEndpoint + + + + Update-AzureVM + - - + - Set-AzureDns + Set-AzureAffinityGroup - Updates the IP Address of the specified DNS server. + Modifies properties of an affinity group. Set - AzureDns + AzureAffinityGroup - - The Set-AzureDns cmdlets updates the IP Address of the specified DNS server. + The Set-AzureAffinityGroup cmdlet modifies properties of an Azure affinity group. You can change the label and the description. - Set-AzureDns - + Set-AzureAffinityGroup + Name - Specifies the name of the DNS server to be updated + Specifies the name of the affinity group that this cmdlet modifies. String - - IPAddress + + Description - Specifies the IP address of the DNS server + Specifies the description of the affinity group. The description can be up to 1024 characters long. - String + String - - ServiceName + + Profile - Specifies the name of the cloud service + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + Label + + Specifies a label for the affinity group. The label can be up to 100 characters long. String - - Name + + Description - Specifies the name of the DNS server to be updated + Specifies the description of the affinity group. The description can be up to 1024 characters long. - String + String String - - + none - - IPAddress + + Label - Specifies the IP address of the DNS server + Specifies a label for the affinity group. The label can be up to 100 characters long. String String - - + none - - ServiceName + + Name - Specifies the name of the cloud service + Specifies the name of the affinity group that this cmdlet modifies. String String - - + none - - PipelineVariable + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - string + AzureProfile - - + none @@ -27032,370 +27634,166 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext - + + + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Modify an affinity group - PS C:\> Set-AzureDns -ServiceName "myservice" -IPAddress 10.1.2.5 -Name "mydns" + PS C:\>Set-AzureAffinityGroup -Name "South01" -Label "SouthUSProduction" -Description "Production applications for Southern US locations" + - Description + This command modifies the label of the affinity group named South01 to be SouthUSProduction The command also modifies the description. + + - -----------This command updates the IP Address of the DNS server "mydns" + - Unknown - - + Get-AzureAffinityGroup + + + + New-AzureAffinityGroup + + + + Remove-AzureAffinityGroup + - - + - - Set-AzureEndpoint - + Set-AzureAvailabilitySet - The Set-AzureInputEndpoint cmdlet updates an existing endpoint assigned to a virtual machine. You can specify updates to an endpoint that is not load balanced, which only a single virtual machine uses. + Sets the name of the availability set on an Azure virtual machine. - - + Set - AzureEndpoint - - + AzureAvailabilitySet + - - + The Set-AzureAvailabilitySet cmdlet sets the name of the availability set on an Azure virtual machine after deployment. - - Set-AzureEndpoint - - Name - - Specifies the name of the endpoint. - - string - - - Protocol + Set-AzureAvailabilitySet + + AvailabilitySetName - Specifies the protocol of the endpoint. Acceptable values are "tcp" or "udp". + Specifies the name of the availability set to which the virtual machine belongs. - string + String - - LocalPort + + Profile - Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - + VM - Specifies the virtual machine object for which the endpoint will be created. + Specifies the virtual machine configuration that this cmdlet modifies. IPersistentVM - - ACL - - An ACL to apply to the endpoint on update. - - NetworkAclObject - - - DirectServerReturn - - - - - System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - - - IdleTimeoutInMinutes - - TCP Idle timeout in minutes - - int - - - InternalLoadBalancerName - - Not Specified - - string - - - LoadBalancerDistribution - - - Load Balancer distribution algorithm - - The value can be - sourceIP: 2 tuple affinity (Source IP, Destination IP) - sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) - none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value - - - string - - - PipelineVariable - - Not Specified - - string - - - PublicPort - - - - - System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - - - VirtualIPName - - The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. - - string - - - - ACL - - An ACL to apply to the endpoint on update. - - NetworkAclObject - - NetworkAclObject - - - - - - - DirectServerReturn - - - - - System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - - System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - - - - - - - IdleTimeoutInMinutes - - TCP Idle timeout in minutes - - int - - int - - - - - - - InternalLoadBalancerName - - Not Specified - - string - - string - - - - - - - LoadBalancerDistribution - - - Load Balancer distribution algorithm - - The value can be - sourceIP: 2 tuple affinity (Source IP, Destination IP) - sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) - none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value - - - string - - string - - - - - - - LocalPort - - Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. - - int - - int - - - - - - - Name - - Specifies the name of the endpoint. - - string - - string - - - - - - - PipelineVariable - - Not Specified - - string - - string - - - - - - - Protocol - - Specifies the protocol of the endpoint. Acceptable values are "tcp" or "udp". - - string - - string - - - - - - - PublicPort + + AvailabilitySetName - - + Specifies the name of the availability set to which the virtual machine belongs. - System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + String - System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] + String - - + none - - VirtualIPName + + Profile - The VirtualIPName parameter allows you to associate a virtual IP to your endpoint. Your Cloud Service can have multiple virtual IPs. virtual IPs can be created with the add-azureVirtualIP cmdlet. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - string + AzureProfile - - + none - + VM - Specifies the virtual machine object for which the endpoint will be created. + Specifies the virtual machine configuration that this cmdlet modifies. IPersistentVM IPersistentVM - - + none - - - + + + + + - @@ -27403,249 +27801,234 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - System.Object - - + + + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Modify the name of an availability set - C:\PS> - - - Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -Name "Web" -PublicPort 443 -LocalPort 443 -Protocol "tcp" | Update-AzureVM - - - Description - ----------- - This command updates the input endpoint named "Web" assigned to the virtual machine "MyVM" to listen on Port 443 - - - - - - + + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine24" | Set-AzureAvailabilitySet -Name "AvailabilitySet14" | Update-AzureVM + + + The first command gets the virtual machine named VirtualMachine07 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes that object to the current cmdlet by using the pipeline operator. That cmdlet modifies the name of the availability set for that virtual machine. The command updates the virtual machine. + + - - + - - - + Get-AzureVM + + + + Remove-AzureAvailabilitySet - - + - Set-AzureInternalLoadBalancer + Set-AzureDataDisk - - + Modifies the host caching of an existing data disk on an Azure virtual machine. Set - AzureInternalLoadBalancer + AzureDataDisk - - - + The Set-AzureDataDisk cmdlet modifies the cache attributes of an existing data disk on an Azure virtual machine. Specify which data disk to update by its logical unit number (LUN). - Set-AzureInternalLoadBalancer - - InternalLoadBalancerName - - - - - String - - - ServiceName + Set-AzureDataDisk + + DiskName - - + Specifies the name of the data disk configuration that this cmdlet modifies. String - - - Set-AzureInternalLoadBalancer - - InternalLoadBalancerName + + ResizedSizeInGB - - + Specifies the new size, in gigabytes, for the data disk. The new size must be larger than the current size. - String + Int32 - - ServiceName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - SubnetName + + VM - - + Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - String + IPersistentVM - - StaticVNetIPAddress + + + Set-AzureDataDisk + + HostCaching - - + Specifies the host level caching settings of the disk. Valid values are: + +-- None +-- ReadOnly +-- ReadWrite - IPAddress + + None + ReadOnly + ReadWrite + - - - Set-AzureInternalLoadBalancer - - InternalLoadBalancerName + + LUN - - + Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. - String + Int32 - - ServiceName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - SubnetName + + VM - - + Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - String + IPersistentVM - - InternalLoadBalancerName + + DiskName - - + Specifies the name of the data disk configuration that this cmdlet modifies. String String - - + none - - ServiceName + + HostCaching - - + Specifies the host level caching settings of the disk. Valid values are: + +-- None +-- ReadOnly +-- ReadWrite String String - - + none - - SubnetName + + LUN - - + Specifies the LUN for the data drive in the virtual machine. Valid values are: 0 through 15. - String + Int32 - String + Int32 - - + none - - StaticVNetIPAddress + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPAddress + AzureProfile - IPAddress + AzureProfile - - + none - - - - + + ResizedSizeInGB + + Specifies the new size, in gigabytes, for the data disk. The new size must be larger than the current size. + + Int32 + + Int32 + + + none + + + VM + + Specifies the virtual machine object that is attached to the data disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. + + IPersistentVM + + IPersistentVM + + + none + + + + + - + + - - + + + @@ -27654,448 +28037,467 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + + + Example 1: Modify the host caching for a data disk + + + + + PS C:\>Get-AzureVM "ContosoService" | Set-AzureDataDisk -VM "VirtualMachine07" -LUN 2 -HostCaching ReadOnly | Update-AzureVM + + + This command gets the virtual machines that run on the service named ContosoService by using the Get-AzureVM cmdlet. The command passes them to the current cmdlet by using the pipeline operator. That cmdlet sets the data disk at LUN 2 of the virtual machine named VirtualMachine07 to use ReadOnly host caching. The command updates the virtual machine to reflect your changes by using the Update-AzureVM cmdlet. + + + + + + + + + + + Example 2: Modify the host caching for all data disks on a virtual machine + + + + + PS C:\>Get-AzureVM "ContosoService" -Name "VirtualMachine07" | Get-AzureDataDisk | Set-AzureDataDisk -HostCaching ReadWrite | Update-AzureVM + + + This command gets an object for the virtual machine named VirtualMachine07 on the ContosoService cloud service. The command passes it to the Get-AzureDataDisk cmdlet, which gets the data disks for that virtual machine. The current cmdlet then sets the host caching mode of each data disks to ReadWrite. The command updates the virtual machine to reflect your changes. + + + + + + + + + + + Add-AzureDataDisk + + + + Get-AzureVM + + + + Get-AzureDataDisk + + + + Remove-AzureDataDisk + + + + Update-AzureVM + + - - + - - Set-AzureLoadBalancedEndpoint - + Set-AzureDeployment - Updates all of the endpoints in a given load balancer set within a Windows Azure Service. + Modifies the status, configuration settings, or upgrade mode of a deployment. - - + Set - AzureLoadBalancedEndpoint - - + AzureDeployment + - The Set-AzureLoadBalancedEndpoint cmdlet updates all of the endpoints in a given load balancer set within a Windows Azure Service. + The Set-AzureDeployment cmdlet modifies the status, configuration settings, or upgrade mode of an Azure deployment. You can change the status of the deployment to either Running or Suspended. You can change the .cscfg file for the deployment. You can set the upgrade mode and update configuration files. Use the Set-AzureWalkUpgradeDomain cmdlet to initiate an upgrade. - - Set-AzureLoadBalancedEndpoint - + Set-AzureDeployment + + Config + + Specifies that this cmdlet modifies the configuration of the deployment. + + + ServiceName - Specifies the name of the Windows Azure service containing the endpoint that will be modified. + Specifies the name of the Azure service of the deployment. - string + String - - LBSetName + + Configuration - Specifies the name of the load balancer set to update. + Specifies the full path of a .cscfg configuration file. You can specify a configuration file for an upgrade or configuration change. - string + String - - ProbePath + + Slot - Specifies relative path to the HTTP Probe. + Specifies the environment of the deployment to modify. Valid values are: Production and Staging. - string + + Staging + Production + - - ProbeProtocolHTTP + + ExtensionConfiguration - Specifies that a HTTP Probe should be used. + Specifies an array of extension configuration objects. + ExtensionConfigurationInput[] - - ProbeProtocolTCP + + Profile - Specifies that a TCP Probe should be used. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + AzureProfile - - ACL + + + Set-AzureDeployment + + Upgrade - An ACL to apply to the endpoint on update. + Specifies that this cmdlet upgrades the deployment. - NetworkAclObject - - DirectServerReturn + + ExtensionConfiguration - Enable/Disable Direct Server Return. + Specifies an array of extension configuration objects. - Boolean + ExtensionConfigurationInput[] - - IdleTimeoutInMinutes + + ServiceName - TCP Idle timeout in minutes + Specifies the name of the Azure service of the deployment. - int + String - - InternalLoadBalancerName + + Package - The Internal Load Balancer Name. + Specifies the full path of an upgrade package file. - string + String - - LoadBalancerDistribution + + Configuration - - Load Balancer distribution algorithm + Specifies the full path of a .cscfg configuration file. You can specify a configuration file for an upgrade or configuration change. + + String + + + Slot + + Specifies the environment of the deployment to modify. Valid values are: Production and Staging. + + + Staging + Production + + + + Mode + + Specifies the mode of upgrade. Valid values are: - The value can be - sourceIP: 2 tuple affinity (Source IP, Destination IP) - sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) - none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value - +-- Auto +-- Manual +-- Simultaneous - string + + Auto + Manual + Simultaneous + - - LocalPort + + Label - Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. + Specifies a label for the upgraded deployment. - int + String - - PipelineVariable + + RoleName - Not Specified + Specifies the name of the role to upgrade. - string + String - - ProbeIntervalInSeconds + + Force - Specifies the probe polling interval in seconds. + Indicates that cmdlet performs a forced upgrade. - int - - ProbePort + + Profile - Specifies the port that the load balancer probe will use. If not specified, Windows Azure will assign the endpoints local port. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - - ProbeTimeoutInSeconds + + + Set-AzureDeployment + + ServiceName - Specifies the probe polling timeout in seconds. + Specifies the name of the Azure service of the deployment. - int + String - - Protocol + + Status - Specifies the protocol of the endpoint. Acceptable values are "TCP" or "UDP". + Specifies that this cmdlet changes the status of the deployment. - string - - PublicPort + + NewStatus - Specifies the public port that the endpoint will use. If not specified, Windows Azure will assign an available free port. + Specifies the target status for the deployment. Valid values are: Running and Suspended. - int + + Running + Suspended + - - VirtualIPName + + Slot - Use this parameter to update your load balancer to use a specific VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. + Specifies the environment of the deployment to modify. Valid values are: Production and Staging. - string + + Staging + Production + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - - ACL + + Config - An ACL to apply to the endpoint on update. + Specifies that this cmdlet modifies the configuration of the deployment. - NetworkAclObject + SwitchParameter - NetworkAclObject + SwitchParameter - - + none - - DirectServerReturn + + Configuration - Enable/Disable Direct Server Return. + Specifies the full path of a .cscfg configuration file. You can specify a configuration file for an upgrade or configuration change. - Boolean + String - Boolean + String - - + none - - IdleTimeoutInMinutes + + ExtensionConfiguration - TCP Idle timeout in minutes + Specifies an array of extension configuration objects. - int + ExtensionConfigurationInput[] - int + ExtensionConfigurationInput[] - - + none - - InternalLoadBalancerName + + Force - The Internal Load Balancer Name. + Indicates that cmdlet performs a forced upgrade. - string + SwitchParameter - string + SwitchParameter - - + none - - LBSetName + + Label - Specifies the name of the load balancer set to update. + Specifies a label for the upgraded deployment. - string + String - string + String - - + none - - LoadBalancerDistribution + + Mode - - Load Balancer distribution algorithm + Specifies the mode of upgrade. Valid values are: - The value can be - sourceIP: 2 tuple affinity (Source IP, Destination IP) - sourceIPProtocol: 3 tuple affinity (Source IP, Destination IP, Protocol) - none: 5 tuple affinity (Source IP, Source Port, Destination IP, Destination Port, Protocol). This is the default value - +-- Auto +-- Manual +-- Simultaneous - string + String - string + String - - + none - - LocalPort + + NewStatus - Specifies the local (private) port that will be used for the endpoint. Applications within the virtual machine listen to this port to service input requests over the endpoint. + Specifies the target status for the deployment. Valid values are: Running and Suspended. - int + String - int + String - - + none - - PipelineVariable + + Package - Not Specified + Specifies the full path of an upgrade package file. - string + String - string + String - - + none - - ProbeIntervalInSeconds + + Profile - Specifies the probe polling interval in seconds. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - int + AzureProfile - - + none - - ProbePath + + RoleName - Specifies relative path to the HTTP Probe. + Specifies the name of the role to upgrade. - string + String - string + String - - + none - - ProbePort + + ServiceName - Specifies the port that the load balancer probe will use. If not specified, Windows Azure will assign the endpoints local port. + Specifies the name of the Azure service of the deployment. - int + String - int + String - - + none - - ProbeProtocolHTTP + + Slot - Specifies that a HTTP Probe should be used. + Specifies the environment of the deployment to modify. Valid values are: Production and Staging. - SwitchParameter + String - SwitchParameter + String - - + none - - ProbeProtocolTCP + + Status - Specifies that a TCP Probe should be used. + Specifies that this cmdlet changes the status of the deployment. - SwitchParameter + SwitchParameter SwitchParameter - - - - - ProbeTimeoutInSeconds - - Specifies the probe polling timeout in seconds. - - int - - int - - - - - - - Protocol - - Specifies the protocol of the endpoint. Acceptable values are "TCP" or "UDP". - - string - - string - - - - - - - PublicPort - - Specifies the public port that the endpoint will use. If not specified, Windows Azure will assign an available free port. - - int - - int - - - - - - - ServiceName - - Specifies the name of the Windows Azure service containing the endpoint that will be modified. - - string - - string - - - - + none - - VirtualIPName + + Upgrade - Use this parameter to update your load balancer to use a specific VIP. See Add-AzureVirtualIP to add VIPs to your Cloud Service. + Specifies that this cmdlet upgrades the deployment. - string + SwitchParameter - string + SwitchParameter - - + none - - - + + + + + - @@ -28105,188 +28507,222 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Change the status of a deployment - C:\PS> - - - Set-AzureLoadBalancedEndpoint -ServiceName "MyService" -LBSetName "LBSet1" -Protocol tcp -LocalPort 80 -ProbeProtocolTCP -ProbePort 8080 - - - Description - ----------- - This command will update all endpoints in the load balancer set "LBSet1" to use the TCP protocol and private port 80, and will set the load balancer probe to use the TCP protocol on port 8080. - - - - - - + + PS C:\>Set-AzureDeployment -Status -ServiceName "ContosoService" -Slot "Production" -NewStatus "Running" + + + This command sets the status of the deployment for the service named ContosoService in the production environment to Running. + + - - + - - -------------------------- EXAMPLE 2 -------------------------- - + Example 2: Assign a different configuration file to a deployment - C:\PS> - - - Set-AzureLoadBalancedEndpoint -ServiceName myService -LBSetName myLBSet -VirtualIPName Vip1 - - - Description - ----------- - You can update your load balancer to use a different VIP. For instance, if you run this command, you will change the load balancing set to use a VIP named Vip1 - - + + PS C:\>Set-AzureDeployment -Config -ServiceName "ContosoService" -Slot "Staging" -Configuration "C:\Temp\MyServiceConfig.Cloud.csfg" + + + This command assigns a different configuration file for the deployment for the service named ContosoService in the staging environment. + + + + + + + + + + + Example 3: Set the upgrade mode to Auto + + + PS C:\>Set-AzureDeployment -Upgrade -ServiceName "ContosoService" -Mode Auto -Package "C:\packages\ContosoApp.cspkg" -Configuration "C:\Config\ContosoServiceConfig.Cloud.csfg" + + + This command sets the upgrade mode to Auto, and specifies an upgrade package and a new configuration file. + + + + + + + + + + + Example 4: Install extension configuration in a service + + + PS C:\>Set-AzureDeployment -Config -ServiceName "ContosoService" -Mode "Automatic" -Package "https://contosostorage.blob.core.windows.net/container06/ContosoPackage.cspkg" -Configuration "C:\packages\ContosoConfiguration.cscfg" -Slot "Production" -ExtensionConfiguration "C:\packages\ContosoExtensionConfig.cscfg" + + + This command installs the extension configuration in the specified Cloud Service and applies them on roles. + + - - + - - - + Get-AzureDeployment + + + + Get-AzureDeploymentEvent + + + + Move-AzureDeployment + + + + New-AzureDeployment + + + + Remove-AzureDeployment + + + + Set-AzureWalkUpgradeDomain - - + - Set-AzureOSDisk + Set-AzureDns - Updates the host-cache mode of a Microsoft Azure virtual machine operating system disk. + Modifies the IP address of a DNS server. Set - AzureOSDisk + AzureDns - - The Set-AzureOSDisk cmdlet updates the host-cache mode of a virtual machine's operating system disk. The supported host cache modes are "ReadOnly" and "ReadWrite".Caution: Running Set-AzureOSDisk on a running virtual machine will cause the virtual machine to reboot. + The Set-AzureDns cmdlet modifies the IP address of a DNS server for an Azure service. - Set-AzureOSDisk - - HostCaching + Set-AzureDns + + Name - Specifies the host cache attribute for the operating system disk. Acceptable values are: "ReadOnly" and "ReadWrite". + Specifies the name of the DNS server that this cmdlet modifies. String - - VM + + IPAddress - Specifies the virtual machine for which to update the operating system disk. + Specifies the new IP address of the DNS server. - IPersistentVM + String - - ResizedSizeInGB + + ServiceName + + Specifies the name of the service for which this cmdlet modifies the address of the DNS server. + + String + + + Profile - Resize the new OSVirtualHardDisk to a larger size. ResizedSizeInGB must be larger than the underlying OS Image's LogicalSizeInGB. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - - HostCaching + + IPAddress - Specifies the host cache attribute for the operating system disk. Acceptable values are: "ReadOnly" and "ReadWrite". + Specifies the new IP address of the DNS server. String String - - + none - - VM + + Name - Specifies the virtual machine for which to update the operating system disk. + Specifies the name of the DNS server that this cmdlet modifies. - IPersistentVM + String - IPersistentVM + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile - - + none - - ResizedSizeInGB + + ServiceName - Resize the new OSVirtualHardDisk to a larger size. ResizedSizeInGB must be larger than the underlying OS Image's LogicalSizeInGB. + Specifies the name of the service for which this cmdlet modifies the address of the DNS server. - int + String - int + String - - + none @@ -28294,217 +28730,350 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM -ServiceName $mySvc1 -name "MyTestVM2" | Set-AzureOSDisk –HostCaching "ReadOnly" - - This command sets the host cache mode of the operating system disk of the VM named "MyTestVM2" to ReadOnly. - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Modify the IP address of a DNS server - PS C:\> C:\PS>$myVM2 = Get-AzureVM -ServiceName $mySvc1 -name "MyTestVM2" - C:\PS>Set-AzureOSDisk "ReadWrite" –VM $myVM2 + PS C:\>Set-AzureDns -ServiceName "ContosoService" -IPAddress 10.1.2.5 -Name "Dns07" + - This command updates the host-cache mode of the operating system disk attached to the VM named "MyTestVM2" to ReadWrite. + This command modifies the IP address of the DNS server named Dns07 for the service named ContosoService. + + - - + - Get-AzureOSDisk - - - - - Add-AzureVMImage - - + Add-AzureDns + - Get-AzureVMImage - - + Get-AzureDns + - Get-AzureVM - - + New-AzureDns + - Update-AzureVM - - + Remove-AzureDns + - - + - Set-AzurePublicIP + Set-AzureEndpoint - Set-AzurePublicIP [-PublicIPName] <string> [[-IdleTimeoutInMinutes] <int>] [[-DomainNameLabel] <string>] -VM <IPersistentVM> [<CommonParameters>] + Modifies an endpoint assigned to a virtual machine. Set - AzurePublicIP + AzureEndpoint - - Adds a new Public IP to the virtual machine. The public ip is really assigned when the virtual machine is updated. An optional DomainNameLabel will automatically create a corresponding DNS entry for the public IP. + The Set-AzureEndpoint cmdlet modifies an endpoint assigned to an Azure virtual machine. You can specify changes to an endpoint that is not load balanced. - Set-AzurePublicIP - - PublicIPName + Set-AzureEndpoint + + Name - - + Specifies the name of the endpoint. String - - IdleTimeoutInMinutes + + Protocol - TCP Idle timeout in minutes + Specifies the protocol of the endpoint. Valid values are: + +-- tcp +-- udp - Nullable`1[Int32] + + tcp + udp + - - DomainNameLabel + + LocalPort - The name to use when creating a corresponding DNS entry for a public IP address + Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. - String + Int32 - - VM + + ACL - - + Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoint. - IPersistentVM + NetworkAclObject - - - - - PublicIPName - - - + + DirectServerReturn + + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + Boolean + + + IdleTimeoutInMinutes + + Specifies the TCP idle time-out period, in minutes, for the endpoint. + + Int32 + + + InternalLoadBalancerName + + Specifies the name of the internal load balancer. + + String + + + LoadBalancerDistribution + + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. + + + sourceIP + sourceIPProtocol + none + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + PublicPort + + Specifies the public port that the endpoint uses. + + Int32 + + + VirtualIPName + + Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + + String + + + VM + + Specifies the virtual machine to which the endpoint belongs. + + IPersistentVM + + + + + + ACL + + Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoint. - String + NetworkAclObject - String + NetworkAclObject + + + none + + + DirectServerReturn + + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + Boolean + + Boolean - - + none - + IdleTimeoutInMinutes - TCP Idle timeout in minutes + Specifies the TCP idle time-out period, in minutes, for the endpoint. - Nullable`1[Int32] + Int32 - Nullable`1[Int32] + Int32 - - + none - - DomainNameLabel + + InternalLoadBalancerName - - + Specifies the name of the internal load balancer. + + String + + String + + + none + + + LoadBalancerDistribution + + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. + + String + + String + + + none + + + LocalPort + + Specifies the local, private, port that this endpoint uses. Applications within the virtual machine listen on this port for service input requests for this endpoint. + + Int32 + + Int32 + + + none + + + Name + + Specifies the name of the endpoint. String String - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + Protocol + + Specifies the protocol of the endpoint. Valid values are: + +-- tcp +-- udp + + String + + String + + + none + + + PublicPort + + Specifies the public port that the endpoint uses. + + Int32 + + Int32 + + + none + + + VirtualIPName + + Specifies the name of a virtual IP address that Azure associates to the endpoint. Your service can have multiple virtual IPs. To create virtual IPs, use the Add-AzureVirtualIP cmdlet. + + String + + String + + + none - + VM - - + Specifies the virtual machine to which the endpoint belongs. IPersistentVM IPersistentVM - - + none @@ -28512,392 +29081,255 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM - + System.Object + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Set-AzurePublicIP -PublicIPName ftpip | Update-AzureVM - - Description - - - - -----------Requests for a public IP to be assigned to the virtual machine. The public ip allocation happens during update VM. - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - - - PS C:\> New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername xyz -Password abcd123! | Set-AzurePublicIP -PublicIPName "ftpip" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" - - Description - - - - -----------Requests for a public IP to be assigned during VM creation. - - - - - -------------------------- EXAMPLE 3 -------------------------- - - - - - PS C:\> Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Set-AzurePublicIP -PublicIPName ftpip -DomainNameLabel ipname | Update-AzureVM - - Description - - - - -----------Requests for a public IP to be assigned to the virtual machine. The public ip allocation happens during update VM. - - - - - -------------------------- EXAMPLE 4 -------------------------- + Example 1: Modify an endpoint to listen on a port - PS C:\> New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername xyz -Password abcd123! | Set-AzurePublicIP -PublicIPName "ftpip" -DomainNameLabel ipname | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirutalMachine01" | Set-AzureEndpoint -Name "Web" -PublicPort 443 -LocalPort 443 -Protocol tcp | Update-AzureVM + - Description + This command retrieves the configuration of a virtual machine named VirtualMachine01 by using the Get-AzureVM cmdlet. The command passes it to the current cmdlet by using the pipeline operator. This cmdlet modifies the endpoint named Web to listen on port 443. The command passes the virtual machine object to the Update-AzureVM cmdlet, which implements your changes. + + - -----------Requests for a public IP to be assigned during VM creation and for the public IP address to be created with a corresponding DNS entry. + - Unknown - - + Add-AzureEndpoint + + + + Add-AzureVirtualIP + + + + Get-AzureEndpoint + + + + Get-AzureVM + + + + Remove-AzureEndpoint + + + + Update-AzureVM + - - + - Set-AzureRole + Set-AzureInternalLoadBalancer - Sets the number of instances of a Microsoft Azure role to run. + Modifies an internal load balancer configuration in an Azure service. Set - AzureRole + AzureInternalLoadBalancer - - The Set-AzureRole cmdlet sets the number of instances of a specified role to run in a Microsoft Azure deployment. + The Set-AzureInternalLoadBalancer cmdlet modifies an internal load balancer configuration in an Azure service. For a virtual network, you can specify a subnet or the IP address of the internal load balancer. - Set-AzureRole - + Set-AzureInternalLoadBalancer + + InternalLoadBalancerName + + Specifies the name of the internal load balancer that this cmdlet modifies. + + String + + ServiceName - Specifies the name of the Microsoft Azure service. + Specifies the name of the service in which this cmdlet modifies an internal load balancer. String - - Slot + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureInternalLoadBalancer + + InternalLoadBalancerName - Specifies the deployment environment of the deployment to be modified. Choices are "Production" or "Staging". + Specifies the name of the internal load balancer that this cmdlet modifies. String - - RoleName + + ServiceName - Specifies the name of the role to set the number of instances for. + Specifies the name of the service in which this cmdlet modifies an internal load balancer. String - - Count + + SubnetName - Specifies the number of role instances to run. + Specifies the name of the subnet for an internal load balancer. - Int32 + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - - - ServiceName - - Specifies the name of the Microsoft Azure service. - - String - - String - - - - - - - Slot - - Specifies the deployment environment of the deployment to be modified. Choices are "Production" or "Staging". - - String - - String - - - - - - - RoleName - - Specifies the name of the role to set the number of instances for. - - String - - String - - - - - - - Count - - Specifies the number of role instances to run. - - Int32 - - Int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - + + Set-AzureInternalLoadBalancer + + InternalLoadBalancerName - - + Specifies the name of the internal load balancer that this cmdlet modifies. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Set-AzureRole –ServiceName "MySvc1" –Slot "Production" –RoleName "MyTestRole3" –Count 3 - - This command sets the "MyTestRole3" role running in production on the "MySvc1" service to three instances. - - - - - - - - - - - - - - - - Set-AzureService - - Sets or updates the label and description of the specified Microsoft Azure service. - - - - - Set - AzureService - - - - - The Set-AzureService cmdlet assigns a label and description to a service in the current subscription. - - - - Set-AzureService - + String + + ServiceName - Specifies the name of the Microsoft Azure service to be updated. + Specifies the name of the service in which this cmdlet modifies an internal load balancer. String - - Label + + SubnetName - Sets a label for the Microsoft Azure service. The label may be up to 100 characters in length. + Specifies the name of the subnet for an internal load balancer. String - - Description + + StaticVNetIPAddress - Sets a description for the Microsoft Azure service. The description may be up to 1024 characters in length. + Specifies the virtual network IP address for an internal load balancer. - String + IPAddress - - ReverseDnsFqdn + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - ServiceName + + InternalLoadBalancerName - Specifies the name of the Microsoft Azure service to be updated. + Specifies the name of the internal load balancer that this cmdlet modifies. String String - - + none - - Label + + Profile - Sets a label for the Microsoft Azure service. The label may be up to 100 characters in length. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Description + + ServiceName - Sets a description for the Microsoft Azure service. The description may be up to 1024 characters in length. + Specifies the name of the service in which this cmdlet modifies an internal load balancer. String String - - + none - - ReverseDnsFqdn + + StaticVNetIPAddress - - + Specifies the virtual network IP address for an internal load balancer. + + IPAddress + + IPAddress + + + none + + + SubnetName + + Specifies the name of the subnet for an internal load balancer. String String - - + none @@ -28905,766 +29337,1064 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + + + - ManagementOperationContext - + + + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + 1: - PS C:\> C:\PS>Set-AzureService -ServiceName "MySvc1" -Label "MyTestSvc1" -Description "My service for testing out new configurations" - This command sets the label to "MyTestSvc1" and the description to "My service for testing out new configurations" for the "MyTestSvc1" service. + + + + - - + - Get-AzureService - - + Add-AzureInternalLoadBalancer + - New-AzureService - - + Get-AzureInternalLoadBalancer + - Remove-AzureService - - + New-AzureInternalLoadBalancerConfig + + + + Remove-AzureInternalLoadBalancer + - - + - Set-AzureServiceADDomainExtension + Set-AzureLoadBalancedEndpoint - Set AD Domain Extension for Cloud Service + Modifies all of the endpoints in a load balancer set within an Azure service. Set - AzureServiceADDomainExtension + AzureLoadBalancedEndpoint - - Set AD Domain Extension for Cloud Service + The Set-AzureLoadBalancedEndpoint cmdlet modifies all of the endpoints in a load balancer set in an Azure service. - Set-AzureServiceADDomainExtension - + Set-AzureLoadBalancedEndpoint + ServiceName - The cloud service name. + Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. String - - Slot + + ACL - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. - String + NetworkAclObject - - Role + + DirectServerReturn - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - String[] + Boolean - - X509Certificate + + IdleTimeoutInMinutes - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies the TCP idle time-out period, in minutes, for the endpoints. - X509Certificate2 + Int32 - - ThumbprintAlgorithm + + InternalLoadBalancerName - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. - String + String - - DomainName + + LoadBalancerDistribution - The AD domain name. + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. - String + + sourceIP + sourceIPProtocol + none + - - Restart + + LocalPort - Whether to restart the computer if the join operation succeeded. + Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. - SwitchParameter + Int32 - - Credential + + Profile - The credentials (user name/password) to join the AD domain. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - PSCredential + AzureProfile - - UnjoinDomainCredential + + Protocol - The credentials (user name/password) to unjoin the AD domain. + Specifies the protocol of the endpoints. Valid values are: + +-- TCP +-- UDP - PSCredential + + TCP + UDP + - - Options + + PublicPort - The unsigned integer join option. + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - JoinOptions + Int32 - - OUPath + + VirtualIPName - The OU path for AD domain join operation. + Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. - String + String - - Version + + LBSetName - - + Specifies the name of the load balancer set that this cmdlet updates. String - Set-AzureServiceADDomainExtension - + Set-AzureLoadBalancedEndpoint + ServiceName - The cloud service name. + Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. String - - Slot + + ACL - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. - String + NetworkAclObject - - Role + + DirectServerReturn - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - String[] + Boolean - - X509Certificate + + IdleTimeoutInMinutes - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies the TCP idle time-out period, in minutes, for the endpoints. - X509Certificate2 + Int32 - - ThumbprintAlgorithm + + InternalLoadBalancerName - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. - String + String - - DomainName + + LoadBalancerDistribution - The AD domain name. + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. - String + + sourceIP + sourceIPProtocol + none + - - Restart + + LocalPort - Whether to restart the computer if the join operation succeeded. + Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. - SwitchParameter + Int32 - - Credential + + ProbeIntervalInSeconds - The credentials (user name/password) to join the AD domain. + Specifies the probe polling interval, in seconds, for the endpoints. - PSCredential + Int32 - - UnjoinDomainCredential + + ProbePort - The credentials (user name/password) to unjoin the AD domain. + Specifies the port that the load balancer probe uses. - PSCredential + Int32 - - JoinOption + + ProbeTimeoutInSeconds - The join option enumeration. + Specifies the probe polling time-out in seconds. - UInt32 + Int32 - - OUPath + + Profile - The OU path for AD domain join operation. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - Version + + Protocol - - - - String - - - - Set-AzureServiceADDomainExtension - - ServiceName - - The cloud service name. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - WorkgroupName - - The workgroup name. - - String - - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - - - Set-AzureServiceADDomainExtension - - ServiceName - - The cloud service name. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the protocol of the endpoints. Valid values are: + +-- TCP +-- UDP - String + + TCP + UDP + - - Role + + PublicPort - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - String[] + Int32 - - CertificateThumbprint - - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - - String - - - ThumbprintAlgorithm + + VirtualIPName - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. - String + String - - WorkgroupName + + LBSetName - The workgroup name. + Specifies the name of the load balancer set that this cmdlet updates. String - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential + + ProbeProtocolTCP - The credentials (user name/password) to join the AD domain. + Specifies that the load balancer endpoints use a TCP Probe. - PSCredential - Set-AzureServiceADDomainExtension - + Set-AzureLoadBalancedEndpoint + ServiceName - The cloud service name. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. String - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint - - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - - String - - - ThumbprintAlgorithm + + ACL - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. - String + NetworkAclObject - - DomainName + + DirectServerReturn - The AD domain name. + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. - String + Boolean - - Restart + + IdleTimeoutInMinutes - Whether to restart the computer if the join operation succeeded. + Specifies the TCP idle time-out period, in minutes, for the endpoints. - SwitchParameter + Int32 - - Credential + + InternalLoadBalancerName - The credentials (user name/password) to join the AD domain. + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. - PSCredential + String - - UnjoinDomainCredential + + LoadBalancerDistribution - The credentials (user name/password) to unjoin the AD domain. + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. - PSCredential + + sourceIP + sourceIPProtocol + none + - - JoinOption + + LocalPort - The join option enumeration. + Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. - UInt32 + Int32 - - OUPath + + ProbeIntervalInSeconds - The OU path for AD domain join operation. + Specifies the probe polling interval, in seconds, for the endpoints. - String + Int32 - - Version + + ProbePort - - + Specifies the port that the load balancer probe uses. - String + Int32 - - - Set-AzureServiceADDomainExtension - - ServiceName + + ProbeTimeoutInSeconds - The cloud service name. + Specifies the probe polling time-out in seconds. - String + Int32 - - Slot + + Profile - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - Role + + Protocol - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies the protocol of the endpoints. Valid values are: + +-- TCP +-- UDP - String[] + + TCP + UDP + - - CertificateThumbprint + + PublicPort - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. - String + Int32 - - ThumbprintAlgorithm + + VirtualIPName - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. - String + String - - DomainName + + LBSetName - The AD domain name. + Specifies the name of the load balancer set that this cmdlet updates. String - - Restart - - Whether to restart the computer if the join operation succeeded. - - SwitchParameter - - - Credential - - The credentials (user name/password) to join the AD domain. - - PSCredential - - - UnjoinDomainCredential - - The credentials (user name/password) to unjoin the AD domain. - - PSCredential - - - Options - - The unsigned integer join option. - - JoinOptions - - - OUPath + + ProbePath - The OU path for AD domain join operation. + Specifies the relative path of the HTTP Probe. String - - Version + + ProbeProtocolHTTP - - + Specifies that the load balancer endpoints use an HTTP Probe. - String - - ServiceName + + ACL + + Specifies an access control list (ACL) configuration object that this cmdlet applies to the endpoints. + + NetworkAclObject + + NetworkAclObject + + + none + + + DirectServerReturn + + Specifies whether this cmdlet enables direct server return. Specify $True to enable, or $False to disable. + + Boolean + + Boolean + + + none + + + IdleTimeoutInMinutes - The cloud service name. + Specifies the TCP idle time-out period, in minutes, for the endpoints. + + Int32 + + Int32 + + + none + + + InternalLoadBalancerName + + Specifies the name of the internal load balancer that this cmdlet includes in the configuration. + + String + + String + + + none + + + LBSetName + + Specifies the name of the load balancer set that this cmdlet updates. String String - - + none - - Slot + + LoadBalancerDistribution - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the load balancer distribution algorithm. Valid values are: + +-- sourceIP. A two tuple affinity: Source IP, Destination IP +-- sourceIPProtocol. A three tuple affinity: Source IP, Destination IP, Protocol +-- none. A five tuple affinity: Source IP, Source Port, Destination IP, Destination Port, Protocol + +The default value is none. + + String + + String + + + none + + + LocalPort + + Specifies the local, private, port that these endpoints use. Applications in the virtual machine listen on this port for service input requests for this endpoint. + + Int32 + + Int32 + + + none + + + ProbeIntervalInSeconds + + Specifies the probe polling interval, in seconds, for the endpoints. + + Int32 + + Int32 + + + none + + + ProbePath + + Specifies the relative path of the HTTP Probe. String String - - + none - - Role + + ProbePort - An optional array of roles to specify the remote desktop configuration for. If not specified the AD domain configuration is applied as the default configuration for all roles. + Specifies the port that the load balancer probe uses. - String[] + Int32 - String[] + Int32 - - + none - - X509Certificate + + ProbeProtocolHTTP + + Specifies that the load balancer endpoints use an HTTP Probe. + + SwitchParameter + + SwitchParameter + + + none + + + ProbeProtocolTCP + + Specifies that the load balancer endpoints use a TCP Probe. + + SwitchParameter + + SwitchParameter + + + none + + + ProbeTimeoutInSeconds + + Specifies the probe polling time-out in seconds. + + Int32 + + Int32 + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + Protocol + + Specifies the protocol of the endpoints. Valid values are: + +-- TCP +-- UDP + + String + + String + + + none + + + PublicPort + + Specifies the public port that the endpoint uses. If you do not specify a value, Azure assigns an available port. + + Int32 + + Int32 + + + none + + + ServiceName + + Specifies the name of the Azure service that contains the endpoints that this cmdlet modifies. + + String + + String + + + none + + + VirtualIPName + + Specifies the name of a virtual IP address that Azure associates to the endpoints. To add virtual IPs to your service, use the Add-AzureVirtualIP cmdlet. + + String + + String + + + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Example 1: Modify the endpoints in a load balancer set + + + + + PS C:\>Set-AzureLoadBalancedEndpoint -ServiceName "ContosoService" -LBSetName "LBSet01" -Protocol "TCP" -LocalPort 80 -ProbeProtocolTCP -ProbePort 8080 + + + This command modifies all endpoints in the load balancer set named LBSet01 to use the TCP protocol and private port 80. The command sets the load balancer probe to use the TCP protocol on port 8080. + + + + + + + + + + + Example 2: Specify a different virtual IP + + + + + PS C:\>Set-AzureLoadBalancedEndpoint -ServiceName "ContosoService" -LBSetName "LBSet02" -VirtualIPName "Vip01" + + + This command modifies the load balancer that has the load balancer set name to use a virtual IP named Vip01. + + + + + + + + + + + + + Add-AzureVirtualIP + + + + Set-AzureInternalLoadBalancer + + + + + + + Set-AzureNetworkInterfaceConfig + + + + + + + + Set + AzureNetworkInterfaceConfig + + + + + + + Set-AzureNetworkInterfaceConfig + + Name + + + String + + + SubnetName + + + String + + + StaticVNetIPAddress + + + String + + + NetworkSecurityGroup + + + String + + + IPForwarding + + + + Enabled + Disabled + + + + Profile + + + AzureProfile + + + VM + + + IPersistentVM + + + + + + IPForwarding - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - X509Certificate2 + String - X509Certificate2 + String - - + none - - ThumbprintAlgorithm + + Name - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. String String - - + none - - DomainName + + NetworkSecurityGroup - The AD domain name. - String + String String - - + none - - Restart + + Profile - Whether to restart the computer if the join operation succeeded. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - Credential + + StaticVNetIPAddress - The credentials (user name/password) to join the AD domain. - PSCredential + String - PSCredential + String - - + none - - UnjoinDomainCredential + + SubnetName - The credentials (user name/password) to unjoin the AD domain. - PSCredential + String - PSCredential + String - - + none - - Options + + VM - The unsigned integer join option. - JoinOptions + IPersistentVM - JoinOptions + IPersistentVM - - + none - - OUPath + + + + + + + + + + + + - The OU path for AD domain join operation. - String + + + + - String - + + + + + + + - - - - - Version + + + + + + + + 1: + + + + + PS C:\> + + + + + + + + + + + + + + + Add-AzureNetworkInterfaceConfig + + + + Get-AzureNetworkInterfaceConfig + + + + Remove-AzureNetworkInterfaceConfig + + + + + + + Set-AzureNetworkSecurityGroupConfig + + + + + + + + Set + AzureNetworkSecurityGroupConfig + + + + + + + Set-AzureNetworkSecurityGroupConfig + + NetworkSecurityGroupName + + + String + + + Profile + + + AzureProfile + + + VM + + + IPersistentVM + + + + + + NetworkSecurityGroupName + String String - - - - - JoinOption - - The join option enumeration. - - UInt32 - - UInt32 - - - - + none - - WorkgroupName + + Profile - The workgroup name. - String + AzureProfile - String + AzureProfile - - + none - - CertificateThumbprint + + VM - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - String + IPersistentVM - String + IPersistentVM - - + none @@ -29672,10 +30402,10 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + @@ -29687,191 +30417,140 @@ C:\PS> Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint - + + - - + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + + + 1: + + + + + PS C:\> + + + + + + + + + + + + + - Unknown - - + Remove-AzureNetworkSecurityGroupConfig + - - + - Set-AzureServiceAntimalwareExtension + Set-AzureOSDisk - Configures the Microsoft Antimalware extension for cloud services. + Modifies the host cache mode of an Azure virtual machine. Set - AzureServiceAntimalwareExtension + AzureOSDisk - - The Set-AzureServiceAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a cloud service. You can specify values that override and supplement values in the XML configuration, such as storage account context. + The Set-AzureOSDisk cmdlet modifies the host cache mode of the operating system disk of an Azure virtual machine. The supported host cache modes are ReadOnly and ReadWrite. If you run this cmdlet on a virtual machine that is running, that virtual machine restarts. - Set-AzureServiceAntimalwareExtension - - ServiceName - - Specifies the name of the cloud service. - - String - - - Slot - - Specifies a deployment slot. Valid values are: - --- Production --- Staging - -The default value is Production. - - String - - - Role - - Specifies an array of roles. The default value is all roles. - - String[] - - - AntimalwareConfiguration + Set-AzureOSDisk + + HostCaching - Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + Specifies the host cache attribute for the operating system disk. Valid values are: -<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> +-- ReadOnly +-- ReadWrite - XmlDocument + + ReadOnly + ReadWrite + - - Monitoring + + Profile - Specifies whether to collect Microsoft Antimalware events. Valid values are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - StorageContext + + VM - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the virtual machine for which this cmdlet modifies the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - AzureStorageContext + IPersistentVM - Set-AzureServiceAntimalwareExtension - - ServiceName - - Specifies the name of the cloud service. - - String - - - Slot + Set-AzureOSDisk + + HostCaching - Specifies a deployment slot. Valid values are: - --- Production --- Staging + Specifies the host cache attribute for the operating system disk. Valid values are: -The default value is Production. - - String - - - Role - - Specifies an array of roles. The default value is all roles. +-- ReadOnly +-- ReadWrite - String[] + + ReadOnly + ReadWrite + - - AntimalwareConfiguration + + ResizedSizeInGB - Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - -<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> + Specifies a new size, in gigabytes, for the operating system disk. The size must be larger than the current size. - XmlDocument + Int32 - - Monitoring + + Profile - Specifies whether to collect Microsoft Antimalware events. Valid values are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - StorageContext + + VM - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the virtual machine for which this cmdlet modifies the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - AzureStorageContext + IPersistentVM - - ServiceName - - Specifies the name of the cloud service. - - String - - String - - - none - - - Slot + + HostCaching - Specifies a deployment slot. Valid values are: - --- Production --- Staging + Specifies the host cache attribute for the operating system disk. Valid values are: -The default value is Production. +-- ReadOnly +-- ReadWrite String @@ -29880,55 +30559,38 @@ The default value is Production. none - - Role - - Specifies an array of roles. The default value is all roles. - - String[] - - String[] - - - none - - - AntimalwareConfiguration + + Profile - Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - -<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - XmlDocument + AzureProfile - XmlDocument + AzureProfile none - - Monitoring + + ResizedSizeInGB - Specifies whether to collect Microsoft Antimalware events. Valid values are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + Specifies a new size, in gigabytes, for the operating system disk. The size must be larger than the current size. - String + Int32 - String + Int32 none - - StorageContext + + VM - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the virtual machine for which this cmdlet modifies the operating system disk. To obtain a virtual machine object, use the Get-AzureVM cmdlet. - AzureStorageContext + IPersistentVM - AzureStorageContext + IPersistentVM none @@ -29939,13 +30601,15 @@ The default value is Production. - + + - - + + + @@ -29954,350 +30618,205 @@ The default value is Production. - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1: Enable the extension -------------------------- - - - - - PS C:\>[System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument -PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') -PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -AntimalwareConfiguration $XmlConfig -Operation succeeded - - The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. - - - - The third command enables the Microsoft Antimalware extension for the service named ContosoService03, by using the configuration stored in $XmlConfig. Because the command does not specify the Slot parameter, the cmdlet uses the default value, Production. - - - - - -------------------------- Example 2: Enable the extension for the Staging slot -------------------------- + Example 1: Set the host cache mode to ReadOnly by using the pipeline - PS C:\>[System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument -PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') -PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging" -AntimalwareConfiguration $XmlConfig -Operation succeeded + PS C:\>Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine02" | Set-AzureOSDisk -HostCaching "ReadOnly" + - The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. + This command gets the virtual machine named VirtualMachine02 in the service named ContosoService by using the Get-AzureVM cmdlet. The command passes the virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet sets the host cache mode of the operating system disk of that virtual machine to be ReadOnly. + + - The third command enables the Microsoft Antimalware extension for the service named ContosoService03, by using the configuration stored in $XmlConfig. This command specifies a value of Staging for the Slot parameter. + - -------------------------- Example 3: Enable the extension with monitoring -------------------------- + Example 2: Set the host cache mode to ReadWrite - PS C:\>[System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument -PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') -PS C:\> $StorageContext = New-AzureStorageContext -StorageAccountName "contosostoragemain" -StorageAccountKey (Get-AzureStorageKey -StorageAccountName "Contosostoragemain").Primary -PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -AntimalwareConfiguration $XmlConfig -Monitoring ON -StorageContext $StorageContext + PS C:\>$VM = Get-AzureVM -ServiceName "ContosoService" -Name "VirtualMachine02" +PS C:\> Set-AzureOSDisk "ReadWrite" -VM $myVM2 + - The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. + The first command gets the virtual machine named VirtualMachine02 in the service named ContosoService, and then stores it in the variable. + The second command sets the host cache mode of the operating system disk of that virtual machine to be ReadWrite. + + - The third command creates an AzureStorageContext object by using the New-AzureStorageContext cmdlet, and then stores it in the $StorageContext variable.The final command enables the Microsoft Antimalware extension for the service named ContosoService03, by using the configuration stored in $XmlConfig. This command also specifies a value of ON for the Monitoring parameter and specifies the Azure storage context stored in $StorageContext. The values specified by these parameters override any corresponding values for these parameters that were specified within the XML configuration. + - Online Version: - http://go.microsoft.com/fwlink/?LinkID=402843 + Add-AzureVMImage + - New-AzureStorageContext - - + Get-AzureOSDisk + - Get-AzureServiceAntimalwareConfig - - + Get-AzureVM + - Remove-AzureServiceAntimalwareExtension - - + Get-AzureVMImage + + + + Set-AzureDataDisk + + + + Update-AzureVM + - - + - Set-AzureServiceDiagnosticsExtension + Set-AzurePublicIP - This cmdlet enables diagnostics extension on specified role(s) or all roles on a deployed service or at deployment. + Adds a Public IP to an Azure virtual machine. Set - AzureServiceDiagnosticsExtension + AzurePublicIP - - This cmdlet enables diagnostics extension on specified role(s) or all roles on a deployed service or at deployment. + The Set-AzurePublicIP cmdlet adds a Public IP to an Azure virtual machine. If you run this cmdlet for an existing virtual machine, update the virtual machine to implement your changes. You can specify a domain name label to create a corresponding DNS entry for the public IP. - Set-AzureServiceDiagnosticsExtension - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - - Role - - An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - StorageContext - - - - - AzureStorageContext - - - DiagnosticsConfigurationPath - - - Configuration for Microsoft Azure diagnostics. You can download the schema by doing: - (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - - - String - - - - Set-AzureServiceDiagnosticsExtension - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - - Slot + Set-AzurePublicIP + + PublicIPName - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the Public IP name. String - - Role - - An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint + + IdleTimeoutInMinutes - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the TCP idle time-out period in minutes. - String + Int32 - - ThumbprintAlgorithm + + DomainNameLabel - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name to use for a corresponding DNS entry for the public IP address. - String + String - - StorageContext + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureStorageContext + AzureProfile - - DiagnosticsConfigurationPath + + VM - - Configuration for Microsoft Azure diagnostics. You can download the schema by doing: - (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - + Specifies the virtual machine to which this cmdlet adds Public IP. - String + IPersistentVM - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - String - - - - - - - Slot + + DomainNameLabel - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the name to use for a corresponding DNS entry for the public IP address. - String + String String - - - - - Role - - An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - - - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - X509Certificate2 - - - - + none - - ThumbprintAlgorithm + + IdleTimeoutInMinutes - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the TCP idle time-out period in minutes. - String + Int32 - String + Int32 - - + none - - StorageContext + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureStorageContext + AzureProfile - AzureStorageContext + AzureProfile - - + none - - DiagnosticsConfigurationPath + + PublicIPName - - Configuration for Microsoft Azure diagnostics. You can download the schema by doing: - (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - + Specifies the Public IP name. String String - - + none - - CertificateThumbprint + + VM - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the virtual machine to which this cmdlet adds Public IP. - String + IPersistentVM - String + IPersistentVM - - + none @@ -30305,398 +30824,459 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Add a Public IP to an existing virtual machine + + + + + PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Set-AzurePublicIP -PublicIPName "ftpip" | Update-AzureVM + + + This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet adds the Public IP name ftpip. The command passes the virtual machine to the Update-AzureVM cmdlet, which implements your changes. + + + + + + + + + + + Example 2: Add a Public IP to a new virtual machine + + + + + PS C:\>New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName "Image07" | Add-AzureProvisioningConfig -Windows -AdminUsername "AdminMain" -Password "password" | Set-AzurePublicIP -PublicIPName "ftpip" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" + + + This command creates a virtual machine configuration object by using the New-AzureVMConfig cmdlet. The command passes that object to the Add-AzureProvisioningConfig cmdlet, which provides additional configuration. The current cmdlet adds the Public IP name ftpip. The command passes the configuration to the New-AzureVM cmdlet, which creates the virtual machine. + + + + + + + + + + + Example 3: Add a Public IP and label to an existing virtual machine - PS C:\> Set-AzureServiceDiagnosticExtension -ServiceName $svc -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML + PS C:\>Get-AzureVM -ServiceName "FTPInAzure" -Name "FTPInstance" | Set-AzurePublicIP -PublicIPName "ftpip" -DomainNameLabel "ipname" | Update-AzureVM + - Description + This command gets the virtual machine named FTPInstance in the service named FTPInAzure by using the Get-AzureVM cmdlet. The command passes that virtual machine to the current cmdlet by using the pipeline operator. The current cmdlet adds the Public IP name ftpip and the label ipname. The command updates the virtual machine, which implements your changes. + + - -----------Setting default diagnostic configuration for all roles. + - -------------------------- EXAMPLE 2 -------------------------- + Example 4: Add a Public IP and label to a new virtual machine - PS C:\> Set-AzureServiceDiagnosticExtension -ServiceName $svc -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML -Role "WebRole1" + PS C:\>New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername "AdminMain" -Password "password" | Set-AzurePublicIP -PublicIPName "ftpip" -DomainNameLabel "ipname" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US" + - Description + This command creates a virtual machine configuration object, and then passes that object to Add-AzureProvisioningConfig, which provides additional configuration. The current cmdlet adds the Public IP name ftpip and the label ipname. The command creates the virtual machine. + + - -----------Setting diagnostic configuration for WebRole1. + - Unknown - - + Get-AzurePublicIP + + + + Get-AzureVM + + + + New-AzureVM + + + + New-AzureVMConfig + + + + Remove-AzurePublicIP + + + + Update-AzureVM + - - + - Set-AzureServiceExtension + Set-AzureReservedIPAssociation - This cmdlet adds a cloud service extension to a deployment. + Associates a reserved IP address with an existing virtual machine or cloud service. Set - AzureServiceExtension + AzureReservedIPAssociation - - This cmdlet adds a cloud service extension to a deployment. + The Set-AzureReservedIPAssociation cmdlet associates a reserved IP address with the Virtual IP address (VIP) of a running virtual machine or cloud service. The reserved IP address must not be in use at the time of invocation of this cmdlet, and must be in the same region as the virtual machine or cloud service. + + + The operation takes about 30 seconds to complete, after which the virtual machine or service is accessible using the reserved IP address. - Set-AzureServiceExtension - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - - ThumbprintAlgorithm - - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - ExtensionName - - - - - String - - - ProviderNamespace - - The Extension's Provider Namespace. - - String - - - PublicConfiguration - - The public configuration text. - - String - - - PrivateConfiguration - - The private configuration text. - - String - - - Version + Set-AzureReservedIPAssociation + + ReservedIPName - The Extension Version. + Specifies the name of the reserved IP address to associate with a virtual machine or service. String - - - Set-AzureServiceExtension - + ServiceName - Specifies the Microsoft Azure service name of the deployment. - - String - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - - CertificateThumbprint - - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - - String - - - ThumbprintAlgorithm - - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - - ExtensionName - - - - - String - - - ProviderNamespace - - The Extension's Provider Namespace. + Specifies the name of the service that has the deployment with which to associate the reserved IP address. - String + String - - PublicConfiguration + + VirtualIPName - The public configuration text. + Specifies the name of an existing VIP to associate with a reserved IP. See Add-AzureVirtualIP to add VIPs to your cloud service. - String + String - - PrivateConfiguration + + Slot - The private configuration text. + Specifies the deployment slot. The acceptable values for this parameter are: + +-- Staging +-- Production - String + + Staging + Production + - - Version + + Profile - The Extension Version. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - ServiceName + + Profile - Specifies the Microsoft Azure service name of the deployment. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Slot + + ReservedIPName - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the name of the reserved IP address to associate with a virtual machine or service. String String - - + none - - Role + + ServiceName - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies the name of the service that has the deployment with which to associate the reserved IP address. - String[] + String - String[] + String - - + none - - X509Certificate + + Slot - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies the deployment slot. The acceptable values for this parameter are: + +-- Staging +-- Production - X509Certificate2 + String - X509Certificate2 + String - - + none - - ThumbprintAlgorithm + + VirtualIPName - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies the name of an existing VIP to associate with a reserved IP. See Add-AzureVirtualIP to add VIPs to your cloud service. - String + String String - - + none - - ExtensionName + + + + + + + + + + + + - String + + + + - String - + Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext + + + + + - - - - - ProviderNamespace - The Extension's Provider Namespace. + + + + + + + + + + Example 1: Set a reserved IP association + + + + + PS C:\>Set-AzureReservedIPAssociation -ReservedIPName "ResIp14" -ServiceName "PipTestWestEurope" + + + This command assigns the reserved IP address named ResIp14 to the service PipTestWestEurope. ResIp14 is a reserved IP in the West Europe region. + + + + + + + + + + + + + Remove-AzureReservedIPAssociation + + + + + + + Set-AzureRole + + Sets the number of instances of an Azure role to run. + + + + + Set + AzureRole + + + + The Set-AzureRole cmdlet sets the number of instances of a specified role to run in an Azure deployment. + + + + Set-AzureRole + + ServiceName + + Specifies the name of the Azure service. + + String + + + Slot + + Specifies the deployment environment of the deployment to modify. The acceptable values for this parameter are: + +-- Production +-- Staging + + + Staging + Production + + + + RoleName + + Specifies the name of the role for which to set the number of instances. + + String + + + Count + + Specifies the number of role instances to run. + + Int32 + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Count + + Specifies the number of role instances to run. - String + Int32 - String + Int32 - - + none - - PublicConfiguration + + Profile - The public configuration text. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - PrivateConfiguration + + RoleName - The private configuration text. + Specifies the name of the role for which to set the number of instances. String String - - + none - - Version + + ServiceName - The Extension Version. + Specifies the name of the Azure service. String String - - + none - - CertificateThumbprint + + Slot - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies the deployment environment of the deployment to modify. The acceptable values for this parameter are: + +-- Production +-- Staging String String - - + none @@ -30704,13 +31284,15 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + @@ -30719,740 +31301,812 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Set-AzureServiceExtension -Service $svc -Slot Production -ExtensionName 'RDP' -Version '1.0' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; - - Description - - - - -----------Set the Remote Desktop Extension in version 1.0 for all roles in the cloud service. - - - - - -------------------------- EXAMPLE 2 -------------------------- + 1: Set the number of instances for a role - PS C:\> Set-AzureServiceExtension -Service $svc -Slot Production -Role WebRole1 -ExtensionName 'RDP' -ProviderNamespace Microsoft.Windows.Azure.Extensions -PublicConfiguration $p1 -PrivateConfiguration $p2; + PS C:\>Set-AzureRole -ServiceName "MySvc01" -Slot "Production" -RoleName "MyTestRole03" -Count 3 + - Description + This command sets the MyTestRole03 role that is running in production on the MySvc01 service to have three instances. + + - -----------Set the Remote Desktop Extension for the 'WebRole1' role in the cloud service. + - Unknown - - + Get-AzureRole + - - + - Set-AzureServiceRemoteDesktopExtension + Set-AzureServiceADDomainExtension - This cmdlet enables remote desktop extension on specified role(s) or all roles on a deployed service or at deployment. + Enables an AD Domain extension for a cloud service. Set - AzureServiceRemoteDesktopExtension + AzureServiceADDomainExtension - - This cmdlet enables remote desktop extension on specified role(s) or all roles on a deployed service or at deployment. + The Set-AzureServiceADDomainExtension cmdlet enables an AD (Active Directory) Domain extension for a cloud service. - Set-AzureServiceRemoteDesktopExtension - + Set-AzureServiceADDomainExtension + + ServiceName + + Specifies the cloud service name. + + String + + + Slot + + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + + + Production + Staging + + + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + CertificateThumbprint + + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + + String + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + WorkgroupName + + Specifies the workgroup name. + + String + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to join the AD domain. Credentials include a user name and password. + + PSCredential + + + Version + + Specifies the extension version. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureServiceADDomainExtension + + ServiceName + + Specifies the cloud service name. + + String + + + Options + + Specifies the unsigned integer join option. + + + JoinDomain + AccountCreate + Win9XUpgrade + UnsecuredJoin + PasswordPass + DeferSPNSet + JoinWithNewName + JoinReadOnly + InstallInvoke + + + + OUPath + + Specifies the Organization Unit (OU) path for the AD domain join operation. + + String + + + Version + + Specifies the extension version. + + String + + + Slot + + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + + + Production + Staging + + + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + CertificateThumbprint + + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + + String + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + DomainName + + Specifies the AD domain name. + + String + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to join the AD domain. Credentials include a user name and password. + + PSCredential + + + UnjoinDomainCredential + + Specifies the credentials (user name and password) to unjoin the AD domain. + + PSCredential + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureServiceADDomainExtension + + ServiceName + + Specifies the cloud service name. + + String + + + JoinOption + + Specifies the join option enumeration. + + UInt32 + + + OUPath + + Specifies the Organization Unit (OU) path for the AD domain join operation. + + String + + + Version + + Specifies the extension version. + + String + + + Slot + + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + + + Production + Staging + + + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + + CertificateThumbprint + + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. + + String + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + DomainName + + Specifies the AD domain name. + + String + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + + Credential + + Specifies the credentials to join the AD domain. Credentials include a user name and password. + + PSCredential + + + UnjoinDomainCredential + + Specifies the credentials (user name and password) to unjoin the AD domain. + + PSCredential + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureServiceADDomainExtension + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the cloud service name. - String + String + + + Options + + Specifies the unsigned integer join option. + + + JoinDomain + AccountCreate + Win9XUpgrade + UnsecuredJoin + PasswordPass + DeferSPNSet + JoinWithNewName + JoinReadOnly + InstallInvoke + + + + OUPath + + Specifies the Organization Unit (OU) path for the AD domain join operation. + + String + + + Version + + Specifies the extension version. + + String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + - + Role - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. - String[] + String[] - + X509Certificate - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - X509Certificate2 + X509Certificate2 - + ThumbprintAlgorithm - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + DomainName + + Specifies the AD domain name. String - + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + + Credential - The credentials (user name/password) to enable for remote desktop. + Specifies the credentials to join the AD domain. Credentials include a user name and password. - PSCredential + PSCredential - - Expiration + + UnjoinDomainCredential - A date time object that allows the user to specify when the user account will expire. + Specifies the credentials (user name and password) to unjoin the AD domain. - DateTime + PSCredential - - Version + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - Set-AzureServiceRemoteDesktopExtension - + Set-AzureServiceADDomainExtension + ServiceName - Specifies the Microsoft Azure service name of the deployment. + Specifies the cloud service name. - String + String - + Slot - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + - + Role - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. - String[] + String[] - - CertificateThumbprint + + X509Certificate - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - + ThumbprintAlgorithm - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - Credential + + WorkgroupName - The credentials (user name/password) to enable for remote desktop. + Specifies the workgroup name. - PSCredential + String - - Expiration + + Restart - A date time object that allows the user to specify when the user account will expire. + Specifies whether to restart the computer if the join operation succeeds. - DateTime - - Version + + Credential - - + Specifies the credentials to join the AD domain. Credentials include a user name and password. - String + PSCredential - - - - - ServiceName - - Specifies the Microsoft Azure service name of the deployment. - - String - - String - - - - - - - Slot - - Specifies the environment of the deployment to modify. Supported values are "Production" or "Staging". - - String - - String - - - - - - - Role - - An optional array of roles to specify the remote desktop configuration for. If not specified the remote desktop configuration is applied as the default configuration for all roles. - - String[] - - String[] - - - - - - - X509Certificate - - An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - - X509Certificate2 - - X509Certificate2 - - - - - - - ThumbprintAlgorithm - - Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - - String - - String - - - - - - - Credential - - The credentials (user name/password) to enable for remote desktop. - - PSCredential - - PSCredential - - - - - - - Expiration - - A date time object that allows the user to specify when the user account will expire. - - DateTime - - DateTime - - - - - - - Version - - - - - String - - String - - - - - - - CertificateThumbprint - - A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store. - - String - - String - - - - - - - - - - - - + + Version - - + Specifies the extension version. - - - - - - - - - - - + String + + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds - - Description - - - - -----------Setting default remote desktop configuration for all roles. - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - - - PS C:\> Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds -Role "WebRole1" - - Description - - - - -----------Setting remote desktop configuration for WebRole1. - - - - - - - Unknown - - - - - - - - - Set-AzureStaticVNetIP - - Set the static VNet IP address information to a VM object. - - - - - Set - AzureStaticVNetIP - - - - - Set the static VNet IP address information to a VM object. - - + AzureProfile + + - Set-AzureStaticVNetIP - - IPAddress + Set-AzureServiceADDomainExtension + + ServiceName - Static VNet IP Address + Specifies the cloud service name. - String + String - - VM + + JoinOption - Persistent VM object. + Specifies the join option enumeration. - IPersistentVM + UInt32 - - - - - IPAddress - - Static VNet IP Address - - String - - String - - - - - - - VM - - Persistent VM object. - - IPersistentVM - - IPersistentVM - - - - - - - - - - - - + + OUPath - - + Specifies the Organization Unit (OU) path for the AD domain join operation. - - - - - - - - - - - + String + + + Version - - + Specifies the extension version. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> # Prerequisite: VNet has been set up with SubNet - # Set-AzureVNetConfig -ConfigurationPath $vnetConfigPath; - - $vm = New-AzureVMConfig -Name $vmname -ImageName $img -InstanceSize $sz | Add-AzureProvisioningConfig -Windows -Password $pwd -AdminUsername $usr; - $vm = Set-AzureSubNet -VM $vm -SubNetNames $sn; - Set-AzureStaticVNETIP -IPAddress $ip -VM $vm; - New-AzureVM -ServiceName $svc -VMs $vm -VNETName $vnetName -Location $loc; - - Description - - - - ----------- - - - - - - - Unknown - - - - - - - - - Set-AzureStorageAccount - - Updates the properties of a storage account in a Microsoft Azure subscription. - - - - - Set - AzureStorageAccount - - - - - The Set-AzureStorageAccount cmdlet updates the properties of a Microsoft Azure storage account in the current subscription. Properties that can be set are: "Label", "Description", "Type" and "GeoReplicationEnabled". - - - - Set-AzureStorageAccount - - StorageAccountName + String + + + Slot - Specifies the name of the storage account to be updated. + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + - - Label + + Role - Specifies a label for the storage account. The label may be up to 100 characters in length. + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. - String + String[] - - Description + + X509Certificate - Specifies a description for the storage account. The description may be up to 1024 characters in length. + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - - GeoReplicationEnabled + + ThumbprintAlgorithm - Specifies whether the storage account is created with the geo-replication enabled. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - Nullable`1[Boolean] + String - - - Set-AzureStorageAccount - - StorageAccountName + + DomainName - Specifies the name of the storage account to be updated. + Specifies the AD domain name. String - - Label + + Restart - Specifies a label for the storage account. The label may be up to 100 characters in length. + Specifies whether to restart the computer if the join operation succeeds. - String - - Description + + Credential - Specifies a description for the storage account. The description may be up to 1024 characters in length. + Specifies the credentials to join the AD domain. Credentials include a user name and password. - String + PSCredential - - Type + + UnjoinDomainCredential - Specifies the type of the storage account. Valid values are - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - - If this parameter is not specified, a default value of Standard_GRS is used - - Note: - The GeoReplicationEnabled parameter functionality is the same as specifying Standard_GRS in Type parameter - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + Specifies the credentials (user name and password) to unjoin the AD domain. - String + PSCredential + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - StorageAccountName + + CertificateThumbprint - Specifies the name of the storage account to be updated. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String String - - + none - - Label + + Credential - Specifies a label for the storage account. The label may be up to 100 characters in length. + Specifies the credentials to join the AD domain. Credentials include a user name and password. + + PSCredential + + PSCredential + + + none + + + DomainName + + Specifies the AD domain name. String String - - + none - - Description + + JoinOption - Specifies a description for the storage account. The description may be up to 1024 characters in length. + Specifies the join option enumeration. - String + UInt32 + + UInt32 + + + none + + + Options + + Specifies the unsigned integer join option. + + JoinOptions + + JoinOptions + + + none + + + OUPath + + Specifies the Organization Unit (OU) path for the AD domain join operation. + + String String - - + none - - GeoReplicationEnabled + + Profile - Specifies whether the storage account is created with the geo-replication enabled. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + Restart + + Specifies whether to restart the computer if the join operation succeeds. + + SwitchParameter + + SwitchParameter + + + none + + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If not specified the AD domain configuration is applied as the default configuration for all roles. + + String[] + + String[] + + + none + + + ServiceName + + Specifies the cloud service name. + + String + + String + + + none + + + Slot + + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. + + String + + String + + + none + + + ThumbprintAlgorithm + + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + String + + + none + + + UnjoinDomainCredential + + Specifies the credentials (user name and password) to unjoin the AD domain. + + PSCredential + + PSCredential + + + none + + + Version + + Specifies the extension version. - Nullable`1[Boolean] + String - Nullable`1[Boolean] + String - - + none - - Type + + WorkgroupName - Specifies the type of the storage account. Valid values are - - Standard_LRS - Standard_ZRS - Standard_GRS - Standard_RAGRS - Premium_LRS - - If this parameter is not specified, a default value of Standard_GRS is used - - Note: - The GeoReplicationEnabled parameter functionality is the same as specifying Standard_GRS in Type parameter - Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. + Specifies the workgroup name. String String - - + none - - PipelineVariable + + X509Certificate - Not Specified + Specifies an x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration. - string + X509Certificate2 - string + X509Certificate2 - - + none @@ -31460,164 +32114,332 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - New-AzureStorageAccount, Get-AzureStorageAccount, Remove-AzureStorageAccount - + + + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -Label "QATestAccnt" -Description "QA test storage account" - - Description - - - - -----------This command updates the label and description of the 'qatest1' storage account in the specified subscription. - - - - - -------------------------- EXAMPLE 2 -------------------------- + 1: - PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -GeoReplicationEnabled $false - Description - - - - -----------This command disables the geo-replication of the 'qatest1' storage account in the specified subscription. - - - - - -------------------------- EXAMPLE 3 -------------------------- - - - PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -GeoReplicationEnabled $true - - Description + + - -----------This command enables the geo-replication of the 'qatest1' storage account in the specified subscription. + - Unknown - - + Get-AzureServiceADDomainExtension + + + + Remove-AzureServiceADDomainExtension + + + + New-AzureServiceADDomainExtensionConfig + - - + - Set-AzureSubnet + Set-AzureServiceAntimalwareExtension - Defines the subnet list for a Microsoft Azure virtual machine. + Configures the Microsoft Antimalware extension for cloud services. Set - AzureSubnet + AzureServiceAntimalwareExtension - - The Set-AzureSubnet cmdlet sets the subnet list for a virtual machine configuration. Use with New-AzureVM to set the subnets for a virtual machine. + The Set-AzureServiceAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a cloud service. You can specify values that override and supplement values in the XML configuration, such as the storage account context. - Set-AzureSubnet - - SubnetNames + Set-AzureServiceAntimalwareExtension + + ServiceName - Specifies the list of subnet names. + Specifies the name of the cloud service. - String[] + String - - VM + + Slot - Specifies the virtual machine object. + Specifies a deployment slot. Valid values are: + + +-- Production + +-- Staging + + +The default value is Production. - IPersistentVM + + Production + Staging + + + + Role + + Specifies an array of roles. The default value is all roles. + + String[] + + + AntimalwareConfiguration + + Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> + + XmlDocument + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. Valid values are: + +-- ON. Collect Microsoft Antimalware events to storage context. + +-- OFF. Do not collect Microsoft Antimalware events. + + + ON + OFF + + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureServiceAntimalwareExtension + + ServiceName + + Specifies the name of the cloud service. + + String + + + Slot + + Specifies a deployment slot. Valid values are: + + +-- Production + +-- Staging + + +The default value is Production. + + + Production + Staging + + + + Role + + Specifies an array of roles. The default value is all roles. + + String[] + + + AntimalwareConfiguration + + Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> + + XmlDocument + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. Valid values are: + +-- ON. Collect Microsoft Antimalware events to storage context. + +-- OFF. Do not collect Microsoft Antimalware events. + + + ON + OFF + + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - SubnetNames + + AntimalwareConfiguration - Specifies the list of subnet names. + Specifies an XmlDocument object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +<AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> - String[] + XmlDocument + + XmlDocument + + + none + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. Valid values are: + +-- ON. Collect Microsoft Antimalware events to storage context. + +-- OFF. Do not collect Microsoft Antimalware events. + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + Role + + Specifies an array of roles. The default value is all roles. + + String[] String[] - - + none - - VM + + ServiceName - Specifies the virtual machine object. + Specifies the name of the cloud service. - IPersistentVM + String - IPersistentVM + String - - + none + + + Slot + + Specifies a deployment slot. Valid values are: + + +-- Production + +-- Staging + + +The default value is Production. + + String + + String + + + none + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + AzureStorageContext + + + none @@ -31625,13 +32447,15 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + @@ -31640,327 +32464,382 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Enable the extension + + + + + PS C:\> [System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument +PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') +PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -AntimalwareConfiguration $XmlConfig +Operation succeeded + + + The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. + + + + + + + + + + + Example 2: Enable the extension for the Staging slot + + + + + PS C:\> [System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument +PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') +PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging" -AntimalwareConfiguration $XmlConfig +Operation succeeded + + + The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. + + + + + + + + + + + Example 3: Enable the extension with monitoring - PS C:\> C:\PS>New-AzureVMConfig –Name "MyVM" –ImageName $image –InstanceSize "Small" ` - | Add-AzureProvisioningConfig –Windows –Password $passwd ` - | Set-AzureSubnet "PubSubnet","PrivSubnet" ` - | New-AzureVM –ServiceName "MySvc" + PS C:\>System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument +PS C:\> $XmlConfig.load('C:\configuration\contosoVM.xml') +PS C:\> $StorageContext = New-AzureStorageContext -StorageAccountName "contosostoragemain" -StorageAccountKey (Get-AzureStorageKey -StorageAccountName "Contosostoragemain").Primary +PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -AntimalwareConfiguration $XmlConfig -Monitoring ON -StorageContext $StorageContext + - This example adds a subnet to the virtual machine configuration and then creates the virtual machine "MyVM". + The first two commands create an XmlDocument object that contains a configuration for the Microsoft Antimalware extension, and then stores it in the $XmlConfig variable. + + - - + - Get-AzureVM - - + Online Version: + http://go.microsoft.com/fwlink/?LinkID=402843 - Update-AzureVM - - + Get-AzureServiceAntimalwareConfig + + + + Remove-AzureServiceAntimalwareExtension + - - + - Set-AzureVMAccessExtension + Set-AzureServiceDiagnosticsExtension - This cmdlet sets the VMAccess extension for the VM. + Enables Azure Diagnostics extension on specified roles or all roles on a deployed service or at deployment. Set - AzureVMAccessExtension + AzureServiceDiagnosticsExtension - - This cmdlet sets the VMAccess extension for the VM. + The Set-AzureServiceDiagnosticsExtension cmdlet enables Azure Diagnostics extension on specified roles or all roles on a deployed service or at deployment. - Set-AzureVMAccessExtension - - UserName + Set-AzureServiceDiagnosticsExtension + + ServiceName - The user name for resetting the VM's credential. + Specifies the Azure service name of the deployment. - String + String - - Password + + Slot - The password for resetting the VM's credential. + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - String + + Production + Staging + - - ReferenceName + + Role - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies an optional array of roles for which to specify the Azure Diagnostics configuration. If you do not specify this parameter, the diagnostics configuration is applied as the default configuration for all roles. - String + String[] - - Version + + CertificateThumbprint - The Extension Version. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - String + String - - ForceUpdate + + ThumbprintAlgorithm - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + String - - VM + + StorageContext - The persistent VM object. + Specifies an Azure storage context. - IPersistentVM + AzureStorageContext - - - Set-AzureVMAccessExtension - - Disable + + DiagnosticsConfigurationPath - To Set the Extension State to 'Disable'. + Specifies the configuration for Azure Diagnostics. You can download the schema by using the following command: + (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - SwitchParameter + String - - ReferenceName + + Version - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies the version of the extension. - String + String - - Version + + Profile - The Extension Version. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - ForceUpdate + + + Set-AzureServiceDiagnosticsExtension + + ServiceName - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the Azure service name of the deployment. + String - - VM + + Slot - The persistent VM object. + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - IPersistentVM + + Production + Staging + - - - Set-AzureVMAccessExtension - - Uninstall + + Role - Not Specified + Specifies an optional array of roles for which to specify the Azure Diagnostics configuration. If you do not specify this parameter, the diagnostics configuration is applied as the default configuration for all roles. - SwitchParameter + String[] - - ReferenceName + + X509Certificate - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies an X.509 certificate that, when specified, is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - String + X509Certificate2 - - Version + + ThumbprintAlgorithm - The Extension Version. + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String - - ForceUpdate + + StorageContext - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies an Azure storage context. + AzureStorageContext - - VM + + DiagnosticsConfigurationPath - The persistent VM object. + Specifies the configuration for Azure Diagnostics. You can download the schema by using the following command: + (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - IPersistentVM + String + + + Version + + Specifies the version of the extension. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - UserName + + CertificateThumbprint - The user name for resetting the VM's credential. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - String + String String - - + none - - Password + + DiagnosticsConfigurationPath - The password for resetting the VM's credential. + Specifies the configuration for Azure Diagnostics. You can download the schema by using the following command: + (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' - String + String String - - + none - - ReferenceName + + Profile - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - Version + + Role - The Extension Version. + Specifies an optional array of roles for which to specify the Azure Diagnostics configuration. If you do not specify this parameter, the diagnostics configuration is applied as the default configuration for all roles. - String + String[] + + String[] + + + none + + + ServiceName + + Specifies the Azure service name of the deployment. + + String String - - + none - - VM + + Slot - The persistent VM object. + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production or Staging. - IPersistentVM + String - IPersistentVM + String - - + none - - Disable + + StorageContext - To Set the Extension State to 'Disable'. + Specifies an Azure storage context. - SwitchParameter + AzureStorageContext - SwitchParameter + AzureStorageContext - - + none - - Uninstall + + ThumbprintAlgorithm - Not Specified + Specifies a thumbprint hashing algorithm that is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - SwitchParameter + String - SwitchParameter + String - - + none - - ForceUpdate + + Version - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the version of the extension. - SwitchParameter + String - SwitchParameter + String - - + none - - PipelineVariable + + X509Certificate - Not Specified + Specifies an X.509 certificate that, when specified, is automatically uploaded to the cloud service and used for encrypting the extension private configuration. - string + X509Certificate2 - string + X509Certificate2 - - + none @@ -31968,13 +32847,15 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + @@ -31983,223 +32864,399 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Enable Azure Diagnostics extension + + + + + PS C:\>Set-AzureServiceDiagnosticsExtension -ServiceName $Svc -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML + + + This command enables the Azure Diagnostics extension for all roles. + + + + + + + + + + + Example 2: Enable Azure Diagnostics extension for a specified role - PS C:\> + PS C:\>Set-AzureServiceDiagnosticsExtension -ServiceName $Svc -StorageContext $StorageContext -DiagnosticsConfigurationPath $WadConfigXML -Role "WebRole01" + - Description + This command enables the Azure Diagnostics extension for a specified role. + + - -----------Description + - Unknown - - + Get-AzureServiceDiagnosticsExtension + + + + Remove-AzureServiceDiagnosticsExtension + - - + - Set-AzureVMBGInfoExtension + Set-AzureServiceExtension - This cmdlet sets the BGInfo extension for the VM. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Adds a cloud service extension to a deployment. Set - AzureVMBGInfoExtension + AzureServiceExtension - - This cmdlet sets the BGInfo extension for the VM. + The Set-AzureServiceExtension cmdlet adds a cloud service extension to a deployment. - Set-AzureVMBGInfoExtension - - Disable + Set-AzureServiceExtension + + ServiceName + + Specifies the Azure service name of the deployment. + + String + + + Version + + Specifies the extension version. + + String + + + Slot + + Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + + + Production + Staging + + + + Role - To Set the Extension State to 'Disable'. + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. - SwitchParameter + String[] - - ReferenceName + + CertificateThumbprint - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String - - Version + + ThumbprintAlgorithm + + Specifies the thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + ExtensionName - The Extension Version. + Specifies the extension name. String - - VM + + ProviderNamespace - The persistent VM object. + Specifies the extension provider namespace. - IPersistentVM + String + + + PublicConfiguration + + Specifies the public configuration text. + + String + + + PrivateConfiguration + + Specifies the private configuration text. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - Set-AzureVMBGInfoExtension - - Uninstall + Set-AzureServiceExtension + + ServiceName - Not Specified + Specifies the Azure service name of the deployment. - SwitchParameter + String - - ReferenceName + + Version - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies the extension version. String - - Version + + Slot + + Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + + + Production + Staging + + + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + + X509Certificate + + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + + ThumbprintAlgorithm + + Specifies the thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + + ExtensionName - The Extension Version. + Specifies the extension name. String - - VM + + ProviderNamespace - The persistent VM object. + Specifies the extension provider namespace. - IPersistentVM + String + + + PublicConfiguration + + Specifies the public configuration text. + + String + + + PrivateConfiguration + + Specifies the private configuration text. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - Disable + + CertificateThumbprint - To Set the Extension State to 'Disable'. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. - SwitchParameter + String - SwitchParameter + String - - + none - - ReferenceName + + ExtensionName - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies the extension name. String String - - + none - - Version + + PrivateConfiguration - The Extension Version. + Specifies the private configuration text. String String - - + none - - VM + + Profile - The persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile - - + none - - Uninstall + + ProviderNamespace - Not Specified + Specifies the extension provider namespace. - SwitchParameter + String - SwitchParameter + String - - + none - - PipelineVariable + + PublicConfiguration - Not Specified + Specifies the public configuration text. - string + String - string + String + + + none + + + Role + + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified the remote desktop configuration is applied as the default configuration for all roles. + + String[] + + String[] + + + none + + + ServiceName + + Specifies the Azure service name of the deployment. + + String + + String + + + none + + + Slot + + Specifies the environment of the deployment to modify. Valid values are: Production or Staging. + + String + + String + + + none + + + ThumbprintAlgorithm + + Specifies the thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + + String + + String + + + none + + + Version + + Specifies the extension version. + + String + + String + + + none + + + X509Certificate + + Specifies an X.509 certificate that is automatically uploaded to the cloud service and used for encrypting the extension private configuration. + + X509Certificate2 + + X509Certificate2 - - + none @@ -32207,13 +33264,15 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + @@ -32222,484 +33281,548 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Add a cloud service to a deployment + + + + + PS C:\>Set-AzureServiceExtension -Service $Svc -Slot "Production" -ExtensionName "RDP" -Version "1.0" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" -PublicConfiguration $P1 -PrivateConfiguration $P2; + + + This command adds a cloud service to a deployment. + + + + + + + + + + + Example 2: Add a cloud service to a deployment for a specified role - PS C:\> + PS C:\>Set-AzureServiceExtension -Service $Svc -Slot "Production" -Role "WebRole1" -ExtensionName "RDP" -ProviderNamespace "Microsoft.Windows.Azure.Extensions" -PublicConfiguration $P1 -PrivateConfiguration $P2; + - Description + This command adds a cloud service to a deployment for a specified role. + + - -----------Description + - Unknown - - + Get-AzureServiceExtension + + + + Remove-AzureServiceExtension + - - + - Set-AzureVMCustomScriptExtension + Set-AzureServiceRemoteDesktopExtension - Set Azure VM Custom Script Extension Information. + Enables remote desktop extension on specified role(s) or all roles on a deployed service or at deployment. - - Set - AzureVMCustomScriptExtension - - - - - Set Azure VM Custom Script Extension Information. - - - - Set-AzureVMCustomScriptExtension - - ReferenceName - - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - - String - - - Version - - The Extension Version. - - String - - - ContainerName - - The container name within the storage account. - - String - - - FileName - - The names of the blob files in the specified container. - - String[] - - - StorageAccountName - - The storage account name in the current subscription. - - String - - - StorageEndpointSuffix - - The storage service endpoint. - - String - - - StorageAccountKey - - The storage account key - - String - - - Run - - The command to run by the extension on the VM, currently only "powershell.exe" is supported. - - String - - - Argument - - Argument for the command to run on the VM. - - String - - - ForceUpdate + + Set + AzureServiceRemoteDesktopExtension + + + + The Set-AzureServiceRemoteDesktopExtension cmdlet enables remote desktop extension on specified roles or all roles on a deployed service or at deployment. + + + + Set-AzureServiceRemoteDesktopExtension + + ServiceName - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the Azure service name of the deployment. + String - - VM + + Slot - The persistent VM object. + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production, Staging. - IPersistentVM + + Production + Staging + - - - Set-AzureVMCustomScriptExtension - - ReferenceName + + Role - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified, the remote desktop configuration is applied as the default configuration for all roles. - String + String[] - - Version + + CertificateThumbprint - The Extension Version. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String - - Disable - - To Set the Extension State to 'Disable'. - - SwitchParameter - - - ForceUpdate + + ThumbprintAlgorithm - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. + String - - VM + + Credential - The persistent VM object. + Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - IPersistentVM + PSCredential - - - Set-AzureVMCustomScriptExtension - - ReferenceName + + Expiration - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies a date time object that allows the user to specify when the user account expires. - String + DateTime - + Version - The Extension Version. + Specifies the extension version. - String + String - - Uninstall + + Profile - Not Specified + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - ForceUpdate + + + Set-AzureServiceRemoteDesktopExtension + + ServiceName - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the Azure service name of the deployment. + String - - VM + + Slot - The persistent VM object. + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production, Staging. - IPersistentVM + + Production + Staging + - - - Set-AzureVMCustomScriptExtension - - ReferenceName + + Role - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified, the remote desktop configuration is applied as the default configuration for all roles. - String + String[] - - Version + + X509Certificate - The Extension Version. + Specifies an x509 certificate that is automatically uploaded to the cloud service and used for encrypting the private configuration of the extension. - String + X509Certificate2 - - FileUri + + ThumbprintAlgorithm - The URLs of the blob files. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String[] + String - - Run + + Credential - The command to run by the extension on the VM, currently only "powershell.exe" is supported. + Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - String + PSCredential - - Argument + + Expiration - Argument for the command to run on the VM. + Specifies a date time object that allows the user to specify when the user account expires. - String + DateTime - - ForceUpdate + + Version - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the extension version. + String - - VM + + Profile - The persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - - ReferenceName + + CertificateThumbprint - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies a certificate thumbprint to use to encrypt the private configuration. This certificate has to already exist in the certificate store. If you do not specify a certificate, this cmdlet creates a certificate. String String - - + none - - Version + + Credential - The Extension Version. + Specifies the credentials to enable for remote desktop. Credentials include a user name and password. - String + PSCredential - String + PSCredential - - + none - - ContainerName + + Expiration - The container name within the storage account. + Specifies a date time object that allows the user to specify when the user account expires. - String + DateTime - String + DateTime - - + none - - FileName + + Profile - The names of the blob files in the specified container. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String[] + AzureProfile - String[] + AzureProfile - - + none - - StorageAccountName + + Role - The storage account name in the current subscription. + Specifies an optional array of roles for which to specify the remote desktop configuration. If this parameter is not specified, the remote desktop configuration is applied as the default configuration for all roles. - String + String[] - String + String[] - - + none - - StorageEndpointSuffix + + ServiceName - The storage service endpoint. + Specifies the Azure service name of the deployment. - String + String String - - + none - - StorageAccountKey + + Slot - The storage account key + Specifies the environment of the deployment to modify. The acceptable values for this parameter are: Production, Staging. - String + String String - - + none - - Run + + ThumbprintAlgorithm - The command to run by the extension on the VM, currently only "powershell.exe" is supported. + Specifies a thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1. - String + String String - - + none - - Argument + + Version - Argument for the command to run on the VM. + Specifies the extension version. - String + String String - - + none - - VM + + X509Certificate - The persistent VM object. + Specifies an x509 certificate that is automatically uploaded to the cloud service and used for encrypting the private configuration of the extension. - IPersistentVM + X509Certificate2 - IPersistentVM + X509Certificate2 - - + none - - Disable + + + + + + + + + + + + - To Set the Extension State to 'Disable'. + + - SwitchParameter + + + + - SwitchParameter + + + + + + + + + + + + + + + + + + + Example 1: Enable remote desktop extension + + + + + PS C:\>Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds + + + This command enables the remote desktop extension for the specified service. + + + + + + + + + + + Example 2: Enable remote desktop extension for a specified role + + + + + PS C:\>Set-AzureServiceRemoteDesktopExtension -ServiceName $svc -Credentials $creds -Role "WebRole1" + + + This command enables the remote desktop extension for the specified service and role. + + + + + + + + + + + + + Get-AzureServiceRemoteDesktopExtension + + + + + + + Set-AzureService + + Sets or updates the label and description of the specified Microsoft Azure service. + + + + + Set + AzureService + + + + The Set-AzureService cmdlet assigns a label and description to a service in the current subscription. + + + + Set-AzureService + + ServiceName + + Specifies the name of the Azure service to update. + + String + + + Label + + Specifies a label for the Azure service. The label may be up to 100 characters in length. + + String + + + Description + + Specifies a description for the Azure service. The description may be up to 1024 characters in length. + + String + + + ReverseDnsFqdn + + Specifies the fully qualified domain name for reverse DNS. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + + + Description + + Specifies a description for the Azure service. The description may be up to 1024 characters in length. + + String + + String - - + none - - Uninstall + + Label - Not Specified + Specifies a label for the Azure service. The label may be up to 100 characters in length. - SwitchParameter + String - SwitchParameter + String - - + none - - FileUri + + Profile - The URLs of the blob files. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String[] + AzureProfile - String[] + AzureProfile - - + none - - ForceUpdate + + ReverseDnsFqdn - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the fully qualified domain name for reverse DNS. - SwitchParameter + String - SwitchParameter + String - - + none - - PipelineVariable + + ServiceName - Not Specified + Specifies the name of the Azure service to update. - string + String - string + String - - + none @@ -32707,290 +33830,146 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - - - + ManagementOperationContext + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> $x = Set-AzureVMCustomScriptExtension -VM $x -ContainerName 'test' -FileName 'script1.ps1','script2.ps1' -Run 'script1.ps1' -Argument 'arg1 arg2'; - - New-AzureVM -Location 'West US' -ServiceName $svc -VM $x; - - Description - - - - ----------- - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Update the label and description for a service - PS C:\> Set-AzureVMCustomScriptExtension -VM $vm -FileUri 'http://foo1.blob.core.windows.net/bar/script1.ps1','http://foo2.blob.core.windows.net/baz/script2.ps1' -Run 'script1.ps1' -Argument 'arg1 arg2'; - - Update-AzureVM -ServiceName $svc -Name $name -VM vm; + PS C:\> C:\PS>Set-AzureService -ServiceName "MySvc1" -Label "MyTestSvc1" -Description "My service for testing out new configurations" + - Description + This command sets the label to "MyTestSvc1" and the description to "My service for testing out new configurations" for the MyTestSvc1 service. + + - ----------- + - Unknown - - + Get-AzureService + + + + New-AzureService + - - + - Set-AzureVMDiagnosticsExtension + Set-AzureStaticVNetIP - - + Sets the static VNet IP address information for a virtual machine object. Set - AzureVMDiagnosticsExtension + AzureStaticVNetIP - - - + The Set-AzureStaticVNetIP cmdlet sets the static virtual network (VNet) IP address information for a virtual machine object. - Set-AzureVMDiagnosticsExtension - - DiagnosticsConfigurationPath - - - - - String - - - StorageContext - - - - - AzureStorageContext - - - Version - - - - - String - - - Disable - - - - - SwitchParameter - - - VM - - - - - IPersistentVM - - - - Set-AzureVMDiagnosticsExtension - - DiagnosticsConfigurationPath - - - - - String - - - StorageContext - - - - - AzureStorageContext - - - Version + Set-AzureStaticVNetIP + + IPAddress - - + Specifies the static VNet IP address String - - Disable - - - - - SwitchParameter - - - ReferenceName + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - + VM - - + Specifies a persistent virtual machine object for which to set the static VNet IP address. IPersistentVM - - DiagnosticsConfigurationPath - - - - - String - - String - - - - - - - StorageContext - - - - - AzureStorageContext - - AzureStorageContext - - - - - - - Version + + IPAddress - - + Specifies the static VNet IP address String String - - + none - - Disable + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - + VM - - + Specifies a persistent virtual machine object for which to set the static VNet IP address. IPersistentVM IPersistentVM - - - - - ReferenceName - - - - - String - - String - - - - + none @@ -32998,13 +33977,15 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + @@ -33013,381 +33994,456 @@ PS C:\> Set-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + + + Example 1: Set the virtual network IP address associated with a virtual machine + + + + + PS C:\># Prerequisite: VNet has been set up with SubNet + # Set-AzureVNetConfig -ConfigurationPath $vnetConfigPath; + + $vm = New-AzureVMConfig -Name $vmname -ImageName $img -InstanceSize $sz | Add-AzureProvisioningConfig -Windows -Password $pwd -AdminUsername $usr; + $vm = Set-AzureSubNet -VM $vm -SubNetNames $sn; + Set-AzureStaticVNetIP -IPAddress $ip -VM $vm; + New-AzureVM -ServiceName $svc -VMs $vm -VNetName $vnetName -Location $loc; + + + The first command sets the configuration path for a virtual network. + The second command creates a virtual machine configuration. + The third command sets the subnet for the virtual machine. + The fourth command sets the IP address for the virtual machine. + The fifth command creates a virtual machine using the virtual machine. + + + + + + + + + + + Get-AzureStaticVNetIP + + + + Test-AzureStaticVNetIP + + - - + - Set-AzureVMDscExtension - - Configure the Windows PowerShell Desired State Configuration extension on a VM. - - - - - Set - AzureVMDscExtension - - - - - Configure the Windows PowerShell Desired State Configuration extension on a VM. - - - - Set-AzureVMDscExtension - - ReferenceName - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - - String - - - ConfigurationArgument - - A hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. -Supported types for values include: primitive types, string, array and PSCredential. - - Hashtable - - - ConfigurationDataPath - - The path to a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. - - String - - - ConfigurationArchive - - The name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. - - String - - - ConfigurationName + Set-AzureStorageAccount + + Updates the properties of a storage account in an Azure subscription. + + + + + Set + AzureStorageAccount + + + + The Set-AzureStorageAccount cmdlet updates the properties of an Azure storage account in the current subscription. Properties that can be set are: Label, Description, Type and GeoReplicationEnabled. + + + + Set-AzureStorageAccount + + StorageAccountName - Name of the configuration script or module that will be invoked by the DSC Extension. - -The value of this parameter must be the name of one of the configurations functions contained in the scripts or modules packaged in the ConfigurationArchive. - -If omitted, this parameter will default to the name of the file given by the ConfigurationArchive parameter, excluding any extension, for example if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName will be "SalesWebSite". + Specifies the name of the storage account that this cmdlet modifies. String - - ContainerName + + Description - Name of the Azure Storage Container where the ConfigurationArchive is located. + Specifies a description for the storage account. The description may be up to 1024 characters long. - String + String - - Force + + GeoReplicationEnabled - By default Set-AzureVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them. + Specifies whether the storage account is created with the geo-replication enabled. - SwitchParameter + Boolean - - StorageContext + + Label - The Azure Storage Context that provides the security settings used to access the configuration script. This context should provide read access to the container specified by ContainerName. + Specifies a label for the storage account. The label may be up to 100 characters long. - AzureStorageContext + String - - Version + + Profile - The specific version of the DSC Extension to use. If not given, it will default to "1.*" + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - StorageEndpointSuffix + + + Set-AzureStorageAccount + + StorageAccountName - The DNS endpoint suffix for all storage services, e.g. "core.windows.net". + Specifies the name of the storage account that this cmdlet modifies. String - - VM - - The persistent VM object. - - IPersistentVM - - - DataCollection + + Description - Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + Specifies a description for the storage account. The description may be up to 1024 characters long. - string + String - - WhatIf + + Label - Describes what would happen if you executed the command without actually executing the command. + Specifies a label for the storage account. The label may be up to 100 characters long. - SwitchParameter + String - - Confirm + + Profile - Prompts you for confirmation before executing the command. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - WmfVersion + + Type - Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". -A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. -A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" + Specifies the type of the storage account. Valid values are: + +-- Standard_LRS +-- Standard_ZRS +-- Standard_GRS +-- Standard_RAGRS +-- Premium_LRS + +If this parameter is not specified, the default value is Standard_GRS. + The effect of specifying the GeoReplicationEnabled parameter is the same as specifying Standard_GRS in the Type parameter. + + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. - string + String - - ReferenceName + + Description - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies a description for the storage account. The description may be up to 1024 characters long. - String + String String - - + none - - ConfigurationArgument + + GeoReplicationEnabled - A hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. -Supported types for values include: primitive types, string, array and PSCredential. + Specifies whether the storage account is created with the geo-replication enabled. - Hashtable + Boolean - Hashtable + Boolean - - + none - - ConfigurationDataPath + + Label - The path to a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. + Specifies a label for the storage account. The label may be up to 100 characters long. - String + String String - - + none - - ConfigurationArchive + + Profile - The name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - String + AzureProfile - - + none - - ConfigurationName + + StorageAccountName - Name of the configuration script or module that will be invoked by the DSC Extension. - -The value of this parameter must be the name of one of the configurations functions contained in the scripts or modules packaged in the ConfigurationArchive. - -If omitted, this parameter will default to the name of the file given by the ConfigurationArchive parameter, excluding any extension, for example if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName will be "SalesWebSite". + Specifies the name of the storage account that this cmdlet modifies. String String - - + none - - ContainerName + + Type - Name of the Azure Storage Container where the ConfigurationArchive is located. + Specifies the type of the storage account. Valid values are: + +-- Standard_LRS +-- Standard_ZRS +-- Standard_GRS +-- Standard_RAGRS +-- Premium_LRS + +If this parameter is not specified, the default value is Standard_GRS. + The effect of specifying the GeoReplicationEnabled parameter is the same as specifying Standard_GRS in the Type parameter. + + Standard_ZRS or Premium_LRS accounts cannot be changed to other account types, and vice versa. - String + String String - WindowsPowerShellDSC + none - - Force - - By default Set-AzureVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them. - - SwitchParameter + + + - SwitchParameter - + + + + + + + - - - - - StorageContext - The Azure Storage Context that provides the security settings used to access the configuration script. This context should provide read access to the container specified by ContainerName. + + - AzureStorageContext + + + + - AzureStorageContext - + + + + + + + - - - - - Version - The specific version of the DSC Extension to use. If not given, it will default to "1.*" + + - String + + + + + + + Example 1: Update the label for a storage account + + + + + PS C:\>Set-AzureStorageAccount -StorageAccountName "ContosoStorage01" -Label "ContosoAccnt" -Description "Contoso storage account" + + + This command updates the Label and Description properties for the storage account named ContosoStorage01. + + + + + + + + + + + Example 2: Enable geo-replication for a storage account + + + + + PS C:\>Set-AzureStorageAccount -StorageAccountName "ContosoStorage01" -GeoReplicationEnabled $False + + + This command sets the GeoReplicationEnabled property to $False for the storage account named ContosoStorage01. + + + + + + + + + + + Example 3: Disable geo-replication for a storage account + + + + + PS C:\>Set-AzureStorageAccount -StorageAccountName "ContosoStorage01" -GeoReplicationEnabled $True + + + This command sets the GeoReplicationEnabled property to $True for the storage account named ContosoStorage01. + + + + + + + + + + + + + Get-AzureStorageAccount + + + + New-AzureStorageAccount + + + + Remove-AzureStorageAccount + + + + + + + Set-AzureSubnet + + Defines the subnet list for an Azure virtual machine. + + + + + Set + AzureSubnet + + + + The Set-AzureSubnet cmdlet sets the subnet list for a virtual machine configuration. Use with New-AzureVM to set the subnets for a virtual machine. + + + + Set-AzureSubnet + + SubnetNames + + Specifies an array that contains the list of subnet names. + + String[] + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the virtual machine object. + + IPersistentVM + + + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - String + AzureProfile - 1.* + none - - StorageEndpointSuffix + + SubnetNames - The DNS endpoint suffix for all storage services, e.g. "core.windows.net". + Specifies an array that contains the list of subnet names. - String + String[] - String + String[] - - + none - + VM - The persistent VM object. + Specifies the virtual machine object. IPersistentVM IPersistentVM - - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. - - SwitchParameter - - SwitchParameter - - - - - - - Confirm - - Prompts you for confirmation before executing the command. - - SwitchParameter - - SwitchParameter - - - - - - - WmfVersion - - Specifies the version of the Windows Management Framework (WMF) to install on the VM. The DSC Azure Extension depends on DSC features that are only available in the WMF updates. This parameter specifies which version of the update to install on the VM. The possible values are "4.0","latest" and "5.0PP". -A value of "4.0" will install KB3000850 (http://support.microsoft.com/kb/3000850) on Windows 8.1 or Windows Server 2012 R2, or WMF 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=40855) on other versions of Windows if a newer version isnt already installed. -A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.microsoft.com/fwlink/?LinkId=398175). A value of "latest" will install the latest WMF, currently WMF 5.0PP. The default value is "latest" - - string - - string - - - latest + none - - DataCollection - - Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable - - string - - string - - - - - + + - - + + + @@ -33396,580 +34452,323 @@ A value of "5.0PP" will install the latest release of WMF 5.0PP (http://go.micro - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Set-AzureVMDscExtension -VM $vm -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Path = 'C:\MyDirectory' } - -DeploymentName : my-vm-svc -Name : my-vm -Label : -VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM -InstanceStatus : ReadyRole -IpAddress : 10.10.10.10 -InstanceStateDetails : -PowerState : Started -InstanceErrorCode : -InstanceFaultDomain : 0 -InstanceName : my-vm -InstanceUpgradeDomain : 0 -InstanceSize : Small -AvailabilitySetName : -DNSName : http://my-vm-svc.cloudapp.net/ -Status : ReadyRole -GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus -ResourceExtensionStatusList : {Microsoft.Compute.BGInfo} -PublicIPAddress : -PublicIPName : -ServiceName : my-vm-svc -OperationDescription : Get-AzureVM -OperationId : a0217a7af900c1f8a212299a3333cdbd6 -OperationStatus : OK - - Description - - - - -----------This command configures the DSC extension on a VM. - -The "MyConfiguration.ps1.zip" package must have been previously uploaded to Azure storage using the Publish-AzureVMDscConfiguration command and includes the "MyConfiguration.ps1" script and the modules it depends on. - -The "MyConfiguration" argument indicates the specific DSC configuration within the script to execute. The -ConfigurationArgument parameter specifies a hashtable with the arguments that will be passed to the configuration function. - - - - - -------------------------- EXAMPLE 2 -------------------------- + Example 1: Add a subnet to a virtual machine configuration - PS C:\> $vm | Set-AzureVMDscExtension -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Credential = Get-Credential } -ConfigurationDataPath MyConfigurationData.psd1 - - -DeploymentName : my-vm-svc -Name : my-vm -Label : -VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM -InstanceStatus : ReadyRole -IpAddress : 10.10.10.10 -InstanceStateDetails : -PowerState : Started -InstanceErrorCode : -InstanceFaultDomain : 0 -InstanceName : my-vm -InstanceUpgradeDomain : 0 -InstanceSize : Small -AvailabilitySetName : -DNSName : http://my-vm-svc.cloudapp.net/ -Status : ReadyRole -GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus -ResourceExtensionStatusList : {Microsoft.Compute.BGInfo, Microsoft.Powershell.DSC} -PublicIPAddress : -PublicIPName : -ServiceName : my-vm-svc -OperationDescription : Get-AzureVM -OperationId : a0217a7af900c1f8a212299a3333cdbd7 -OperationStatus : OK + PS C:\>New-AzureVMConfig -Name "VirtualMachine04" -ImageName $image -InstanceSize "Small" | Add-AzureProvisioningConfig -Windows -Password "password" | Set-AzureSubnet "PubSubnet","PrivSubnet" | New-AzureVM -ServiceName "ContosoService03" + - Description + This command adds a subnet to the virtual machine configuration, and then creates the virtual machine named VirtualMachine04. + + - -----------You can pass -VM parameter from the pipeline. - --ConfigurationArgument parameter supports PSCredential as a value. - --ConfigurationDataPath parameter takes path to .psd1 file with ConfigurationData hashtable. + - Unknown - - + Get-AzureVM + + + + New-AzureVM + + + + Update-AzureVM + - - + - Set-AzureVMExtension + Set-AzureVMAccessExtension - This cmdlet sets resource extensions for VMs. + Sets the VMAccess extension for a virtual machine. Set - AzureVMExtension + AzureVMAccessExtension - - This cmdlet sets resource extensions for VMs. + The Set-AzureVMAccessExtension cmdlet sets the VMAccess extension for the virtual machine. - Set-AzureVMExtension - - ExtensionName - - The Extension Name. - - String - - - Publisher - - The Extension's Publisher. - - String - - - Version + Set-AzureVMAccessExtension + + Disable - The Extension Version. + Indicates that this cmdlet sets the Extension State to Disable. - String - + ReferenceName - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - - String - - - PublicConfiguration - - The public configuration text. - - String - - - PrivateConfiguration - - The private configuration text. + Specifies the reference name of the access extension. + This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - String + String - - Disable + + Version - To Set the Extension State to 'Disable'. + Specifies the version of the extension. - SwitchParameter + String - - Uninstall + + ForceUpdate - Not Specified + Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. - SwitchParameter - - ForceUpdate + + Profile - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + AzureProfile - + VM - - + Specifies the persistent virtual machine object. IPersistentVM - Set-AzureVMExtension - - ExtensionName - - The Extension Name. - - String - - - Publisher + Set-AzureVMAccessExtension + + UserName - The Extension's Publisher. + Specifies the user name that this cmdlet uses to reset the virtual machine's credential. - String + String - - Version + + Password - The Extension Version. + Specifies the password for resetting the virtual machine's credential. - String + String - + ReferenceName - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - - String - - - PublicConfigPath - - Not Specified - - String - - - PrivateConfigPath - - Not Specified + Specifies the reference name of the access extension. + This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - String + String - - Disable + + Version - To Set the Extension State to 'Disable'. + Specifies the version of the extension. - SwitchParameter + String - - Uninstall + + ForceUpdate - Not Specified + Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. - SwitchParameter - - ForceUpdate + + Profile - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + AzureProfile - + VM - - + Specifies the persistent virtual machine object. IPersistentVM - Set-AzureVMExtension - - ReferenceName - - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - - String - - - PublicConfigPath - - Not Specified - - String - - - PrivateConfigPath - - Not Specified - - String - - - Disable - - To Set the Extension State to 'Disable'. - - SwitchParameter - - + Set-AzureVMAccessExtension + Uninstall - Not Specified - - SwitchParameter - - - ForceUpdate - - Re-apply a configuration to an extension when the configuration has not been updated. - - - - VM - - - + Indicates whether this cmdlet uninstalls the access extension. - IPersistentVM - - - Set-AzureVMExtension - + ReferenceName - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. - - String - - - PublicConfiguration - - The public configuration text. - - String - - - PrivateConfiguration - - The private configuration text. + Specifies the reference name of the access extension. + This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - String + String - - Disable + + Version - To Set the Extension State to 'Disable'. + Specifies the version of the extension. - SwitchParameter + String - - Uninstall + + ForceUpdate - Not Specified + Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. - SwitchParameter - - ForceUpdate + + Profile - Re-apply a configuration to an extension when the configuration has not been updated. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + AzureProfile - + VM - - + Specifies the persistent virtual machine object. IPersistentVM - - ExtensionName - - The Extension Name. - - String - - String - - - - - - - Publisher - - The Extension's Publisher. - - String - - String - - - - - - - Version - - The Extension Version. - - String - - String - - - - - - - ReferenceName + + Disable - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Indicates that this cmdlet sets the Extension State to Disable. - String + SwitchParameter - String + SwitchParameter - - + none - - PublicConfiguration + + ForceUpdate - The public configuration text. + Indicates that this cmdlet reapplies a configuration to an extension when the configuration has not been updated. - String + SwitchParameter - String + SwitchParameter - - + none - - PrivateConfiguration + + Password - The private configuration text. + Specifies the password for resetting the virtual machine's credential. - String + String String - - + none - - Disable + + Profile - To Set the Extension State to 'Disable'. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - SwitchParameter + AzureProfile - - + none - - Uninstall + + ReferenceName - Not Specified + Specifies the reference name of the access extension. + This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - SwitchParameter + String - SwitchParameter + String - - + none - - VM + + Uninstall - - + Indicates whether this cmdlet uninstalls the access extension. - IPersistentVM + SwitchParameter - IPersistentVM + SwitchParameter - - + none - - PublicConfigPath + + UserName - Not Specified + Specifies the user name that this cmdlet uses to reset the virtual machine's credential. - String + String String - - + none - - PrivateConfigPath + + Version - Not Specified + Specifies the version of the extension. - String + String String - - - - - ForceUpdate - - Re-apply a configuration to an extension when the configuration has not been updated. - - SwitchParameter - - SwitchParameter - - - - + none - - PipelineVariable + + VM - Not Specified + Specifies the persistent virtual machine object. - string + IPersistentVM - string + IPersistentVM - - + none @@ -33977,13 +34776,15 @@ OperationStatus : OK - + + - - + + + @@ -33992,317 +34793,219 @@ OperationStatus : OK - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Set the VMAccess extension applied to a specified virtual machine - PS C:\> + PS C:\>Set-AzureVMAccessExtension -VM $VM -UserName $User -Password $PWD; + - Description + This command sets the VMAccess extension applied to the specified virtual machine as stored in the variable $VM. + + - -----------Description + - Unknown - - + Get-AzureVMAccessExtension + + + + Remove-AzureVMAccessExtension + - - + - Set-AzureVMImageDataDiskConfig + Set-AzureVMBGInfoExtension - Allows you to update the Data Disk properties on the VM Image + Sets the BGInfo extension for a virtual machine. Set - AzureVMImageDataDiskConfig + AzureVMBGInfoExtension - - - + The Set-AzureVMBGInfoExtension cmdlet sets the BGInfo extension for a virtual machine. - Set-AzureVMImageDataDiskConfig - - DiskConfig + Set-AzureVMBGInfoExtension + + Disable - The disk config object that encapsulates the OS Disk and Data Disk objects. + Indicates that this cmdlet disables the extension state. - VirtualMachineImageDiskConfigSet - - DataDiskName + + ReferenceName - - + Specifies the reference name of the BGInfo extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. You can specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned by the Get-AzureVM cmdlet. - String + String - - Lun + + Version - - + Specifies the version of the BGInfo extension. - Int32 + String - - HostCaching + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM - - - - DiskConfig - - The disk config object that encapsulates the OS Disk and Data Disk objects. - - VirtualMachineImageDiskConfigSet - - VirtualMachineImageDiskConfigSet - - - - - - - DataDiskName - - - - - String - - String - - - - - - - Lun - - - - - Int32 - - Int32 - - - - - - - HostCaching - - - - - String - - String - - - - - - - - - - - - + + Set-AzureVMBGInfoExtension + + Uninstall - - + Indicates that this cmdlet uninstalls the BGInfo extension. - - - - - - - - - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - + + + ReferenceName - - + Specifies the reference name of the BGInfo extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. You can specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned by the Get-AzureVM cmdlet. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> $s = New-AzureDiskConfigSet - # returns DiskConfigSet object; - - $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite - # returns DiskConfigSet object; - - $s = Set-AzureDataDiskConfig -DiskConfig $s -Name 'test' -HostCaching 'ReadWrite' -LUN 0 - # returns DiskConfigSet object - - # Final step - Update the VM Image - Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1 -DiskConfigSet $s; - - # OR - - $s | Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1; - - Description - - - - ----------- - - - - - - - Unknown - - - - - - - - - Set-AzureVMImageOSDiskConfig - - Allows you to update the OS Disk properties on the VM Image - - - - - Set - AzureVMImageOSDiskConfig - - - - - - - - - - Set-AzureVMImageOSDiskConfig - - DiskConfig + String + + + Version - - + Specifies the version of the BGInfo extension. - VirtualMachineImageDiskConfigSet + String - - HostCaching + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM - - DiskConfig + + Disable - - + Indicates that this cmdlet disables the extension state. - VirtualMachineImageDiskConfigSet + SwitchParameter - VirtualMachineImageDiskConfigSet + SwitchParameter - - + none - - HostCaching + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile + + AzureProfile + + + none + + + ReferenceName + + Specifies the reference name of the BGInfo extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. You can specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned by the Get-AzureVM cmdlet. + + String + + String + + + none + + + Uninstall + + Indicates that this cmdlet uninstalls the BGInfo extension. + + SwitchParameter + + SwitchParameter + + + none + + + Version + + Specifies the version of the BGInfo extension. + + String String - - + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM + + + none @@ -34310,401 +35013,412 @@ OperationStatus : OK - + + - - + + + - Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet - + + + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Set the BGInfo extension for a virtual machine - PS C:\> $s = New-AzureDiskConfigSet - # returns DiskConfigSet object; - - $s = Set-AzureOSDiskConfig -DiskConfig $s -HostCaching ReadWrite - # returns DiskConfigSet object; - - $s = Set-AzureDataDiskConfig -DiskConfig $s -Name 'test' -HostCaching 'ReadWrite' -LUN 0 - # returns DiskConfigSet object - - # Final step - Update the VM Image - Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1 -DiskConfigSet $s; - - # OR - - $s | Update-AzureVMImage -ImageName testvmimage2 -Label test1 -Description test1; + PS C:\>Set-AzureVMBGInfoExtension -VM $VM + - Description + This command sets the BGInfo extension for the specified virtual machine as stored in the variable $VM. + + - ----------- + - Unknown - - + Get-AzureVMBGInfoExtension + + + + Remove-AzureVMBGInfoExtension + - - + - Set-AzureVMMicrosoftAntimalwareExtension + Set-AzureVMChefExtension - Configures the Microsoft Antimalware extension for a virtual machine. + Adds the Chef extension to the virtual machine. Set - AzureVMMicrosoftAntimalwareExtension + AzureVMChefExtension - - The Set-AzureVMMicrosoftAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a virtual machine. You can enable, disable, or uninstall the extension. + The Set-AzureVMChefExtension cmdlet adds the Chef extension to the virtual machine. - Set-AzureVMMicrosoftAntimalwareExtension - - AntimalwareConfigFile + Set-AzureVMChefExtension + + AutoUpdateChefClient - Specifies the absolute path to the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - -{ "AntimalwareEnabled": true } - String - - Version + + BootstrapOptions - Specifies the extension version as a string. - String + String - - Monitoring + + ChefServerUrl - Specifies whether to collect Microsoft Antimalware events. Valid values are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. - String + String - - StorageContext + + ClientRb - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the full path of the Chef client.rb. - AzureStorageContext + String - - VM + + DeleteChefConfig - Specifies the virtual machine as an IPersistentVM object. + Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - IPersistentVM - - - Set-AzureVMMicrosoftAntimalwareExtension - - AntimalwareConfiguration + + BootstrapVersion - Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - - { "AntimalwareEnabled": true }Microsoft Antimalware JSON configuration sample: - - { - "AntimalwareEnabled": true, - "RealtimeProtectionEnabled": true, - "ScheduledScanSettings": { - "isEnabled": true, - "day": 1, - "time": 120, - "scanType": "Full" - }, - "Exclusions": { - "Extensions": ".ext1;.ext2", - "Paths": "c:\excluded-path-1;c:\excluded-path-2", - "Processes": "excludedproc1.exe;excludedproc2.exe" - } - } - - Notes: - AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value - - RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true - - ScheduledScanSettings: - isEnabled=true/false - day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) - time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) - scanType="Quick" or "Full" (Default is Quick) - Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" - - Exclusions: - Multiple exclusions in the same list are specified by using semicolon delimiters. - If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. + Specifies the version of chef-client to be installed with the extension. - String - - Version + + OrganizationName - Specifies the extension version as a string. + Specifies the organization name of the Chef extension. - String + String - - Monitoring + + Profile - Specifies whether to collect Microsoft Antimalware events. Valid values are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - StorageContext + + RunList - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the Chef node run list. - AzureStorageContext + String - - VM + + ValidationClientName - Specifies the virtual machine as an IPersistentVM object. + + - IPersistentVM + String - - - Set-AzureVMMicrosoftAntimalwareExtension - + Version - Specifies the extension version as a string. + Specifies the version number of the Chef extension. - String + String - - Disable + + ValidationPem - Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. + Specifies the Chef validator .pem file path - SwitchParameter + String - + VM - Specifies the virtual machine as an IPersistentVM object. + Specifies the persistent virtual machine object. IPersistentVM + + Windows + + Indicates that this cmdlet creates a Windows virtual machine. + + - Set-AzureVMMicrosoftAntimalwareExtension - - Uninstall + Set-AzureVMChefExtension + + AutoUpdateChefClient - Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. - SwitchParameter - - VM + + BootstrapOptions - Specifies the virtual machine as an IPersistentVM object. - IPersistentVM + String - - - Set-AzureVMMicrosoftAntimalwareExtension - - Monitoring + + ChefServerUrl - Specifies whether to collect Microsoft Antimalware events. Valid values are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + + String + + + ClientRb + + Specifies the full path of the Chef client.rb. String - - StorageContext + + DeleteChefConfig - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - AzureStorageContext - - NoConfig + + BootstrapVersion + + Specifies the version of chef-client to be installed with the extension. + + + + OrganizationName + + Specifies the organization name of the Chef extension. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + RunList + + Specifies the Chef node run list. + + String + + + ValidationClientName - SwitchParameter + String + + + Version + + Specifies the version number of the Chef extension. + + String + + + Linux + + Indicates that this cmdlet creates a Linux based virtual machine. + + + + ValidationPem + + Specifies the Chef validator .pem file path + + String - + VM - Specifies the virtual machine as an IPersistentVM object. + Specifies the persistent virtual machine object. IPersistentVM - - AntimalwareConfigFile + + AutoUpdateChefClient + + + SwitchParameter + + SwitchParameter + + + none + + + BootstrapOptions + + + String + + String + + + none + + + ChefServerUrl + + + String + + String + + + none + + + ClientRb + + Specifies the full path of the Chef client.rb. + + String + + String + + + none + + + DeleteChefConfig + + Indicates that this cmdlet deletes the Chef configuration on the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + BootstrapVersion - Specifies the absolute path to the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - -{ "AntimalwareEnabled": true } + Specifies the version of chef-client to be installed with the extension. - String + String String none - - Version + + Linux - Specifies the extension version as a string. + Indicates that this cmdlet creates a Linux based virtual machine. - String + SwitchParameter - String + SwitchParameter none - - Monitoring + + OrganizationName - Specifies whether to collect Microsoft Antimalware events. Valid values are: - --- ON. Collect Microsoft Antimalware events to storage context. --- OFF. Do not collect Microsoft Antimalware events. + Specifies the organization name of the Chef extension. - String + String String none - - StorageContext + + Profile - Specifies an Azure storage context for Microsoft Antimalware monitoring. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - AzureStorageContext + AzureProfile - AzureStorageContext + AzureProfile none - - VM + + RunList - Specifies the virtual machine as an IPersistentVM object. + Specifies the Chef node run list. - IPersistentVM + String - IPersistentVM + String none - - AntimalwareConfiguration + + ValidationClientName - Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: - - { "AntimalwareEnabled": true }Microsoft Antimalware JSON configuration sample: - - { - "AntimalwareEnabled": true, - "RealtimeProtectionEnabled": true, - "ScheduledScanSettings": { - "isEnabled": true, - "day": 1, - "time": 120, - "scanType": "Full" - }, - "Exclusions": { - "Extensions": ".ext1;.ext2", - "Paths": "c:\excluded-path-1;c:\excluded-path-2", - "Processes": "excludedproc1.exe;excludedproc2.exe" - } - } - - Notes: - AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value - - RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true - - ScheduledScanSettings: - isEnabled=true/false - day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) - time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) - scanType="Quick" or "Full" (Default is Quick) - Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" - - Exclusions: - Multiple exclusions in the same list are specified by using semicolon delimiters. - If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. + + + + String + + String + + + none + + + ValidationPem + + Specifies the Chef validator .pem file path String @@ -34713,43 +35427,41 @@ OperationStatus : OK none - - Disable + + Version - Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. + Specifies the version number of the Chef extension. - SwitchParameter + String - SwitchParameter + String none - - Uninstall + + VM - Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. + Specifies the persistent virtual machine object. - SwitchParameter + IPersistentVM - SwitchParameter + IPersistentVM none - - NoConfig + + Windows - - + Indicates that this cmdlet creates a Windows virtual machine. - SwitchParameter + SwitchParameter SwitchParameter - - + none @@ -34757,13 +35469,15 @@ OperationStatus : OK - + + - - + + + @@ -34772,285 +35486,546 @@ OperationStatus : OK - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1: Enable the extension by using a configuration file -------------------------- - - - - - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json' | Update-AzureVM - - This command enables the Microsoft Antimalware extension by using a configuration file. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. - - - - The AntimalwareConfigFile parameter specifies a configuration file for the Microsoft Antimalware extension. Set-AzureVMMicrosoftAntimalwareExtension applies the configuration that the file specifies to the virtual machine, and then passes the result to the Update-AzureVM cmdlet to update the virtual machine. - - - - - -------------------------- Example 2: Enable the extension and enable monitoring -------------------------- + Example 1: Add a Chef extension to a Windows virtual machine - PS C:\>$StorageContext = New-AzureStorageContext -StorageAccountName "contosostoragemain" -StorageAccountKey (Get-AzureStorageKey -StorageAccountName "Contosostoragemain").Primary -PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json" -Monitoring ON -StorageContext $StorageContext | Update-AzureVM + PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ClientRb "C:\\client.rb" -RunList "Apache" -Windows; + - The first command creates an AzureStorageContext object by using the New-AzureStorageContext cmdlet, and then stores it in the $StorageContext variable. + This command adds a Chef extension to a Windows virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. + + - The second command enables the Microsoft Antimalware extension, and enables monitoring. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet.The command specifies a value of ON for the Monitoring parameter and specifies the Azure storage context stored in $StorageContext, and then passes the result to the Update-AzureVM cmdlet. + - -------------------------- Example 3: Enable the extension by specifying a configuration object -------------------------- + Example 2: Add a Chef extension to a Windows virtual machine with bootstrapping - PS C:\>$config_string = [IO.File]::ReadAllText('C:\configuration\contosoVM.json') -PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfiguration $config_string | Update-AzureVM + PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -BootstrapOptions '{"chef_node_name":"your_node_name","chef_server_url":"https://api.opscode.com/organizations/some-org", "validation_client_name":"some-org-validator"}' -RunList "Apache" -Windows; + - The first command creates a string object by reading a JSON configuration for the Microsoft Antimalware extension, and then storing it in the $config_string variable. + This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and runs Apache on it. After bootstrapping, the virtual machine refers to the BootstrapOptions specified in JSON format. + + - The AntimalwareConfiguration parameter specifies the configuration information stored in $config_string. Set-AzureVMMicrosoftAntimalwareExtension applies that configuration to the virtual machine, and then passes the result to the Update-AzureVM cmdlet. + - -------------------------- Example 4: Disable the extension -------------------------- + Example 3: Add a Chef extension to a Windows virtual machine and install Apache and GIT - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Disable | Update-AzureVM + PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -ValidationClientName "MyOrg-Validator" -RunList "apache, git" -Windows; + - This command disables the extension without removing it. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. + This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and have Apache and GIT installed. If you do not provide the client.rb, you need to provide the Chef server URL and validation client name. + + - Set-AzureVMMicrosoftAntimalwareExtension disables the Microsoft Antimalware extension for the virtual machine, and then passes the result to Update-AzureVM.To re-enabled the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension cmdlet without specifying the Disable parameter. + - -------------------------- Example 5: Remove the extension -------------------------- + Example 4: Add a Chef extension to a Linux virtual machine - PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Uninstall | Update-AzureVM + PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -OrganizationName "MyOrg" -Linux; + - This command removes the Microsoft Antimalware extension from the virtual machine. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. + This command adds the Chef extension to a Linux virtual machine. When the virtual machine launches, it is bootstrapped with Chef. If you do not provide the client.rb, you need to provide the Chef server URL and organization. + + - Set-AzureVMMicrosoftAntimalwareExtension uninstalls the extension. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. The command passes the result to Update-AzureVM. + - Online Version: - http://go.microsoft.com/fwlink/?LinkID=402844 - - - Get-AzureVM - - - - - Update-AzureVM - - - - - New-AzureStorageContext - - + Get-AzureVMChefExtension + - Get-AzureVMMicrosoftAntimalwareExtension - - + Remove-AzureVMChefExtension + - Remove-AzureVMMicrosoftAntimalwareExtension - - + Azure Service Cmdlets + - - + - Set-AzureVMPuppetExtension + Set-AzureVMCustomScriptExtension - This cmdlet sets the Puppet extension for the VM. + Sets information for an Azure virtual machine custom script extension. Set - AzureVMPuppetExtension + AzureVMCustomScriptExtension - - This cmdlet sets the Puppet extension for the VM. + The Set-AzureVMCustomScriptExtension cmdlet sets information for an Azure virtual machine custom script extension. - Set-AzureVMPuppetExtension - - PuppetMasterServer + Set-AzureVMCustomScriptExtension + + ReferenceName + + Specifies the reference name for the extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + + ForceUpdate + + Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. + + + + Version + + Specifies the version of the custom script extension. + + String + + + ContainerName + + Specifies the container name within the storage account. + + String + + + FileName + + Specifies a string array that contains the names of the blob files in the specified container. + + String[] + + + StorageAccountName + + Specifies the storage account name in the current subscription. + + String + + + StorageEndpointSuffix + + Specifies the storage service endpoint. + + String + + + StorageAccountKey + + Specifies the storage account key + + String + + + Run + + Specifies the command this cmdlet runs by the extension on the virtual machine. Only "powershell.exe" is supported. + + String + + + Argument + + Specifies a string that supplies an argument that this cmdlet runs on the virtual machine. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Set-AzureVMCustomScriptExtension + + ReferenceName + + Specifies the reference name for the extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + + ForceUpdate + + Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. + + + + Version + + Specifies the version of the custom script extension. + + String + + + FileUri + + Specifies a string array that contains the URLs of the blob files. + + String[] + + + Run + + Specifies the command this cmdlet runs by the extension on the virtual machine. Only "powershell.exe" is supported. + + String + + + Argument + + Specifies a string that supplies an argument that this cmdlet runs on the virtual machine. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Set-AzureVMCustomScriptExtension + + ReferenceName + + Specifies the reference name for the extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + + ForceUpdate + + Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. + + + + Version + + Specifies the version of the custom script extension. + + String + + + Disable + + Indicates that this cmdlet disables the extension state. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Set-AzureVMCustomScriptExtension + + ReferenceName + + Specifies the reference name for the extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + + ForceUpdate - The FQDN of puppet master server.. + Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. - String - + Version - The Extension Version. + Specifies the version of the custom script extension. - String + String - - Disable + + Uninstall - To Set the Extension State to 'Disable'. + Indicates that this cmdlet uninstalls the custom script extension from the virtual machine. - SwitchParameter - - ReferenceName + + Profile - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - + VM - The persistent VM object. + Specifies the persistent virtual machine object. IPersistentVM - - PuppetMasterServer + + Argument - The FQDN of puppet master server.. + Specifies a string that supplies an argument that this cmdlet runs on the virtual machine. - String + String String - - + none - - Version + + ContainerName - The Extension Version. + Specifies the container name within the storage account. String String - - + none - + Disable - To Set the Extension State to 'Disable'. + Indicates that this cmdlet disables the extension state. + + SwitchParameter + + SwitchParameter + + + none + + + FileName + + Specifies a string array that contains the names of the blob files in the specified container. + + String[] + + String[] + + + none + + + FileUri + + Specifies a string array that contains the URLs of the blob files. + + String[] + + String[] + + + none + + + ForceUpdate + + Indicates that this cmdlet re-apply a configuration to an extension when the configuration has not been updated. SwitchParameter SwitchParameter - - + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none - + ReferenceName - The extension's reference name. - - This is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the VM for the first time. For subsequent updates, user should specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension will be returned using the Get-AzureVM cmdlet. + Specifies the reference name for the extension. + This parameter is a user-defined string that can be used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - String + String String - - + none - - VM + + Run - The persistent VM object. + Specifies the command this cmdlet runs by the extension on the virtual machine. Only "powershell.exe" is supported. - IPersistentVM + String - IPersistentVM + String - - + none - - PipelineVariable + + StorageAccountKey - Not Specified + Specifies the storage account key - string + String - string + String + + + none + + + StorageAccountName + + Specifies the storage account name in the current subscription. + + String + + String + + + none + + + StorageEndpointSuffix + + Specifies the storage service endpoint. + + String + + String + + + none + + + Uninstall + + Indicates that this cmdlet uninstalls the custom script extension from the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + Version + + Specifies the version of the custom script extension. + + String + + String + + + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM - - + none @@ -35058,13 +36033,15 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + @@ -35073,119 +36050,274 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Set information for a virtual machine custom script extension + + + + + PS C:\>$VM = Set-AzureVMCustomScriptExtension -VM $VM -ContainerName "Container01" -FileName "script1.ps1","script2.ps1" -Run "script1.ps1" -Argument "arg1 arg2"; +PS C:\> New-AzureVM -Location "West US" -ServiceName $SVC -VM $VM; + + + This command sets information for a virtual machine custom script extension. + + + + + + + + + + + Example 2: Set information for a virtual machine custom script extension using a file path - PS C:\> + PS C:\>Set-AzureVMCustomScriptExtension -VM $VM -FileUri "http://www.blob.core.contoso.net/bar/script1.ps1","http://www.blob.core.contoso.net/baz/script2.ps1" -Run "script1.ps1" -Argument "arg1 arg2"; +PS C:\> Update-AzureVM -ServiceName $SVC -Name $Name -VM VM; + - Description + This command sets information for a virtual machine custom script extension using multiple file URLs. + + - -----------Description + - Unknown - - + Get-AzureVMCustomScriptExtension + + + + Remove-AzureVMCustomScriptExtension + + + + Get-AzureVM + - - + - Set-AzureVMSize + Set-AzureVMDiagnosticsExtension - Sets the size of a Microsoft Azure virtual machine. + Configures the Azure Diagnostics extension on a virtual machine. Set - AzureVMSize + AzureVMDiagnosticsExtension - - The Set-AzureVMSize cmdlet updates the size of a Virtual Machine. It has two parameters: "InstanceSize", which is the new size of the virtual machine, and "VM", which is a virtual machine object retrieved by using the Get-AzureVM cmdlet. The result of Set-AzureVMSize can be piped to the Update-AzureVM cmdlet or stored in a variable for later use. No actual change is made until Update-AzureVM is executed. - Note: This cmdlet will require the virtual machine to be re-provisioned and it might get a new IP address. + The Set-AzureVMDiagnosticsExtension cmdlet configures the Microsoft Azure Diagnostics extension on a virtual machine. - Set-AzureVMSize - - InstanceSize + Set-AzureVMDiagnosticsExtension + + DiagnosticsConfigurationPath + + Specifies a path for the diagnostics configuration. + + String + + + StorageContext + + Specifies an Azure storage context. + + AzureStorageContext + + + Version + + Specifies the extension version as a string. + + String + + + Disable + + Indicates that this cmdlet disables the diagnostics extension on the virtual machine. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Set-AzureVMDiagnosticsExtension + + DiagnosticsConfigurationPath - Specifies the size of the machine. Supported values are "ExtraSmall", "Small", "Medium", "Large", "ExtraLarge", "A5", "A6",, "A7". + Specifies a path for the diagnostics configuration. String - + + StorageContext + + Specifies an Azure storage context. + + AzureStorageContext + + + Version + + Specifies the extension version as a string. + + String + + + Disable + + Indicates that this cmdlet disables the diagnostics extension on the virtual machine. + + + + ReferenceName + + Specifies the reference name for the diagnostics extension. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - Specifies the virtual machine to set the size of. + Specifies the persistent virtual machine object. IPersistentVM - - InstanceSize + + DiagnosticsConfigurationPath + + Specifies a path for the diagnostics configuration. + + String + + String + + + none + + + Disable + + Indicates that this cmdlet disables the diagnostics extension on the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ReferenceName + + Specifies the reference name for the diagnostics extension. + + String + + String + + + none + + + StorageContext - Specifies the size of the machine. Supported values are "ExtraSmall", "Small", "Medium", "Large", "ExtraLarge", "A5", "A6",, "A7". + Specifies an Azure storage context. - String + AzureStorageContext + + AzureStorageContext + + + none + + + Version + + Specifies the extension version as a string. + + String String - - + none - + VM - Specifies the virtual machine to set the size of. + Specifies the persistent virtual machine object. IPersistentVM IPersistentVM - - + none @@ -35193,13 +36325,15 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + @@ -35208,355 +36342,401 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Create a virtual machine with Azure Diagnostics extension applied - PS C:\> Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" | Set-AzureVMSize "Small" | Update-AzureVM + PS C:\>$VM = New-AzureVMConfig -Name $VM -InstanceSize Small -ImageName $VMImage +PS C:\> $VM = Add-AzureProvisioningConfig -VM $VM -AdminUsername $Username -Password $Password -Windows +PS C:\> $VM = Set-AzureVMDiagnosticsExtension -DiagnosticsConfigurationPath $Config_Path -Version "1.*" -VM $VM -StorageContext $Storage_Context +PS C:\> New-AzureVM -Location $Location -ServiceName $Service_Name -VM $VM + - Description + These commands enable the Azure Diagnostics extension on a virtual machine. + + - -----------This example updates a virtual machine to "Small". size. + - -------------------------- EXAMPLE 2 -------------------------- + Example 2: Enable an Azure Diagnostics extension on an existing virtual machine - PS C:\> $MyVM = Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" | Set-AzureVMSize "Small" - Update-AzureVM -ServiceName "MySvc1" -Name "MyVM3 -VM $MyVM + PS C:\>$VM = Get-AzureVM -ServiceName $Service_Name -Name $VM_Name +PS C:\> $VM_Update = Set-AzureVMDiagnosticsExtension -DiagnosticsConfigurationPath $Config_Path -Version "1.*" -VM $VM -StorageContext $Storage_Context +PS C:\> Update-AzureVM -ServiceName $Service_Name -Name $VM_Name -VM $VM_Update.VM + - Description + The first command uses the Get-AzureVM cmdlet to get a virtual machine. + The second command uses the Set-AzureVMDiagnosticsExtension cmdlet to update the virtual machine configuration to include the Azure Diagnostics extension. + The final command applies the updated configuration to the virtual machine. + + - -----------This example uses an intermediate variable to perform the same function as Example 1. + - Get-AzureVM - - + Get-AzureVMDiagnosticsExtension + + + + Remove-AzureVMDiagnosticsExtension + Update-AzureVM - - + - - + - Set-AzureVNetConfig + Set-AzureVMDscExtension - Updates the virtual network settings for a Microsoft Azure cloud service. + Configures the DSC extension on a virtual machine. Set - AzureVNetConfig + AzureVMDscExtension - - The Set-AzureVNetConfig cmdlet updates the network configuration for the current Microsoft Azure subscription by specifying a path to anetwork configuration file (.netcfg). The network configuration file defines DNS servers and subnets for cloud services within a subscription. + The Set-AzureVMDscExtension cmdlet configures the Desired State Configuration (DSC) extension on a virtual machine. - Set-AzureVNetConfig - - ConfigurationPath + Set-AzureVMDscExtension + + ConfigurationArchive - Specifies the path and file name of a network configuration file (.netcfg). + Specifies the name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. String - - - - - ConfigurationPath - - Specifies the path and file name of a network configuration file (.netcfg). - - String - - String - - - - - - - - - - - - + + ConfigurationArgument - - + Specifies a hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. + The acceptable values for this parameter are: + +-- primitive types +-- string +-- array +-- PSCredential - - - - - - - - - - - + Hashtable + + + ConfigurationDataPath - - + Specifies the path of a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - - This command updates the network configuration of the current Microsoft Azure subscription to that in the local file "c:\temp\MyAzNets.netcfg". - - - - - - - - - - -------------------------- Example 2 -------------------------- - - - - - PS C:\> C:\PS>$subsId = "5bea2bc2-88a5-44b8-abe1-3e76733b6783" - C:\PS>$cert = Get-Item cert:\LocalMachine\MY\82F105B2DA81149204A6257A9A91EC452B8C52C3 - C:\PS>Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" - - This example sets the Microsoft Azure subscription, and then updates the network configuration of that subscription using the configuration defined in the local file "c:\temp\MyAzNets.netcfg". - - - - - - - - - - - - Get-AzureVNetConfig - - - - - Get-AzureVNetSite - - - - - Remove-AzureVNetConfig - - - - - - - - - Set-AzureVNetGateway - - Enables or disables a Microsoft Azure Virtual Network Gateway. - - - - - Set - AzureVNetGateway - - - - - The Set-AzureVNetGateway cmdlet enables or disables a virtual network gateway for the specified Microsoft Azure virtual network. A virtual network gateway is a virtual private network (VPN) endpoint for connecting to a virtual network.The Set-AzureVNetGateway cmdlet supports two functional parameters: Connect and Disconnect. These parameters allow you to enable or disable the VPN connection between the specified LocalNetworkSiteName and the specified virtual network. - - - - Set-AzureVNetGateway - - Connect + String + + + ConfigurationName - Enables the VPN connection between the specified virtual network and the local network site. + Specifies the name of the configuration script or module that is invoked by the DSC extension. + The value of this parameter must be the name of one of the configuration functions contained in the scripts or modules packaged in ConfigurationArchive. + This cmdlet defaults to the name of the file given by the ConfigurationArchive parameter if you omit this parameter, excluding any extension. For instance, if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName is "SalesWebSite". - SwitchParameter + String - - VNetName + + ContainerName - Specifies the name of the Microsoft Azure virtual network to connect or disconnect. + Specifies the name of the Azure storage container where the ConfigurationArchive is located. - String + String - - LocalNetworkSiteName + + Force - Specifies the name of the local network site for which the VPN connection will be enabled or disabled. + Indicates that this cmdlet overwrites existing blobs. - String - - - Set-AzureVNetGateway - - Disconnect + + Profile - Disables the VPN connection between the specified virtual network and the local network site. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SwitchParameter + AzureProfile - - VNetName + + ReferenceName - Specifies the name of the Microsoft Azure virtual network to connect or disconnect. + Specifies a user-defined string that can be used to refer to an extension. This parameter is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - String + String - - LocalNetworkSiteName + + StorageContext - Specifies the name of the local network site for which the VPN connection will be enabled or disabled. + Specifies the Azure storage context that provides the security settings used to access the configuration script. This context provides read access to the container specified by the ContainerName parameter. + + AzureStorageContext + + + StorageEndpointSuffix + + Specifies the DNS endpoint suffix for all storage services, for instance, "core.contoso.net". + + String + + + Version + + Specifies the specific version of the DSC extension to use. The default value is set to "1.*" if this parameter is not specified. + + String + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + + Confirm + + Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. + + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - String - - Connect + + ConfigurationArchive + + Specifies the name of the configuration package (.zip file) that was previously uploaded by Publish-AzureVMDscConfiguration. This parameter must specify only the name of the file, without any path. + + String + + String + + + none + + + ConfigurationArgument + + Specifies a hashtable specifying the arguments to the configuration function. The keys correspond to the parameter names and the values to the parameter values. + The acceptable values for this parameter are: + +-- primitive types +-- string +-- array +-- PSCredential + + Hashtable + + Hashtable + + + none + + + ConfigurationDataPath + + Specifies the path of a .psd1 file that specifies the data for the configuration function. This file must contain a hashtable as described in http://technet.microsoft.com/en-us/library/dn249925.aspx. + + String + + String + + + none + + + ConfigurationName + + Specifies the name of the configuration script or module that is invoked by the DSC extension. + The value of this parameter must be the name of one of the configuration functions contained in the scripts or modules packaged in ConfigurationArchive. + This cmdlet defaults to the name of the file given by the ConfigurationArchive parameter if you omit this parameter, excluding any extension. For instance, if ConfigurationArchive is "SalesWebSite.ps1.zip", the default value for ConfigurationName is "SalesWebSite". + + String + + String + + + none + + + ContainerName + + Specifies the name of the Azure storage container where the ConfigurationArchive is located. + + String + + String + + + none + + + Force - Enables the VPN connection between the specified virtual network and the local network site. + Indicates that this cmdlet overwrites existing blobs. SwitchParameter SwitchParameter - - + none - - VNetName + + Profile - Specifies the name of the Microsoft Azure virtual network to connect or disconnect. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile + + AzureProfile + + + none + + + ReferenceName + + Specifies a user-defined string that can be used to refer to an extension. This parameter is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you should specify the previously used reference name while you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String String - - + none - - LocalNetworkSiteName + + StorageContext - Specifies the name of the local network site for which the VPN connection will be enabled or disabled. + Specifies the Azure storage context that provides the security settings used to access the configuration script. This context provides read access to the container specified by the ContainerName parameter. - String + AzureStorageContext + + AzureStorageContext + + + none + + + StorageEndpointSuffix + + Specifies the DNS endpoint suffix for all storage services, for instance, "core.contoso.net". + + String + + String + + + none + + + Version + + Specifies the specific version of the DSC extension to use. The default value is set to "1.*" if this parameter is not specified. + + String String - - + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM + + + none + + + DataCollection + + Enables or Disables Data Collection in the extension. It is enabled if it is not specified. The value is persisted in the extension between calls. Allowed Values are: Enable and Disable + + string + + string + + + - - Disconnect + + Confirm - Disables the VPN connection between the specified virtual network and the local network site. + Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. SwitchParameter SwitchParameter - - + false - - Test + + WhatIf - - + Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. - switchparameter + SwitchParameter - switchparameter + SwitchParameter - - + false @@ -35564,13 +36744,15 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + @@ -35579,737 +36761,658 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Configure the DSC extension on a virtual machine - PS C:\> Set-AzureVNetGateway -Connect –VnetName "MyProdNet" –LocalNetworkSiteName "MyBranchOffice" + PS C:\>Set-AzureVMDscExtension -VM $VM -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Path = 'C:\MyDirectory' } +DeploymentName : my-vm-svc +Name : my-vm +Label : +VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM +InstanceStatus : ReadyRole +IpAddress : 10.10.10.10 +InstanceStateDetails : +PowerState : Started +InstanceErrorCode : +InstanceFaultDomain : 0 +InstanceName : my-vm +InstanceUpgradeDomain : 0 +InstanceSize : Small +AvailabilitySetName : +DNSName : http://my-vm-svc.cloudapp.net/ +Status : ReadyRole +GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus +ResourceExtensionStatusList : {Contoso.Compute.BGInfo} +PublicIPAddress : +PublicIPName : +ServiceName : my-vm-svc +OperationDescription : Get-AzureVM +OperationId : a0217a7af900c1f8a212299a3333cdbd6 +OperationStatus : OK + - This command enables the virtual network gateway between the Microsoft Azure virtual network, "MyProdNet" and the VPN device for the local network site, "MyBranchOffice". + This command configures the DSC extension on a virtual machine. + The MyConfiguration.ps1.zip package must have been previously uploaded to Azure storage using the Publish-AzureVMDscConfiguration command and includes the MyConfiguration.ps1 script and the modules it depends on. + The MyConfiguration argument indicates the specific DSC configuration within the script to execute. The -ConfigurationArgument parameter specifies a hashtable with the arguments that is passed to the configuration function. + + - - + - -------------------------- Example 2 -------------------------- + Example 2: Configure the DSC extension on a virtual machine using a path to the configuration data - PS C:\> Set-AzureVNetGateway -Disconnect –VnetName "MyProdNet" –LocalNetworkSiteName "MyBranchOffice" + PS C:\>$VM | Set-AzureVMDscExtension -ConfigurationArchive MyConfiguration.ps1.zip -ConfigurationName MyConfiguration -ConfigurationArgument @{ Credential = Get-Credential } -ConfigurationDataPath MyConfigurationData.psd1 +DeploymentName : my-vm-svc +Name : my-vm +Label : +VM : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVM +InstanceStatus : ReadyRole +IpAddress : 10.10.10.10 +InstanceStateDetails : +PowerState : Started +InstanceErrorCode : +InstanceFaultDomain : 0 +InstanceName : my-vm +InstanceUpgradeDomain : 0 +InstanceSize : Small +AvailabilitySetName : +DNSName : http://my-vm-svc.cloudapp.net/ +Status : ReadyRole +GuestAgentStatus : Microsoft.WindowsAzure.Commands.ServiceManagement.Model.PersistentVMModel.GuestAgentStatus +ResourceExtensionStatusList : {Microsoft.Compute.BGInfo, Microsoft.Powershell.DSC} +PublicIPAddress : +PublicIPName : +ServiceName : my-vm-svc +OperationDescription : Get-AzureVM +OperationId : a0217a7af900c1f8a212299a3333cdbd7 +OperationStatus : OK + - This command disables the virtual network gateway between the Microsoft Azure virtual network, "MyProdNet" and the VPN device for the local network site "MyBranchOffice". + This command configures the DSC extension on a virtual machine using a path to the configuration data. + + - - + + + Get-AzureVMDscExtension + + + + Remove-AzureVMDscExtension + + + + Remove-AzureVMDscExtension + + + + Get-AzureVM + + + + Publish-AzureVMDscConfiguration + + - - + - Set-AzureVNetGatewayKey + Set-AzureVMExtension - Sets the IPsec/IKE pre-shared key for the cross premises site-to-site VPN tunnel between the Azure virtual network and your on-premises local site. + Sets resource extensions for virtual machines. Set - AzureVNetGatewayKey + AzureVMExtension - - Th Set-AzureVNetGatewayKey cmdlet sets the IPsec/IKE pre-shared key for the cross premises site-to-site VPN tunnel between the Azure virtual network and your on-premises local site. + The Set-AzureVMExtension cmdlet sets resource extensions for virtual machines. - Set-AzureVNetGatewayKey - - VNetName + Set-AzureVMExtension + + ExtensionName + + Specifies the extension name of the virtual machine. + + String + + + PublicConfigKey + + + String + + + ForceUpdate + + Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. + + + + PrivateConfigKey + + + + + String + + + Publisher + + Specifies the publisher of the extension. + + String + + + Version + + Specifies the extension version. + + String + + + ReferenceName + + Specifies the reference name of the extension. + This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + + PublicConfiguration + + Specifies the public configuration text. + + String + + + PrivateConfiguration + + Specifies the private configuration text. + + String + + + Disable + + Indicates that this cmdlet disables the extension state. + + + + Uninstall + + Indicates that this cmdlet uninstalls the resource extension from the virtual machine. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Set-AzureVMExtension + + PublicConfigKey + + + String + + + PrivateConfigKey + + + + + String + + + ForceUpdate + + Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. + + + + ExtensionName + + Specifies the extension name of the virtual machine. + + String + + + Publisher + + Specifies the publisher of the extension. + + String + + + Version + + Specifies the extension version. + + String + + + ReferenceName + + Specifies the reference name of the extension. + This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + + PublicConfigPath + + Specifies the public configuration path. + + String + + + PrivateConfigPath + + Specifies the private configuration path. + + String + + + Disable + + Indicates that this cmdlet disables the extension state. + + + + Uninstall + + Indicates that this cmdlet uninstalls the resource extension from the virtual machine. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Set-AzureVMExtension + + ForceUpdate - Specifies the name of the Azure virtual network. + Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. - String - - LocalNetworkSiteName + + ReferenceName - Specifies the name of the local network site to which the VPN tunnel connects. + Specifies the reference name of the extension. + This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - String + String - - SharedKey + + PublicConfigPath - Specifies the value of the new IPsec/IKE pre-shared key. The SharedKey is an alphanumeric string of 1-128 letters. + Specifies the public configuration path. - String + String - - - - - VNetName - - Specifies the name of the Azure virtual network. - - String - - String - - - - - - - LocalNetworkSiteName - - Specifies the name of the local network site to which the VPN tunnel connects. - - String - - String - - - - - - - SharedKey - - Specifies the value of the new IPsec/IKE pre-shared key. The SharedKey is an alphanumeric string of 1-128 letters. - - String - - String - - - - - - - - - - - - + + PrivateConfigPath - - + Specifies the private configuration path. - - - - - - - - - - - + String + + + Disable + + Indicates that this cmdlet disables the extension state. + + + + Uninstall + + Indicates that this cmdlet uninstalls the resource extension from the virtual machine. + + + + PublicConfigKey + + + String + + + PrivateConfigKey - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Set-AzureVNetGatewayKey -VNetName "MyAzureVirtualNetwork" -LocalNetworkSiteName "MyOnPremSite" -SharedKey "a1b2c3d4" - - Description - - - - -----------This command sets the IPsec/IKE pre-shared key between your virtual network "MyAzureVirtualNetwork" and the on-premise site "MyOnPremSite" to "a1b2c3d4". - - - - - - - Unknown - - - - - - - - - Set-AzureWalkUpgradeDomain - - Walks the specified upgrade domain. - - - - - Set - AzureWalkUpgradeDomain - - - - - The Set-AzureWalkUpgradeDomain cmdlet initiates the actual upgrade of a Microsoft Azure deployment. The upgrade package and configuration are set by using the Set-AzureDeployment cmdlet with the -Upgrade switch. - - + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + - Set-AzureWalkUpgradeDomain - - ServiceName + Set-AzureVMExtension + + ForceUpdate - Specifies the Microsoft Azure service name to upgrade. + Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. - String - - Slot + + ReferenceName - Specified the environment of the deployment to upgrade. Supported values are "Staging" and "Production". + Specifies the reference name of the extension. + This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - String + String - - DomainNumber + + PublicConfiguration - Specifies the upgrade domain to upgrade. + Specifies the public configuration text. - Int32 + String - - - - - ServiceName - - Specifies the Microsoft Azure service name to upgrade. - - String - - String - - - - - - - Slot - - Specified the environment of the deployment to upgrade. Supported values are "Staging" and "Production". - - String - - String - - - - - - - DomainNumber - - Specifies the upgrade domain to upgrade. - - Int32 - - Int32 - - - - - - - - - - - - + + PrivateConfiguration - - + Specifies the private configuration text. - - - - - - - - - ManagementOperationContext - + String + + + Disable - - + Indicates that this cmdlet disables the extension state. - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> Set-AzureWalkUpgradeDomain –ServiceName "MySvc1" –slot "Production" –UpgradeDomain 2 - - This example initiates the upgrade of Upgrade Domain 2 of the production deployment of the "MySvc1" service - - - - - - - - - - - - - - - - Start-AzureVM - - Starts a Microsoft Azure virtual machine. - - - - - Start - AzureVM - - - - - The Start-AzureVM cmdlet requests the start of a Microsoft Azure virtual machine. - - - - Start-AzureVM - - Name + + + Uninstall - Specifies the name of the virtual machine to start. + Indicates that this cmdlet uninstalls the resource extension from the virtual machine. - String - - ServiceName + + PublicConfigKey + + + String + + + PrivateConfigKey - Specifies the name of the Microsoft Azure service that contains the virtual machine to start. + + - String + String - - - Start-AzureVM - - VM + + Profile - Specifies a virtual machine object that identifies the virtual machine to start. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - PersistentVM + AzureProfile - - ServiceName + + VM - Specifies the name of the Microsoft Azure service that contains the virtual machine to start. + Specifies the persistent virtual machine object. - String + IPersistentVM - - Name + + Disable - Specifies the name of the virtual machine to start. + Indicates that this cmdlet disables the extension state. - String + SwitchParameter - String + SwitchParameter - - + none - - ServiceName + + ExtensionName - Specifies the name of the Microsoft Azure service that contains the virtual machine to start. + Specifies the extension name of the virtual machine. String String - - + none - - VM + + ForceUpdate - Specifies a virtual machine object that identifies the virtual machine to start. + Indicates that this cmdlet re-applies a configuration to an extension when the configuration has not been updated. - PersistentVM + SwitchParameter - PersistentVM + SwitchParameter - - + none - - - + + PrivateConfigKey + + + + + String - - + String - - - - + none + + + PrivateConfigPath + Specifies the private configuration path. - - - - + String - - + String - - - - + none + + + PrivateConfiguration + Specifies the private configuration text. - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Start-AzureVM -ServiceName "myservice1" -Name "MyVM" - - This command starts the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service. - - - - - - - - - - -------------------------- Example 2 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM -ServiceName "myservice1" -Name "DatabaseServer" | Start-AzureVM - - This command retrieves the virtual machine object for the VM whose name is "DatabaseServer" and then requests a start for it. - - - - - - - - - - - - Get-AzureVM - - - - - Remove-AzureVM - - - - - Restart-AzureVM - - - - - Stop-AzureVM - - - - - Update-AzureVM - - - - - - - - - Stop-AzureVM - - Shuts down a Microsoft Azure virtual machine. - - - - - Stop - AzureVM - - - - - The Stop-AzureVM cmdlet requests a shutdown of a virtual machine. - - - - Stop-AzureVM - - Name - - Specifies the name of the virtual machine to shut down. - - Use a wildcard "*" to stop multiple VMs asynchronously. With a wild card, Stop-AzureVM cmdlet calls ShutdownRoles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of ShutdownRole operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx ). - - String - - - StayProvisioned - - Keeps the VM provisioned. - - SwitchParameter - - - Force - - Allows the deallocation of last VM in a deployment. - - SwitchParameter - - - ServiceName - - Specifies the name of the Microsoft Azure service that contains the virtual machine to shut down. - - String - - - - Stop-AzureVM - - VM - - Specifies a virtual machine object that identifies the virtual machine to shut down. - - PersistentVM - - - StayProvisioned - - Keeps the VM provisioned. - - SwitchParameter - - - Force - - Allows the deallocation of last VM in a deployment. - - SwitchParameter - - - ServiceName - - Specifies the name of the Microsoft Azure service that contains the virtual machine to shut down. - - String - - - - - - Name + String + + String + + + none + + + Profile - Specifies the name of the virtual machine to shut down. - - Use a wildcard "*" to stop multiple VMs asynchronously. With a wild card, Stop-AzureVM cmdlet calls ShutdownRoles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of ShutdownRole operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx ). + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile + + AzureProfile + + + none + + + PublicConfigKey + + + String String - - + none - - StayProvisioned + + PublicConfigPath - Keeps the VM provisioned. + Specifies the public configuration path. - SwitchParameter + String - SwitchParameter + String - - + none - - Force + + PublicConfiguration - Allows the deallocation of last VM in a deployment. + Specifies the public configuration text. - SwitchParameter + String - SwitchParameter + String - - + none - - ServiceName + + Publisher - Specifies the name of the Microsoft Azure service that contains the virtual machine to shut down. + Specifies the publisher of the extension. String String - - + none - - VM + + ReferenceName - Specifies a virtual machine object that identifies the virtual machine to shut down. + Specifies the reference name of the extension. + This is a user-defined string that can be used to refer to an extension. You need to specify it when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name while updating the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. - PersistentVM + String - PersistentVM + String - - + none - - PipelineVariable + + Uninstall - Not Specified + Indicates that this cmdlet uninstalls the resource extension from the virtual machine. - string + SwitchParameter - string + SwitchParameter + + + none + + + Version + + Specifies the extension version. + + String + + String + + + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM - - + none @@ -36317,13 +37420,15 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + @@ -36332,321 +37437,216 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Stop-AzureVM -ServiceName "myservice1" -Name "MyVM" - - Description - - - - -----------This command shuts down the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service and deprovisions it. If it is the last VM in deployment, then confirmation pop-up window is displayed with a warning that deprovisioning will cause loss deployment VIP. - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - - - PS C:\> Get-AzureVM -ServiceName "myservice1" -Name "MyVM" | Stop-AzureVM - - Description - - - - -----------This command retrieves the virtual machine object for the VM whose name is "MyVM" and then shuts it down and deprovisions it. If it is the last VM in deployment, then confirmation pop-up window is displayed with a warning that deprovisioning will cause loss deployment VIP. - - - - - -------------------------- EXAMPLE 3 -------------------------- - - - - - PS C:\> Stop-AzureVM -ServiceName "myservice1" -Name "MyVM" -StayProvisioned - - Description - - - - -----------This command shuts down the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service and keeps the VM provisioned. - - - - - -------------------------- EXAMPLE 4 -------------------------- - - - - - PS C:\> Stop-AzureVM -ServiceName "myservice1" -Name "MyVM" -Force - - Description - - - - -----------This command shuts down the "MyVM" virtual machine running in the "myservice1" Microsoft Azure service even if it is the last VM in the deployment. - - - - - -------------------------- EXAMPLE 5 -------------------------- + Example 1: Create a virtual machine with resource extensions applied - PS C:\> Stop-AzureVM -ServiceName "PSTestService" -Name "*" -Force + PS C:\>$X = New-AzureVMConfig -Name $VM -InstanceSize Small -ImageName $IMG;$X = Add-AzureProvisioningConfig -VM $X -Password $PWD -AdminUsername $USR -Windows;$X = Set-AzureVMExtension -VM $X -ExtensionName $Ext1 -Publisher $Publisher -Version $VER -PublicConfiguration $P1 -PrivateConfiguration $P2;$X = Set-AzureVMExtension -VM $X -ExtensionName $Ext2 -Publisher $Publisher -Version $VER -PublicConfiguration $P3 -PrivateConfiguration $P4;New-AzureVM -Location $LOC -ServiceName $SVC -VM $X; + - Description + This command creates a virtual machine with resource extensions applied. + + - -----------This command shuts down multiple VMs asynchronously in the "PSTestService" + - Unknown - - + Get-AzureVMExtension + + + + Remove-AzureVMExtension + + + + Get-AzureVM + - - + - Test-AzureStaticVNetIP + Set-AzureVMImageDataDiskConfig - Test the availability of a static virtual network IP address, and get a list of suggestion if the queried one not available. + Sets the Data Disk properties on the virtual machine image. - Test - AzureStaticVNetIP + Set + AzureVMImageDataDiskConfig - - Test the availability of a static virtual network IP address, and get a list of suggestion if the queried one not available. + The Set-AzureVMImageDataDiskConfig cmdlet sets the Data Disk properties on the virtual machine image. - Test-AzureStaticVNetIP - - VNetName + Set-AzureVMImageDataDiskConfig + + DiskConfig - The Name of a Virtual Network. + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet - - IPAddress + + DataDiskName - The query of static VNet IPAddress. + Specifies the name of the data disk that this cmdlet configures. String - - - - - VNetName - - The Name of a Virtual Network. - - String - - String - - - - - - - IPAddress - - The query of static VNet IPAddress. - - String - - String - - - - - - - - - - - - + + Lun - - + Specifies the slot where the data drive is mounted in the virtual machine. - - - - - - - - - - - + Int32 + + + HostCaching - - + Specifies the host cache attribute for the operating system disk. + Valid values are: + +--ReadOnly +--ReadWrite - - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - Unknown - - - - - - - - - Update-AzureDisk - - Updates the label of a disk in the Microsoft Azure disk repository. - - - - - Update - AzureDisk - - - - - The Update-AzureDisk cmdlet changes the label associated with a disk in the disk repository of the current Microsoft Azure subscription. - - + + ReadOnly + ReadWrite + None + + + - Update-AzureDisk - - DiskName + Set-AzureVMImageDataDiskConfig + + DiskConfig - Specifies the name of the disk in the disk repository. + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet - - Label + + Lun - Specifies the new label of the disk. + Specifies the slot where the data drive is mounted in the virtual machine. - String + Int32 - - ResizedSizeInGB + + HostCaching - - + Specifies the host cache attribute for the operating system disk. + Valid values are: + +--ReadOnly +--ReadWrite + + + ReadOnly + ReadWrite + None + + + + MediaLink + + Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. - int + Uri - - DiskName + + DataDiskName - Specifies the name of the disk in the disk repository. + Specifies the name of the data disk that this cmdlet configures. String String - - + none - - Label + + DiskConfig + + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. + + VirtualMachineImageDiskConfigSet + + VirtualMachineImageDiskConfigSet + + + none + + + HostCaching - Specifies the new label of the disk. + Specifies the host cache attribute for the operating system disk. + Valid values are: + +--ReadOnly +--ReadWrite String String - - + none - - ResizedSizeInGB + + Lun + + Specifies the slot where the data drive is mounted in the virtual machine. + + Int32 + + Int32 + + + none + + + MediaLink - Resizes the underlying blob to the indicated size in GB. + Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. - int + Uri - int + Uri - - + none @@ -36654,163 +37654,246 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - DiskContext - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- + Example 1: Set Data Disk properties on a virtual machine image - PS C:\> C:\PS>Update-AzureDisk –DiskName "MyOSDisk" -Label "DoNotUse" + PS C:\>$Disk = New-AzureDiskConfigSet +PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite +PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -Name "Test" -HostCaching "ReadWrite" -LUN 0 +PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description "Test1" -DiskConfigSet $Disk; + - This command updates the label of the disk named "MyOSDisk" to "DoNotUse". + This command sets data disk properties on a virtual machine then updates the virtual machine image. + + - - + - - - - - - Add-AzureDisk - - - + + + + - Get-AzureDisk - - + Remove-AzureVMImageDataDiskConfig + - Remove-AzureDisk - - + Azure Service Cmdlets + - - + - Update-AzureVM + Set-AzureVMImageOSDiskConfig - Modifies the configuration of a Microsoft Azure virtual machine. + Sets the operating system disk properties on a virtual machine image. - Update - AzureVM + Set + AzureVMImageOSDiskConfig - - The Update-AzureVM cmdlet accepts update information for the specified virtual machine and initiates the update. You can add or remove data disks, modify the cache mode of data or operating system disks, change the network endpoints, or change the size of the virtual machine. + The Set-AzureVMImageOSDiskConfig cmdlet sets the operating system disk properties on a virtual machine image. - Update-AzureVM - - Name + Set-AzureVMImageOSDiskConfig + + DiskConfig - Specifies the name of the virtual machine to be updated. + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet - - VM + + HostCaching - The virtual machine object that includes updated settings. + Specifies the host cache attribute for the operating system disk. + Valid values are: + +--ReadOnly +--ReadWrite - PersistentVM + + ReadOnly + ReadWrite + - - ServiceName + + + Set-AzureVMImageOSDiskConfig + + DiskConfig - Specifies the name of the Microsoft Azure service. + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet + + + HostCaching + + Specifies the host cache attribute for the operating system disk. + Valid values are: + +--ReadOnly +--ReadWrite + + + ReadOnly + ReadWrite + + + + MediaLink + + Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. + + Uri + + + OSState + + Specifies the operating system state for virtual machine image + Valid values are: + +-- Generalized +-- Specialized + The use of this parameter indicates your intent to capture the virtual machine image to Azure. + + + Generalized + Specialized + + + + OS + + Specifies the operating system of the disk configuration. + Valid values are: + +-- Windows +-- Linux + + + Windows + Linux + - - Name + + DiskConfig - Specifies the name of the virtual machine to be updated. + Specifies the disk configuration object that encapsulates the operating system disk and Data Disk objects. - String + VirtualMachineImageDiskConfigSet + + VirtualMachineImageDiskConfigSet + + + none + + + HostCaching + + Specifies the host cache attribute for the operating system disk. + Valid values are: + +--ReadOnly +--ReadWrite + + String String - - + none - - VM + + MediaLink - The virtual machine object that includes updated settings. + Specifies the URI of the location where the new virtual hard drive is created when the new data disk is added. - PersistentVM + Uri - PersistentVM + Uri - - + none - - ServiceName + + OS + + Specifies the operating system of the disk configuration. + Valid values are: + +-- Windows +-- Linux + + String + + String + + + none + + + OSState - Specifies the name of the Microsoft Azure service. + Specifies the operating system state for virtual machine image + Valid values are: + +-- Generalized +-- Specialized + The use of this parameter indicates your intent to capture the virtual machine image to Azure. String String - - + none @@ -36818,428 +37901,490 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - - - + Microsoft.WindowsAzure.Commands.ServiceManagement.Model.VirtualMachineImageDiskConfigSet + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Example 1 -------------------------- - - - - - PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" ` - | Set-AzureVMSize –InstanceSize "Medium" ` - | Update-AzureVM - - This example changes the size of the virtual machine "MyVM3", running in "MySvc1", to "Medium". - - - - - - - - - - -------------------------- Example 2 -------------------------- + Example 1: Set the operating system disk properties on a virtual machine image - PS C:\> C:\PS>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" ` - | Add-AzureDataDisk -CreateNew -MediaLocation "https://MyaccountStore1.blob.core.azure.com/vhds/MyNewDisk.vhd" -DiskSizeInGB 128 -DiskLabel "Data-128" -LUN 0 ` - | Update-AzureVM + PS C:\>$Disk = New-AzureDiskConfigSet +PS C:\> $Disk = Set-AzureOSDiskConfig -DiskConfig $Disk -HostCaching ReadWrite +PS C:\> $Disk = Set-AzureDataDiskConfig -DiskConfig $Disk -Name "Test" -HostCaching "ReadWrite" -LUN 0 +PS C:\> Update-AzureVMImage -ImageName "Image2" -Label "Test1" -Description "Test1" -DiskConfigSet $Disk; + - This example adds a new data disk to the virtual machine "MyVM3", running in "MySvc1". + This example sets the operating system disk properties on a virtual machine image. + + - - + - Get-AzureVM - - - - - New-AzureVMConfig - - - - - Remove-AzureVM - - - - - Restart-AzureVM - - - - - Start-AzureVM - - - - - Stop-AzureVM - - - - - New-AzureVM - - - - - Set-AzureVMSize - - + Remove-AzureVMImageOSDiskConfig + - - + - Update-AzureVMImage + Set-AzureVMMicrosoftAntimalwareExtension - The Update-AzureVMImage cmdlet updates the properties on an OS or VM image in the image repository. It returns an image object with information about the updated image. + Configures the Microsoft Antimalware extension for a virtual machine. - Update - AzureVMImage + Set + AzureVMMicrosoftAntimalwareExtension - - - + The Set-AzureVMMicrosoftAntimalwareExtension cmdlet configures the Microsoft Antimalware extension for a virtual machine. You can enable, disable, or uninstall the extension. - Update-AzureVMImage - - ImageName + Set-AzureVMMicrosoftAntimalwareExtension + + AntimalwareConfigFile + + Specifies the absolute path of the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +{ "AntimalwareEnabled": true } + + String + + + Version + + Specifies the extension version as a string. + + String + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. + The acceptable values for this parameter are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. + + + ON + OFF + + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the virtual machine as an IPersistentVM object. + + IPersistentVM + + + + Set-AzureVMMicrosoftAntimalwareExtension + + AntimalwareConfiguration + + Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: +{ "AntimalwareEnabled": true } + +Microsoft Antimalware JSON configuration sample: + +{ + "AntimalwareEnabled": true, + "RealtimeProtectionEnabled": true, + "ScheduledScanSettings": { + "isEnabled": true, + "day": 1, + "time": 120, + "scanType": "Full" +}, + +"Exclusions": +{ +"Extensions": ".ext1;.ext2", +"Paths": "c:\excluded-path-1;c:\excluded-path-2", +"Processes": "excludedproc1.exe;excludedproc2.exe" +} + +} + +Notes: +AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value + +RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true + +ScheduledScanSettings: +isEnabled=true/false + day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) + time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) + scanType="Quick" or "Full" (Default is Quick) + Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" +Exclusions: +Multiple exclusions in the same list are specified by using semicolon delimiters. + If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. + + String + + + Version + + Specifies the extension version as a string. + + String + + + Monitoring + + Specifies whether to collect Microsoft Antimalware events. + The acceptable values for this parameter are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. + + + ON + OFF + + + + StorageContext + + Specifies an Azure storage context for Microsoft Antimalware monitoring. + + AzureStorageContext + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM - Name of the image to update in the image repository. + Specifies the virtual machine as an IPersistentVM object. - String + IPersistentVM - - Label + + + Set-AzureVMMicrosoftAntimalwareExtension + + Version - The new label of the image. + Specifies the extension version as a string. - String + String - - Eula + + Disable - Specifies the End User License Aggreement, recommended value is a URL. + Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. - String - - Description + + Profile - Specifies the description of the OS image. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - String + AzureProfile - - ImageFamily + + VM - Specifies a value that can be used to group OS or VM images. + Specifies the virtual machine as an IPersistentVM object. - String + IPersistentVM - - PublishedDate + + + Set-AzureVMMicrosoftAntimalwareExtension + + Monitoring - - + Specifies whether to collect Microsoft Antimalware events. + The acceptable values for this parameter are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. - Nullable`1[DateTime] + + ON + OFF + - - PrivacyUri + + StorageContext - Specifies the URI that points to a document that contains the privacy policy related to the OS or VM image. + Specifies an Azure storage context for Microsoft Antimalware monitoring. - Uri + AzureStorageContext - - RecommendedVMSize + + NoConfig - Specifies the size to use for the virtual machine that is created from the OS or VM image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". + + - String - - DiskConfig + + Profile - This is the OS Disk and the Data Disk configuration for the VM Image created using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - VirtualMachineImageDiskConfigSet + AzureProfile - - Language + + VM - Language for the OS in the VM or OS Image + Specifies the virtual machine as an IPersistentVM object. - String + IPersistentVM - - IconUri + + + Set-AzureVMMicrosoftAntimalwareExtension + + Uninstall - Uri to an icon for the OS or VM Image + Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. - Uri - - SmallIconUri + + Profile - Uri to a small icon for the OS or VM Image + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Uri + AzureProfile - - DontShowInGui + + VM - - + Specifies the virtual machine as an IPersistentVM object. - SwitchParameter + IPersistentVM - - ImageName - - Name of the image to update in the image repository. - - String - - String - - - - - - - Label + + AntimalwareConfigFile - The new label of the image. + Specifies the absolute path of the Microsoft Antimalware configuration file. Do not specify this parameter if you specify the AntimalwareConfiguration parameter. The configuration file must include, at a minimum, the following content to enable the Microsoft Antimalware extension: + +{ "AntimalwareEnabled": true } String String - - + none - - Eula + + AntimalwareConfiguration - Specifies the End User License Aggreement, recommended value is a URL. + Specifies a string object that contains the Microsoft Antimalware configuration. This object must not be $Null or empty. Do not specify this parameter if you specify the AntimalwareConfigFile parameter. The configuration object must include, at a minimum, the following content to enable the Microsoft Antimalware extension: +{ "AntimalwareEnabled": true } + +Microsoft Antimalware JSON configuration sample: + +{ + "AntimalwareEnabled": true, + "RealtimeProtectionEnabled": true, + "ScheduledScanSettings": { + "isEnabled": true, + "day": 1, + "time": 120, + "scanType": "Full" +}, + +"Exclusions": +{ +"Extensions": ".ext1;.ext2", +"Paths": "c:\excluded-path-1;c:\excluded-path-2", +"Processes": "excludedproc1.exe;excludedproc2.exe" +} + +} + +Notes: +AntimalwareEnabled is a required parameter. Values: true= Enable. false= Error out as false is not a supported value + +RealtimeProtectionEnabled: true/false. true = Enable. false = Disable. Default is true + +ScheduledScanSettings: +isEnabled=true/false + day=0-8 (0-daily, 1-Sunday, 2-Monday, ...., 7-Saturday, 8-Disabled) + time=0-1440 (measured in minutes after midnight - 60->1AM, 120 -> 2AM, ... ) + scanType="Quick" or "Full" (Default is Quick) + Note: If isEnabled=true is the only setting provided, the following defaults are set: day=7 (Saturday), time=120 (2 AM), scanType="Quick" +Exclusions: +Multiple exclusions in the same list are specified by using semicolon delimiters. + If no exclusions are specified, then the existing exclusions, if any, are overwritten by blank on the system. String String - - + none - - Description + + Disable - Specifies the description of the OS image. + Indicates that the cmdlet disables the Microsoft Antimalware extension. To re-enable the extension on the same virtual machine, run Set-AzureVMMicrosoftAntimalwareExtension without the Disable parameter. - String + SwitchParameter - String + SwitchParameter - - + none - - ImageFamily + + Monitoring - Specifies a value that can be used to group OS or VM images. + Specifies whether to collect Microsoft Antimalware events. + The acceptable values for this parameter are: + +-- ON. Collect Microsoft Antimalware events to storage context. +-- OFF. Do not collect Microsoft Antimalware events. - String + String String - - + none - - PublishedDate + + NoConfig - Nullable`1[DateTime] + SwitchParameter - Nullable`1[DateTime] + SwitchParameter - - + none - - PrivacyUri + + Profile - Specifies the URI that points to a document that contains the privacy policy related to the OS or VM image. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Uri + AzureProfile - Uri + AzureProfile - - + none - - RecommendedVMSize + + StorageContext - Specifies the size to use for the virtual machine that is created from the OS or VM image. Values are: "Medium", "Large", and "ExtraLarge", "A5", "A6",, "A7". + Specifies an Azure storage context for Microsoft Antimalware monitoring. - String + AzureStorageContext - String + AzureStorageContext - - + none - - DiskConfig + + Uninstall - This is the OS Disk and the Data Disk configuration for the VM Image created using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig and Set-AzureVMImageDataDiskConfig cmdlets. + Indicates that this cmdlet uninstalls the Microsoft Antimalware extension from the virtual machine. If monitoring was turned on, the cmdlet also removes the collection of Microsoft Antimalware events. - VirtualMachineImageDiskConfigSet + SwitchParameter - VirtualMachineImageDiskConfigSet + SwitchParameter - - + none - - Language + + Version - Language for the OS in the VM or OS Image + Specifies the extension version as a string. - String + String String - - - - - IconUri - - Uri to an icon for the OS or VM Image - - Uri - - Uri - - - - - - - SmallIconUri - - Uri to a small icon for the OS or VM Image - - Uri - - Uri - - - - - - - DontShowInGui - - - - - SwitchParameter - - SwitchParameter - - - - + none - - ShowInGui + + VM - Not Specified + Specifies the virtual machine as an IPersistentVM object. - switchparameter + IPersistentVM - switchparameter + IPersistentVM - - + none @@ -37247,126 +38392,15 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - - - - - - - - - - - - - OSImageContext - + + - - + - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - - - PS C:\> Update-AzureVMImage -ImageName "Windows-Server-2008-SP2" -Label "DoNotUse" - - Description - - - - -----------This example updates the image named "Windows-Server-2008-SP2" by changing the image label to "DoNotUse" - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - PS C:\> Get-AzureVMImage | Where-Object {$_.Label -eq "DoNotUse" } | Update-AzureVMImage -Label "Updated" - - Description - - - - -----------This example gets all the operating system images labeled "DoNotUse" and changes the label to "Updated". - - - - - - - Unknown - - - - - - - - - Get-AzureRegion - - - - - - - - - - - - - - - - - - - - - Get-AzureRegion - - - - - - - - - - - - - - - - @@ -37375,63 +38409,115 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- Unknown -------------------------- + Example 1: Enable the extension by using a configuration file + + + + + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json' | Update-AzureVM + + + This command enables the Microsoft Antimalware extension by using a configuration file. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then passes the object to the current cmdlet by using the pipeline operator. + + + + + + + + + + + Example 2: Enable the extension and enable monitoring - PS C:\> + PS C:\>$StorageContext = New-AzureStorageContext -StorageAccountName "contosostoragemain" -StorageAccountKey (Get-AzureStorageKey -StorageAccountName "Contosostoragemain").PrimaryP +S C:\> Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfigFile 'C:\configuration\contosoVM.json" -Monitoring ON -StorageContext $StorageContext | Update-AzureVM + + The first command creates an AzureStorageContext object by using the New-AzureStorageContext cmdlet, and then stores it in the $StorageContext variable. + + + + + + + + + + + Example 3: Enable the extension by specifying a configuration object + + + PS C:\>$Config_String = [IO.File]::ReadAllText('C:\configuration\contosoVM.json') +PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -AntimalwareConfiguration $Config_String | Update-AzureVM + + + The first command creates a string object by reading a JSON configuration for the Microsoft Antimalware extension, and then storing it in the $config_string variable. + + - - + - -------------------------- Unknown -------------------------- + Example 4: Disable the extension - PS C:\> + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Disable | Update-AzureVM + + This command disables the extension without removing it. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. + + + + + + + + + + + Example 5: Remove the extension + + + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name"ContosoVM22" | Set-AzureVMMicrosoftAntimalwareExtension -Uninstall | Update-AzureVM + + + This command removes the Microsoft Antimalware extension from the virtual machine. The command uses Get-AzureVM to get the specified virtual machine object, and then passes the object to the current cmdlet. + + - - + @@ -37439,50 +38525,174 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set Online Version: - - + http://go.microsoft.com/fwlink/?LinkID=402844 + + + Get-AzureVMMicrosoftAntimalwareExtension + + + + Remove-AzureVMMicrosoftAntimalwareExtension + + + + Get-AzureVM + - - + - Get-AzureServiceExtensionImage + Set-AzureVMPuppetExtension - Get information for the latest available hosted service extension images. + Sets the Puppet extension for a virtual machine. - - - - + Set + AzureVMPuppetExtension - - Get information for the latest available hosted service extension images. + The Set-AzureVMPuppetExtension cmdlet sets the Puppet extension for a virtual machine. - Get-AzureServiceExtensionImage + Set-AzureVMPuppetExtension + + PuppetMasterServer + + Specifies the fully qualified domain name (FQDN) of puppet master server. + + String + + + Version + + Specifies the extension version. + + String + + + Disable + + Indicates that this cmdlet disables the extension state. + + + + ReferenceName + + Specifies the reference name of the extension. + This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name when you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + Disable + + Indicates that this cmdlet disables the extension state. + + SwitchParameter + + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + PuppetMasterServer + + Specifies the fully qualified domain name (FQDN) of puppet master server. + + String + + String + + + none + + + ReferenceName + + Specifies the reference name of the extension. + This is a user-defined string that is used to refer to an extension. It is specified when the extension is added to the virtual machine for the first time. For subsequent updates, you need to specify the previously used reference name when you update the extension. The ReferenceName assigned to an extension is returned using the Get-AzureVM cmdlet. + + String + + String + + + none + + + Version + + Specifies the extension version. + + String + + String + + + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM + + + none + - + + - - + + + @@ -37491,135 +38701,162 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - + + - - + + + - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - + + - -------------------------- EXAMPLE 1 -------------------------- + Example 1: Set the Puppet extension for a virtual machine - PS C:\> Get-AzureServiceExtensionImage - - ProviderNameSpace : Microsoft.Windows.Azure.Extensions - Type : RDP - Version : 1.0 - Label : Microsoft Azure Remote Desktop Extension - Description : Microsoft Azure Remote Desktop Extension - HostingResources : WebOrWorkerRole - ThumbprintAlgorithm : sha1 - PublicConfigurationSchema : <?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" - xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="PublicConfig"><xs:complexType><xs:sequence><xs:element - name="UserName" type="xs:string" minOccurs="1" /><xs:element name="Expiration" type="xs:string" minOccurs="1" - /></xs:sequence></xs:complexType></xs:element></xs:schema> - PrivateConfigurationSchema : <?xml version="1.0" encoding="utf-8"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" - xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="PrivateConfig"><xs:complexType><xs:sequence><xs:element - name="Password" type="xs:string" /></xs:sequence></xs:complexType></xs:element></xs:schema> - OperationDescription : Get-AzureServiceExtensionImage - OperationId : ee7f7237-78a6-3819-8529-ede859c51411 - OperationStatus : Succeeded + PS C:\>Set-AzureVMPuppetExtension -VM $VM + - Description + This example sets the Puppet extension for the specified virtual machine as stored in the variable $VM. + + - ----------- + - Unknown - - + Get-AzureVM + - - + - - Remove-AzureVMChefExtension - + Set-AzureVMSize - This cmdlet deletes the Chef extension applied on the VM. + Sets the size of an Azure virtual machine. - - + - Remove - AzureVMChefExtension - - + Set + AzureVMSize + - This cmdlet deletes the Chef extension applied on the VM. + The Set-AzureVMSize cmdlet updates the size of a virtual machine. It has two parameters: InstanceSize, which is the new size of the virtual machine, and VM, which is a virtual machine object retrieved by using the Get-AzureVM cmdlet. The result of Set-AzureVMSize can be piped to the Update-AzureVM cmdlet or stored in a variable for later use. No actual change is made until Update-AzureVM is executed. + Note: This cmdlet will require the virtual machine to be re-provisioned and it might get a new IP address. - - Remove-AzureVMChefExtension - + Set-AzureVMSize + + InstanceSize + + Specifies the size of the machine. + The acceptable values for this parameter are: + +--ExtraSmall +--Small +--Medium +--Large +--ExtraLarge +--A5 +--A6 +--A7 + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + VM - The persistent VM object. + Specifies the persistent virtual machine object that this cmdlet sets the size of. IPersistentVM - - + + InstanceSize + + Specifies the size of the machine. + The acceptable values for this parameter are: + +--ExtraSmall +--Small +--Medium +--Large +--ExtraLarge +--A5 +--A6 +--A7 + + String + + String + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + VM - The persistent VM object. + Specifies the persistent virtual machine object that this cmdlet sets the size of. IPersistentVM IPersistentVM - - + none - - - + + + + + - @@ -37629,179 +38866,300 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Set the size of a virtual machine - C:\PS> - - - Remove-AzureVMChefExtension -VM $vm; - - - Description - ----------- - This cmdlet deletes the Chef extension applied on the VM. - - - - - - + + PS C:\>Get-AzureVM -ServiceName "MySvc1" -Name "MyVM3" | Set-AzureVMSize "Small" | Update-AzureVM + + + This command updates a virtual machine to size "Small". + + - - + - - - + Get-AzureVM + + + + Update-AzureVM - - + - - Get-AzureDeploymentEvent - + Set-AzureVMSqlServerExtension - The Get-AzureDeploymentEvent cmdlet retrieves information regarding Azure-initiated events that impact virtual machines and cloud services, including planned maintenance events, in the provided time window. It returns a list of events that identify the Role Instance or Virtual Machine impacted, the reason for the impact, and the start time of the event. + Sets the Azure SQL Server extension on a virtual machine. - - + - Get - AzureDeploymentEvent - - + Set + AzureVMSqlServerExtension + - The Get-AzureDeploymentEvent cmdlet retrieves information regarding Azure-initiated events that impact virtual machines and cloud services, including planned maintenance events, in the provided time window. It returns a list of events that identify the Role Instance or Virtual Machine impacted, the reason for the impact, and the start time of the event. + The Set-AzureVMSqlServerExtension cmdlet sets the Azure SQL Server extension on a virtual machine. - - Get-AzureDeploymentEvent - - EndTime + Set-AzureVMSqlServerExtension + + ReferenceName - Ending time to query deployment events + Specifies the reference name of the SQL Server extension. - DateTime + String - - ServiceName + + VM - Name of the hosted service + Specifies the persistent virtual machine object. - string + IPersistentVM - - StartTime + + Version - - + Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. + + String + + + AutoPatchingSettings + + Specifies the automatic SQL Server patching settings. + + AutoPatchingSettings + + + AutoBackupSettings + + Specifies the automatic SQL Server backup settings. + + AutoBackupSettings + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Set-AzureVMSqlServerExtension + + ReferenceName + + Specifies the reference name of the SQL Server extension. + + String + + + Version + + Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. + + String + + + Disable + + Indicates that this cmdlet disables the extension state. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + + + Set-AzureVMSqlServerExtension + + ReferenceName + + Specifies the reference name of the SQL Server extension. + + String + + + Version + + Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. + + String + + + Uninstall + + Indicates that this cmdlet uninstalls the SQL Server extension from the virtual machine. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies the persistent virtual machine object. - DateTime + IPersistentVM - - - EndTime + + AutoBackupSettings - Ending time to query deployment events + Specifies the automatic SQL Server backup settings. - DateTime + AutoBackupSettings - DateTime + AutoBackupSettings - - + none - - ServiceName + + AutoPatchingSettings - Name of the hosted service + Specifies the automatic SQL Server patching settings. - string + AutoPatchingSettings - string + AutoPatchingSettings - - + none - - StartTime + + Disable - - + Indicates that this cmdlet disables the extension state. - DateTime + SwitchParameter - DateTime + SwitchParameter + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ReferenceName + + Specifies the reference name of the SQL Server extension. + + String + + String + + + none + + + Uninstall + + Indicates that this cmdlet uninstalls the SQL Server extension from the virtual machine. + + SwitchParameter + + SwitchParameter + + + none + + + Version + + Specifies the version of the SQL Server extension that Get-AzureVMSqlServerExtension retrieves settings from. + + String + + String + + + none + + + VM + + Specifies the persistent virtual machine object. + + IPersistentVM + + IPersistentVM - - + none - - - + + + + + - @@ -37811,108 +39169,184 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - + + Example 1: Set auto-patching settings on a virtual machine + + + + + PS C:\>Get-AzureVM -ServiceName "ServiceName" -Name "VMName" | Set-AzureVMSqlServerExtension -AutoPatchingSettings $APS | Update-AzureVM + + + This command sets auto-patching settings on an Azure virtual machine. + + + + + + + + + + + Example 2: Set auto-backup settings on a virtual machine + + + + + PS C:\>Get-AzureVM -ServiceName "ServiceName" -Name "VMName" | Set-AzureVMSqlServerExtension -AutoBackupSettings $ABS | Update-AzureVM + + + This command sets auto-backup settings on Azure virtual machine. + + + + + + + + + + + Example 3: Disable an SQL Server extension on a virtual machine + + + + + PS C:\>Get-AzureVM -ServiceName "Service" -Name "VMName" | Set-AzureVMSqlServerExtension -Disable + + + This command disables SQL Server virtual machine extension on a given virtual machine. + + + + + + + + + + + Example 4: Uninstall an SQL Server extension on a specific virtual machine + + + + + PS C:\>Get-AzureVM -ServiceName "Service" -Name "VMName" | Set-AzureVMSqlServerExtension -Uninstall + + + This command uninstalls a SQL Server virtual machine extension on the virtual machine named VMName. + + + + + + + + + - - - + Get-AzureVMSqlServerExtension + + + + Remove-AzureVMSqlServerExtension - + - - Get-AzureVMChefExtension - + Set-AzureVNetConfig - This cmdlet gets the Chef extension (if any) applied on the VM. + Updates the virtual network settings for an Azure cloud service. - - + - Get - AzureVMChefExtension - - + Set + AzureVNetConfig + - This cmdlet gets the Chef extension (if any) applied on the VM. + The Set-AzureVNetConfig cmdlet updates the network configuration for the current Azure subscription by specifying a path to anetwork configuration file (.netcfg). The network configuration file defines DNS servers and subnets for cloud services within a subscription. - - Get-AzureVMChefExtension - - VM + Set-AzureVNetConfig + + ConfigurationPath - The persistent VM object. + Specifies the path and file name of a network configuration file (.netcfg). - IPersistentVM + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - - VM + + ConfigurationPath + + Specifies the path and file name of a network configuration file (.netcfg). + + String + + String + + + none + + + Profile - The persistent VM object. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - IPersistentVM + AzureProfile - IPersistentVM + AzureProfile - - + none - - - + + + + + - - The cmdlet displays the Chef Extension information on the VM - + @@ -37921,306 +39355,383 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Update the network configuration of the Azure subscription to a local file - C:\PS> - - - Get-AzureVMChefExtension -VM $vm; - - - Description - ----------- - This cmdlet gets the Chef extension (if any) applied on the VM. - - - - + + PS C:\>Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" + + + This command updates the network configuration of the current Microsoft Azure subscription to that in the local file "c:\temp\MyAzNets.netcfg". + + + + + + + + + + + Example 2: Set the Azure subscription and then update the network configuration + + + PS C:\>$SubsId = "5bea2bc2-88a5-44b8-abe1-3e76733b6783" +C:\PS> $Cert = Get-Item cert:\LocalMachine\MY\82F105B2DA81149204A6257A9A91EC452B8C52C3 +C:\PS> Set-AzureVNetConfig -ConfigurationPath "c:\temp\MyAzNets.netcfg" + + + This example sets the Microsoft Azure subscription, and then updates the network configuration of that subscription using the configuration defined in the local file "c:\temp\MyAzNets.netcfg". + + - - + - - - + Get-AzureVNetConfig + + + + Get-AzureVNetSite + + + + Remove-AzureVNetConfig - + - - Set-AzureVMChefExtension - + Set-AzureWalkUpgradeDomain - This cmdlet adds the Chef extension to the VM. + Walks the specified upgrade domain. - - + Set - AzureVMChefExtension - - + AzureWalkUpgradeDomain + - This cmdlet adds the Chef extension to the VM. + The Set-AzureWalkUpgradeDomain cmdlet initiates the actual upgrade of an Azure deployment. The upgrade package and configuration are set by using the Set-AzureDeployment cmdlet with the -Upgrade switch. - - Set-AzureVMChefExtension - - VM + Set-AzureWalkUpgradeDomain + + ServiceName - The persistent VM object. + Specifies the Microsoft Azure service name to upgrade. - IPersistentVM + String - - ValidationPem + + Slot - The Chef validator pem file path + Specifies the environment of the deployment to upgrade. + The acceptable values for this parameter are: + +-- Staging +-- Production - Validator.pem + + Staging + Production + - - ClientRb + + DomainNumber - The path to the Chef client.rb. + Specifies the upgrade domain to upgrade. - Client.rb + Int32 - - RunList + + Profile - The chef node run list. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - RunList + AzureProfile - - - VM + + DomainNumber - The persistent VM object. + Specifies the upgrade domain to upgrade. - IPersistentVM + Int32 - IPersistentVM + Int32 - - + none - - Version + + Profile - Chef Extension version. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - Version + AzureProfile - String + AzureProfile - Latest available Chef Extension version + none - - ValidationPem + + ServiceName - The Chef Server Validation Key File Path. + Specifies the Microsoft Azure service name to upgrade. - Validator.pem + String String - - + none - - ClientRb + + Slot - The Chef Server Client Config (Client.rb) File Path + Specifies the environment of the deployment to upgrade. + The acceptable values for this parameter are: + +-- Staging +-- Production - Client.rb + String String - - + none - - RunList - - Chef node runlist - - RunList + + + - String - + + + + + + + - - - - - ChefServerUrl - The Chef Server Url + + - ChefServerUrl + + + + - String - + ManagementOperationContext + + + + + - - - - - DeleteChefConfig - DeleteChefConfig Options determines whether Chef configuration files removed when Azure removes the Chef resource extension from the VM. This options is useful during extension update and uninstall process. Default is false + + - - Boolean - - - false - - - BootstrapOptions + + + + + + + Example 1: Initiate an upgrade of a production deployment + + + + + PS C:\>Set-AzureWalkUpgradeDomain -ServiceName "MySvc1" -slot "Production" -UpgradeDomain 2 + + + This command initiates the upgrade of Upgrade Domain 2 of the production deployment of the MySvc1 service. + + + + + + + + + + + + + Set-AzureDeployment + + + + Azure Service Cmdlets + + + + + + + Start-AzureVM + + Starts an Azure virtual machine. + + + + + Start + AzureVM + + + + The Start-AzureVM cmdlet requests the start of an Azure virtual machine. + + + + Start-AzureVM + + ServiceName + + Specifies the name of the Azure service that contains the virtual machine to start. + + String + + + Name + + Specifies the name of the virtual machine to start. + + String[] + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Start-AzureVM + + ServiceName + + Specifies the name of the Azure service that contains the virtual machine to start. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies a virtual machine object that identifies the virtual machine to start. + + IPersistentVM[] + + + + + + Name - Bootstrap Options in JSON Format + Specifies the name of the virtual machine to start. - BootstrapOptions + String[] - String + String[] - - + none - - ValidationClientName + + Profile - The Chef ValidationClientName, used to determine whether a chef-client may register with a Chef server. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - ValidationClientName + AzureProfile - String + AzureProfile - - + none - - OrganizationName + + ServiceName - The Chef Organization name, used to form Validation Client Name + Specifies the name of the Azure service that contains the virtual machine to start. - OrganizationName + String String - - - - - AutoUpdateChefClient - - Flag to opt for auto chef-client update. Chef-client update is false by default. - - - Boolean - - - false - - - Linux - - Set this parameter for Linux extension - - - Boolean - - - - + none - - Windows + + VM - Set this parameter for Windows extension + Specifies a virtual machine object that identifies the virtual machine to start. + IPersistentVM[] - Boolean + IPersistentVM[] - - + none - - - + + + + + - @@ -38230,241 +39741,262 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Start a virtual machine - C:\PS> - - - Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -ClientRb "C:\\client.rb" -RunList "apache" -Windows; - - - Description - ----------- - This cmdlet adds the Chef extension to a windows VM. - When the VM comes up, it will be bootstrapped with Chef and have apache running on it. - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -BootstrapOptions '{"chef_node_name":"your_node_name","chef_server_url":"https://api.opscode.com/organizations/some-org", "validation_client_name":"some-org-validator"}' -RunList "apache" -Windows; - + PS C:\>Start-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine04" + - Description - ----------- - This cmdlet adds the Chef extension to a windows VM. - When the VM comes up, it will be bootstrapped with Chef and have apache running on it, while bootstraping it will refer 'BootstrapOptions' specified in JSON format. - - - - - - + This command starts the virtual machine named VirtualMachine04 that runs in the Azure service named ContosoService03. + + - - + - - -------------------------- EXAMPLE 3 -------------------------- - + Example 2: Start a virtual machine by using a virtual machine object - C:\PS> - - - Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -ValidationClientName "myorg-validator" -RunList "apache, git" -Windows; - - - Description - ----------- - This cmdlet adds the Chef extension to a windows VM. - When the VM comes up, it will be bootstrapped with Chef and have apache and git installed on it. - Note that if you dont provide the client.rb, then you will need to provide the chef server url and validation client name - - - - - - - - - - - - - -------------------------- EXAMPLE 4 -------------------------- - - - C:\PS> - - Set-AzureVMChefExtension -VM $vm -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -OrganizationName "myorg" -Linux; - + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "DatabaseServer" | Start-AzureVM + - Description - ----------- - This cmdlet adds the Chef extension to a Linux VM. - When the VM comes up, it will be bootstrapped with Chef. - Note that if you dont provide the client.rb, then you will need to provide the chef server url and organization name name - - - - + This command retrieves the virtual machine object for the virtual machine whose name is DatabaseServer, and then requests to start it. + + - - + - - - + Get-AzureVM + + + + Remove-AzureVM + + + + Restart-AzureVM + + + + Stop-AzureVM + + + + Update-AzureVM - - + - - Get-AzureVMSqlServerExtension - + Stop-AzureVM - Gets the settings of the SQL Server extension on a particular VM. + Shuts down an Azure virtual machine. - - + - Get - AzureVMSqlServerExtension - - + Stop + AzureVM + - This cmdlet gets the settings of the SQL Server extension on a particular VM. + The Stop-AzureVM cmdlet shuts down a virtual machine. - - Get-AzureVMSqlServerExtension - - VM + Stop-AzureVM + + ServiceName - The virtual machine to get the settings from. + Specifies the name of the Azure service that contains the virtual machine to shut down. - IPersistentVM + String - - Version + + Name - The specific version of the Sql Server extension. + Specifies the name of the virtual machine to shut down. + Use the wildcard character to stop multiple virtual machines asynchronously. With a wildcard character, this cmdlet calls the Shutdown Roles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of the Shutdown Role operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx). - string + String[] + + + StayProvisioned + + Specifies that this cmdlet keeps the virtual machine provisioned. + + + + Force + + Specifies whether to allow the deallocation of the last virtual machine in a deployment. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + + Stop-AzureVM + + ServiceName + + Specifies the name of the Azure service that contains the virtual machine to shut down. + + String + + + StayProvisioned + + Specifies that this cmdlet keeps the virtual machine provisioned. + + + + Force + + Specifies whether to allow the deallocation of the last virtual machine in a deployment. + + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + + VM + + Specifies a virtual machine object that identifies the virtual machine to shut down. + + IPersistentVM[] - - - Version + + Force - The specific version of the Sql Server extension. + Specifies whether to allow the deallocation of the last virtual machine in a deployment. - string + SwitchParameter - string + SwitchParameter + + + none + + + Name + + Specifies the name of the virtual machine to shut down. + Use the wildcard character to stop multiple virtual machines asynchronously. With a wildcard character, this cmdlet calls the Shutdown Roles operation (http://msdn.microsoft.com/en-us/library/azure/dn469421.aspx), instead of the Shutdown Role operation (http://msdn.microsoft.com/en-us/library/azure/jj157195.aspx). + + String[] + + String[] + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + ServiceName + + Specifies the name of the Azure service that contains the virtual machine to shut down. + + String + + String + + + none + + + StayProvisioned + + Specifies that this cmdlet keeps the virtual machine provisioned. + + SwitchParameter + + SwitchParameter - - + none - + VM - The virtual machine to get the settings from. + Specifies a virtual machine object that identifies the virtual machine to shut down. - IPersistentVM + IPersistentVM[] - IPersistentVM + IPersistentVM[] - - + none - - - + + + + + - @@ -38474,301 +40006,229 @@ PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Set - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Shut down a virtual machine - C:\PS> - - -Get-AzureVM -ServiceName "service" -Name "vmname" | Get-AzureVMSqlServerExtension - -ExtensionName : SqlIaaSAgent -Publisher : Microsoft.SqlServer.Management -Version : 1.* -State : Enable -RoleName : afexttest -AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings -AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings -KeyVaultCredentialSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.KeyVaultCredentialSettings - - Description - ----------- - Gets the settings of the Sql Server extension on a particular VM using piped input. - - - - - - + + PS C:\>Stop-AzureVM -ServiceName "ContosoService01" -Name "MyVM" + + + This command shuts down a virtual machine that the specified service contains. + + - - + - - -------------------------- EXAMPLE 2 -------------------------- - + Example 2: Shut down a virtual machine by using a virtual machine object - C:\PS> - - -Get-AzureVMSqlServerExtension-VM $vm - -ExtensionName : SqlIaaSAgent -Publisher : Microsoft.SqlServer.Management -Version : 1.0 -State : Enable -RoleName : vmname -AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings -AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings -KeyVaultCredentialSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.KeyVaultCredentialSettings - - Description - ----------- - Gets the settings of the Sql Server extension on a particular VM. - - - - - - + + PS C:\>Get-AzureVM -ServiceName "ContosoService01" -Name "MyVM" | Stop-AzureVM + + + This command shuts down a virtual machine that the specified service contains, by using the virtual machine object that Get-AzureVM returns. + + - - + - - -------------------------- EXAMPLE 3 -------------------------- - + Example 3: Shut down a VM and keep the VM provisioned - C:\PS> - - -Get-AzureVMSqlServerExtension -VM $vm -Version "1.0" - -ExtensionName : SqlIaaSAgent -Publisher : Microsoft.SqlServer.Management -Version : 1.0 -State : Enable -RoleName : vmname -AutoPatchingSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoPatchingSettings -AutoBackupSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.AutoBackupSettings -KeyVaultCredentialSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.KeyVaultCredentialSettings - - Description - ----------- - Gets the settings of the particular version of Sql Server extension on a VM. - - + + PS C:\>Stop-AzureVM -ServiceName "ContosoService01" -Name "MyVM" -StayProvisioned + + + This command shuts down a virtual machine that the specified service contains, and keeps it provisioned. + + + + + + + + + + + Example 4: Shut down a VM and allow deallocation of the last VM in the deployment + + + PS C:\>Stop-AzureVM -ServiceName "ContosoService01" -Name "MyVM" -Force + + + This command shuts down a virtual machine that the specified service contains and allows deallocation of the last virtual machine in the deployment. + + + + + + + + + + + Example 5: Shut down multiple VMs + + + PS C:\>Stop-AzureVM -ServiceName "PSTestService" -Name "*" -Force + + + This command shuts down multiple virtual machines that the specified service contains. + + - - + - - - + Get-AzureVM + + + + New-AzureVM + + + + Restart-AzureVM + + + + Start-AzureVM - - + - - New-AzureVMSqlServerKeyVaultCredentialConfig - + Test-AzureStaticVNetIP - Creates configuration object for SQL Server Azure Key Vault credential + Tests the availability of a static virtual network IP address, and gets a list of suggestions if the queried address is not available. - - + - New - AzureVMSqlServerKeyVaultCredentialConfig - - + Test + AzureStaticVNetIP + - Creates configuration object for SQL Server Azure Key Vault credential + The Test-AzureStaticVNetIP cmdlet tests the availability of a static virtual network IP address, and gets a list of suggestions if the queried address is not available. - - New-AzureVMSqlServerKeyVaultCredentialConfig - - Enable - - Enable is an optional value with a default value of false. If set to true, a SQL Server credential using Azure key vault is created when the configuration is used in Set-AzureVMSqlServerExtension. Otherwise, all SQL Server Azure key vault credential status reporting is disabled. Disabling this feature does not remove previously created SQL Server credential using Azure key vault. - - bool - - - CredentialName - - The name to use when creating the new SQL Server credential. If the operation succeeds, a new SQL Server credential with the given name is created. If a SQL Server credential with similar name already exists, then the operation will fail. - - string - - - AzureKeyVaultUrl + Test-AzureStaticVNetIP + + VNetName - Azure Key Vault absolute URL path to use when creating the SQL Server credential. The Azure key vault must be created before using to create a SQL Server credential. + Specifies the Name of the virtual network. - string + String - - ServicePrincipalName + + IPAddress - Azure key vault client identifier given the principal user access to the Azure key vault set in AzureKeyVaultUrl. + Specifies the static virtual network IP address to query. - string + String - - ServicePrincipalSecret + + Profile - Azure key vault principal access secret to the Azure key vault set in AzureKeyVaultUrl. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SecureString + AzureProfile - - - AzureKeyVaultUrl - - Azure Key Vault absolute URL path to use when creating the SQL Server credential. The Azure key vault must be created before using to create a SQL Server credential. - - string - - string - - - - - - - CredentialName - - The name to use when creating the new SQL Server credential. If the operation succeeds, a new SQL Server credential with the given name is created. If a SQL Server credential with similar name already exists, then the operation will fail. - - string - - string - - - - - - - Enable + + IPAddress - Enable is an optional value with a default value of false. If set to true, a SQL Server credential using Azure key vault is created when the configuration is used in Set-AzureVMSqlServerExtension. Otherwise, all SQL Server Azure key vault credential status reporting is disabled. Disabling this feature does not remove previously created SQL Server credential using Azure key vault. + Specifies the static virtual network IP address to query. - bool + String - bool + String - - + none - - ServicePrincipalName + + Profile - Azure key vault client identifier given the principal user access to the Azure key vault set in AzureKeyVaultUrl. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - string + AzureProfile - string + AzureProfile - - + none - - ServicePrincipalSecret + + VNetName - Azure key vault principal access secret to the Azure key vault set in AzureKeyVaultUrl. + Specifies the Name of the virtual network. - SecureString + String - SecureString + String - - + none - - - + + + + + - @@ -38776,253 +40236,189 @@ KeyVaultCredentialSettings : Microsoft.WindowsAzure.Commands.ServiceManagement.I - KeyVaultCredentialSettings - - + + + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + 1: - C:\PS> - - -$akvs = New-AzureVMSqlServerKeyVaultCredentialConfig -Enable -CredentialName sqlcredname -AzureKeyVaultUrl "http://myvaultsample.vault.azure.net" -ServicePrincipalName "myvaultsample-principal-client-identifier" -ServicePrincipalSecret $secureSecret - -Enable : True -CredentialName : sqlcredname -AzureKeyVaultUrl : http://afSqlKVT.vault.azure.net -ServicePrincipalName : dsds-33dd-4d4c-9d2d-42428eeb1fd7 -ServicePrincipalSecret : LnT+7aXAdafy1VdSo3z8YnZ5pzGU1h3Y7prrwdlUDVc= - - Description - ----------- - Creates Azure key vault credential configuration object that can be used to enable and configure KeyVaultCredential using Set-AzureVMSqlServerExtension - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - - - C:\PS> - - $akvs = New-AzureVMSqlServerKeyVaultCredentialConfig - - Enable : False - CredentialName : - AzureKeyVaultUrl : - ServicePrincipalName : - ServicePrincipalSecret : - Description - ----------- - Creates Azure key vault credential configuration object that can be used to disable KeyVaultCredential using Set-AzureVMSqlServerExtension - - - - - - + + - - + - - - + Get-AzureStaticVNetIP + + + + Set-AzureStaticVNetIP - + - - New-AzureVMSqlServerAutoPatchingConfig - + Update-AzureDisk - Creates configuration object for virtual machine automatic patching + Changes the label of a disk in the Azure disk repository. - - + - New - AzureVMSqlServerAutoPatchingConfig - - + Update + AzureDisk + - Creates configuration object for virtual machine automatic patching + The Update-AzureDisk cmdlet changes the label that is associated with a disk in the disk repository of the current Azure subscription. - - New-AzureVMSqlServerAutoPatchingConfig - - Enable + Update-AzureDisk + + DiskName - Enables or disables automated patching for the virtual machine. Enabling automated patching will put Windows Update into interactive mode. Disabling automated patching does not changes Windows Update settings. + Specifies the name of the disk that this cmdlet modifies. - bool + String - - DayOfWeek + + Label - Specifies the day of the week when updates should be installed. Can be specified any single day of the week or every day. + Specifies the new label for the disk. - string + String - - MaintenanceWindowStartingHour + + ResizedSizeInGB - Specifies the hour of the day when maintenance window starts. This time defines when updates start installing. Rounded to the hour. + Specifies the new size, in gigabytes, for the disk. - int + Int32 - - MaintenanceWindowDuration + + Profile - Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - - PatchCategory + + + Update-AzureDisk + + DiskName - Defines if Important updates should be included. + Specifies the name of the disk that this cmdlet modifies. - string + String + + + Label + + Specifies the new label for the disk. + + String + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile - - - DayOfWeek - - Specifies the day of the week when updates should be installed. Can be specified any single day of the week or every day. - - string - - string - - - - - - - Enable + + DiskName - Enables or disables automated patching for the virtual machine. Enabling automated patching will put Windows Update into interactive mode. Disabling automated patching does not changes Windows Update settings. + Specifies the name of the disk that this cmdlet modifies. - bool + String - bool + String - True + none - - MaintenanceWindowStartingHour + + Label - Specifies the hour of the day when maintenance window starts. This time defines when updates start installing. + Specifies the new label for the disk. - int + String - int + String - 3 + none - - MaintenanceWindowDuration + + Profile - Specifies the duration of the maintenance window. Automated patching will avoid performing an action that can impact a machine availability outside of that window. Only 30 minutes increments are allowed. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - int + AzureProfile - int + AzureProfile - 120 + none - - PatchCategory + + ResizedSizeInGB - Defines if important updates should be included. + Specifies the new size, in gigabytes, for the disk. - string + Int32 - string + Int32 - Optional + none - - - + + + + + - @@ -39030,225 +40426,376 @@ ServicePrincipalSecret : LnT+7aXAdafy1VdSo3z8YnZ5pzGU1h3Y7prrwdlUDVc= - AutoPatchingSettings - - + DiskContext + + + + + - Returns object contains settings for automated patching. - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - + Example 1: Change the label of a disk - - C:\PS> $aps = New-AzureVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Thursday" -MaintenanceWindowStartingHour 11 -MaintenanceWindowDuration 120 -PatchCategory "Important" - - PS C:\> $aps - Enable : True - DayOfWeek : Thursday - MaintenanceWindowStartingHour : 11 - MaintenanceWindowDuration : 120 - PatchCategory : Important - + PS C:\>Update-AzureDisk ?DiskName "ContosoOSDisk" -Label "DoNotUse" + - This command creates configuration object that can be used to configure automatic patching using Set-AzureVMSqlServerExtension - - - - - - - - + This command changes the label of the disk named ContosoOSDisk to DoNotUse. + + - - + - - Set-AzureVMSqlServerExtension + Add-AzureDisk - Remove-AzureVMSqlServerExtension + Get-AzureDisk + + + + Remove-AzureDisk - + - - New-AzureVMSqlServerAutoBackupConfig - + Update-AzureVMImage - Creates configuration object for SQL Server Automatic Backup + Updates the label of an operating system image in the image repository. - - + - New - AzureVMSqlServerAutoBackupConfig - - + Update + AzureVMImage + - Creates configuration object for SQL Server automatic backup + The Update-AzureVMImage cmdlet updates the label on an operating system image in the image repository. It returns an image object with information about the updated image. - - New-AzureVMSqlServerAutoBackupConfig - - Enable + Update-AzureVMImage + + ImageName + + Specifies the name of the image to update in the image repository. + + String + + + Language + + Specifies the language for the operating system in the virtual machine or operating system image. + + String + + + IconName + + Specifies the standard icon name for the operating system or virtual machine image. + + String + + + SmallIconName + + Specifies the small icon name for the operating system or virtual machine image. + + String + + + DontShowInGui + + + + + + + Label + + Specifies the new label of the image. + + String + + + Eula + + Specifies the End User License Agreement. We recommend that the value is a URL. + + String + + + Description - Enables or disables automated backup for the SQL Server Virtual Machine. Enabling automated backup will set a backup schedule for all of your existing and new databases. This will update your Managed Backup settings to follow this schedule. + Specifies the description of the operating system image. - bool + String - - StorageContext + + ImageFamily - Specifies the storage account to be used to store backups. Default will be storage account associated with the SQL Server VM. + Specifies a value that can be used to group operating system or virtual machine images. - AzureStorageContext + String - - RetentionPeriod + + PublishedDate - Backup Retention period in days. 1 day minimum, 30 day maximum. Default is 30 days. + Specifies the date when the operating system image was added to the image repository. - int + DateTime - - EncryptionEnabled + + PrivacyUri - Enable backup encryption. If enabled, the certificate will be automatically generated and stored in the same storage account as the backups, and password protected. + Specifies the URI that points to a document that contains the privacy policy related to the operating system image. - bool + Uri - - CertificatePassword + + RecommendedVMSize + + Specifies the size of the virtual machine. + The acceptable values for this parameter are: + +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 + + String + + + DiskConfig + + Specifies the operating system disk and data disk configuration for the virtual machine image created by using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig, and Set-AzureVMImageDataDiskConfig cmdlets. + + VirtualMachineImageDiskConfigSet + + + Profile - Password to encrypt the certificate that is used to perform SQL Server encrypted backups + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - SecureString + AzureProfile - - - Enable + + Description - Enables or disables automated backup for the SQL Server Virtual Machine. Enabling automated backup will set a backup schedule for all of your existing and new databases. This will update your Managed Backup settings to follow this schedule. + Specifies the description of the operating system image. - bool + String - bool + String - True + none - - EncryptionEnabled + + DiskConfig - Enable backup encryption. If enabled, the certificate will be automatically generated and stored in the same storage account as the backups, and password protected. + Specifies the operating system disk and data disk configuration for the virtual machine image created by using the New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig, and Set-AzureVMImageDataDiskConfig cmdlets. - bool + VirtualMachineImageDiskConfigSet - bool + VirtualMachineImageDiskConfigSet - - + none - - CertificatePassword + + DontShowInGui - Password to encrypt the certificate that is used to perform SQL Server encrypted backups + + - SecureString + SwitchParameter - SecureString + SwitchParameter + + + none + + + Eula + + Specifies the End User License Agreement. We recommend that the value is a URL. + + String + + String - - + none - - RetentionPeriod + + IconName - Backup Retention period in days. 1 day minimum, 30 day maximum. Default is 30 days. + Specifies the standard icon name for the operating system or virtual machine image. - int + String - int + String - - + none - - StorageContext + + ImageFamily - Specifies the storage account to be used to store backups. Default will be storage account associated with the SQL Server VM. + Specifies a value that can be used to group operating system or virtual machine images. - AzureStorageContext + String - AzureStorageContext + String + + + none + + + ImageName + + Specifies the name of the image to update in the image repository. + + String + + String + + + none + + + Label + + Specifies the new label of the image. + + String + + String + + + none + + + Language + + Specifies the language for the operating system in the virtual machine or operating system image. + + String + + String + + + none + + + PrivacyUri + + Specifies the URI that points to a document that contains the privacy policy related to the operating system image. + + Uri + + Uri + + + none + + + Profile + + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + + AzureProfile + + AzureProfile + + + none + + + PublishedDate + + Specifies the date when the operating system image was added to the image repository. + + DateTime + + DateTime + + + none + + + RecommendedVMSize + + Specifies the size of the virtual machine. + The acceptable values for this parameter are: + +-- Medium +-- Large +-- ExtraLarge +-- A5 +-- A6 +-- A7 + + String + + String + + + none + + + SmallIconName + + Specifies the small icon name for the operating system or virtual machine image. + + String + + String - - + none - - - + + + + + - @@ -39256,435 +40803,204 @@ ServicePrincipalSecret : LnT+7aXAdafy1VdSo3z8YnZ5pzGU1h3Y7prrwdlUDVc= - - - - + OSImageContext + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - -$abs = New-AzureVMSqlServerAutoBackupConfig -Enable -RetentionPeriod 10 -StorageUri $storageUrl -StorageKey $storageAccountKeySecure - -Enable : True -EnableEncryption : False -RetentionPeriodInDays : 10 - - Description - ----------- - Creates a auto-backup config object by specifying storage uri and account key. - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - + Example 1: Update an image by changing the image label - C:\PS> - - -$abs = New-AzureVMSqlServerAutoBackupConfig -StorageContext $storageContext -Enable -RetentionPeriod 10 - -Enable : True -EnableEncryption : False -RetentionPeriodInDays : 10 - - Description - ----------- - Creates an auto-backup config object by specifying Storage context. - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 3 -------------------------- - - - C:\PS> - -$abs = New-AzureVMSqlServerAutoBackupConfig -StorageContext $storageContext -Enable -RetentionPeriod 10 -EnableEncryption -CertificatePassword $certPasswd - -Enable : True -EnableEncryption : True -RetentionPeriodInDays : 10 + PS C:\>Update-AzureVMImage -ImageName "Windows-Server-2008-SP2" -Label "DoNotUse" + - Description - ----------- - Creates an auto-backup config object by specifying Storage context and enabling encryption option with password. - - - - - - - - + This command updates the image named Windows-Server-2008-SP2 by changing the image label to DoNotUse. + + - - + - - - - - - - - - - - - - - - Remove-AzureVMSqlServerExtension - - - Remove Azure VM Sql Server extension from a VM object. - - - - - - Remove - AzureVMSqlServerExtension - - - - - Remove Azure VM Sql Server extension from a VM object. - - - - - Remove-AzureVMSqlServerExtension - - VM - - The Virtual Machine to get the settings from. - - IPersistentVM - - - - - - - VM - - The Virtual Machine to get the settings from. - - IPersistentVM - - IPersistentVM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Example 2: Get all operating systems by label and then update the label + - - - - - - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - + + PS C:\>Get-AzureVMImage | Where-Object {$_.Label -eq "DoNotUse" } | Update-AzureVMImage -Label "Updated" + + + This command gets all the operating system images labeled DoNotUse and changes the label to Updated. + + + + + + + + + - - - + Add-AzureVMImage + + + + Get-AzureVMImage + + + + Remove-AzureVMImage + + + + Save-AzureVMImage + + + + New-AzureVMImageDiskConfigSet + + + + Set-AzureVMImageOSDiskConfig + + + + Set-AzureVMImageDataDiskConfig - - + - - Set-AzureVMSqlServerExtension - + Update-AzureVM - Configure the Sql Server extension on a VM. + Modifies the configuration of an Azure virtual machine. - - + - Set - AzureVMSqlServerExtension - - + Update + AzureVM + - Configure the Sql Server extension on a VM. + The Update-AzureVM cmdlet accepts update information for the specified virtual machine and initiates the update. You can add or remove data disks, modify the cache mode of data or operating system disks, change the network endpoints, or change the size of the virtual machine. - - Set-AzureVMSqlServerExtension - - VM - - The Virtual Machine to get the settings from. - - IPersistentVM - - - Version - - The specific version of the SQL Server extension that Get-AzureVMSqlServerExtension will get the settings from. - - string - - - AutoBackupSettings - - Automatic SQL Server backup settings - - AutoBackupSettings - - - AutoPatchingSetttings + Update-AzureVM + + ServiceName - Automatic patching settings + Specifies the name of the Azure service. - AutoPatchingSetttings + String - - KeyVaultCredentialSettings + + Name - - + Specifies the name of the virtual machine to update. - KeyVaultCredentialSettings + String - - Confirm + + Profile - Prompts you for confirmation before executing the command. + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. + AzureProfile - - WhatIf + + VM - Describes what would happen if you executed the command without actually executing the command. + Specifies the virtual machine object that includes updated settings. + PersistentVM - - - AutoBackupSettings - - Automatic SQL Server backup settings - - AutoBackupSettings - - AutoBackupSettings - - - - - - - AutoPatchingSetttings + + Name - Automatic patching settings + Specifies the name of the virtual machine to update. - AutoPatchingSetttings + String - AutoPatchingSetttings + String - - + none - - KeyVaultCredentialSettings + + Profile - - + Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile. - KeyVaultCredentialSettings + AzureProfile - KeyVaultCredentialSettings + AzureProfile - - + none - - Version + + ServiceName - The specific version of the SQL Server extension that Get-AzureVMSqlServerExtension will get the settings from. + Specifies the name of the Azure service. - string + String - string + String - - + none - + VM - The Virtual Machine to get the settings from. - - IPersistentVM - - IPersistentVM - - - - - - - Confirm - - Prompts you for confirmation before executing the command. - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - Describes what would happen if you executed the command without actually executing the command. + Specifies the virtual machine object that includes updated settings. - SwitchParameter + PersistentVM - SwitchParameter + PersistentVM - + none - - - + + + + + - @@ -39694,191 +41010,94 @@ RetentionPeriodInDays : 10 - - + + + + + - - - - - - - - - - Keywords: azure, azuresm, servicemanagement, management, service, svc, mgmt, service - - - - - - - - - -------------------------- EXAMPLE 1 -------------------------- - - - C:\PS> - - -Get-AzureVM -ServiceName serviceName -Name vmName | Set-AzureVMSqlServerExtension -AutoPatchingSettings $aps | Update-AzureVM - - Description - ----------- - Sets auto-patching settings on Azure VM. - - - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 2 -------------------------- - + Example 1: Update the size of a virtual machine - C:\PS> - - -Get-AzureVM -ServiceName serviceName -Name vmName | Set-AzureVMSqlServerExtension -AutoBackupSettings $abs | Update-AzureVM - - Description - ----------- - Sets auto-backup settings on Azure VM. - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 3 -------------------------- - - - C:\PS> - -Get-AzureVM -ServiceName $serviceName -Name $vmName | Set-AzureVMSqlServerExtension -KeyVaultCredentialSettings $akvs | Update-AzureVM - -Sets SQL Server credential Azure key vault settings + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine04" | Set-AzureVMSize -InstanceSize "Medium" | Update-AzureVM + - Description - ----------- - - - - - - - - - - + This command changes the size of the virtual machine named VirtualMachine04, running in the service named ContosoService03, to Medium. + + - - + - - -------------------------- EXAMPLE 4 -------------------------- - + Example 2: Add a data disk to a virtual machine - C:\PS> - - -Get-AzureVM -ServiceName service -Name vmName| Set-AzureVMSqlServerExtension -Disable - - Description - ----------- - Disables SQL Server VM extension on a given VM - - - - - - - - - - - - - - - - - -------------------------- EXAMPLE 5 -------------------------- - - - C:\PS> - -Get-AzureVM -ServiceName service -Name vmName| Set-AzureVMSqlServerExtension -UnInstall + PS C:\>Get-AzureVM -ServiceName "ContosoService03" -Name "VirtualMachine05" | Add-AzureDataDisk -CreateNew -MediaLocation "https://ContosoStore1.blob.core.azure.com/vhds/Disk22.vhd" -DiskSizeInGB 128 -DiskLabel "Data-128" -LUN 0 | Update-AzureVM + - Description - ----------- - Uninstalls SQL Server VM extension on a given VM - - - - - - - - + This command adds a new data disk to the virtual machine named VirtualMachine05, running in the service named ContosoService03. + + - - + - - - + Get-AzureVM + + + + New-AzureVM + + + + New-AzureVMConfig + + + + Remove-AzureVM + + + + Restart-AzureVM + + + + Set-AzureVMSize + + + + Start-AzureVM + + + + Stop-AzureVM - \ No newline at end of file + + From 8673816360a3bbaf6ccb9d102a356d77e0883c9e Mon Sep 17 00:00:00 2001 From: Bala Ganapathy Date: Wed, 27 Jan 2016 13:15:03 -0800 Subject: [PATCH 05/27] adding azurestack admin powershell cmdlets --- setup/azurecmdfiles.wxi | 74 + .../AzureRM.AzureStackAdmin.psd1 | 86 + .../AzureStackAdmin/AzureStackAdmin.sln | 39 + .../AdminApiCmdlet.cs | 200 + .../ArgumentValidator.cs | 78 + .../AzureRM.AzureStackAdmin.psd1 | 86 + .../Commands.AzureStackAdmin.csproj | 170 + .../Commands.AzureStackAdmin/CommonPSConst.cs | 38 + .../MSSharedLibKey.snk | Bin 0 -> 160 bytes ...icrosoft.AzureStack.Commands.dll-help.psd1 | 88 + ...Microsoft.AzureStack.Commands.dll-help.xml | 7126 +++++++++++++++++ .../GalleryItems/AddGalleryItem.cs | 78 + .../GalleryItems/GetGalleryItem.cs | 80 + .../GalleryItems/RemoveGalleryItem.cs | 64 + .../ManagedLocations/GetManagedLocation.cs | 66 + .../ManagedLocations/NewManagedLocation.cs | 101 + .../ManagedLocations/RemoveManagedLocation.cs | 59 + .../ManagedLocations/SetManagedLocation.cs | 57 + .../Offers/GetOffer.cs | 122 + .../Offers/NewOffer.cs | 131 + .../Offers/RemoveOffer.cs | 65 + .../Offers/SetOffer.cs | 65 + .../Microsoft.Subscriptions/Plans/GetPlan.cs | 101 + .../Microsoft.Subscriptions/Plans/NewPlan.cs | 120 + .../Plans/RemovePlan.cs | 65 + .../Microsoft.Subscriptions/Plans/SetPlan.cs | 65 + .../AddResourceProviderRegistration.cs | 62 + .../GetResourceProviderRegistration.cs | 73 + .../RemoveResourceProviderRegistration.cs | 65 + .../SetResourceProviderRegistration.cs | 172 + .../Subscriptions/GetManagedSubscription.cs | 63 + .../Subscriptions/GetTenantSubscription.cs | 55 + .../Subscriptions/NewManagedSubscription.cs | 115 + .../Subscriptions/NewTenantSubscription.cs | 108 + .../RemoveManagedSubscription.cs | 57 + .../Subscriptions/RemoveTenantSubscription.cs | 50 + .../Subscriptions/SetManagedSubscription.cs | 61 + .../Subscriptions/SetTenantSubscription.cs | 50 + .../Commands.AzureStackAdmin/Nouns.cs | 68 + .../Properties/AssemblyInfo.cs | 34 + .../Properties/Resources.Designer.cs | 549 ++ .../Properties/Resources.resx | 284 + .../StringExtensions.cs | 79 + .../Token/AuthenticationContextExtensions.cs | 195 + .../Token/GetToken.cs | 210 + .../Token/Shared.Authorization.cs | 67 + .../Commands.AzureStackAdmin/Token/readme.txt | 24 + .../ValidateAbsoluteUriAttribute.cs | 52 + .../Commands.AzureStackAdmin/packages.config | 10 + .../AzureStackAdmin/NuGet.Config | 6 + 50 files changed, 11733 insertions(+) create mode 100644 src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 create mode 100644 src/ResourceManager/AzureStackAdmin/AzureStackAdmin.sln create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AdminApiCmdlet.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ArgumentValidator.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/CommonPSConst.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/MSSharedLibKey.snk create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.AzureStack.Commands.dll-help.psd1 create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.AzureStack.Commands.dll-help.xml create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/AddGalleryItem.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/GetGalleryItem.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/RemoveGalleryItem.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/GetManagedLocation.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/NewManagedLocation.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/RemoveManagedLocation.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/SetManagedLocation.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/GetOffer.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/NewOffer.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/RemoveOffer.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/SetOffer.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/GetPlan.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/NewPlan.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/RemovePlan.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/SetPlan.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/AddResourceProviderRegistration.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/GetResourceProviderRegistration.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/RemoveResourceProviderRegistration.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/SetResourceProviderRegistration.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetManagedSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetTenantSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewManagedSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewTenantSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveManagedSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveTenantSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetManagedSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetTenantSubscription.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Nouns.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.Designer.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.resx create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/StringExtensions.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/AuthenticationContextExtensions.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/GetToken.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/Shared.Authorization.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/readme.txt create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ValidateAbsoluteUriAttribute.cs create mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config create mode 100644 src/ResourceManager/AzureStackAdmin/NuGet.Config diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi index 29857e458615..1aa66e8fffcb 100644 --- a/setup/azurecmdfiles.wxi +++ b/setup/azurecmdfiles.wxi @@ -298,6 +298,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4946,6 +5002,24 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 b/src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 new file mode 100644 index 000000000000..b32a2961de9e --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 @@ -0,0 +1,86 @@ +# +# Module manifest for module 'AzureRM.AzureStackAdmin' +# +# Generated by: Microsoft Corporation +# +# Updated on: 10/27/2015 +# + +@{ + +# Script module or binary module file associated with this manifest +ModuleToProcess = 'Microsoft.AzureStack.Commands.dll' + +# Version number of this module. +ModuleVersion = '0.10.1' + +# ID used to uniquely identify this module +GUID = '0e691e0a-ce16-40f2-af84-86fb0d82fb29' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = '© Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Azure Stack Administration Module' + +# Minimum version of the Windows PowerShell engine required by this module +PowerShellVersion = '3.0' + +# Name of the Windows PowerShell host required by this module +PowerShellHostName = '' + +# Minimum version of the Windows PowerShell host required by this module +PowerShellHostVersion = '' + +# Minimum version of the .NET Framework required by this module +DotNetFrameworkVersion = '4.5' + +# Minimum version of the common language runtime (CLR) required by this module +CLRVersion = '4.0' + +# Processor architecture (None, X86, Amd64, IA64) required by this module +ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @() + +# Assemblies that must be loaded prior to importing this module +# RequiredAssemblies = @() + +# Type files (.ps1xml) to be loaded when importing this module +TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @('AzureStackAdmin.format.ps1xml') + +# Modules to import as nested modules of the module specified in ModuleToProcess +NestedModules = @() + +# Functions to export from this module +FunctionsToExport = '*' + +# Cmdlets to export from this module +CmdletsToExport = '*' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module +AliasesToExport = '*' + +# List of all modules packaged with this module +ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in ModuleToProcess +PrivateData = '' +} + diff --git a/src/ResourceManager/AzureStackAdmin/AzureStackAdmin.sln b/src/ResourceManager/AzureStackAdmin/AzureStackAdmin.sln new file mode 100644 index 000000000000..02e822dc775a --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/AzureStackAdmin.sln @@ -0,0 +1,39 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "..\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "..\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "..\..\Common\Commands.Common\Commands.Common.csproj", "{5EE72C53-1720-4309-B54B-5FB79703195F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.AzureStackAdmin", "Commands.AzureStackAdmin\Commands.AzureStackAdmin.csproj", "{0B02390C-8AA9-4D99-8AA8-2A9D2D39682F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.Build.0 = Release|Any CPU + {0B02390C-8AA9-4D99-8AA8-2A9D2D39682F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0B02390C-8AA9-4D99-8AA8-2A9D2D39682F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0B02390C-8AA9-4D99-8AA8-2A9D2D39682F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0B02390C-8AA9-4D99-8AA8-2A9D2D39682F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AdminApiCmdlet.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AdminApiCmdlet.cs new file mode 100644 index 000000000000..a140d5b1a842 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AdminApiCmdlet.cs @@ -0,0 +1,200 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using System.Net; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.Azure.Commands.ResourceManager.Common; + using Microsoft.Azure.Common.Authentication; + using Microsoft.Azure.Common.Authentication.Models; + using Microsoft.Azure; + using Microsoft.AzureStack.Management; + + /// + /// Base Admin API cmdlet class + /// + public abstract class AdminApiCmdlet : AzureRMCmdlet + { + /// + /// The default API version. + /// + private const string DefaultApiVersion = "1.0"; + + /// + /// Gets or sets the admin base URI + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + [ValidateAbsoluteUri] + public Uri AdminUri { get; set; } + + /// + /// Gets or sets the authentication token + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string Token { get; set; } + + /// + /// Gets or sets the API version. + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string ApiVersion { get; set; } + + /// + /// Gets or sets a value indicating whether to disable certificate validation. + /// + [Parameter] + public SwitchParameter DisableCertificateValidation { get; set; } + + /// + /// Gets the current default context. overriding it here since DefaultContext could be null for Windows Auth/ADFS environments + /// + protected override AzureContext DefaultContext + { + get + { + if (DefaultProfile == null) + { + return null; + } + + return DefaultProfile.Context; + } + } + + /// + /// Execute this cmdlet. + /// + /// + /// Descendant classes must override this methods instead of Cmdlet.ProcessRecord, so + /// we can have a unique place where log all errors. + /// + protected override void ProcessRecord() + { + var originalValidateCallback = ServicePointManager.ServerCertificateValidationCallback; + object result; + + this.ValidateParameters(); + + try + { + // Note: (bryanr) Adding the tracing interceptor requires using a message pump and action queue. See relevant thread in PowerShell Discussions. + ////CloudContext.Configuration.Tracing.AddTracingInterceptor(this); + + // TODO (bryanr) - Evaluate if this should be removed entirely + if (this.DisableCertificateValidation) + { + this.WriteWarning(Resources.WarningDisableCertificateValidation); + ServicePointManager.ServerCertificateValidationCallback = (s, certificate, chain, sslPolicyErrors) => true; + } + + // Initialize parameters bound from the pipeline + this.ApiVersion = this.ApiVersion ?? DefaultApiVersion; + + // Execute the API call(s) for the current cmdlet + result = this.ExecuteCore(); + } + finally + { + if (this.DisableCertificateValidation) + { + ServicePointManager.ServerCertificateValidationCallback = originalValidateCallback; + } + + ////CloudContext.Configuration.Tracing.RemoveTracingInterceptor(this); + } + + // Write the object to the pipeline only after the certificate validation callback has been restored. + // This will prevent other cmdlets in the pipeline from inheriting this security vulnerability. + if (result != null) + { + this.WriteObject(result, enumerateCollection: true); + } + } + + private void ValidateParameters() + { + // if Token is empty, make sure that we have a valid azure profile + if (string.IsNullOrEmpty(this.Token)) + { + if (this.DefaultContext == null) + { + throw new ApplicationException(Resources.InvalidProfile); + } + } + else + { + // if token is specified, AdminUri is required as well + if (this.AdminUri == null) + { + throw new ApplicationException(Resources.TokenAndAdminUriRequired); + } + } + } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected abstract object ExecuteCore(); + + /// + /// Gets the Azure Stack management client. + /// + /// The subscription identifier. + protected AzureStackClient GetAzureStackClient(string subscriptionId = null) + { + if (string.IsNullOrEmpty(this.Token)) + { + return GetAzureStackClientThruAzureSession(); + } + + if (string.IsNullOrEmpty(subscriptionId)) + { + return new AzureStackClient( + baseUri: this.AdminUri, + credentials: new TokenCloudCredentials(token: this.Token), + apiVersion: this.ApiVersion); + } + else + { + return new AzureStackClient( + baseUri: this.AdminUri, + credentials: new TokenCloudCredentials(subscriptionId: subscriptionId, token: this.Token), + apiVersion: this.ApiVersion); + } + } + + /// + /// Gets the Azures Stack management client. + /// + /// The subscription identifier. + protected AzureStackClient GetAzureStackClient(Guid subscriptionId) + { + return this.GetAzureStackClient(subscriptionId.ToString()); + } + + private AzureStackClient GetAzureStackClientThruAzureSession() + { + var armUri = this.DefaultContext.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager); + var credentials = AzureSession.AuthenticationFactory.GetSubscriptionCloudCredentials(this.DefaultContext); + + return AzureSession.ClientFactory.CreateCustomClient(armUri, credentials, this.ApiVersion); + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ArgumentValidator.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ArgumentValidator.cs new file mode 100644 index 000000000000..b9fad6b16e31 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ArgumentValidator.cs @@ -0,0 +1,78 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Collections.Generic; + using System.Linq; + using Microsoft.WindowsAzure.Commands.Common.Properties; + + /// + /// Argument Validation Methods + /// + public static class ArgumentValidator + { + /// + /// Checks if argument is null. + /// + /// Name of the property. + /// The value. + public static void ValidateNotNull(string paramName, object value) + { + if (value == null) + { + throw new ArgumentNullException(paramName); + } + } + + /// + /// Checks if argument is empty. + /// + /// Name of the property. + /// The value. + public static void ValidateNotEmpty(string paramName, string value) + { + if (value == null) + { + throw new ArgumentNullException(paramName); + } + + if (string.IsNullOrWhiteSpace(value)) + { + throw new ArgumentException(Resources.ExpectedNotEmptyValue, paramName: paramName); + } + } + + /// + /// Checks if argument is null or empty collection. + /// + /// Type of items in the collection + /// Name of the property. + /// The collection. + public static void ValidateNotEmpty(string paramName, IEnumerable collection) + { + if (collection == null) + { + throw new ArgumentNullException(paramName); + } + + if (!collection.Any()) + { + throw new ArgumentException(Resources.ExpectedNotEmptyCollection, paramName: paramName); + } + } + + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 new file mode 100644 index 000000000000..b32a2961de9e --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 @@ -0,0 +1,86 @@ +# +# Module manifest for module 'AzureRM.AzureStackAdmin' +# +# Generated by: Microsoft Corporation +# +# Updated on: 10/27/2015 +# + +@{ + +# Script module or binary module file associated with this manifest +ModuleToProcess = 'Microsoft.AzureStack.Commands.dll' + +# Version number of this module. +ModuleVersion = '0.10.1' + +# ID used to uniquely identify this module +GUID = '0e691e0a-ce16-40f2-af84-86fb0d82fb29' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = '© Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Azure Stack Administration Module' + +# Minimum version of the Windows PowerShell engine required by this module +PowerShellVersion = '3.0' + +# Name of the Windows PowerShell host required by this module +PowerShellHostName = '' + +# Minimum version of the Windows PowerShell host required by this module +PowerShellHostVersion = '' + +# Minimum version of the .NET Framework required by this module +DotNetFrameworkVersion = '4.5' + +# Minimum version of the common language runtime (CLR) required by this module +CLRVersion = '4.0' + +# Processor architecture (None, X86, Amd64, IA64) required by this module +ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @() + +# Assemblies that must be loaded prior to importing this module +# RequiredAssemblies = @() + +# Type files (.ps1xml) to be loaded when importing this module +TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @('AzureStackAdmin.format.ps1xml') + +# Modules to import as nested modules of the module specified in ModuleToProcess +NestedModules = @() + +# Functions to export from this module +FunctionsToExport = '*' + +# Cmdlets to export from this module +CmdletsToExport = '*' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module +AliasesToExport = '*' + +# List of all modules packaged with this module +ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in ModuleToProcess +PrivateData = '' +} + diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj new file mode 100644 index 000000000000..6bfb217c8db8 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj @@ -0,0 +1,170 @@ + + + + + Debug + AnyCPU + {0B02390C-8AA9-4D99-8AA8-2A9D2D39682F} + Library + Properties + Microsoft.AzureStack.Commands + Microsoft.AzureStack.Commands + v4.5 + 512 + ..\ + true + + f4bbdcaf + + + true + full + false + ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRm.AzureStackAdmin\ + TRACE;DEBUG + prompt + 4 + false + false + true + true + MinimumRecommendedRules.ruleset + + + pdbonly + true + ..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRm.AzureStackAdmin\ + TRACE;SIGN + prompt + 4 + true + true + MSSharedLibKey.snk + true + false + + + + False + ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + + + False + ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll + + + + + + + + ..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll + + + ..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Primitives.dll + + + + + + + + + ..\..\..\packages\Microsoft.AzureStack.Management.0.9.01-preview\lib\net45\Microsoft.AzureStack.Management.dll + + + ..\..\..\packages\Hyak.Common.1.0.3\lib\net40\Hyak.Common.dll + + + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll + + + ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.6.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll + True + + + ..\..\..\packages\Microsoft.Rest.ClientRuntime.1.8.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + True + + + + + {5ee72c53-1720-4309-b54b-5fb79703195f} + Commands.Common + + + {3819d8a7-c62c-4c47-8ddd-0332d9ce1252} + Commands.ResourceManager.Common + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + True + Resources.resx + + + + + + + + Always + + + Always + + + Designer + + + + + PublicResXFileCodeGenerator + Resources.Designer.cs + Designer + Microsoft.AzureStack.Commands + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/CommonPSConst.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/CommonPSConst.cs new file mode 100644 index 000000000000..ba6e66d21cd3 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/CommonPSConst.cs @@ -0,0 +1,38 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + /// + /// Common constants for all PowerShell modules + /// + public static class CommonPSConst + { + /// + /// Parameter set names + /// + public static class ParameterSet + { + /// + /// Parameter set for property base parameters. + /// + public const string ByProperty = "ByProperty"; + + /// + /// Parameter set for full object base parameters. + /// + public const string ByObject = "ByObject"; + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/MSSharedLibKey.snk b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/MSSharedLibKey.snk new file mode 100644 index 0000000000000000000000000000000000000000..695f1b38774e839e5b90059bfb7f32df1dff4223 GIT binary patch literal 160 zcmV;R0AK$ABme*efB*oL000060ssI2Bme+XQ$aBR1ONa50098C{E+7Ye`kjtcRG*W zi8#m|)B?I?xgZ^2Sw5D;l4TxtPwG;3)3^j?qDHjEteSTF{rM+4WI`v zCD?tsZ^;k+S&r1&HRMb=j738S=;J$tCKNrc$@P|lZ + + + + Add-AzureRMGalleryItem + + Adds a new Gallery Item to the Gallery Service. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Add + AzureRMGalleryItem + + + + + + + + Add-AzureRMGalleryItem + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to uploading the Gallery Item + + Guid + + + Path + + Path to the azpkg file + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to uploading the Gallery Item + + Guid + + Guid + + + + + + Path + + Path to the azpkg file + + String + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Add-AzureRMResourceProviderRegistration + + Enables you to add a custom Resource Provider to Resource Manager. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Add + AzureRMResourceProviderRegistration + + + + + + + + Add-AzureRMResourceProviderRegistration + + ArmLocation + + + + String + + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + DisplayName + + Display Name for the Resource Provider + + String + + + Location + + The Location to which you'd like to register the Resource Provider. It should be a value that already exists in the system. + + String + + + ManifestEndpoint + + The endpoint of the Manifest for the Resource Provider that needs to be registered with Azure Stack + + Uri + + + UserName + + UserName for the Manifest endpoint + + String + + + Password + + Password for the Manifest endpoint + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Add-AzureRMResourceProviderRegistration + + ProviderRegistration + + Provider Registration Object + + ProviderRegistrationModel + + + ArmLocation + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ArmLocation + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + DisplayName + + Display Name for the Resource Provider + + String + + String + + + + + + Location + + The Location to which you'd like to register the Resource Provider. It should be a value that already exists in the system. + + String + + String + + + + + + ManifestEndpoint + + The endpoint of the Manifest for the Resource Provider that needs to be registered with Azure Stack + + Uri + + Uri + + + + + + UserName + + UserName for the Manifest endpoint + + String + + String + + + + + + Password + + Password for the Manifest endpoint + + String + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + ProviderRegistration + + Provider Registration Object + + ProviderRegistrationModel + + ProviderRegistrationModel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRMGalleryItem + + fetches a Gallery Item from the Gallery Service. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Get + AzureRMGalleryItem + + + + + + + + Get-AzureRMGalleryItem + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRMManagedLocation + + Gets all the regions registered in the cloud. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Get + AzureRMManagedLocation + + + + + + + + Get-AzureRMManagedLocation + + Name + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRMManagedSubscription + + Gets a list of all Tenant Subscriptions in the system managed by the admin user. + + + + + Get + AzureRMManagedSubscription + + + + + + + + Get-AzureRMManagedSubscription + + TargetSubscriptionId + + + + Guid + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + TargetSubscriptionId + + + + Guid + + Guid + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRMOffer + + Gets the list of all Offers in the system. When the Offer Id or Name is mentioned, it fetches the specific Offer. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Get + AzureRMOffer + + + + + + + + Get-AzureRMOffer + + Provider + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRMOffer + + OfferId + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRMOffer + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + Managed + + + + SwitchParameter + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Provider + + + + String + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + OfferId + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + Managed + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRMPlan + + Gets the list of all Plans in the system. When the Plan Name is mentioned, it fetches the specific Plan. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Get + AzureRMPlan + + + + + + + + Get-AzureRMPlan + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRMPlan + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + Managed + + + + SwitchParameter + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureRMPlan + + Name + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + Managed + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRMResourceProviderRegistration + + Gets all the Resource Provider registered to the cloud. This cmdlet is applicable only to Microsoft Azure Stack Environments. + + + + + Get + AzureRMResourceProviderRegistration + + + + + + + + Get-AzureRMResourceProviderRegistration + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureRMTenantSubscription + + Gets a list of Subscriptions that a user has access to.. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Get + AzureRMTenantSubscription + + + + + + + + Get-AzureRMTenantSubscription + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-AzureStackToken + + Gets a token for a specified user. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Get + AzureStackToken + + + + + + + + Get-AzureStackToken + + Authority + + + + String + + + Resource + + + + String + + + ClientId + + + + String + + + Credential + + + + PSCredential + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureStackToken + + Authority + + + + String + + + Resource + + + + String + + + AadTenantId + + + + String + + + ClientId + + + + String + + + Credential + + + + PSCredential + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Authority + + + + String + + String + + + + + + Resource + + + + String + + String + + + + + + ClientId + + + + String + + String + + + + + + Credential + + + + PSCredential + + PSCredential + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + AadTenantId + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureRMManagedLocation + + Adds a region to the cloud. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + New + AzureRMManagedLocation + + + + + + + + New-AzureRMManagedLocation + + Name + + + + String + + + DisplayName + + + + String + + + Latitude + + + + Double + + + Longitude + + + + Double + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + DisplayName + + + + String + + String + + + + + + Latitude + + + + Double + + Double + + + + + + Longitude + + + + Double + + Double + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureRMManagedSubscription + + Adds a new Subscription for the current user. This is applicable only to users with access to the Subscriptions.Admin namespace. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + New + AzureRMManagedSubscription + + + + + + + + New-AzureRMManagedSubscription + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + Owner + + + + String + + + OfferId + + + + String + + + DisplayName + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + Owner + + + + String + + String + + + + + + OfferId + + + + String + + String + + + + + + DisplayName + + + + String + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureRMOffer + + Creates a new Offer. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + New + AzureRMOffer + + + + + + + + New-AzureRMOffer + + Name + + + + String + + + DisplayName + + + + String + + + State + + + + AccessibilityState + + + BasePlans + + + + AdminPlanModel[] + + + ArmLocation + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + DisplayName + + + + String + + String + + + + + + State + + + + AccessibilityState + + AccessibilityState + + + + + + BasePlans + + + + AdminPlanModel[] + + AdminPlanModel[] + + + + + + ArmLocation + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureRMPlan + + Creates a new Plan. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + New + AzureRMPlan + + + + + + + + New-AzureRMPlan + + Name + + + + String + + + DisplayName + + + + String + + + State + + + + AccessibilityState + + + ArmLocation + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + DisplayName + + + + String + + String + + + + + + State + + + + AccessibilityState + + AccessibilityState + + + + + + ArmLocation + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + New-AzureRMTenantSubscription + + Creates a new Tenant Subscription. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + New + AzureRMTenantSubscription + + + + + + + + New-AzureRMTenantSubscription + + Owner + + + + String + + + OfferId + + + + String + + + DisplayName + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Owner + + + + String + + String + + + + + + OfferId + + + + String + + String + + + + + + DisplayName + + + + String + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRMGalleryItem + + Removes a Gallery Item from the Gallery Service. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Remove + AzureRMGalleryItem + + + + + + + + Remove-AzureRMGalleryItem + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRMManagedLocation + + Removes a region from the cloud. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Remove + AzureRMManagedLocation + + + + + + + + Remove-AzureRMManagedLocation + + Name + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRMManagedSubscription + + Removes a Subscription from the current user. This is applicable only to users with access to the Subscriptions.Admin namespace + + + + + Remove + AzureRMManagedSubscription + + + + + + + + Remove-AzureRMManagedSubscription + + SubscriptionId + + + + Guid + + + TargetSubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + SubscriptionId + + + + Guid + + Guid + + + + + + TargetSubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRMOffer + + Removes an Offer. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Remove + AzureRMOffer + + + + + + + + Remove-AzureRMOffer + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRMPlan + + Removes a Plan. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Remove + AzureRMPlan + + + + + + + + Remove-AzureRMPlan + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRMResourceProviderRegistration + + Removes a custom Resource Provider from the cloud. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Remove + AzureRMResourceProviderRegistration + + + + + + + + Remove-AzureRMResourceProviderRegistration + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureRMTenantSubscription + + Removes a Tenant Subscription. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Remove + AzureRMTenantSubscription + + + + + + + + Remove-AzureRMTenantSubscription + + TargetSubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + TargetSubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRMManagedLocation + + Updates a region in the cloud. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Set + AzureRMManagedLocation + + + + + + + + Set-AzureRMManagedLocation + + Location + + + + Location + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + + + Location + + Location + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRMManagedSubscription + + Updates a Subscription for the current user. This cmdlet can be used only by users with access to the Subscriptions.Admin namespace. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Set + AzureRMManagedSubscription + + + + + + + + Set-AzureRMManagedSubscription + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + Subscription + + + + SubscriptionDefinition + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + Subscription + + + + SubscriptionDefinition + + SubscriptionDefinition + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRMOffer + + Updates an Offer. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Set + AzureRMOffer + + + + + + + + Set-AzureRMOffer + + Offer + + + + AdminOfferModel + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Offer + + + + AdminOfferModel + + AdminOfferModel + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRMPlan + + Updates a Plan. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Set + AzureRMPlan + + + + + + + + Set-AzureRMPlan + + Plan + + + + AdminPlanModel + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Plan + + + + AdminPlanModel + + AdminPlanModel + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRMResourceProviderRegistration + + Updates a Resource Provider Registration. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Set + AzureRMResourceProviderRegistration + + + + + + + + Set-AzureRMResourceProviderRegistration + + ArmLocation + + + + String + + + Name + + + + String + + + ResourceGroup + + + + String + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + + DisplayName + + + + String + + + Location + + + + String + + + ManifestEndpoint + + + + Uri + + + UserName + + + + String + + + Password + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureRMResourceProviderRegistration + + ProviderRegistration + + + + ProviderRegistrationModel + + + ArmLocation + + + + String + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ArmLocation + + + + String + + String + + + + + + Name + + + + String + + String + + + + + + ResourceGroup + + + + String + + String + + + + + + SubscriptionId + + The Id of the subscription that has access to the required namespace to complete the operation + + Guid + + Guid + + + + + + DisplayName + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + ManifestEndpoint + + + + Uri + + Uri + + + + + + UserName + + + + String + + String + + + + + + Password + + + + String + + String + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + ProviderRegistration + + + + ProviderRegistrationModel + + ProviderRegistrationModel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-AzureRMTenantSubscription + + Updates a tenant subscription. This cmdlet is applicable only to Microsoft Azure Stack Environments + + + + + Set + AzureRMTenantSubscription + + + + + + + + Set-AzureRMTenantSubscription + + Subscription + + + + SubscriptionDefinition + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + + ApiVersion + + Version of the API for this request + + String + + + DisableCertificateValidation + + + + SwitchParameter + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Subscription + + + + SubscriptionDefinition + + SubscriptionDefinition + + + + + + AdminUri + + URI of the Azure Resource Manager endpoint + + Uri + + Uri + + + + + + Token + + A valid Security token for a user/principal that has access to the Subscription + + String + + String + + + + + + ApiVersion + + Version of the API for this request + + String + + String + + + + + + DisableCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/AddGalleryItem.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/AddGalleryItem.cs new file mode 100644 index 000000000000..79a46759df3e --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/AddGalleryItem.cs @@ -0,0 +1,78 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.IO; + using System.Management.Automation; + using Microsoft.Azure; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Gallery Item Cmdlet + /// + [Cmdlet(VerbsCommon.Add, Nouns.GalleryItem)] + [OutputType(typeof(AzureOperationResponse))] + public class AddGalleryItem : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription identifier. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateNotNull] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets or sets the path. TODO - support directory and file path. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateNotNull] + public string Path { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + this.WriteVerbose(Resources.AddingGalleryItem.FormatArgs(this.Name)); + + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + using (var filestream = File.Open(this.Path, FileMode.Open, FileAccess.Read)) + { + var manifest = client.Package.CreateOrUpdate(this.ResourceGroup, Guid.NewGuid().ToString(), filestream); + var uploadParameters = new GalleryItemCreateOrUpdateParameters() { Manifest = manifest.Manifest }; + return client.GalleryItem.CreateOrUpdate(this.ResourceGroup, this.Name, uploadParameters); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/GetGalleryItem.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/GetGalleryItem.cs new file mode 100644 index 000000000000..297ce31e64f1 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/GetGalleryItem.cs @@ -0,0 +1,80 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Gallery Item Cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.GalleryItem)] + [OutputType(typeof(GalleryItemModel))] + public class GetGalleryItem : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription identifier. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateNotNull] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + if (string.IsNullOrEmpty(this.Name)) + { + this.WriteVerbose(Resources.ListingGalleryItems); + + return string.IsNullOrEmpty(this.ResourceGroup) + ? client.GalleryItem.ListWithoutResourceGroup().GalleryItems + : client.GalleryItem.List(this.ResourceGroup).GalleryItems; + } + else if (string.IsNullOrEmpty(this.ResourceGroup)) + { + throw new ValidationMetadataException(Resources.ResourceGroupCannotBeEmpty); + } + else + { + this.WriteVerbose(Resources.GettingGalleryItem.FormatArgs(this.Name)); + return client.GalleryItem.Get(this.ResourceGroup, this.Name).GalleryItem; + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/RemoveGalleryItem.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/RemoveGalleryItem.cs new file mode 100644 index 000000000000..87cc4829d1bd --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Gallery/GalleryItems/RemoveGalleryItem.cs @@ -0,0 +1,64 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.Azure; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + + /// + /// Gallery Item Cmdlet + /// + [Cmdlet(VerbsCommon.Remove, Nouns.GalleryItem)] + [OutputType(typeof(AzureOperationResponse))] + public class RemoveGalleryItem : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription identifier. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateNotNull] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + return client.GalleryItem.Delete(this.ResourceGroup, this.Name); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/GetManagedLocation.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/GetManagedLocation.cs new file mode 100644 index 000000000000..dca7bd457b92 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/GetManagedLocation.cs @@ -0,0 +1,66 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Remove managed location cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.Location)] + [OutputType(typeof(Location))] + public class GetManagedLocation : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter] + [ValidateLength(1, 128)] + [ValidateNotNull] + [ValidatePattern("^[0-9a-z]+$")] + public string Name { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets the managed location + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + if (string.IsNullOrEmpty(this.Name)) + { + this.WriteVerbose(Resources.ListingManagedLocations); + return client.ManagedLocations.List().Locations; + } + else + { + this.WriteVerbose(Resources.GettingManagedLocation.FormatArgs(this.Name)); + return client.ManagedLocations.Get(this.Name).Location; + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/NewManagedLocation.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/NewManagedLocation.cs new file mode 100644 index 000000000000..0e18a05863ea --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/NewManagedLocation.cs @@ -0,0 +1,101 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Globalization; + using System.Linq; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// New managed location cmdlet + /// + [Cmdlet(VerbsCommon.New, Nouns.Location)] + [OutputType(typeof(Location))] + public class NewManagedLocation : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + [ValidatePattern("^[0-9a-z]+$")] + public string Name { get; set; } + + /// + /// Gets or sets the display name. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string DisplayName { get; set; } + + /// + /// Gets or sets the latitude of location in signed degrees format. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + [ValidateRange(-90.0, 90.0)] + public double Latitude { get; set; } + + /// + /// Gets or sets the longitude of location in signed degrees format. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + [ValidateRange(-180.0, 180.0)] + public double Longitude { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Creates a new location + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.CreatingNewManagedLocation.FormatArgs(this.Name)); + var parameters = new ManagedLocationCreateOrUpdateParameters() + { + Location = new Location() + { + DisplayName = this.DisplayName, + Latitude = this.Latitude.ToString(CultureInfo.InvariantCulture), + Longitude = this.Longitude.ToString(CultureInfo.InvariantCulture), + Name = this.Name + } + }; + + if (client.ManagedLocations.List() + .Locations.Any(location => location.Name.EqualsInsensitively(parameters.Location.Name))) + { + throw new PSInvalidOperationException(Resources.ManagedLocationAlreadyExists.FormatArgs(parameters.Location.Name)); + } + + return client.ManagedLocations.CreateOrUpdate(parameters).Location; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/RemoveManagedLocation.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/RemoveManagedLocation.cs new file mode 100644 index 000000000000..0cd75526f60c --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/RemoveManagedLocation.cs @@ -0,0 +1,59 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.Azure; + using Microsoft.WindowsAzure; + using Microsoft.AzureStack.Management; + + /// + /// Remove managed location cmdlet + /// + [Cmdlet(VerbsCommon.Remove, Nouns.Location)] + [OutputType(typeof(AzureOperationResponse))] + public class RemoveManagedLocation : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + [ValidatePattern("^[0-9a-z]+$")] + public string Name { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Removes the specified location + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.RemovingManagedLocation.FormatArgs(this.Name)); + return client.ManagedLocations.Delete(this.Name); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/SetManagedLocation.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/SetManagedLocation.cs new file mode 100644 index 000000000000..8cb6372aa5fa --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ManagedLocations/SetManagedLocation.cs @@ -0,0 +1,57 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Set managed location cmdlet + /// + [Cmdlet(VerbsCommon.Set, Nouns.Location)] + [OutputType(typeof(Location))] + public class SetManagedLocation : AdminApiCmdlet + { + /// + /// Gets or sets the managed location. + /// + [Parameter(ValueFromPipeline = true, Mandatory = true)] + [ValidateNotNull] + public Location Location { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Updates the managed location with new values + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.UpdatingManagedLocation.FormatArgs(this.Location.Name)); + var parameters = new ManagedLocationCreateOrUpdateParameters(this.Location); + return client.ManagedLocations.CreateOrUpdate(parameters).Location; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/GetOffer.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/GetOffer.cs new file mode 100644 index 000000000000..2425306b6cd3 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/GetOffer.cs @@ -0,0 +1,122 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Get Offer cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.Offer, DefaultParameterSetName = "TenantList")] + [OutputType(typeof(OfferDefinition))] + [OutputType(typeof(AdminOfferModel))] + public class GetOffer : AdminApiCmdlet + { + /// + /// Gets or sets the offer identifier used in the tenant get flow. + /// + [Parameter(ParameterSetName = "TenantGet", Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string OfferId { get; set; } + + /// + /// Gets or sets the provider name. + /// + [Parameter(ParameterSetName = "TenantList")] + [ValidateNotNull] + public string Provider { get; set; } + + /// + /// Gets or sets the Offer name used in the Admin get flow. + /// + [Parameter(ParameterSetName = "Admin")] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ParameterSetName = "Admin", Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = "Admin", Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets or sets a switch indicating whether to return managed offers. + /// + [Parameter(ParameterSetName = "Admin", Mandatory = true)] + public SwitchParameter Managed { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + if (this.Managed.IsPresent) + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + if (string.IsNullOrEmpty(this.Name)) + { + this.WriteVerbose(Resources.ListingManagedOffers.FormatArgs(this.ResourceGroup)); + return client.ManagedOffers.List(this.ResourceGroup, includeDetails: true).Offers; + } + else + { + this.WriteVerbose(Resources.GettingManagedOffer.FormatArgs(this.Name, this.ResourceGroup)); + return client.ManagedOffers.Get(this.ResourceGroup, this.Name).Offer; + } + } + } + else + { + using (var client = this.GetAzureStackClient()) + { + if (string.IsNullOrEmpty(this.OfferId)) + { + if (string.IsNullOrEmpty(this.Provider)) + { + this.WriteVerbose(Resources.ListingOffers.FormatArgs("")); + return client.Offers.ListUnderRootProvider().Offers; + } + else + { + this.WriteVerbose(Resources.ListingOffers.FormatArgs(this.Provider)); + return client.Offers.List(this.Provider).Offers; + } + } + else + { + this.WriteVerbose(Resources.GettingOffer.FormatArgs(this.OfferId)); + return client.Offers.Get(this.OfferId).Offer; + } + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/NewOffer.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/NewOffer.cs new file mode 100644 index 000000000000..bb7d98a948a6 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/NewOffer.cs @@ -0,0 +1,131 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Collections.Generic; + using System.Linq; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// New Offer cmdlet + /// + [Cmdlet(VerbsCommon.New, Nouns.Offer)] + [OutputType(typeof(AdminOfferModel))] + public class NewOffer : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the display name. + /// + [Parameter] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string DisplayName { get; set; } + + /// + /// Gets or sets the state of the offer. + /// + [Parameter] + public AccessibilityState State { get; set; } + + /// + /// Gets or sets the base plans. + /// + [Parameter(ValueFromPipeline = true)] + [ValidateNotNull] + public AdminPlanModel[] BasePlans { get; set; } + + /// + /// Gets or sets the resource manager location. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + public string ArmLocation { get; set; } // TODO - use API to get CSM location? + + /// + /// Gets or sets the resource group. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + this.WriteVerbose(Resources.CreatingNewOffer.FormatArgs(this.Name, this.ResourceGroup)); + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + // Ensure the resource group is created + client.ResourceGroups.CreateOrUpdate(new ResourceGroupCreateOrUpdateParameters() + { + ResourceGroup = new ResourceGroupDefinition() + { + Location = this.ArmLocation, + Name = this.ResourceGroup, + } + }); + + var parameters = new ManagedOfferCreateOrUpdateParameters() + { + Offer = new AdminOfferModel() + { + Name = this.Name, + Location = this.ArmLocation, + Properties = new AdminOfferDefinition() + { + Name = this.Name, + DisplayName = this.DisplayName, + State = this.State, + } + } + }; + + if (this.BasePlans != null && this.BasePlans.Length > 0) + { + parameters.Offer.Properties.BasePlans = this.BasePlans.Select(plan => plan.Properties).ToArray(); + } + + if (client.ManagedOffers.List(this.ResourceGroup, includeDetails: false).Offers + .Any(offer => string.Equals(offer.Properties.Name, parameters.Offer.Properties.Name, StringComparison.OrdinalIgnoreCase))) + { + throw new PSInvalidOperationException(Resources.ManagedOfferAlreadyExists.FormatArgs(parameters.Offer.Properties.Name, this.ResourceGroup)); + } + + return client.ManagedOffers.CreateOrUpdate(this.ResourceGroup, parameters).Offer; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/RemoveOffer.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/RemoveOffer.cs new file mode 100644 index 000000000000..ef05e409042b --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/RemoveOffer.cs @@ -0,0 +1,65 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.Azure; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + + /// + /// Remove Offer cmdlet + /// + [Cmdlet(VerbsCommon.Remove, Nouns.Offer)] + [OutputType(typeof(AzureOperationResponse))] + public class RemoveOffer : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.RemovingManagedOffer.FormatArgs(this.Name, this.ResourceGroup)); + return client.ManagedOffers.Delete(this.ResourceGroup, this.Name); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/SetOffer.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/SetOffer.cs new file mode 100644 index 000000000000..0c632aef8b22 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Offers/SetOffer.cs @@ -0,0 +1,65 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Set Offer cmdlet + /// + [Cmdlet(VerbsCommon.Set, Nouns.Offer)] + [OutputType(typeof(AdminOfferModel))] + public class SetOffer : AdminApiCmdlet + { + /// + /// Gets or sets the offer. + /// + [Parameter(ValueFromPipeline = true, Mandatory = true)] + [ValidateNotNull] + public AdminOfferModel Offer { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.UpdatingOffer.FormatArgs(this.Offer.Name, this.ResourceGroup)); + var parameters = new ManagedOfferCreateOrUpdateParameters(this.Offer); + return client.ManagedOffers.CreateOrUpdate(this.ResourceGroup, parameters).Offer; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/GetPlan.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/GetPlan.cs new file mode 100644 index 000000000000..ab549b101f77 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/GetPlan.cs @@ -0,0 +1,101 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Get Plan cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.Plan, DefaultParameterSetName = "TenantList")] + [OutputType(typeof(AdminPlanModel))] + ////[OutputType(typeof(PlanDefinition))] + public class GetPlan : AdminApiCmdlet + { + /// + /// Gets or sets the Offer name. + /// + [Parameter(ParameterSetName = "TenantGet", Mandatory = true)] + [Parameter(ParameterSetName = "Admin")] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ParameterSetName = "Admin", Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = "Admin", Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets or sets a switch indicating whether to return managed plans. + /// + [Parameter(ParameterSetName = "Admin", Mandatory = true)] + public SwitchParameter Managed { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + if (this.Managed.IsPresent) + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + if (string.IsNullOrEmpty(this.Name)) + { + this.WriteVerbose(Resources.ListingManagedPlans.FormatArgs(this.ResourceGroup)); + return client.ManagedPlans.List(this.ResourceGroup, includeDetails: true).Plans; + } + else + { + this.WriteVerbose(Resources.GettingManagedPlan.FormatArgs(this.Name, this.ResourceGroup)); + return client.ManagedPlans.Get(this.ResourceGroup, this.Name).Plan; + } + } + } + else + { + throw new PSNotSupportedException("This API is not supported at this time. Please use the -Managed switch to get managed plans."); + + ////using (var client = this.GetAzureStackClient()) + ////{ + //// if (string.IsNullOrEmpty(this.Name)) + //// { + //// this.WriteVerbose(Resources.ListingPlans); + //// return client.Plans.List(includeDetails: true).Plans; + //// } + //// else + //// { + //// this.WriteVerbose(Resources.GettingPlan.FormatArgs(this.Name)); + //// return client.Plans.Get(this.Name).Plan; + //// } + ////} + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/NewPlan.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/NewPlan.cs new file mode 100644 index 000000000000..0960b62a0994 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/NewPlan.cs @@ -0,0 +1,120 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Linq; + using Microsoft.WindowsAzure.Commands.Common; + using System.Management.Automation; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// New Plan cmdlet + /// + [Cmdlet(VerbsCommon.New, Nouns.Plan, DefaultParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [OutputType(typeof(AdminPlanModel))] + public class NewPlan : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the display name. + /// + [Parameter] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string DisplayName { get; set; } + + /// + /// Gets or sets the state of the offer. + /// + [Parameter] + public AccessibilityState State { get; set; } + + /// + /// Gets or sets the resource manager location. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + public string ArmLocation { get; set; } // TODO - use API to get CSM location? + + /// + /// Gets or sets the resource group. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + this.WriteVerbose(Resources.CreatingNewPlan.FormatArgs(this.Name, this.ResourceGroup)); + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + // Ensure the resource group is created + client.ResourceGroups.CreateOrUpdate(new ResourceGroupCreateOrUpdateParameters() + { + ResourceGroup = new ResourceGroupDefinition() + { + Location = this.ArmLocation, + Name = this.ResourceGroup, + } + }); + + // TODO - determine what properties are needed + var parameters = new ManagedPlanCreateOrUpdateParameters() + { + Plan = new AdminPlanModel() + { + Name = this.Name, + Location = this.ArmLocation, + Properties = new AdminPlanDefinition() + { + Name = this.Name, + DisplayName = this.DisplayName, + State = this.State, + ServiceQuotas = new ServiceQuotaDefinition[0], + } + } + }; + + if (client.ManagedPlans.List(this.ResourceGroup, includeDetails: false).Plans + .Any(p => string.Equals(p.Properties.Name, parameters.Plan.Properties.Name, StringComparison.OrdinalIgnoreCase))) + { + throw new PSInvalidOperationException(Resources.ManagedPlanAlreadyExists.FormatArgs(parameters.Plan.Properties.Name, this.ResourceGroup)); + } + + return client.ManagedPlans.CreateOrUpdate(this.ResourceGroup, parameters).Plan; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/RemovePlan.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/RemovePlan.cs new file mode 100644 index 000000000000..11ebb42b0f9c --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/RemovePlan.cs @@ -0,0 +1,65 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.Azure; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + + /// + /// Remove Plan cmdlet + /// + [Cmdlet(VerbsCommon.Remove, Nouns.Plan)] + [OutputType(typeof(AzureOperationResponse))] + public class RemovePlan : AdminApiCmdlet + { + /// + /// Gets or sets the name. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.RemovingManagedPlan.FormatArgs(this.Name, this.ResourceGroup)); + return client.ManagedPlans.Delete(this.ResourceGroup, this.Name); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/SetPlan.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/SetPlan.cs new file mode 100644 index 000000000000..58f2db219a85 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Plans/SetPlan.cs @@ -0,0 +1,65 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Linq; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Set Plan cmdlet + /// + [Cmdlet(VerbsCommon.Set, Nouns.Plan)] + [OutputType(typeof(AdminPlanModel))] + public class SetPlan : AdminApiCmdlet + { + /// + /// Gets or sets the plan. + /// + [Parameter(ValueFromPipeline = true, Mandatory = true)] + [ValidateNotNull] + public AdminPlanModel Plan { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.UpdatingPlan.FormatArgs(this.Plan.Name, this.ResourceGroup)); + var parameters = new ManagedPlanCreateOrUpdateParameters(this.Plan); + return client.ManagedPlans.CreateOrUpdate(this.ResourceGroup, parameters).Plan; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/AddResourceProviderRegistration.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/AddResourceProviderRegistration.cs new file mode 100644 index 000000000000..06e8aee9d04e --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/AddResourceProviderRegistration.cs @@ -0,0 +1,62 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Linq; + using System.Management.Automation; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + using Microsoft.WindowsAzure.Commands.Common; + + /// + /// Add Resource Provider Registration Cmdlet + /// + [Cmdlet(VerbsCommon.Add, Nouns.ResourceProviderRegistration, DefaultParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [OutputType(typeof(ProviderRegistrationModel))] + public class AddResourceProviderRegistration : SetResourceProviderRegistration + { + /// + /// Validates the prerequisites. + /// + /// The client. + /// The parameters. + protected override void ValidatePrerequisites(AzureStackClient client, ProviderRegistrationCreateOrUpdateParameters parameters) + { + ArgumentValidator.ValidateNotNull("client", client); + ArgumentValidator.ValidateNotNull("parameters", parameters); + + client.ResourceGroups.CreateOrUpdate(new ResourceGroupCreateOrUpdateParameters() + { + ResourceGroup = new ResourceGroupDefinition() + { + Location = this.ArmLocation, + Name = this.ResourceGroup, + } + }); + + var name = parameters.ProviderRegistration.Properties.Name; + var location = parameters.ProviderRegistration.Properties.Location; + + if (client.ProviderRegistrations.List(this.ResourceGroup).ProviderRegistrations + .Any(p => + string.Equals(p.Properties.Manifest.Namespace, name, StringComparison.OrdinalIgnoreCase) + && string.Equals(p.Properties.Location, location, StringComparison.OrdinalIgnoreCase))) + { + throw new PSInvalidOperationException(Resources.ProviderRegistrationAlreadyExists.FormatArgs(name, location)); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/GetResourceProviderRegistration.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/GetResourceProviderRegistration.cs new file mode 100644 index 000000000000..aa314344f518 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/GetResourceProviderRegistration.cs @@ -0,0 +1,73 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Resource Provider Registration Cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.ResourceProviderRegistration)] + [OutputType(typeof(ProviderRegistrationModel))] + public class GetResourceProviderRegistration : AdminApiCmdlet + { + /// + /// Gets or sets the resource provider registration name. + /// + [Parameter] + [ValidateLength(1, 128)] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateNotNull] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + if (string.IsNullOrEmpty(this.Name)) + { + this.WriteVerbose(Resources.ListingResourceProviderRegistration); + return client.ProviderRegistrations.List(this.ResourceGroup).ProviderRegistrations; + } + else + { + this.WriteVerbose(Resources.GettingResourceProviderRegistration.FormatArgs(this.Name)); + return client.ProviderRegistrations.Get(this.ResourceGroup, this.Name).ProviderRegistration; + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/RemoveResourceProviderRegistration.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/RemoveResourceProviderRegistration.cs new file mode 100644 index 000000000000..ad4c3351725c --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/RemoveResourceProviderRegistration.cs @@ -0,0 +1,65 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.Azure; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.WindowsAzure; + using Microsoft.AzureStack.Management; + + /// + /// Resource Provider Registration Cmdlet + /// + [Cmdlet(VerbsCommon.Remove, Nouns.ResourceProviderRegistration)] + [OutputType(typeof(AzureOperationResponse))] + public class RemoveResourceProviderRegistration : AdminApiCmdlet + { + /// + /// Gets or sets the resource provider registration name. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateNotNull] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.RemovingResourceProviderRegistration.FormatArgs(this.Name)); + return client.ProviderRegistrations.Delete(this.ResourceGroup, this.Name); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/SetResourceProviderRegistration.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/SetResourceProviderRegistration.cs new file mode 100644 index 000000000000..dc4d9c9e1ac0 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/ProviderRegistrations/SetResourceProviderRegistration.cs @@ -0,0 +1,172 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Linq; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Resource Provider Registration Cmdlet + /// + [Cmdlet(VerbsCommon.Set, Nouns.ResourceProviderRegistration, DefaultParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [OutputType(typeof(ProviderRegistrationModel))] + public class SetResourceProviderRegistration : AdminApiCmdlet + { + /// + /// Gets or sets the provider registration. + /// + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = CommonPSConst.ParameterSet.ByObject)] + [ValidateNotNull] + public ProviderRegistrationModel ProviderRegistration { get; set; } + + /// + /// Gets or sets the resource manager location. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + public string ArmLocation { get; set; } // TODO - use API to get CSM location? + + /// + /// Gets or sets the resource provider registration name. + /// + [Parameter(Mandatory = true, ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Name { get; set; } + + /// + /// Gets or sets the resource group. + /// + [Parameter(Mandatory = true, ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string ResourceGroup { get; set; } + + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false, ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateNotNull] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets or sets the resource provider registration display name. + /// + [Parameter(Mandatory = true, ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string DisplayName { get; set; } + + /// + /// Gets or sets the resource provider registration location (region). + /// + [Parameter(Mandatory = true, ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateNotNull] + public string Location { get; set; } + + /// + /// Gets or sets the resource provider registration manifest endpoint. + /// + [Parameter(Mandatory = true, ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateAbsoluteUri] + [ValidateNotNull] + public Uri ManifestEndpoint { get; set; } + + /// + /// Gets or sets the resource provider registration user name. + /// + [Parameter(ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateNotNull] + public string UserName { get; set; } + + /// + /// Gets or sets the resource provider registration password. + /// + [Parameter(ParameterSetName = CommonPSConst.ParameterSet.ByProperty)] + [ValidateNotNull] + public string Password { get; set; } + + /// + /// Executes the API call(s) against Azure Resource Management API(s). + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + var parameters = new ProviderRegistrationCreateOrUpdateParameters() + { + ProviderRegistration = this.ProviderRegistration ?? new ProviderRegistrationModel() + { + Name = this.Name, + Location = this.ArmLocation, + Properties = new ProviderRegistrationDefinition() + { + Name = this.Name, + DisplayName = this.DisplayName, + Enabled = true, + Location = this.Location, + ManifestEndpoint = new ResourceProviderEndpoint() + { + EndpointUri = this.ManifestEndpoint.AbsoluteUri, + AuthenticationUsername = this.UserName, + AuthenticationPassword = this.Password, + } + } + } + }; + + this.WriteVerbose(Resources.AddingResourceProviderRegistration.FormatArgs(parameters.ProviderRegistration.Properties.Name)); + + this.ValidatePrerequisites(client, parameters); + + return client.ProviderRegistrations + .CreateOrUpdate(this.ResourceGroup, parameters) + .ProviderRegistration; + } + } + + /// + /// Validates the prerequisites. + /// + /// The client. + /// The parameters. + protected virtual void ValidatePrerequisites(AzureStackClient client, ProviderRegistrationCreateOrUpdateParameters parameters) + { + ArgumentValidator.ValidateNotNull("client", client); + ArgumentValidator.ValidateNotNull("parameters", parameters); + + if (!client.ResourceGroups.List().ResourceGroups.Any(r => string.Equals(r.Name, this.ResourceGroup, StringComparison.OrdinalIgnoreCase))) + { + throw new PSInvalidOperationException(Resources.ResourceGroupDoesNotExist.FormatArgs(this.ResourceGroup)); + } + + var name = parameters.ProviderRegistration.Properties.Name; + var location = parameters.ProviderRegistration.Properties.Location; + + if (!client.ProviderRegistrations.List(this.ResourceGroup).ProviderRegistrations + .Any(p => + string.Equals(p.Properties.Manifest.Namespace, name, StringComparison.OrdinalIgnoreCase) + && string.Equals(p.Properties.Location, location, StringComparison.OrdinalIgnoreCase))) + { + throw new PSInvalidOperationException(Resources.ProviderRegistrationDoesNotExist.FormatArgs(name, location)); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetManagedSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetManagedSubscription.cs new file mode 100644 index 000000000000..8e8477712dac --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetManagedSubscription.cs @@ -0,0 +1,63 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Get Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.ManagedSubscription)] + [OutputType(typeof(SubscriptionDefinition))] + public class GetManagedSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + public Guid TargetSubscriptionId { get; set; } // Allow for empty GUID for list scenario + + /// + /// Gets or sets the admin subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Performs the API operation(s) against managed subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + if (this.TargetSubscriptionId == Guid.Empty) + { + this.WriteVerbose(Resources.ListingManagedSubscriptions); + return client.ManagedSubscriptions.List(includeDetails: true).Subscriptions; + } + else + { + this.WriteVerbose(Resources.GettingSubscriptionByID.FormatArgs(this.TargetSubscriptionId)); + return client.ManagedSubscriptions.Get(this.TargetSubscriptionId.ToString()).Subscription; + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetTenantSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetTenantSubscription.cs new file mode 100644 index 000000000000..b7f1d8447b16 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/GetTenantSubscription.cs @@ -0,0 +1,55 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Get Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.TenantSubscription)] + [OutputType(typeof(SubscriptionDefinition))] + public class GetTenantSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the subscription id. + /// + public Guid SubscriptionId { get; set; } // Allow for empty GUID for list scenario + + /// + /// Performs the API operation(s) against tenant subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient()) + { + if (this.SubscriptionId == Guid.Empty) + { + this.WriteVerbose(Resources.ListingSubscriptions); + return client.Subscriptions.List(true).Subscriptions; + } + else + { + this.WriteVerbose(Resources.GettingSubscriptionByID.FormatArgs(this.SubscriptionId)); + return client.Subscriptions.Get(this.SubscriptionId.ToString()).Subscription; + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewManagedSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewManagedSubscription.cs new file mode 100644 index 000000000000..86ca34874dd9 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewManagedSubscription.cs @@ -0,0 +1,115 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// New Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.New, Nouns.ManagedSubscription)] + [OutputType(typeof(SubscriptionDefinition))] + public class NewManagedSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets or sets the owner. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Owner { get; set; } + + /// + /// Gets or sets the identifier of the offer. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string OfferId { get; set; } + + /// + /// Gets or sets the display name. + /// + [Parameter] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string DisplayName { get; set; } + + /// + /// Gets the subscription definition. + /// + protected SubscriptionDefinition GetSubscriptionDefinition() + { + // TODO: determine any extra properties which could / should be set + return new SubscriptionDefinition() + { + SubscriptionId = Guid.NewGuid().ToString(), + DisplayName = this.DisplayName, + OfferId = this.OfferId, + OfferName = GetAndValidateOfferName(this.OfferId), + Owner = this.Owner, + State = SubscriptionState.Enabled, + }; + } + + /// + /// Performs the API operation(s) against managed subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.CreatingNewSubscription.FormatArgs(this.Owner, this.OfferId, this.DisplayName)); + var parameters = new ManagedSubscriptionCreateOrUpdateParameters(this.GetSubscriptionDefinition()); + return client.ManagedSubscriptions.CreateOrUpdate(parameters).Subscription; + } + } + + /// + /// Gets and validates the name of the offer. + /// + /// The offer identifier. + private static string GetAndValidateOfferName(string offerId) + { + ArgumentValidator.ValidateNotNull("offerId", offerId); + + var parts = offerId.Trim('/').Split('/'); + + if (parts.Length != 4 + || !"delegatedProviders".EqualsInsensitively(parts[0]) + || !"offers".EqualsInsensitively(parts[2]) + || string.IsNullOrWhiteSpace(parts[1]) + || string.IsNullOrWhiteSpace(parts[3])) + { + throw new ArgumentException( + message: "Invalid offer identifier; must be of the form '/delegatedProviders/{providerId}/offers/{offerName}'", + paramName: "offerId"); + } + + return parts[3]; + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewTenantSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewTenantSubscription.cs new file mode 100644 index 000000000000..21b06a5fbc94 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/NewTenantSubscription.cs @@ -0,0 +1,108 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// New Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.New, Nouns.TenantSubscription)] + [OutputType(typeof(SubscriptionDefinition))] + public class NewTenantSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the owner. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string Owner { get; set; } + + /// + /// Gets or sets the identifier of the offer. + /// + [Parameter(Mandatory = true)] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string OfferId { get; set; } + + /// + /// Gets or sets the display name. + /// + [Parameter] + [ValidateLength(1, 128)] + [ValidateNotNull] + public string DisplayName { get; set; } + + /// + /// Gets the subscription definition. + /// + protected SubscriptionDefinition GetSubscriptionDefinition() + { + // TODO: determine any extra properties which could / should be set + return new SubscriptionDefinition() + { + SubscriptionId = Guid.NewGuid().ToString(), + DisplayName = this.DisplayName, + OfferId = this.OfferId, + OfferName = GetAndValidateOfferName(this.OfferId), + Owner = this.Owner, + State = SubscriptionState.Enabled, + }; + } + + /// + /// Performs the API operation(s) against tenant subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient()) + { + this.WriteVerbose(Resources.CreatingNewSubscription.FormatArgs(this.Owner, this.OfferId, this.DisplayName)); + var parameters = new SubscriptionCreateOrUpdateParameters(this.GetSubscriptionDefinition()); + return client.Subscriptions.CreateOrUpdate(parameters).Subscription; + } + } + + /// + /// Gets and validates the name of the offer. + /// + /// The offer identifier. + private static string GetAndValidateOfferName(string offerId) + { + ArgumentValidator.ValidateNotNull("offerId", offerId); + + var parts = offerId.Trim('/').Split('/'); + + if (parts.Length != 4 + || !"delegatedProviders".EqualsInsensitively(parts[0]) + || !"offers".EqualsInsensitively(parts[2]) + || string.IsNullOrWhiteSpace(parts[1]) + || string.IsNullOrWhiteSpace(parts[3])) + { + throw new ArgumentException( + message: "Invalid offer identifier; must be of the form '/delegatedProviders/{providerId}/offers/{offerName}'", + paramName: "offerId"); + } + + return parts[3]; + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveManagedSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveManagedSubscription.cs new file mode 100644 index 000000000000..a55fd56cda63 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveManagedSubscription.cs @@ -0,0 +1,57 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.Azure; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.Remove, Nouns.ManagedSubscription)] + [OutputType(typeof(AzureOperationResponse))] + public class RemoveManagedSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the subscription id. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets or sets the subscription ID to be deleted. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateGuidNotEmpty] + public Guid TargetSubscriptionId { get; set; } + + /// + /// Performs the API operation(s) against managed subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose(Resources.DeletingSubscription.FormatArgs(this.TargetSubscriptionId)); + return client.ManagedSubscriptions.Delete(this.TargetSubscriptionId.ToString()); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveTenantSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveTenantSubscription.cs new file mode 100644 index 000000000000..bb9d1f36e05e --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/RemoveTenantSubscription.cs @@ -0,0 +1,50 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.Azure; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.Remove, Nouns.TenantSubscription)] + [OutputType(typeof(AzureOperationResponse))] + public class RemoveTenantSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the subscription ID to be deleted. + /// + [Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] + [ValidateGuidNotEmpty] + public Guid TargetSubscriptionId { get; set; } + + /// + /// Performs the API operation(s) against tenant subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient()) + { + this.WriteVerbose(Resources.DeletingSubscription.FormatArgs(this.TargetSubscriptionId)); + return client.Subscriptions.Delete(this.TargetSubscriptionId.ToString()); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetManagedSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetManagedSubscription.cs new file mode 100644 index 000000000000..5ead39a1b456 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetManagedSubscription.cs @@ -0,0 +1,61 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + /// + /// Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.Set, Nouns.ManagedSubscription)] + [OutputType(typeof(SubscriptionDefinition))] + public class SetManagedSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the subscription id. + /// + [Parameter(Mandatory = false)] + [ValidateGuidNotEmpty] + public Guid SubscriptionId { get; set; } + + /// + /// Gets or sets the subscription to be updated. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + public SubscriptionDefinition Subscription { get; set; } + + /// + /// Performs the API operation(s) against managed subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient(this.SubscriptionId)) + { + this.WriteVerbose( + Resources.UpdatingManagedSubscription.FormatArgs( + this.Subscription.SubscriptionId, + this.Subscription.Owner, + this.SubscriptionId)); + + var parameters = new ManagedSubscriptionCreateOrUpdateParameters(this.Subscription); + return client.ManagedSubscriptions.CreateOrUpdate(parameters).Subscription; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetTenantSubscription.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetTenantSubscription.cs new file mode 100644 index 000000000000..09ea58409ea1 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.Subscriptions/Subscriptions/SetTenantSubscription.cs @@ -0,0 +1,50 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common; + using Microsoft.AzureStack.Management; + using Microsoft.AzureStack.Management.Models; + + /// + /// Subscription Cmdlet + /// + [Cmdlet(VerbsCommon.Set, Nouns.TenantSubscription)] + [OutputType(typeof(SubscriptionDefinition))] + public class SetTenantSubscription : AdminApiCmdlet + { + /// + /// Gets or sets the subscription to be updated. + /// + [Parameter(Mandatory = true)] + [ValidateNotNull] + public SubscriptionDefinition Subscription { get; set; } + + /// + /// Performs the API operation(s) against tenant subscriptions. + /// + protected override object ExecuteCore() + { + using (var client = this.GetAzureStackClient()) + { + this.WriteVerbose(Resources.UpdatingSubscription.FormatArgs(this.Subscription.SubscriptionId, this.Subscription.Owner)); + var parameters = new SubscriptionCreateOrUpdateParameters(this.Subscription); + return client.Subscriptions.CreateOrUpdate(parameters).Subscription; + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Nouns.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Nouns.cs new file mode 100644 index 000000000000..b7af401d29c8 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Nouns.cs @@ -0,0 +1,68 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + /// + /// All the nouns used in cmdlets. + /// + internal static class Nouns + { + /// + /// The prefix for cmdlet names. + /// + private const string Prefix = "AzureRM"; + + + /// + /// The noun for operations on Gallery Items. + /// + public const string GalleryItem = Prefix + "GalleryItem"; + + /// + /// The noun for operations on Resource Provider Registration. + /// + public const string ResourceProviderRegistration = Prefix + "ResourceProviderRegistration"; + + /// + /// The noun for operations on Tenant Subscriptions. + /// + public const string TenantSubscription = Prefix + "TenantSubscription"; + + /// + /// The noun for operations on Subscriptions as an administrator. + /// + public const string ManagedSubscription = Prefix + "ManagedSubscription"; + + /// + /// The noun for operations on Offers. + /// + public const string Offer = Prefix + "Offer"; + + /// + /// The noun for operations on Plans. + /// + public const string Plan = Prefix + "Plan"; + + /// + /// The noun for operations on Locations. + /// + public const string Location = Prefix + "ManagedLocation"; + + /// + /// The noun for operations on tokens. + /// + public const string Token = "AzureStackToken"; + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..8d45f4583551 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Microsoft AzureStack Powershell ")] +[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] +[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] + +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] + +[assembly: Guid("0B02390C-8AA9-4D99-8AA8-2A9D2D39682F")] + +[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)] +[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)] + diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.Designer.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.Designer.cs new file mode 100644 index 000000000000..f77b7b7e76c9 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.Designer.cs @@ -0,0 +1,549 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34014 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.AzureStack.Commands { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AzureStack.Commands.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Adding gallery item with name "{0}".. + /// + public static string AddingGalleryItem { + get { + return ResourceManager.GetString("AddingGalleryItem", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Adding resource provider registration with name "{0}".. + /// + public static string AddingResourceProviderRegistration { + get { + return ResourceManager.GetString("AddingResourceProviderRegistration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating new managed location "{0}".. + /// + public static string CreatingNewManagedLocation { + get { + return ResourceManager.GetString("CreatingNewManagedLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating a new offer with name "{0}" in resource group "{1}".. + /// + public static string CreatingNewOffer { + get { + return ResourceManager.GetString("CreatingNewOffer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating a new plan with name "{0}" in resource group "{1}".. + /// + public static string CreatingNewPlan { + get { + return ResourceManager.GetString("CreatingNewPlan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating a new subscription for owner "{0}" to offer "{1}" with display name "{2}".. + /// + public static string CreatingNewSubscription { + get { + return ResourceManager.GetString("CreatingNewSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deleting subscription "{0}".. + /// + public static string DeletingSubscription { + get { + return ResourceManager.GetString("DeletingSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Expected not empty collection.. + /// + public static string ExpectedNotEmptyCollection { + get { + return ResourceManager.GetString("ExpectedNotEmptyCollection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Expected not empty value.. + /// + public static string ExpectedNotEmptyValue { + get { + return ResourceManager.GetString("ExpectedNotEmptyValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting gallery item with name "{0}".. + /// + public static string GettingGalleryItem { + get { + return ResourceManager.GetString("GettingGalleryItem", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting managed location "{0}".. + /// + public static string GettingManagedLocation { + get { + return ResourceManager.GetString("GettingManagedLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting managed offer "{0}" in resource group "{1}".. + /// + public static string GettingManagedOffer { + get { + return ResourceManager.GetString("GettingManagedOffer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting managed plan "{0}" in resource group "{1}".. + /// + public static string GettingManagedPlan { + get { + return ResourceManager.GetString("GettingManagedPlan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting managed Subscription with SubscriptionId "{0}".. + /// + public static string GettingManagedSubscriptionByID { + get { + return ResourceManager.GetString("GettingManagedSubscriptionByID", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting offer "{0}".. + /// + public static string GettingOffer { + get { + return ResourceManager.GetString("GettingOffer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting plan "{0}".. + /// + public static string GettingPlan { + get { + return ResourceManager.GetString("GettingPlan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting resource provider registration with name "{0}".. + /// + public static string GettingResourceProviderRegistration { + get { + return ResourceManager.GetString("GettingResourceProviderRegistration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting Subscription with SubscriptionId "{0}".. + /// + public static string GettingSubscriptionByID { + get { + return ResourceManager.GetString("GettingSubscriptionByID", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The Azure profile is invalid, Make sure that you are in the Azure context with the Login-AzureRMAccount cmdlets.. + /// + public static string InvalidProfile { + get { + return ResourceManager.GetString("InvalidProfile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all gallery items.. + /// + public static string ListingGalleryItems { + get { + return ResourceManager.GetString("ListingGalleryItems", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all managed locations.. + /// + public static string ListingManagedLocations { + get { + return ResourceManager.GetString("ListingManagedLocations", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all managed offers in resource group "{0}".. + /// + public static string ListingManagedOffers { + get { + return ResourceManager.GetString("ListingManagedOffers", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all managed plans in resource group "{0}".. + /// + public static string ListingManagedPlans { + get { + return ResourceManager.GetString("ListingManagedPlans", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all managed subscriptions.. + /// + public static string ListingManagedSubscriptions { + get { + return ResourceManager.GetString("ListingManagedSubscriptions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing offers for provider "{0}".. + /// + public static string ListingOffers { + get { + return ResourceManager.GetString("ListingOffers", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all plans.. + /// + public static string ListingPlans { + get { + return ResourceManager.GetString("ListingPlans", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all resource provider registrations.. + /// + public static string ListingResourceProviderRegistration { + get { + return ResourceManager.GetString("ListingResourceProviderRegistration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Listing all subscriptions.. + /// + public static string ListingSubscriptions { + get { + return ResourceManager.GetString("ListingSubscriptions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A managed location with name "{0}" already exists.. + /// + public static string ManagedLocationAlreadyExists { + get { + return ResourceManager.GetString("ManagedLocationAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A managed offer with name "{0}" already exists in resource group "{1}".. + /// + public static string ManagedOfferAlreadyExists { + get { + return ResourceManager.GetString("ManagedOfferAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A managed offer with name "{0}" does not exist in resource group "{1}".. + /// + public static string ManagedOfferDoesNotExist { + get { + return ResourceManager.GetString("ManagedOfferDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A managed plan with name "{0}" and region "{1}" already exists.. + /// + public static string ManagedPlanAlreadyExists { + get { + return ResourceManager.GetString("ManagedPlanAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A managed plan with name "{0}" does not exist in resource group "{1}".. + /// + public static string ManagedPlanDoesNotExist { + get { + return ResourceManager.GetString("ManagedPlanDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A resource provider registration with name "{0}" and region "{1}" already exists.. + /// + public static string ProviderRegistrationAlreadyExists { + get { + return ResourceManager.GetString("ProviderRegistrationAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A resource provider registration with name "{0}" and region "{1}" does not exist.. + /// + public static string ProviderRegistrationDoesNotExist { + get { + return ResourceManager.GetString("ProviderRegistrationDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing gallery item with name "{0}".. + /// + public static string RemovingGalleryItem { + get { + return ResourceManager.GetString("RemovingGalleryItem", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing managed location "{0}".. + /// + public static string RemovingManagedLocation { + get { + return ResourceManager.GetString("RemovingManagedLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing managed offer "{0}" in resource group "{1}".. + /// + public static string RemovingManagedOffer { + get { + return ResourceManager.GetString("RemovingManagedOffer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing managed plan "{0}" in resource group "{1}".. + /// + public static string RemovingManagedPlan { + get { + return ResourceManager.GetString("RemovingManagedPlan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing resource provider registration with name "{0}".. + /// + public static string RemovingResourceProviderRegistration { + get { + return ResourceManager.GetString("RemovingResourceProviderRegistration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resource group cannot be empty.. + /// + public static string ResourceGroupCannotBeEmpty { + get { + return ResourceManager.GetString("ResourceGroupCannotBeEmpty", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A resource group with Name "{0}" does not exist.. + /// + public static string ResourceGroupDoesNotExist { + get { + return ResourceManager.GetString("ResourceGroupDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Both the parameters Token and AdminUri are required.. + /// + public static string TokenAndAdminUriRequired { + get { + return ResourceManager.GetString("TokenAndAdminUriRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updating managed location "{0}".. + /// + public static string UpdatingManagedLocation { + get { + return ResourceManager.GetString("UpdatingManagedLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updating managed subscription with id "{0}" and owner "{1}" under provider subscription '{2}'.. + /// + public static string UpdatingManagedSubscription { + get { + return ResourceManager.GetString("UpdatingManagedSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updating offer with name "{0}" in resource group "{1}".. + /// + public static string UpdatingOffer { + get { + return ResourceManager.GetString("UpdatingOffer", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updating plan with name "{0}" in resource group "{1}".. + /// + public static string UpdatingPlan { + get { + return ResourceManager.GetString("UpdatingPlan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updating subscription with id "{0}" and owner "{1}".. + /// + public static string UpdatingSubscription { + get { + return ResourceManager.GetString("UpdatingSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Argument must be an absolute URI.. + /// + public static string ValidateAbsoluteUriNotAbsolute { + get { + return ResourceManager.GetString("ValidateAbsoluteUriNotAbsolute", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ValidateAbsoluteUri attribute was defined on property of type {0}. System.Uri type is expected.. + /// + public static string ValidateAbsoluteUriWrongType { + get { + return ResourceManager.GetString("ValidateAbsoluteUriWrongType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Argument must not be an empty GUID.. + /// + public static string ValidateGuidEmpty { + get { + return ResourceManager.GetString("ValidateGuidEmpty", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Argument must be a GUID.. + /// + public static string ValidateGuidWrongType { + get { + return ResourceManager.GetString("ValidateGuidWrongType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disabling certificate validation may allow others to intercept and decrypt this web request.. + /// + public static string WarningDisableCertificateValidation { + get { + return ResourceManager.GetString("WarningDisableCertificateValidation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure Stack PowerShell. + /// + public static string WindowTitle { + get { + return ResourceManager.GetString("WindowTitle", resourceCulture); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.resx b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.resx new file mode 100644 index 000000000000..52d2930f4f11 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/Resources.resx @@ -0,0 +1,284 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Azure Stack PowerShell + + + Getting gallery item with name "{0}". + + + Listing all gallery items. + + + Adding gallery item with name "{0}". + + + Removing gallery item with name "{0}". + + + Adding resource provider registration with name "{0}". + + + Getting resource provider registration with name "{0}". + + + Listing all resource provider registrations. + + + Removing resource provider registration with name "{0}". + + + A resource provider registration with name "{0}" and region "{1}" already exists. + + + A resource provider registration with name "{0}" and region "{1}" does not exist. + + + A resource group with Name "{0}" does not exist. + + + Getting Subscription with SubscriptionId "{0}". + + + Listing all subscriptions. + + + Resource group cannot be empty. + + + Getting managed offer "{0}" in resource group "{1}". + + + Listing all managed offers in resource group "{0}". + + + Listing all managed subscriptions. + + + Removing managed offer "{0}" in resource group "{1}". + + + Getting offer "{0}". + + + Listing offers for provider "{0}". + + + Getting managed plan "{0}" in resource group "{1}". + + + Getting plan "{0}". + + + Listing all managed plans in resource group "{0}". + + + Listing all plans. + + + A managed offer with name "{0}" already exists in resource group "{1}". + + + A managed offer with name "{0}" does not exist in resource group "{1}". + + + A managed plan with name "{0}" and region "{1}" already exists. + + + A managed plan with name "{0}" does not exist in resource group "{1}". + + + Removing managed plan "{0}" in resource group "{1}". + + + Creating a new offer with name "{0}" in resource group "{1}". + + + Creating a new plan with name "{0}" in resource group "{1}". + + + Creating a new subscription for owner "{0}" to offer "{1}" with display name "{2}". + + + Deleting subscription "{0}". + + + Getting managed Subscription with SubscriptionId "{0}". + + + Updating offer with name "{0}" in resource group "{1}". + + + Updating plan with name "{0}" in resource group "{1}". + + + Updating managed subscription with id "{0}" and owner "{1}" under provider subscription '{2}'. + + + Updating subscription with id "{0}" and owner "{1}". + + + Disabling certificate validation may allow others to intercept and decrypt this web request. + + + A managed location with name "{0}" already exists. + + + Creating new managed location "{0}". + + + Getting managed location "{0}". + + + Listing all managed locations. + + + Removing managed location "{0}". + + + Updating managed location "{0}". + + + The Azure profile is invalid, Make sure that you are in the Azure context with the Login-AzureRMAccount cmdlets. + + + Both the parameters Token and AdminUri are required. + + + Expected not empty collection. + + + Expected not empty value. + + + Argument must be an absolute URI. + + + ValidateAbsoluteUri attribute was defined on property of type {0}. System.Uri type is expected. + + + Argument must not be an empty GUID. + ValidationMetadataException + + + Argument must be a GUID. + ValidationMetadataException + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/StringExtensions.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/StringExtensions.cs new file mode 100644 index 000000000000..2ad977dea878 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/StringExtensions.cs @@ -0,0 +1,79 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Globalization; + + /// + /// String Extension Methods + /// + public static class StringExtensions + { + /// + /// Formats a string with given args and current culture. + /// + /// The format. + /// The args. + /// Formatted string + public static string FormatArgs(this string format, params object[] args) + { + return string.Format(CultureInfo.CurrentCulture, format, args); + } + + /// + /// Formats a string with given args and invariant culture. + /// + /// The format. + /// The args. + /// Formatted string + public static string FormatArgsInvariant(this string format, params object[] args) + { + return string.Format(CultureInfo.InvariantCulture, format, args); + } + + /// + /// Compares two string values insensitively. + /// + /// The original string. + /// The other string. + public static bool EqualsInsensitively(this string original, string otherString) + { + return string.Equals(original, otherString, StringComparison.InvariantCultureIgnoreCase); + } + + /// + /// Compares start of string insensitively. + /// + /// The original string. + /// The prefix to compare. + public static bool StartsWithInsensitively(this string original, string prefix) + { + return original.StartsWith(prefix, StringComparison.InvariantCultureIgnoreCase); + } + + /// + /// Compares end of string insensitively. + /// + /// The original string. + /// The suffix to compare. + public static bool EndsWithInsensitively(this string original, string suffix) + { + return original.EndsWith(suffix, StringComparison.InvariantCultureIgnoreCase); + } + + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/AuthenticationContextExtensions.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/AuthenticationContextExtensions.cs new file mode 100644 index 000000000000..88f963503957 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/AuthenticationContextExtensions.cs @@ -0,0 +1,195 @@ +//----------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +//----------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands.Security +{ + using System; + using System.Collections.Generic; + using System.Collections.Specialized; + using System.Globalization; + using System.Reflection; + using System.Text; + using System.Threading.Tasks; + using Microsoft.IdentityModel.Clients.ActiveDirectory; + + /// + /// Authentication context extension methods. + /// + public static class AuthenticationContextExtensions + { + /// + /// The endpoint template URI + /// + private static readonly UriTemplate EndpointTemplateUri = new UriTemplate("/oauth2/{endpoint}"); + + /// + /// The token endpoint bindings + /// + private static readonly NameValueCollection TokenEndpointBindings = new NameValueCollection() + { + { "endpoint", "token" } + }; + + /// + /// Acquires token via non-interactive flow. + /// + /// The authority. + /// The resource. + /// The client identifier. + /// The user credential. + /// + /// We use reflection to call ADAL.NET internals to handle token acquisition, since the library does not support ADFS yet. + /// + public static AuthenticationResult AcquireTokenForAdfs(string authority, string resource, string clientId, UserCredential userCredential) + { + // BUG: 2384273 - [PowerShell]: Remove AuthenticationContextExtensions class and integrate support of non-interactive flow via legitimate APIs of ADAL.NET + var context = new AuthenticationContext(authority: authority, validateAuthority: false, tokenCache: TokenCache.DefaultShared); + var parameters = GetNewInstanceOfRequestParameters(resource, clientId, userCredential); + var handler = GetNewInstanceOfNonInteractiveHandler(context, resource, clientId, userCredential); + return handler.SendHttpMessage(parameters: parameters); + } + + /// + /// Sends the HTTP message. + /// + /// The handler. + /// The parameters. + private static AuthenticationResult SendHttpMessage(this object handler, object parameters) + { + var handlerType = handler.GetType(); + var methodInfo = handlerType.BaseType.GetMethod("SendHttpMessageAsync", BindingFlags.NonPublic | BindingFlags.Instance); + var taskResult = (Task)methodInfo.Invoke(obj: handler, parameters: new object[] { parameters }); + var result = taskResult.Result; + return result; + } + + /// + /// Authenticators the specified context. + /// + /// The context. + private static object Authenticator(this AuthenticationContext context) + { + return context.GetInstanceFieldValue("Authenticator", BindingFlags.NonPublic); + } + + /// + /// Sets the token URI. + /// + /// The authenticator. + /// The URI string. + private static void TokenUri(this object authenticator, string uriString) + { + authenticator.SetInstancePropertyValue("TokenUri", uriString, BindingFlags.Public); + } + + /// + /// Adds the secure parameter. + /// + /// The instance. + /// The key. + /// The secure string. + private static void AddSecureParameter(this Dictionary instance, string key, object secureString) + { + var typeOfInstance = instance.GetType(); + var methodInfo = typeOfInstance.GetMethod("AddSecureParameter", BindingFlags.Instance | BindingFlags.Public); + var parameters = new object[] { key, secureString }; + methodInfo.Invoke(obj: instance, parameters: parameters); + } + + /// + /// Secures the password. + /// + /// The credential. + private static object SecurePassword(this UserCredential credential) + { + return credential.GetInstancePropertyValue("SecurePassword", BindingFlags.NonPublic); + } + + /// + /// Gets the new instance of request parameters. + /// + /// The resource. + /// The client identifier. + /// The user credential. + private static object GetNewInstanceOfRequestParameters(string resource, string clientId, UserCredential userCredential) + { + var builder = new StringBuilder(); + var typeOfParameters = Type.GetType("Microsoft.IdentityModel.Clients.ActiveDirectory.RequestParameters, Microsoft.IdentityModel.Clients.ActiveDirectory"); + var arguments = new object[] { builder }; + var instanceOfParameters = (Dictionary)Activator.CreateInstance(type: typeOfParameters, args: arguments); + + // Prepare request parameters to be sent over the wire + instanceOfParameters.Add("grant_type", "password"); + instanceOfParameters.Add("resource", resource); + instanceOfParameters.Add("username", userCredential.UserName); + instanceOfParameters.AddSecureParameter("password", userCredential.SecurePassword()); + instanceOfParameters.Add("client_id", clientId); + + return instanceOfParameters; + } + + /// + /// Gets the new instance of non interactive handler. + /// + /// The context. + /// The resource. + /// The client identifier. + /// The user credential. + private static object GetNewInstanceOfNonInteractiveHandler(AuthenticationContext context, string resource, string clientId, UserCredential userCredential) + { + var uriString = EndpointTemplateUri.BindByName(new Uri(context.Authority), TokenEndpointBindings).OriginalString; + var cache = context.TokenCache; + var callAsync = false; + + // Retrieve and configure authenticator + var authenticator = context.Authenticator(); + authenticator.TokenUri(uriString); + + var typeOfObject = Type.GetType("Microsoft.IdentityModel.Clients.ActiveDirectory.AcquireTokenNonInteractiveHandler, Microsoft.IdentityModel.Clients.ActiveDirectory"); + var ctorArguments = new object[] { authenticator, cache, resource, clientId, userCredential, callAsync }; + var instanceOfHandler = Activator.CreateInstance(type: typeOfObject, args: ctorArguments); + return instanceOfHandler; + } + + /// + /// Gets the instance field value. + /// + /// The instance. + /// The name. + /// The visibility. + private static object GetInstanceFieldValue(this object instance, string name, BindingFlags visibility) + { + var typeOfInstance = instance.GetType(); + var fieldInfo = typeOfInstance.GetField(name, BindingFlags.Instance | visibility); + return fieldInfo.GetValue(instance); + } + + /// + /// Gets the instance property value. + /// + /// The instance. + /// The name. + /// The visibility. + private static object GetInstancePropertyValue(this object instance, string name, BindingFlags visibility) + { + var typeOfInstance = instance.GetType(); + var propertyInfo = typeOfInstance.GetProperty(name, BindingFlags.Instance | visibility); + return propertyInfo.GetValue(instance); + } + + /// + /// Sets the instance property value. + /// + /// The instance. + /// The name. + /// The value. + /// The visibility. + private static void SetInstancePropertyValue(this object instance, string name, object value, BindingFlags visibility) + { + var typeOfInstance = instance.GetType(); + var propertyInfo = typeOfInstance.GetProperty(name, BindingFlags.Instance | visibility); + propertyInfo.SetValue(instance, value); + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/GetToken.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/GetToken.cs new file mode 100644 index 000000000000..1fcccad3cf7c --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/GetToken.cs @@ -0,0 +1,210 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands.Security +{ + using System; + using System.Collections.Specialized; + using System.Management.Automation; + using System.Net; + using Microsoft.Azure.Commands.ResourceManager.Common; + using Microsoft.IdentityModel.Clients.ActiveDirectory; + + /// + /// Get Token Cmdlet + /// + [Cmdlet(VerbsCommon.Get, Nouns.Token, ConfirmImpact = ConfirmImpact.Low, DefaultParameterSetName = "ADFS")] + public class GetToken : Cmdlet + { + //// TODO: Some of these properties are configurable in customer environments; resolve design + + /// + /// The cmdlet behavior. + /// + private const PromptBehavior CmdletBehavior = PromptBehavior.Always; + + /// + /// Indicates whether to validate the authority. + /// + private const bool ValidateAuthority = false; + + /// + /// The authority template URI. + /// + private static readonly UriTemplate AuthorityTemplateUri = new UriTemplate("/{authority_type}/"); + + /// + /// The authority bindings. + /// + private static readonly NameValueCollection AuthorityBindings = new NameValueCollection() + { + { "authority_type", "adfs" } + }; + + /// + /// The redirect URI. + /// + private static readonly Uri NoOpRedirectUri = new Uri(SharedConstants.AzureStackPowerShell.RedirectUri); + + /// + /// Gets or sets URI of the issuing authority. + /// + [Parameter(Mandatory = true, Position = 0)] + [ValidateNotNull] + public string Authority { get; set; } + + /// + /// Gets or sets the resource. + /// + [Parameter] + [ValidateNotNull] + public string Resource { get; set; } + + /// + /// Gets or sets the tenant identifier. + /// + [Parameter(ParameterSetName = "AAD", Mandatory = true)] + [ValidateNotNull] + public string AadTenantId { get; set; } + + /// + /// Gets or sets the client identifier. + /// + [Parameter] + [ValidateNotNull] + public string ClientId { get; set; } + + /// + /// Gets or sets credentials used to request access token. + /// + [Parameter] + [ValidateNotNull] + public PSCredential Credential { get; set; } + + /// + /// Gets or sets a value indicating whether to disable certificate validation. + /// + [Parameter] + public SwitchParameter DisableCertificateValidation { get; set; } + + /// + /// Executes the cmdlet. + /// + protected override void ProcessRecord() + { + var originalValidateCallback = ServicePointManager.ServerCertificateValidationCallback; + AuthenticationResult result; + + try + { + // TODO (bryanr) - Evaluate if this should be removed entirely + if (this.DisableCertificateValidation) + { + this.WriteWarning(Resources.WarningDisableCertificateValidation); + ServicePointManager.ServerCertificateValidationCallback = (s, certificate, chain, sslPolicyErrors) => true; + } + + this.Resource = this.Resource ?? SharedConstants.ResourceManager.ClientId; + this.ClientId = this.ClientId ?? SharedConstants.AzureStackPowerShell.ClientId; + + if (this.IsInteractiveTokenRequest()) + { + result = this.GetSecurityTokenWithInteractiveFlow(); + } + else + { + result = this.GetSecurityTokenWithNonInteractiveFlow(); + } + } + finally + { + if (this.DisableCertificateValidation) + { + ServicePointManager.ServerCertificateValidationCallback = originalValidateCallback; + } + } + + // Write the object to the pipeline only after the certificate validation callback has been restored. + // This will prevent other cmdlets in the pipeline from inheriting this security vulnerability. + this.WriteObject(result.AccessToken); + } + + /// + /// Gets the security token with non interactive flow. + /// + private AuthenticationResult GetSecurityTokenWithNonInteractiveFlow() + { + var uriString = this.BuildAuthorityUriString(); + var userCredential = new UserCredential(this.Credential.UserName, this.Credential.Password); + var result = default(AuthenticationResult); + + if (this.IsRequestForAadToken()) + { + var context = new AuthenticationContext(authority: uriString, validateAuthority: ValidateAuthority); + result = context.AcquireToken(resource: this.Resource, clientId: this.ClientId, userCredential: userCredential); + } + else + { + // NOTE: This is a case of using non-public APIs of ADAL.NET via reflection to acquire token (not officially supported by ADAL.NET team). + result = AuthenticationContextExtensions.AcquireTokenForAdfs(authority: uriString, resource: this.Resource, clientId: this.ClientId, userCredential: userCredential); + } + return result; + } + + /// + /// Determines whether this is an interactive token request. + /// + private bool IsInteractiveTokenRequest() + { + return this.Credential == null; + } + + /// + /// Gets the security token with interactive flow. + /// + private AuthenticationResult GetSecurityTokenWithInteractiveFlow() + { + var uriString = this.BuildAuthorityUriString(); + var context = new AuthenticationContext(authority: uriString, validateAuthority: ValidateAuthority); + var result = context.AcquireToken(resource: this.Resource, clientId: this.ClientId, redirectUri: NoOpRedirectUri, promptBehavior: CmdletBehavior); + return result; + } + + /// + /// Builds the authority URI string. + /// + private string BuildAuthorityUriString() + { + var baseAddressUri = new Uri(this.Authority); + + if (this.IsRequestForAadToken()) + { + return new UriTemplate("/{tenant_id}/").BindByPosition(baseAddressUri, this.AadTenantId).OriginalString; + } + else + { + return AuthorityTemplateUri.BindByName(baseAddressUri, AuthorityBindings).OriginalString; + } + } + + /// + /// Determines whether we are retrieving a token for AAD. + /// + private bool IsRequestForAadToken() + { + return !string.IsNullOrEmpty(this.AadTenantId); + } + + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/Shared.Authorization.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/Shared.Authorization.cs new file mode 100644 index 000000000000..4fa7c1d702a2 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/Shared.Authorization.cs @@ -0,0 +1,67 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands.Security +{ + /// + /// constant strings and values + /// + public static class SharedConstants + { + /// + /// Application settings for Azure Stack PowerShell authorization configuration. + /// + public static class AzureStackPowerShell + { + /// + /// The Azure Stack PowerShell client identifier. + /// + /// We use a hardcoded string with a guid value to be consistent with Azure Active Directory + /// and their client application registration procedure (each client app is assigned a string with unique identifier). + public const string ClientId = "445ace50-bb67-4e02-9371-3d69ced8c25a"; + + /// + /// The redirect uri which is a well-known string for native applications. + /// + public const string RedirectUri = "urn:ietf:wg:oauth:2.0:oob"; + } + + /// + /// Application settings for Azure PowerShell authorization configuration. + /// + public static class AzurePowerShell + { + /// + /// The Azure PowerShell client identifier. + /// + public const string ClientId = "1950a258-227b-4e31-a9cf-717495945fc2"; + + /// + /// The redirect uri which is a well-known string for native applications. + /// + public const string RedirectUri = AzureStackPowerShell.RedirectUri; + } + + /// + /// Application settings for Frontdoor authorization configuration. + /// + public static class ResourceManager + { + /// + /// The Azure Stack Frontdoor client identifier. + /// + public const string ClientId = "3795ab9c-1aa9-4258-97b5-79b402cafa8c"; + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/readme.txt b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/readme.txt new file mode 100644 index 000000000000..e71e7fb6117c --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Token/readme.txt @@ -0,0 +1,24 @@ + +*** BRIEF GUIDE *** +Here are sample snippets of supported arguments/modes by the cmdlet: + +# PSCredential mode [upn-style] (aka. Resource Owner Password Credentials Grant flow) +$secpasswd = ConvertTo-SecureString "password_goes_here" -AsPlainText -Force +$mycreds = New-Object System.Management.Automation.PSCredential ("username@domain.com", $secpasswd) +Get-AzureRMToken -Authority https://ip_or_hostname_of_winauthsite:12998/ -Credential $mycreds + + +# PSCredential mode [domain\username-style] (aka. Resource Owner Password Credentials Grant flow) +$secpasswd = ConvertTo-SecureString "password_goes_here" -AsPlainText -Force +$mycreds = New-Object System.Management.Automation.PSCredential ("domain\username", $secpasswd) +Get-AzureRMToken -Authority https://ip_or_hostname_of_winauthsite:12998/ -Credential $mycreds + + +# PSCredential mode [username-style, ONLY available when WinAuthSite runs in LocalMachine mode] (aka. Resource Owner Password Credentials Grant flow) +$secpasswd = ConvertTo-SecureString "password_goes_here" -AsPlainText -Force +$mycreds = New-Object System.Management.Automation.PSCredential ("local_machine_username", $secpasswd) +Get-AzureRMToken -Authority https://ip_or_hostname_of_winauthsite:12998/ -Credential $mycreds + + +# Interactive mode [with UX prompt to collect credentials] (aka. Authorization Code Grant flow) +Get-AzureRMToken -Authority https://ip_or_hostname_of_winauthsite:12998/ \ No newline at end of file diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ValidateAbsoluteUriAttribute.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ValidateAbsoluteUriAttribute.cs new file mode 100644 index 000000000000..d9ac3d57bd65 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/ValidateAbsoluteUriAttribute.cs @@ -0,0 +1,52 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands +{ + using System; + using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common.Properties; + + /// + /// Validation for URI parameters in cmdlets + /// + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public sealed class ValidateAbsoluteUriAttribute : ValidateArgumentsAttribute + { + /// + /// Do the validation + /// + /// The args + /// The intrinsics + protected override void Validate(object arguments, EngineIntrinsics engineIntrinsics) + { + if (arguments == null) + { + return; + } + + var uri = arguments as Uri; + + if (uri == null) + { + throw new ValidationMetadataException(Resources.ValidateAbsoluteUriWrongType.FormatArgs(arguments.GetType().Name)); + } + + if (!uri.IsAbsoluteUri) + { + throw new ValidationMetadataException(Resources.ValidateAbsoluteUriNotAbsolute); + } + } + } +} diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config new file mode 100644 index 000000000000..795cbc73a07a --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackAdmin/NuGet.Config b/src/ResourceManager/AzureStackAdmin/NuGet.Config new file mode 100644 index 000000000000..2de911013532 --- /dev/null +++ b/src/ResourceManager/AzureStackAdmin/NuGet.Config @@ -0,0 +1,6 @@ + + + + + + From 8d64a59c3f91f7cf0dbf208bce3de8b61334d2c5 Mon Sep 17 00:00:00 2001 From: Bala Ganapathy Date: Thu, 28 Jan 2016 11:25:04 -0800 Subject: [PATCH 06/27] published package version changes from 0.9.01 to 0.9.1 --- .../Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 | 2 +- .../Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj | 2 +- .../Microsoft.AzureStack.Commands.dll-help.psd1 | 2 +- .../AzureStackAdmin/Commands.AzureStackAdmin/packages.config | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 index b32a2961de9e..a2893b5db200 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 @@ -12,7 +12,7 @@ ModuleToProcess = 'Microsoft.AzureStack.Commands.dll' # Version number of this module. -ModuleVersion = '0.10.1' +ModuleVersion = '0.9.1' # ID used to uniquely identify this module GUID = '0e691e0a-ce16-40f2-af84-86fb0d82fb29' diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj index 6bfb217c8db8..0789c58f751d 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj @@ -70,7 +70,7 @@ - ..\..\..\packages\Microsoft.AzureStack.Management.0.9.01-preview\lib\net45\Microsoft.AzureStack.Management.dll + ..\..\..\packages\Microsoft.AzureStack.Management.0.9.1-preview\lib\net45\Microsoft.AzureStack.Management.dll ..\..\..\packages\Hyak.Common.1.0.3\lib\net40\Hyak.Common.dll diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.AzureStack.Commands.dll-help.psd1 b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.AzureStack.Commands.dll-help.psd1 index 6107f58b0d78..7bd34f5212b2 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.AzureStack.Commands.dll-help.psd1 +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Microsoft.AzureStack.Commands.dll-help.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '0.9.10' +ModuleVersion = '0.9.1' # ID used to uniquely identify this module GUID = 'F237EAAA-BD3A-4965-AD4A-BF38598BFEF7' diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config index 795cbc73a07a..f82854cf2195 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config @@ -5,6 +5,6 @@ - + \ No newline at end of file From 7c05895b816dd8fecf8741b647490a30a4768ffb Mon Sep 17 00:00:00 2001 From: "Eric Dai (JI)" Date: Thu, 28 Jan 2016 04:17:04 -0800 Subject: [PATCH 07/27] Azure Stack Storage Admin PowerShell cmdlets with testing --- .../AzureStackStorage/.nuget/packages.config | 4 + .../AzureRM.AzureStackStorage.Help.final.xml | 10970 ++++++++++++++++ ...reRM.AzureStackStorage.Help.no.example.xml | 10353 +++++++++++++++ .../AzureRM.AzureStackStorage.Help.pshproj | 5156 ++++++++ .../AzureRM.AzureStackStorage.Help.xml | 10063 ++++++++++++++ .../AzureStackStorage/AzureStackStorage.sln | 86 + .../Commands.AzureStackStorage.Test.csproj | 308 + .../MSSharedLibKey.snk | Bin 0 -> 160 bytes .../Properties/AssemblyInfo.cs | 35 + .../ScenarioTests/BlobServicesTests.cs | 37 + .../ScenarioTests/BlobServicesTests.ps1 | 88 + .../ScenarioTests/Common.ps1 | 65 + .../ScenarioTests/EventsTests.ps1 | 143 + .../ScenarioTests/FarmsTests.cs | 57 + .../ScenarioTests/FarmsTests.ps1 | 105 + .../ScenarioTests/FaultsTests.cs | 50 + .../ScenarioTests/FaultsTests.ps1 | 158 + .../ScenarioTests/ManagementServicesTest.cs | 36 + .../ScenarioTests/ManagementServicesTests.ps1 | 62 + .../ScenarioTests/NodesTests.cs | 51 + .../ScenarioTests/NodesTests.ps1 | 152 + .../ScenarioTests/RoleInstancesTests.cs | 64 + .../ScenarioTests/RoleInstancesTests.ps1 | 187 + .../ScenarioTests/SharesTests.cs | 36 + .../ScenarioTests/SharesTests.ps1 | 76 + .../ScenarioTests/StorageAccountsTests.cs | 50 + .../ScenarioTests/StorageAccountsTests.ps1 | 169 + .../ScenarioTests/TableServicesTests.cs | 36 + .../ScenarioTests/TableServicesTests.ps1 | 85 + .../ScenarioTests/TestsController.cs | 154 + .../TestGetBlobService.json | 113 + .../TestSetBlobService.json | 62 + .../TestGetFarm.json | 113 + .../TestListFarms.json | 63 + .../TestSetFarm.json | 62 + .../TestGetCurrentFaults.json | 59 + .../TestGetFault.json | 59 + .../TestGetHistoricFaults.json | 59 + .../TestResolveFault.json | 59 + .../TestGetManagementService.json | 63 + .../TestSetManagementService.json | 62 + .../TestDisableNode.json | 215 + .../TestEnableNode.json | 215 + .../TestGetNode.json | 216 + .../TestListNodes.json | 63 + .../TestSetFarm.json | 62 + .../TestGetRoleInstance.json | 84 + .../TestListRoleInstances.json | 211 + .../TestRestartRoleInstance.json | 159 + .../TestRoleInstancePipeline.json | 264 + .../TestStartRoleInstance.json | 159 + .../TestStopRoleInstance.json | 159 + .../TestGetShare.json | 59 + .../TestListShares.json | 59 + .../TestGetStorageAccount.json | 59 + .../TestListStorageAccounts.json | 59 + .../TestStorageAccountPipeLine.json | 213 + .../TestUndoStorageAccountDeletion.json | 161 + .../TestGetTableService.json | 63 + .../TestListNodes.json | 63 + .../TestSetTableService.json | 62 + .../packages.config | 28 + .../Commands.AzureStackStorage/AdminCmdlet.cs | 232 + .../AdminException.cs | 40 + .../AdminMetricCmdLet.cs | 81 + .../AdminMetricDefinitionCmdlet.cs | 60 + .../AzureRM.AzureStackStorage.psd1 | 88 + .../Commands.AzureStackStorage/BaseCmdlet.cs | 117 + .../Commands.AzureStackStorage.csproj | 229 + .../Commands.AzureStackStorage/Enums.cs | 77 + .../Commands.AzureStackStorage/Extensions.cs | 88 + .../Farm/AddFarm.cs | 73 + .../Farm/AddFarm_new.cs | 87 + .../Farm/GetEvent.cs | 151 + .../Farm/GetEventQuery.cs | 142 + .../Farm/GetFarm.cs | 58 + .../Farm/GetFarmMetricDefinitions.cs | 45 + .../Farm/GetFarmMetrics.cs | 45 + .../Farm/InvokeLogCollect.cs | 144 + .../Farm/SetFarm.cs | 97 + .../Fault/GetFault.cs | 151 + .../Fault/ResolveFault.cs | 76 + .../MSSharedLibKey.snk | Bin 0 -> 160 bytes ...reStack.Commands.StorageAdmin.dll-Help.xml | 10970 ++++++++++++++++ .../AccountContainerRoleInstanceResponse.cs | 28 + .../Model/BlobFrontEndRoleInstanceResponse.cs | 28 + .../Model/BlobServerRoleInstanceResponse.cs | 28 + .../Model/BlobServiceResponse.cs | 27 + .../Model/FarmResponse.cs | 31 + .../Model/FaultResponse.cs | 42 + .../Model/ManagementServiceResponse.cs | 27 + .../MetricsServerRoleInstanceResponse.cs | 28 + .../MonitoringServerRoleInstanceResponse.cs | 28 + .../Model/NodeResponse.cs | 54 + .../Model/PSAvailabilityCollection.cs | 46 + .../Model/PSMetric.cs | 39 + .../Model/PSMetricDefinition.cs | 36 + .../Model/PSMetricDefinitionNoDetails.cs | 45 + .../Model/PSMetricNoDetails.cs | 47 + .../Model/PSMetricValuesCollection.cs | 46 + .../Model/ResponseBase.cs | 69 + .../Model/RoleInstanceResponseBase.cs | 47 + .../Model/ServiceResponseBase.cs | 33 + .../Model/ShareResponse.cs | 37 + .../Model/StorageAccountResponse.cs | 80 + .../TableFrontEndRoleInstanceResponse.cs | 28 + .../Model/TableMasterRoleInstanceResponse.cs | 28 + .../Model/TableServerRoleInstanceResponse.cs | 28 + .../Model/TableServiceResponse.cs | 27 + .../Node/DisableNode.cs | 68 + .../Node/EnableNode.cs | 61 + .../Node/GetNode.cs | 60 + .../Node/GetNodeMetricDefinitions.cs | 51 + .../Node/GetNodeMetrics.cs | 50 + .../Commands.AzureStackStorage/Nouns.cs | 93 + .../Properties/AssemblyInfo.cs | 33 + .../Resources.Designer.cs | 432 + .../Commands.AzureStackStorage/Resources.resx | 246 + .../RoleInstance/GetRoleInstance.cs | 135 + .../GetRoleInstanceMetricDefinitions.cs | 103 + .../RoleInstance/GetRoleInstanceMetrics.cs | 103 + .../RoleInstance/RestartRoleInstance.cs | 111 + .../RoleInstanceSettingsPullNow.cs | 105 + .../StartBlobServerRoleInstance.cs | 71 + .../StopBlobServerRoleInstance.cs | 71 + .../Service/GetBlobService.cs | 45 + .../GetBlobServiceMetricDefinitions.cs | 44 + .../Service/GetBlobServiceMetrics.cs | 44 + .../Service/GetManagementService.cs | 45 + .../GetManagementServiceMetricDefinitions.cs | 44 + .../Service/GetManagementServiceMetrics.cs | 43 + .../Service/GetTableService.cs | 45 + .../GetTableServiceMetricDefinitions.cs | 44 + .../Service/GetTableServiceMetrics.cs | 44 + .../Service/SetBlobService.cs | 114 + .../Service/SetManagementService.cs | 71 + .../Service/SetTableService.cs | 69 + .../SettingFieldAttribute.cs | 27 + .../Share/GetShare.cs | 69 + .../Share/GetShareMetricDefinitions.cs | 62 + .../Share/GetShareMetrics.cs | 50 + .../GetStorageAccountWithAdminInfo.cs | 107 + .../StorageAccount/SyncStorageAccount.cs | 98 + .../StorageAccount/UndeleteStorageAccount.cs | 103 + .../Commands.AzureStackStorage/Tools.cs | 142 + .../Validation/ValidateAbsoluteUri.cs | 52 + .../Validation/ValidateUnc.cs | 43 + .../packages.config | 23 + .../AzureStackStorage/NuGet.Config | 6 + .../AzureResourceManager.psd1 | 3 +- 150 files changed, 59480 insertions(+), 1 deletion(-) create mode 100644 src/ResourceManager/AzureStackStorage/.nuget/packages.config create mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml create mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml create mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj create mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml create mode 100644 src/ResourceManager/AzureStackStorage/AzureStackStorage.sln create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/MSSharedLibKey.snk create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Properties/AssemblyInfo.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/BlobServicesTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/BlobServicesTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/Common.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/EventsTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTest.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.ps1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TestsController.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestGetBlobService.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestSetBlobService.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestGetFarm.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestListFarms.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestSetFarm.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetCurrentFaults.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetFault.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetHistoricFaults.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestResolveFault.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestGetManagementService.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestSetManagementService.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestDisableNode.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestEnableNode.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestGetNode.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestListNodes.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestSetFarm.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestGetRoleInstance.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestListRoleInstances.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRestartRoleInstance.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRoleInstancePipeline.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStartRoleInstance.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStopRoleInstance.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestGetShare.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestListShares.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestGetStorageAccount.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestListStorageAccounts.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestStorageAccountPipeLine.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestUndoStorageAccountDeletion.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestGetTableService.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestListNodes.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestSetTableService.json create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminCmdlet.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminException.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricCmdLet.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricDefinitionCmdlet.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AzureRM.AzureStackStorage.psd1 create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/BaseCmdlet.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Enums.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Extensions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm_new.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEvent.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEventQuery.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarm.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetricDefinitions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetrics.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/InvokeLogCollect.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/SetFarm.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/GetFault.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/ResolveFault.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/MSSharedLibKey.snk create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Microsoft.AzureStack.Commands.StorageAdmin.dll-Help.xml create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/AccountContainerRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobFrontEndRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServerRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServiceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FarmResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FaultResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ManagementServiceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MetricsServerRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MonitoringServerRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/NodeResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSAvailabilityCollection.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetric.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinition.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinitionNoDetails.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricNoDetails.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricValuesCollection.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ResponseBase.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/RoleInstanceResponseBase.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ServiceResponseBase.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ShareResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/StorageAccountResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableFrontEndRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableMasterRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServerRoleInstanceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServiceResponse.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/DisableNode.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/EnableNode.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNode.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetricDefinitions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetrics.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Nouns.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.Designer.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.resx create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstance.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetricDefinitions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetrics.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RestartRoleInstance.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RoleInstanceSettingsPullNow.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StartBlobServerRoleInstance.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StopBlobServerRoleInstance.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobService.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetricDefinitions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetrics.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementService.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetricDefinitions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetrics.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableService.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetricDefinitions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetrics.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetBlobService.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetManagementService.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetTableService.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/SettingFieldAttribute.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShare.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetricDefinitions.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetrics.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/GetStorageAccountWithAdminInfo.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/SyncStorageAccount.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/UndeleteStorageAccount.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Tools.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateAbsoluteUri.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateUnc.cs create mode 100644 src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config create mode 100644 src/ResourceManager/AzureStackStorage/NuGet.Config diff --git a/src/ResourceManager/AzureStackStorage/.nuget/packages.config b/src/ResourceManager/AzureStackStorage/.nuget/packages.config new file mode 100644 index 000000000000..091917678945 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/.nuget/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml new file mode 100644 index 000000000000..4e181b7c7b00 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml @@ -0,0 +1,10970 @@ + + + + + Add-ACSFarm + + Register a new provisioned ACS farm. + + + + + Add + ACSFarm + + + + After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. + + + + Add-ACSFarm + + FarmName + + + + String + + + SettingAccessString + + + + String + + + Location + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingAccessString + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Add-ACSFarm -ResourceGroupName $resourceGroup -FarmName 'YourNameFarmName' -Location 'YourLocation' + + + + + + + + + + + + + + + + + + + + + + Disable-ACSNode + + Disable a particular node from service fabric cluster. + + + + + Disable + ACSNode + + + + Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. + + + + Disable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Disable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' + + + + + + + + + + + + + + + + + + + + + + Enable-ACSNode + + Enable a particular node in the service fabric cluster. + + + + + Enable + ACSNode + + + + Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. + + + + Enable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Eable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobService + + Retrieve the status and settings of blob service + + + + + Get + ACSBlobService + + + + Retrieve the status and settings of blob service + + + + Get-ACSBlobService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetric + + Retrieve the metrics of blob service + + + + + Get + ACSBlobServiceMetric + + + + Retrieve the metrics of blob service + + + + Get-ACSBlobServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetricDefinition + + Retrieve the metric definitions of blob service + + + + + Get + ACSBlobServiceMetricDefinition + + + + Retrieve the metric definitions of blob service + + + + Get-ACSBlobServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSEventQuery + + Returns a query object, which could be used as the input parameter for Get-ACSEvent. + + + + + Get + ACSEventQuery + + + + This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. + + + + Get-ACSEventQuery + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Nullable`1[Guid] + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Nullable`1[Guid] + + Nullable`1[Guid] + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +$endtime=get-date +$starttime=$endtime.addminutes(-10) + +Get-ACSEventQuery -FarmId $farm.Name -ResourceGroupName $resourceGroup -StartTime $starttime + -EndTime $endtime + + + + + + + + + + + + + + + + + + + + + + Get-ACSEvents + + List the events in the Azure Consistent Storage system. + + + + + Get + ACSEvents + + + + This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. + + + + Get-ACSEvents + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Guid + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSEvents + + EventQuery + + + + EventQuery + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Guid + + Guid + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + EventQuery + + + + EventQuery + + EventQuery + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSEvents -startTime $startTime -endtime $endtime -FarmName $farm -ResourceGroupName $resourceGroup + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarm + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + + Get + ACSFarm + + + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + Get-ACSFarm + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Get-ACSFarm -ResourceGroupName $resourceGroup + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetric + + Retrieve the metrics of ACS farm + + + + + Get + ACSFarmMetric + + + + Retrieve the metrics of ACS farm + + + + Get-ACSFarmMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetricDefinition + + Retrieve the metric definitions of ACS farm + + + + + Get + ACSFarmMetricDefinition + + + + Retrieve the metric definitions of ACS farm + + + + Get-ACSFarmMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFault + + List faults in the Azure Consistent Storage system. + + + + + Get + ACSFault + + + + This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: +The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. +GetHistoryFaults returns a list of active fault objects within specified time range. +GetFault returns one fault object with the specified fault ID. + + + + Get-ACSFault + + FarmName + + + + String + + + ResourceUri + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + FaultId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementService + + Retrieve running status and settings of management service. + + + + + Get + ACSManagementService + + + + Retrieve running status and settings of management service. + + + + Get-ACSManagementService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetric + + Retrieve the metrics of management service + + + + + Get + ACSManagementServiceMetric + + + + Retrieve the metrics of management service + + + + Get-ACSManagementServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetricDefinition + + Retrieve the metric definitions of management service + + + + + Get + ACSManagementServiceMetricDefinition + + + + Retrieve the metric definitions of management service + + + + Get-ACSManagementServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNode + + Get a list of nodes in Azure Consistent Storage. + + + + + Get + ACSNode + + + + Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. + + + + Get-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSNode -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetric + + Retrieve the metrics of a node + + + + + Get + ACSNodeMetric + + + + Retrieve the metrics of a node + + + + Get-ACSNodeMetric + + FarmName + + + + String + + + NodeName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetricDefinition + + Retrieve the metric definitions of node + + + + + Get + ACSNodeMetricDefinition + + + + Retrieve the metric definitions of node + + + + Get-ACSNodeMetricDefinition + + FarmName + + + + String + + + NodeName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstance + + Get a list of a specific type of role instances. + + + + + Get + ACSRoleInstance + + + + Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. + + + + Get-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend + + + + + + + + + + + + + + + + -------------------------- Example 2 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetric + + Retrieve the metrics of a role instance + + + + + Get + ACSRoleInstanceMetric + + + + Retrieve the metrics of a role instance + + + + Get-ACSRoleInstanceMetric + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetricDefinition + + Retrieve the metric definitions of role instance + + + + + Get + ACSRoleInstanceMetricDefinition + + + + Retrieve the metric definitions of role instance + + + + Get-ACSRoleInstanceMetricDefinition + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShare + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + + Get + ACSShare + + + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + Get-ACSShare + + FarmName + + + + String + + + ShareName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSShare -ResourceGroupName $resourceGroup -FarmName $farm.Name -ShareName 'YourShareName' + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetric + + Retrieve the metrics of a share + + + + + Get + ACSShareMetric + + + + Retrieve the metrics of a share + + + + Get-ACSShareMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetricDefinition + + Retrieve the metric definitions of share + + + + + Get + ACSShareMetricDefinition + + + + Retrieve the metric definitions of share + + + + Get-ACSShareMetricDefinition + + FarmName + + + + String + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSStorageAccount + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + + Get + ACSStorageAccount + + + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + TenantSubscriptionId + + + + String + + + PartialAccountName + + + + String + + + StorageAccountStatus + + + + Nullable`1[Int32] + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + AccountId + + + + Int64 + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + PartialAccountName + + + + String + + String + + + + + + StorageAccountStatus + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + Detail + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSStorageAccount -ResourceGroupName $resourceGroup -FarmName $farm.Name -PartialAccountName ‘YourStorageAccountName’ + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableService + + Get status and settings of table service. + + + + + Get + ACSTableService + + + + Get status and settings of table service. + + + + Get-ACSTableService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetric + + Retrieve the metrics of table service + + + + + Get + ACSTableServiceMetric + + + + Retrieve the metrics of table service + + + + Get-ACSTableServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetricDefinition + + Retrieve the metric definitions of table service + + + + + Get + ACSTableServiceMetricDefinition + + + + Retrieve the metric definitions of table service + + + + Get-ACSTableServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Invoke-ACSLogCollect + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. + + + + + Invoke + ACSLogCollect + + + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. + + + + Invoke-ACSLogCollect + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + UserName + + + + String + + + Password + + + + String + + + LogPrefix + + + + String + + + AzureStorageContainer + + + + String + + + AzureStorageAccountName + + + + String + + + AzureStorageAccountKey + + + + String + + + AzureSasToken + + + + String + + + TargetShareFolder + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + UserName + + + + String + + String + + + + + + Password + + + + String + + String + + + + + + LogPrefix + + + + String + + String + + + + + + AzureStorageContainer + + + + String + + String + + + + + + AzureStorageAccountName + + + + String + + String + + + + + + AzureStorageAccountKey + + + + String + + String + + + + + + AzureSasToken + + + + String + + String + + + + + + TargetShareFolder + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Resolve-ACSFault + + Resolve/Dismiss a fault in Azure Consistent Storage System. + + + + + Resolve + ACSFault + + + + This cmdlet change the state of a fault from Active to Resolved. + + + + Resolve-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + Force + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FaultId + + + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Resolve-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name -FaultId <FaultId> + + + + + + + + + + + + + + + + + + + + + + Restart-ACSRoleInstance + + Restart a role instance in the Azure Consistent Storage system. + + + + + Restart + ACSRoleInstance + + + + Restart a role instance in the Azure Consistent Storage system. + + + + Restart-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Restart-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + + + + + + + + + + + + + + + + Set-ACSBlobService + + Configure Settings of blob service + + + + + Set + ACSBlobService + + + + Configure Settings of blob service + + + + Set-ACSBlobService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true + + + + + + + + + + + + + + + + + + + + + + Set-ACSFarm + + Change the setting of service configuration on ACS Farm + + + + + Set + ACSFarm + + + + Change the setting of service configuration on ACS Farm + + + + Set-ACSFarm + + FarmName + + + + String + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + + CorsAllowedOriginsList + + + + String + + + DataCenterUriHostSuffixes + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + CorsAllowedOriginsList + + + + String + + String + + + + + + DataCenterUriHostSuffixes + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSFarm -ResourceGroupName $resourceGroup -FarmName $farm.Name -SettingPollingIntervalInSeconds 45 + + + + + + + + + + + + + + + + + + + + + + Set-ACSManagementService + + Configure Settings of management service + + + + + Set + ACSManagementService + + + + Configure Settings of management service + + + + Set-ACSManagementService + + FarmName + + + + String + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name WacAccountGcFullScanIntervalInSeconds 60000000 + + + + + + + + + + + + + + + + + + + + + + Set-ACSTableService + + Configure Settings of table service + + + + + Set + ACSTableService + + + + Configure Settings of table service + + + + Set-ACSTableService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true + + + + + + + + + + + + + + + + + + + + + + Start-ACSBlobServerRoleInstance + + Start blob service instance on a specific physical node. + + + + + Start + ACSBlobServerRoleInstance + + + + Start blob service instance on a specific physical node. + + + + Start-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +start-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + + + + + + + + + + + + + + + + Stop-ACSBlobServerRoleInstance + + Stop blob service instance on a specific physical node. + + + + + Stop + ACSBlobServerRoleInstance + + + + Stop blob service instance on a specific physical node. + + + + Stop-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +stop-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + + + + + + + + + + + + + + + + Sync-ACSStorageAccount + + Synchronize the account status of the tenant storage accounts from backend to frontend cache. + + + + + Sync + ACSStorageAccount + + + + After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. + + + + Sync-ACSStorageAccount + + TenantAccountName + + + + String + + + TenantSubscriptionId + + + + String + + + Location + + + + String + + + TenantResourceGroup + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + TenantAccountName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + TenantResourceGroup + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Sync-ACSStorageAccount -AccountName first -TenantSubscriptionId <TenantSubscriptionId> -ResourceLocation 'local' -ResourceGroupName $resourceGroup + + + + + + + + + + + + + + + + + + + + + + Undo-ACSStorageAccountDeletion + + Undelete a tenant storage account. + + + + + Undo + ACSStorageAccountDeletion + + + + Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. + + + + Undo-ACSStorageAccountDeletion + + FarmName + + + + String + + + AccountId + + + + Int64 + + + NewAccountName + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + NewAccountName + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Undo-ACSStorageAccountDeletion -ResourceGroupName $resourceGroup -FarmName $farm.Name -AccountId <AccountId> + + + + + + + + + + + + + + + + + + + + + + Update-ACSRoleInstance + + Update the settings of a role instance from setting repository + + + + + Update + ACSRoleInstance + + + + Update the settings of a role instance from setting repository + + + + Update-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml new file mode 100644 index 000000000000..a66a5f6d2a24 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml @@ -0,0 +1,10353 @@ + + + + + Add-ACSFarm + + Register a new provisioned ACS farm. + + + + + Add + ACSFarm + + + + After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. + + + + Add-ACSFarm + + FarmName + + + + String + + + SettingAccessString + + + + String + + + Location + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingAccessString + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + Disable-ACSNode + + Disable a particular node from service fabric cluster. + + + + + Disable + ACSNode + + + + Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. + + + + Disable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Enable-ACSNode + + Enable a particular node in the service fabric cluster. + + + + + Enable + ACSNode + + + + Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. + + + + Enable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobService + + Retrieve the status and settings of blob service + + + + + Get + ACSBlobService + + + + Retrieve the status and settings of blob service + + + + Get-ACSBlobService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetric + + Retrieve the metrics of blob service + + + + + Get + ACSBlobServiceMetric + + + + Retrieve the metrics of blob service + + + + Get-ACSBlobServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetricDefinition + + Retrieve the metric definitions of blob service + + + + + Get + ACSBlobServiceMetricDefinition + + + + Retrieve the metric definitions of blob service + + + + Get-ACSBlobServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSEventQuery + + Returns a query object, which could be used as the input parameter for Get-ACSEvent. + + + + + Get + ACSEventQuery + + + + This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. + + + + Get-ACSEventQuery + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Nullable`1[Guid] + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Nullable`1[Guid] + + Nullable`1[Guid] + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSEvents + + List the events in the Azure Consistent Storage system. + + + + + Get + ACSEvents + + + + This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. + + + + Get-ACSEvents + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Guid + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSEvents + + EventQuery + + + + EventQuery + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Guid + + Guid + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + EventQuery + + + + EventQuery + + EventQuery + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarm + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + + Get + ACSFarm + + + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + Get-ACSFarm + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetric + + Retrieve the metrics of ACS farm + + + + + Get + ACSFarmMetric + + + + Retrieve the metrics of ACS farm + + + + Get-ACSFarmMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetricDefinition + + Retrieve the metric definitions of ACS farm + + + + + Get + ACSFarmMetricDefinition + + + + Retrieve the metric definitions of ACS farm + + + + Get-ACSFarmMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFault + + List faults in the Azure Consistent Storage system. + + + + + Get + ACSFault + + + + This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: +The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. +GetHistoryFaults returns a list of active fault objects within specified time range. +GetFault returns one fault object with the specified fault ID. + + + + Get-ACSFault + + FarmName + + + + String + + + ResourceUri + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + FaultId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementService + + Retrieve running status and settings of management service. + + + + + Get + ACSManagementService + + + + Retrieve running status and settings of management service. + + + + Get-ACSManagementService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetric + + Retrieve the metrics of management service + + + + + Get + ACSManagementServiceMetric + + + + Retrieve the metrics of management service + + + + Get-ACSManagementServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetricDefinition + + Retrieve the metric definitions of management service + + + + + Get + ACSManagementServiceMetricDefinition + + + + Retrieve the metric definitions of management service + + + + Get-ACSManagementServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNode + + Get a list of nodes in Azure Consistent Storage. + + + + + Get + ACSNode + + + + Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. + + + + Get-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetric + + Retrieve the metrics of a node + + + + + Get + ACSNodeMetric + + + + Retrieve the metrics of a node + + + + Get-ACSNodeMetric + + FarmName + + + + String + + + NodeName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetricDefinition + + Retrieve the metric definitions of node + + + + + Get + ACSNodeMetricDefinition + + + + Retrieve the metric definitions of node + + + + Get-ACSNodeMetricDefinition + + FarmName + + + + String + + + NodeName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstance + + Get a list of a specific type of role instances. + + + + + Get + ACSRoleInstance + + + + Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. + + + + Get-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetric + + Retrieve the metrics of a role instance + + + + + Get + ACSRoleInstanceMetric + + + + Retrieve the metrics of a role instance + + + + Get-ACSRoleInstanceMetric + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetricDefinition + + Retrieve the metric definitions of role instance + + + + + Get + ACSRoleInstanceMetricDefinition + + + + Retrieve the metric definitions of role instance + + + + Get-ACSRoleInstanceMetricDefinition + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShare + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + + Get + ACSShare + + + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + Get-ACSShare + + FarmName + + + + String + + + ShareName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetric + + Retrieve the metrics of a share + + + + + Get + ACSShareMetric + + + + Retrieve the metrics of a share + + + + Get-ACSShareMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetricDefinition + + Retrieve the metric definitions of share + + + + + Get + ACSShareMetricDefinition + + + + Retrieve the metric definitions of share + + + + Get-ACSShareMetricDefinition + + FarmName + + + + String + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSStorageAccount + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + + Get + ACSStorageAccount + + + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + TenantSubscriptionId + + + + String + + + PartialAccountName + + + + String + + + StorageAccountStatus + + + + Nullable`1[Int32] + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + AccountId + + + + Int64 + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + PartialAccountName + + + + String + + String + + + + + + StorageAccountStatus + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + Detail + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableService + + Get status and settings of table service. + + + + + Get + ACSTableService + + + + Get status and settings of table service. + + + + Get-ACSTableService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetric + + Retrieve the metrics of table service + + + + + Get + ACSTableServiceMetric + + + + Retrieve the metrics of table service + + + + Get-ACSTableServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetricDefinition + + Retrieve the metric definitions of table service + + + + + Get + ACSTableServiceMetricDefinition + + + + Retrieve the metric definitions of table service + + + + Get-ACSTableServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Invoke-ACSLogCollect + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. + + + + + Invoke + ACSLogCollect + + + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. + + + + Invoke-ACSLogCollect + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + UserName + + + + String + + + Password + + + + String + + + LogPrefix + + + + String + + + AzureStorageContainer + + + + String + + + AzureStorageAccountName + + + + String + + + AzureStorageAccountKey + + + + String + + + AzureSasToken + + + + String + + + TargetShareFolder + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + UserName + + + + String + + String + + + + + + Password + + + + String + + String + + + + + + LogPrefix + + + + String + + String + + + + + + AzureStorageContainer + + + + String + + String + + + + + + AzureStorageAccountName + + + + String + + String + + + + + + AzureStorageAccountKey + + + + String + + String + + + + + + AzureSasToken + + + + String + + String + + + + + + TargetShareFolder + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Resolve-ACSFault + + Resolve/Dismiss a fault in Azure Consistent Storage System. + + + + + Resolve + ACSFault + + + + This cmdlet change the state of a fault from Active to Resolved. + + + + Resolve-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + Force + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FaultId + + + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Restart-ACSRoleInstance + + Restart a role instance in the Azure Consistent Storage system. + + + + + Restart + ACSRoleInstance + + + + Restart a role instance in the Azure Consistent Storage system. + + + + Restart-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSBlobService + + Configure Settings of blob service + + + + + Set + ACSBlobService + + + + Configure Settings of blob service + + + + Set-ACSBlobService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSFarm + + Change the setting of service configuration on ACS Farm + + + + + Set + ACSFarm + + + + Change the setting of service configuration on ACS Farm + + + + Set-ACSFarm + + FarmName + + + + String + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + + CorsAllowedOriginsList + + + + String + + + DataCenterUriHostSuffixes + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + CorsAllowedOriginsList + + + + String + + String + + + + + + DataCenterUriHostSuffixes + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSManagementService + + Configure Settings of management service + + + + + Set + ACSManagementService + + + + Configure Settings of management service + + + + Set-ACSManagementService + + FarmName + + + + String + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSTableService + + Configure Settings of table service + + + + + Set + ACSTableService + + + + Configure Settings of table service + + + + Set-ACSTableService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Start-ACSBlobServerRoleInstance + + Start blob service instance on a specific physical node. + + + + + Start + ACSBlobServerRoleInstance + + + + Start blob service instance on a specific physical node. + + + + Start-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Stop-ACSBlobServerRoleInstance + + Stop blob service instance on a specific physical node. + + + + + Stop + ACSBlobServerRoleInstance + + + + Stop blob service instance on a specific physical node. + + + + Stop-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sync-ACSStorageAccount + + Synchronize the account status of the tenant storage accounts from backend to frontend cache. + + + + + Sync + ACSStorageAccount + + + + After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. + + + + Sync-ACSStorageAccount + + TenantAccountName + + + + String + + + TenantSubscriptionId + + + + String + + + Location + + + + String + + + TenantResourceGroup + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + TenantAccountName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + TenantResourceGroup + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Undo-ACSStorageAccountDeletion + + Undelete a tenant storage account. + + + + + Undo + ACSStorageAccountDeletion + + + + Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. + + + + Undo-ACSStorageAccountDeletion + + FarmName + + + + String + + + AccountId + + + + Int64 + + + NewAccountName + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + NewAccountName + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Update-ACSRoleInstance + + Update the settings of a role instance from setting repository + + + + + Update + ACSRoleInstance + + + + Update the settings of a role instance from setting repository + + + + Update-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj new file mode 100644 index 000000000000..cd8d78be5a8f --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj @@ -0,0 +1,5156 @@ + + + AzureRM.AzureStackStorage + 0.10.1 + Microsoft Azure PowerShell - Storage management cmdlets for Azure Stack + true + false + + + + Add-ACSFarm + + Register a new provisioned ACS farm. + After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + Add-ACSFarm [-FarmName] <String> [-SettingAccessString] <String> [-Location] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SettingAccessString + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Location + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +Add-ACSFarm -ResourceGroupName $resourceGroup -FarmName 'YourNameFarmName' -Location 'YourLocation' + + + + + + + false + + + Disable-ACSNode + + Disable a particular node from service fabric cluster. + Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + Disable-ACSNode [-FarmName] <String> [[-NodeName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + NodeName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +Disable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' + + + + + + + false + + + Enable-ACSNode + + Enable a particular node in the service fabric cluster. + Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + Enable-ACSNode [-FarmName] <String> [[-NodeName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullOrEmptyAttribute + System.Management.Automation.ParameterAttribute + + + + + + + NodeName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +Eable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' + + + + + + + false + + + Get-ACSBlobService + + Retrieve the status and settings of blob service + Retrieve the status and settings of blob service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + Get-ACSBlobService [-FarmName] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl + + + + + + + + false + + + Get-ACSBlobServiceMetric + + Retrieve the metrics of blob service + Retrieve the metrics of blob service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + Get-ACSBlobServiceMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + TimeGrain + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSBlobServiceMetricDefinition + + Retrieve the metric definitions of blob service + Retrieve the metric definitions of blob service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; + + + + + + + + Get-ACSBlobServiceMetricDefinition [-FarmName] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSEventQuery + + Returns a query object, which could be used as the input parameter for Get-ACSEvent. + This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + Get-ACSEventQuery [-FarmName] <String> [-StartTime] <DateTime> [-EndTime] <DateTime> [[-Node] <String>] [[-ResourceUri] <String>] [[-ProviderGuid] <Nullable`1[Guid]>] [[-EventId] <Int32[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + Node + + System.Management.Automation.ParameterAttribute + + + + + + + ResourceUri + + System.Management.Automation.ParameterAttribute + + + + + + + ProviderGuid + + System.Management.Automation.ParameterAttribute + + + + + + + EventId + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +$endtime=get-date +$starttime=$endtime.addminutes(-10) + +Get-ACSEventQuery -FarmId $farm.Name -ResourceGroupName $resourceGroup -StartTime $starttime + -EndTime $endtime + + + + + + + false + + + Get-ACSEvents + + List the events in the Azure Consistent Storage system. + This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Get-ACSEvents -FarmName <String> -StartTime <DateTime> -EndTime <DateTime> [-Node <String>] [-ResourceUri <String>] [-ProviderGuid <Guid>] [-EventId <Int32[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + Get-ACSEvents -EventQuery <EventQuery> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + Node + + System.Management.Automation.ParameterAttribute + + + + + + + ResourceUri + + System.Management.Automation.ParameterAttribute + + + + + + + ProviderGuid + + System.Management.Automation.ParameterAttribute + + + + + + + EventId + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + EventQuery + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSEvents -startTime $startTime -endtime $endtime -FarmName $farm -ResourceGroupName $resourceGroup + + + + + + + false + + + Get-ACSFarm + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + Get-ACSFarm [[-FarmName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +Get-ACSFarm -ResourceGroupName $resourceGroup + + + + + + + false + + + Get-ACSFarmMetric + + Retrieve the metrics of ACS farm + Retrieve the metrics of ACS farm + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + Get-ACSFarmMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + TimeGrain + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSFarmMetricDefinition + + Retrieve the metric definitions of ACS farm + Retrieve the metric definitions of ACS farm + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; + + + + + + + + Get-ACSFarmMetricDefinition [-FarmName] <String> [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSFault + + List faults in the Azure Consistent Storage system. + This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: +The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. +GetHistoryFaults returns a list of active fault objects within specified time range. +GetFault returns one fault object with the specified fault ID. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse + + + + + + + + + + Get-ACSFault [-FarmName] <String> [-ResourceUri <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + Get-ACSFault [-FarmName] <String> -FaultId <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + Get-ACSFault [-FarmName] <String> -StartTime <DateTime> -EndTime <DateTime> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + ResourceUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.AliasAttribute + + + Id + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + FaultId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + EndTime + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + + false + + + Get-ACSManagementService + + Retrieve running status and settings of management service. + Retrieve running status and settings of management service. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + Get-ACSManagementService [-FarmName] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl + + + + + + + false + + + Get-ACSManagementServiceMetric + + Retrieve the metrics of management service + Retrieve the metrics of management service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + Get-ACSManagementServiceMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + TimeGrain + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSManagementServiceMetricDefinition + + Retrieve the metric definitions of management service + Retrieve the metric definitions of management service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; + + + + + + + + Get-ACSManagementServiceMetricDefinition [-FarmName] <String> [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSNode + + Get a list of nodes in Azure Consistent Storage. + Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + Get-ACSNode [-FarmName] <String> [[-NodeName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + NodeName + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSNode -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + false + + + Get-ACSNodeMetric + + Retrieve the metrics of a node + Retrieve the metrics of a node + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + Get-ACSNodeMetric [-FarmName] <String> [-NodeName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + NodeName + + System.Management.Automation.ParameterAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + TimeGrain + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSNodeMetricDefinition + + Retrieve the metric definitions of node + Retrieve the metric definitions of node + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + Get-ACSNodeMetricDefinition [-FarmName] <String> [-NodeName] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + NodeName + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSRoleInstance + + Get a list of a specific type of role instances. + Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + Get-ACSRoleInstance [-FarmName] <String> [-RoleType] <RoleType> [[-InstanceId] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + RoleType + + System.Management.Automation.ParameterAttribute + + + + + + + InstanceId + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend + + + + + Example 2 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend + + + + + + + false + + + Get-ACSRoleInstanceMetric + + Retrieve the metrics of a role instance + Retrieve the metrics of a role instance + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + Get-ACSRoleInstanceMetric [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + RoleType + + System.Management.Automation.ParameterAttribute + + + + + + + InstanceId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + TimeGrain + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSRoleInstanceMetricDefinition + + Retrieve the metric definitions of role instance + Retrieve the metric definitions of role instance + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; + + + + + + + + Get-ACSRoleInstanceMetricDefinition [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + RoleType + + System.Management.Automation.ParameterAttribute + + + + + + + InstanceId + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSShare + + Get list of SMB shares used in the Azure Consistent Storage system. + Get list of SMB shares used in the Azure Consistent Storage system. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse + + + + + + + + Get-ACSShare -FarmName <String> [-ShareName <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + ShareName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSShare -ResourceGroupName $resourceGroup -FarmName $farm.Name -ShareName 'YourShareName' + + + + + + + false + + + Get-ACSShareMetric + + Retrieve the metrics of a share + Retrieve the metrics of a share + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + Get-ACSShareMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-ShareName] <String> [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + TimeGrain + + System.Management.Automation.ParameterAttribute + + + + + + + ShareName + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSShareMetricDefinition + + Retrieve the metric definitions of share + Retrieve the metric definitions of share + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; + + + + + + + + Get-ACSShareMetricDefinition -FarmName <String> -ShareName <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + ShareName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSStorageAccount + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + Get-ACSStorageAccount [-FarmName] <String> [[-TenantSubscriptionId] <String>] [[-PartialAccountName] <String>] [[-StorageAccountStatus] <Nullable`1[Int32]>] [[-Detail] <SwitchParameter>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + Get-ACSStorageAccount [-FarmName] <String> [-AccountId] <Int64> [[-Detail] <SwitchParameter>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + TenantSubscriptionId + + System.Management.Automation.ParameterAttribute + + + + + + + PartialAccountName + + System.Management.Automation.ParameterAttribute + + + + + + + StorageAccountStatus + + System.Management.Automation.ParameterAttribute + + + + + + + Detail + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + AccountId + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSStorageAccount -ResourceGroupName $resourceGroup -FarmName $farm.Name -PartialAccountName ‘YourStorageAccountName’ + + + + + + + + false + + + Get-ACSTableService + + Get status and settings of table service. + Get status and settings of table service. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + Get-ACSTableService [-FarmName] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + false + + + Get-ACSTableServiceMetric + + Retrieve the metrics of table service + Retrieve the metrics of table service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + Get-ACSTableServiceMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + + + + + + + TimeGrain + + System.Management.Automation.ParameterAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Get-ACSTableServiceMetricDefinition + + Retrieve the metric definitions of table service + Retrieve the metric definitions of table service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; + + + + + + + + Get-ACSTableServiceMetricDefinition [-FarmName] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + MetricNames + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + + + + false + + + Invoke-ACSLogCollect + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + Invoke-ACSLogCollect -FarmName <String> -StartTime <DateTime> -EndTime <DateTime> -UserName <String> -Password <String> [-LogPrefix <String>] [-AzureStorageContainer <String>] [-AzureStorageAccountName <String>] [-AzureStorageAccountKey <String>] [-AzureSasToken <String>] [-TargetShareFolder <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullOrEmptyAttribute + System.Management.Automation.ParameterAttribute + + + + + + + StartTime + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + EndTime + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + UserName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + Password + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + LogPrefix + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + AzureStorageContainer + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + AzureStorageAccountName + + System.Management.Automation.ValidateNotNullOrEmptyAttribute + System.Management.Automation.ParameterAttribute + + + + + + + AzureStorageAccountKey + + System.Management.Automation.ValidateNotNullOrEmptyAttribute + System.Management.Automation.ParameterAttribute + + + + + + + AzureSasToken + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + TargetShareFolder + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + + false + + + Resolve-ACSFault + + Resolve/Dismiss a fault in Azure Consistent Storage System. + This cmdlet change the state of a fault from Active to Resolved. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + Resolve-ACSFault [-FarmName] <String> [-FaultId] <String> [-Force] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + FaultId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Force + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Resolve-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name -FaultId <FaultId> + + + + + + + false + + + Restart-ACSRoleInstance + + Restart a role instance in the Azure Consistent Storage system. + Restart a role instance in the Azure Consistent Storage system. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse; + + + + + + + + + + + Restart-ACSRoleInstance [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullOrEmptyAttribute + System.Management.Automation.ParameterAttribute + + + + + + + RoleType + + System.Management.Automation.ParameterAttribute + + + + + + + InstanceId + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Restart-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + false + + + Set-ACSBlobService + + Configure Settings of blob service + Configure Settings of blob service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + Set-ACSBlobService [-FarmName] <String> [-FrontEndCpuBasedKeepAliveThrottlingEnabled <Nullable`1[Boolean]>] [-FrontEndMemoryThrottlingEnabled <Nullable`1[Boolean]>] [-BlobSvcContainerGcInterval <Nullable`1[Int32]>] [-BlobSvcShallowGcInterval <Nullable`1[Int32]>] [-BlobSvcStreamMapMinContainerOccupancyPercent <Nullable`1[Int32]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + FrontEndMemoryThrottlingEnabled + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + BlobSvcContainerGcInterval + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + BlobSvcShallowGcInterval + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + BlobSvcStreamMapMinContainerOccupancyPercent + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true + + + + + + + false + + + Set-ACSFarm + + Change the setting of service configuration on ACS Farm + Change the setting of service configuration on ACS Farm + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + Set-ACSFarm [-FarmName] <String> [-SettingsPollingIntervalInSecond <Nullable`1[Int32]>] [-HostStyleHttpPort <Nullable`1[Int32]>] [-HostStyleHttpsPort <Nullable`1[Int32]>] [-CorsAllowedOriginsList <String>] [-DataCenterUriHostSuffixes <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SettingsPollingIntervalInSecond + + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + System.Management.Automation.ParameterAttribute + + + + + + + HostStyleHttpPort + + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + System.Management.Automation.ParameterAttribute + + + + + + + HostStyleHttpsPort + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + CorsAllowedOriginsList + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + DataCenterUriHostSuffixes + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSFarm -ResourceGroupName $resourceGroup -FarmName $farm.Name -SettingPollingIntervalInSeconds 45 + + + + + + + false + + + Set-ACSManagementService + + Configure Settings of management service + Configure Settings of management service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + Set-ACSManagementService [-FarmName] <String> [-WacContainerGcFullScanIntervalInSeconds <Nullable`1[Int32]>] [-WacAccountGcFullScanIntervalInSeconds <Nullable`1[Int32]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + WacContainerGcFullScanIntervalInSeconds + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + WacAccountGcFullScanIntervalInSeconds + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name WacAccountGcFullScanIntervalInSeconds 60000000 + + + + + + + false + + + Set-ACSTableService + + Configure Settings of table service + Configure Settings of table service + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + Set-ACSTableService [-FarmName] <String> [-FrontEndCpuBasedKeepAliveThrottlingEnabled <Nullable`1[Boolean]>] [-FrontEndMemoryThrottlingEnabled <Nullable`1[Boolean]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + FrontEndMemoryThrottlingEnabled + + System.Management.Automation.ParameterAttribute + Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true + + + + + + + false + + + Start-ACSBlobServerRoleInstance + + Start blob service instance on a specific physical node. + Start blob service instance on a specific physical node. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + Start-ACSBlobServerRoleInstance [-FarmName] <String> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + InstanceId + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullOrEmptyAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +start-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + false + + + Stop-ACSBlobServerRoleInstance + + Stop blob service instance on a specific physical node. + Stop blob service instance on a specific physical node. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + Stop-ACSBlobServerRoleInstance [-FarmName] <String> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullOrEmptyAttribute + System.Management.Automation.ParameterAttribute + + + + + + + InstanceId + + System.Management.Automation.ValidateNotNullOrEmptyAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +stop-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + false + + + Sync-ACSStorageAccount + + Synchronize the account status of the tenant storage accounts from backend to frontend cache. + After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + Sync-ACSStorageAccount [-TenantAccountName] <String> [-TenantSubscriptionId] <String> [-Location] <String> [-TenantResourceGroup] <String> [[-StorageAccountApiVersion] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + TenantAccountName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + TenantSubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Location + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + TenantResourceGroup + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + StorageAccountApiVersion + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +Sync-ACSStorageAccount -AccountName first -TenantSubscriptionId <TenantSubscriptionId> -ResourceLocation 'local' -ResourceGroupName $resourceGroup + + + + + + + false + + + Undo-ACSStorageAccountDeletion + + Undelete a tenant storage account. + Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + Undo-ACSStorageAccountDeletion [-FarmName] <String> [-AccountId] <Int64> [[-NewAccountName] <String>] [[-StorageAccountApiVersion] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AccountId + + System.Management.Automation.ParameterAttribute + + + + + + + NewAccountName + + System.Management.Automation.ParameterAttribute + + + + + + + StorageAccountApiVersion + + System.Management.Automation.ParameterAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Undo-ACSStorageAccountDeletion -ResourceGroupName $resourceGroup -FarmName $farm.Name -AccountId <AccountId> + + + + + + + false + + + Update-ACSRoleInstance + + Update the settings of a role instance from setting repository + Update the settings of a role instance from setting repository + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + Update-ACSRoleInstance [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] + + + + FarmName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + RoleType + + System.Management.Automation.ParameterAttribute + + + + + + + InstanceId + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + SubscriptionId + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + Token + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + + + + + + + AdminUri + + System.Management.Automation.ParameterAttribute + System.Management.Automation.ValidateNotNullAttribute + Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri + + + + + + + ResourceGroupName + + System.Management.Automation.ValidateNotNullAttribute + System.Management.Automation.ParameterAttribute + + + + + + + SkipCertificateValidation + + System.Management.Automation.ParameterAttribute + + + + + + + WhatIf + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + wi + + + + + + Confirm + + System.Management.Automation.AliasAttribute + System.Management.Automation.ParameterAttribute + + + cf + + + + + + + + Example 1 + + + + + + + + false + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml new file mode 100644 index 000000000000..8def7658a8bc --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml @@ -0,0 +1,10063 @@ + + + + + Add-ACSFarm + + Register a new provisioned ACS farm. + + + + + Add + ACSFarm + + + + After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. + + + + Add-ACSFarm + + FarmName + + + + String + + + SettingAccessString + + + + String + + + Location + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingAccessString + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + Disable-ACSNode + + Disable a particular node from service fabric cluster. + + + + + Disable + ACSNode + + + + Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. + + + + Disable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Enable-ACSNode + + Enable a particular node in the service fabric cluster. + + + + + Enable + ACSNode + + + + Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. + + + + Enable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobService + + Retrieve the status and settings of blob service + + + + + Get + ACSBlobService + + + + Retrieve the status and settings of blob service + + + + Get-ACSBlobService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetric + + + + + + + Get + ACSBlobServiceMetric + + + + + + + + Get-ACSBlobServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetricDefinition + + + + + + + Get + ACSBlobServiceMetricDefinition + + + + + + + + Get-ACSBlobServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSEventQuery + + Returns a query object, which could be used as the input parameter for Get-ACSEvent. + + + + + Get + ACSEventQuery + + + + This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. + + + + Get-ACSEventQuery + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Nullable`1[Guid] + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Nullable`1[Guid] + + Nullable`1[Guid] + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSEvents + + List the events in the Azure Consistent Storage system. + + + + + Get + ACSEvents + + + + This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. + + + + Get-ACSEvents + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Guid + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSEvents + + EventQuery + + + + EventQuery + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Guid + + Guid + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + EventQuery + + + + EventQuery + + EventQuery + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarm + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + + Get + ACSFarm + + + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + Get-ACSFarm + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetric + + + + + + + Get + ACSFarmMetric + + + + + + + + Get-ACSFarmMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetricDefinition + + + + + + + Get + ACSFarmMetricDefinition + + + + + + + + Get-ACSFarmMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFault + + List faults in the Azure Consistent Storage system. + + + + + Get + ACSFault + + + + This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: +The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. +GetHistoryFaults returns a list of active fault objects within specified time range. +GetFault returns one fault object with the specified fault ID. + + + + Get-ACSFault + + FarmName + + + + String + + + ResourceUri + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + FaultId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementService + + Retrieve running status and settings of management service. + + + + + Get + ACSManagementService + + + + Retrieve running status and settings of management service. + + + + Get-ACSManagementService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetric + + + + + + + Get + ACSManagementServiceMetric + + + + + + + + Get-ACSManagementServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetricDefinition + + + + + + + Get + ACSManagementServiceMetricDefinition + + + + + + + + Get-ACSManagementServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNode + + Get a list of nodes in Azure Consistent Storage. + + + + + Get + ACSNode + + + + Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. + + + + Get-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetric + + + + + + + Get + ACSNodeMetric + + + + + + + + Get-ACSNodeMetric + + FarmName + + + + String + + + NodeName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetricDefinition + + + + + + + Get + ACSNodeMetricDefinition + + + + + + + + Get-ACSNodeMetricDefinition + + FarmName + + + + String + + + NodeName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstance + + Get a list of a specific type of role instances. + + + + + Get + ACSRoleInstance + + + + Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. + + + + Get-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetric + + + + + + + Get + ACSRoleInstanceMetric + + + + + + + + Get-ACSRoleInstanceMetric + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetricDefinition + + + + + + + Get + ACSRoleInstanceMetricDefinition + + + + + + + + Get-ACSRoleInstanceMetricDefinition + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShare + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + + Get + ACSShare + + + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + Get-ACSShare + + FarmName + + + + String + + + ShareName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetric + + + + + + + Get + ACSShareMetric + + + + + + + + Get-ACSShareMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetricDefinition + + + + + + + Get + ACSShareMetricDefinition + + + + + + + + Get-ACSShareMetricDefinition + + FarmName + + + + String + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSStorageAccount + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + + Get + ACSStorageAccount + + + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + TenantSubscriptionId + + + + String + + + PartialAccountName + + + + String + + + StorageAccountStatus + + + + Nullable`1[Int32] + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + AccountId + + + + Int64 + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + PartialAccountName + + + + String + + String + + + + + + StorageAccountStatus + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + Detail + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableService + + Get status and settings of table service. + + + + + Get + ACSTableService + + + + Get status and settings of table service. + + + + Get-ACSTableService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetric + + + + + + + Get + ACSTableServiceMetric + + + + + + + + Get-ACSTableServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetricDefinition + + + + + + + Get + ACSTableServiceMetricDefinition + + + + + + + + Get-ACSTableServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Invoke-ACSLogCollect + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. + + + + + Invoke + ACSLogCollect + + + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. + + + + Invoke-ACSLogCollect + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + UserName + + + + String + + + Password + + + + String + + + LogPrefix + + + + String + + + AzureStorageContainer + + + + String + + + AzureStorageAccountName + + + + String + + + AzureStorageAccountKey + + + + String + + + AzureSasToken + + + + String + + + TargetShareFolder + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + UserName + + + + String + + String + + + + + + Password + + + + String + + String + + + + + + LogPrefix + + + + String + + String + + + + + + AzureStorageContainer + + + + String + + String + + + + + + AzureStorageAccountName + + + + String + + String + + + + + + AzureStorageAccountKey + + + + String + + String + + + + + + AzureSasToken + + + + String + + String + + + + + + TargetShareFolder + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Resolve-ACSFault + + Resolve/Dismiss a fault in Azure Consistent Storage System. + + + + + Resolve + ACSFault + + + + This cmdlet change the state of a fault from Active to Resolved. + + + + Resolve-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + Force + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FaultId + + + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Restart-ACSRoleInstance + + Restart a role instance in the Azure Consistent Storage system. + + + + + Restart + ACSRoleInstance + + + + Restart a role instance in the Azure Consistent Storage system. + + + + Restart-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSBlobService + + Configure Settings of blob service + + + + + Set + ACSBlobService + + + + Configure Settings of blob service + + + + Set-ACSBlobService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSFarm + + Change the setting of service configuration on ACS Farm + + + + + Set + ACSFarm + + + + Change the setting of service configuration on ACS Farm + + + + Set-ACSFarm + + FarmName + + + + String + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + + CorsAllowedOriginsList + + + + String + + + DataCenterUriHostSuffixes + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + CorsAllowedOriginsList + + + + String + + String + + + + + + DataCenterUriHostSuffixes + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSManagementService + + Configure Settings of management service + + + + + Set + ACSManagementService + + + + Configure Settings of management service + + + + Set-ACSManagementService + + FarmName + + + + String + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Set-ACSTableService + + Configure Settings of table service + + + + + Set + ACSTableService + + + + Configure Settings of table service + + + + Set-ACSTableService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + + + + + + + Start-ACSBlobServerRoleInstance + + Start blob service instance on a specific physical node. + + + + + Start + ACSBlobServerRoleInstance + + + + Start blob service instance on a specific physical node. + + + + Start-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Stop-ACSBlobServerRoleInstance + + Stop blob service instance on a specific physical node. + + + + + Stop + ACSBlobServerRoleInstance + + + + Stop blob service instance on a specific physical node. + + + + Stop-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sync-ACSStorageAccount + + Synchronize the account status of the tenant storage accounts from backend to frontend cache. + + + + + Sync + ACSStorageAccount + + + + After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. + + + + Sync-ACSStorageAccount + + TenantAccountName + + + + String + + + TenantSubscriptionId + + + + String + + + Location + + + + String + + + TenantResourceGroup + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + TenantAccountName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + TenantResourceGroup + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Undo-ACSStorageAccountDeletion + + Undelete a tenant storage account. + + + + + Undo + ACSStorageAccountDeletion + + + + Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. + + + + Undo-ACSStorageAccountDeletion + + FarmName + + + + String + + + AccountId + + + + Int64 + + + NewAccountName + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + NewAccountName + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Update-ACSRoleInstance + + Update the settings of a role instance from setting repository + + + + + Update + ACSRoleInstance + + + + Update the settings of a role instance from setting repository + + + + Update-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureStackStorage.sln b/src/ResourceManager/AzureStackStorage/AzureStackStorage.sln new file mode 100644 index 000000000000..531d737e6baa --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/AzureStackStorage.sln @@ -0,0 +1,86 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "..\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.AzureStackStorage", "Commands.AzureStackStorage\Commands.AzureStackStorage.csproj", "{D4CA0CC1-CD0A-4CE2-A40D-2D8A082D8791}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.AzureStackStorage.Test", "Commands.AzureStackStorage.Tests\Commands.AzureStackStorage.Test.csproj", "{D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "..\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "..\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Storage", "..\..\Common\Commands.Common.Storage\Commands.Common.Storage.csproj", "{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "..\..\Common\Commands.Common\Commands.Common.csproj", "{5EE72C53-1720-4309-B54B-5FB79703195F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "..\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "..\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Tags", "..\Tags\Commands.Tags\Commands.Tags.csproj", "{2493A8F7-1949-4F29-8D53-9D459046C3B8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{7865F5ED-E0F3-45CD-87BA-214FE8A27061}" + ProjectSection(SolutionItems) = preProject + .nuget\packages.config = .nuget\packages.config + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU + {D4CA0CC1-CD0A-4CE2-A40D-2D8A082D8791}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D4CA0CC1-CD0A-4CE2-A40D-2D8A082D8791}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D4CA0CC1-CD0A-4CE2-A40D-2D8A082D8791}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D4CA0CC1-CD0A-4CE2-A40D-2D8A082D8791}.Release|Any CPU.Build.0 = Release|Any CPU + {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B}.Release|Any CPU.Build.0 = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU + {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU + {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.Build.0 = Release|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.Build.0 = Release|Any CPU + {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU + {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU + {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2493A8F7-1949-4F29-8D53-9D459046C3B8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} + {3436A126-EDC9-4060-8952-9A1BE34CDD95} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} + EndGlobalSection +EndGlobal diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj new file mode 100644 index 000000000000..3639e890fcd6 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj @@ -0,0 +1,308 @@ + + + + + + Debug + AnyCPU + {D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B} + Library + Properties + Microsoft.AzureStack.Commands.StorageAdmin.Test + Microsoft.AzureStack.Commands.StorageAdmin.Test + v4.5 + 512 + + ..\..\..\ + true + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + d7bcc31d + + + true + MSSharedLibKey.snk + true + true + false + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + AnyCPU + + + bin\Release\ + TRACE;SIGN + true + pdbonly + AnyCPU + prompt + false + + + + ..\..\..\packages\Hyak.Common.1.0.3\lib\portable-net403+win+wpa81\Hyak.Common.dll + + + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll + + + ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.6.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll + True + + + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll + + + False + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.13-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + + + False +..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5799.28345-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll + + + False + ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5774.40163-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll + + + False + ..\..\..\packages\Microsoft.AzureStack.Management.Storage.0.9.2-preview\lib\net45\Microsoft.AzureStack.Management.Storage.dll + + + False + ..\..\..\packages\Microsoft.Data.Edm.5.6.4\lib\net40\Microsoft.Data.Edm.dll + + + False + ..\..\..\packages\Microsoft.Data.OData.5.6.4\lib\net40\Microsoft.Data.OData.dll + + + False + ..\..\..\packages\Microsoft.Data.Services.Client.5.6.4\lib\net40\Microsoft.Data.Services.Client.dll + + + ..\..\..\packages\Microsoft.Rest.ClientRuntime.1.8.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + + + False + ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll + + + False + ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll + + + False + ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll + + + ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll + + + False + ..\..\..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll + + + False + ..\..\..\packages\Moq.4.2.1402.2112\lib\net40\Moq.dll + + + False + ..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll + + + + + + False + C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\System.Management.Automation.dll + + + + + False + ..\..\..\packages\System.Spatial.5.6.2\lib\net40\System.Spatial.dll + + + ..\..\..\packages\xunit.1.9.2\lib\net20\xunit.dll + True + + + ..\..\..\packages\xunit.extensions.1.9.2\lib\net20\xunit.extensions.dll + True + + + + + + + + + + + + + + + + + + {5ee72c53-1720-4309-b54b-5fb79703195f} + Commands.Common + + + {3819d8a7-c62c-4c47-8ddd-0332d9ce1252} + Commands.ResourceManager.Common + + + {3436a126-edc9-4060-8952-9a1be34cdd95} + Commands.ScenarioTests.ResourceManager.Common + + + {d4ca0cc1-cd0a-4ce2-a40d-2d8a082d8791} + Commands.AzureStackStorage + + + + + + + Designer + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/MSSharedLibKey.snk b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/MSSharedLibKey.snk new file mode 100644 index 0000000000000000000000000000000000000000..695f1b38774e839e5b90059bfb7f32df1dff4223 GIT binary patch literal 160 zcmV;R0AK$ABme*efB*oL000060ssI2Bme+XQ$aBR1ONa50098C{E+7Ye`kjtcRG*W zi8#m|)B?I?xgZ^2Sw5D;l4TxtPwG;3)3^j?qDHjEteSTF{rM+4WI`v zCD?tsZ^;k+S&r1&HRMb=j738S=;J$tCKNrc$@P|lZ +function Test-GetBlobService +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $orgin = Get-ACSBlobService -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName + Assert-AreEqual $orgin.HealthStatus "Unknown" + Assert-AreEqual $orgin.FarmName "82ba752f-0fac-47e2-8477-5731f9f5db34" + Assert-AreEqual $orgin.Id "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/82ba752f-0fac-47e2-8477-5731f9f5db34/tableservices/default" + Assert-AreEqual $orgin.Location "redmond" + Assert-AreEqual $orgin.Name "82ba752f-0fac-47e2-8477-5731f9f5db34/default" + Assert-AreEqual $orgin.Type "Microsoft.Storage.Admin/farms/tableservices" + Assert-AreEqual $orgin.version "1.0" + + Assert-AreEqual $orgin.Settings.frontEndHttpListenPort "11002" + Assert-AreEqual $orgin.Settings.frontEndHttpsListenPort "11102" + Assert-AreEqual $orgin.Settings.frontEndCallbackThreadsCount "1800" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingEnabled "true" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingPercentCpuThreshold "100" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingPercentRequestsToThrottle "10" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingCpuMonitorIntervalInSeconds "20" + Assert-AreEqual $orgin.Settings.frontEndMemoryThrottlingEnabled "true" + Assert-AreEqual $orgin.Settings.frontEndMaxMillisecondsBetweenMemorySamples "10000" + Assert-AreEqual $orgin.Settings.frontEndMemoryThrottleThresholdSettings "5,100,0;7,50,0;10,25,0;15,0,25;" + #Assert-AreEqual $orgin.Settings.frontEndMinThreadPoolThreads "1600" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAliveIOCompletionThreshold "1500" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAliveWorkerThreadThreshold "1500" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAliveMonitorIntervalInSeconds "30" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAlivePercentage "10" + Assert-AreEqual $orgin.Settings.frontEndUseSlaTimeInAvailability "true" + + $actual = $orgin | Set-ACSBlobService -FrontEndCpuBasedKeepAliveThrottlingEnabled $false + Assert-AreEqual $actual.Settings.frontEndCpuBasedKeepAliveThrottlingEnabled $false + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing farms in a resource group with admin subscription id. +#> +function Test-SetBlobService +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Set-ACSBlobService -FarmName $farmName ` + -SubscriptionId $subscriptionId -ResourceGroupName $rgname -SkipCertificateValidation ` + -FrontEndCpuBasedKeepAliveThrottlingEnabled $true ` + -FrontEndMemoryThrottlingEnabled $true + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/Common.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/Common.ps1 new file mode 100644 index 000000000000..a49ecd290e12 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/Common.ps1 @@ -0,0 +1,65 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Gets valid resource group name +#> +function Get-ResourceGroupName +{ + return getAssetName +} + +<# +.SYNOPSIS +Gets valid resource name +#> +function Get-ResourceName +{ + return getAssetName +} + +<# +.SYNOPSIS +Gets the default location for a provider +#> +function Get-ProviderLocation($provider) +{ + $location = Get-AzureLocation | where {$_.Name -eq $provider} + if ($location -eq $null) { + "West US" + } else { + $location.Locations[0] + } +} + +<# +.SYNOPSIS +Gets valid application display name +#> +function Get-ApplicatonDisplayName +{ + return getAssetName +} + +<# +.SYNOPSIS +Cleans the created resource groups +#> +function Clean-ResourceGroup($rgname) +{ + if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode]::Playback) { + Remove-AzureResourceGroup -Name $rgname -Force + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/EventsTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/EventsTests.ps1 new file mode 100644 index 000000000000..987644a345fa --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/EventsTests.ps1 @@ -0,0 +1,143 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting the logs associated to a correlation Id. +#> +function Test-GetAzureCorrelationIdLog +{ + # Setup + $correlation = '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/microsoft.insights/alertrules/checkrule3-4b135401-a30c-4224-ae21-fa53a5bd253d/incidents/L3N1YnNjcmlwdGlvbnMvYTkzZmIwN2MtNmM5My00MGJlLWJmM2ItNGYwZGViYTEwZjRiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHQtV2ViLUVhc3RVUy9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FsZXJ0cnVsZXMvY2hlY2tydWxlMy00YjEzNTQwMS1hMzBjLTQyMjQtYWUyMS1mYTUzYTViZDI1M2QwNjM1NjA5MjE5ODU0NzQ1NDI0' + + try + { + # Test + $actual = Get-AzureCorrelationIdLog -CorrelationId $correlation -starttime 2015-03-02T10:00:00 -endtime 2015-03-02T12:00:00 -detailedOutput + + # Assert TODO add more asserts + Assert-AreEqual $actual.Count 2 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests getting the logs associated to a resource group. +#> +function Test-GetAzureResourceGroupLog +{ + # Setup + $rgname = 'Default-Web-EastUS' + + try + { + $actual = Get-AzureResourceGroupLog -ResourceGroup $rgname -starttime 2015-01-15T04:30:00 -endtime 2015-01-15T12:30:00 + + # Assert TODO add more asserts + Assert-AreEqual $actual.Count 2 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests getting the logs associated to a resource Id. +#> +function Test-GetAzureResourceLog +{ + # Setup + $rname = '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/microsoft.insights/alertrules/checkrule3-4b135401-a30c-4224-ae21-fa53a5bd253d' + + try + { + $actual = Get-AzureResourceLog -ResourceId $rname -startTime 2015-03-03T15:42:50Z -endTime 2015-03-03T16:42:50Z + + # Assert TODO add more asserts + # Assert-Throws { Set-AzureResourceGroup -Name $rgname -Tags @{"testtag" = "testval"} } "Invalid tag format. Expect @{Name = `"tagName`"} or @{Name = `"tagName`"; Value = `"tagValue`"}" + Assert-AreEqual $actual.Count 2 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests getting the logs associated to a resource provider. +#> +function Test-GetAzureResourceProviderLog +{ + # Setup + $rpname = 'microsoft.insights' + + try + { + $actual = Get-AzureResourceProviderLog -ResourceProvider $rpname -startTime 2015-03-03T15:42:50Z -endTime 2015-03-03T16:42:50Z + + # Assert + Assert-AreEqual $actual.Count 2 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests getting the logs for a subscription Id. +#> +function Test-GetAzureSubscriptionIdLog +{ + # No Setup needed + + try + { + # Test + $actual = Get-AzureSubscriptionIdLog -starttime 2015-01-15T04:30:00 -endtime 2015-01-15T12:30:00 + + # Assert + Assert-AreEqual $actual.Count 1 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.cs new file mode 100644 index 000000000000..e4c991a23e67 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.cs @@ -0,0 +1,57 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class FarmsTests + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetFarm() + { + TestsController.NewInstance.RunPsTest("Test-GetFarm"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestListFarms() + { + TestsController.NewInstance.RunPsTest("Test-ListFarms"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSetFarm() + { + TestsController.NewInstance.RunPsTest("Test-SetFarm"); + } + + //[Fact] + //[Trait(Category.AcceptanceType, Category.CheckIn)] + //public void TestGetFarms() + //{ + // TestsController.NewInstance.RunPsTest("Test-GetFarms"); + //} + + //[Fact] + //[Trait(Category.AcceptanceType, Category.CheckIn)] + //public void TestGetAlertHistory() + //{ + // TestsController.NewInstance.RunPsTest("Test-GetAlertHistory"); + //} + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.ps1 new file mode 100644 index 000000000000..3d5133e7b95d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FarmsTests.ps1 @@ -0,0 +1,105 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + + +<# +.SYNOPSIS +Tests getting a single farm for a resource group with admin subscription id. +#> +function Test-GetFarm +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $orgin = Get-ACSFarm -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName + Assert-AreEqual $orgin.HealthStatus "Warning" + Assert-AreEqual $orgin.SettingsStore "anypath" + Assert-AreEqual $orgin.FarmName "farm_01" + Assert-AreEqual $orgin.Id "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/farm_01" + Assert-AreEqual $orgin.Location "west us" + Assert-AreEqual $orgin.Name "farm_01" + Assert-AreEqual $orgin.Type "Microsoft.Storage.Admin/farms" + + Assert-AreEqual $orgin.Settings.HostStyleHttpPort "80" + Assert-AreEqual $orgin.Settings.HostStyleHttpsPort "443" + Assert-AreEqual $orgin.Settings.SettingsPollingIntervalInSecond "60" + Assert-AreEqual $orgin.Settings.CorsAllowedOriginsList "http://manage.wossportal.com;http://www.example.com" + Assert-AreEqual $orgin.Settings.DataCenterUriHostSuffixes "contoso.com" + + $corsAllowedOriginsList = 'http://manage.wossportal.com;http://www.example.com' + $settingsPullingInterval = 90 + + $actual = $orgin | Set-ACSFarm -SettingsPollingIntervalInSecond $settingsPullingInterval -CorsAllowedOriginsList $corsAllowedOriginsList + Assert-AreEqual $actual.Settings.SettingsPollingIntervalInSecond $settingsPullingInterval + Assert-AreEqual $actual.Settings.CorsAllowedOriginsList $corsAllowedOriginsList + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing farms in a resource group with admin subscription id. +#> +function Test-ListFarms +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + + try + { + $actual = Get-ACSFarm -ResourceGroupName $rgname -SubscriptionId $subscriptionId + + # Assert TODO add more asserts + Assert-AreEqual $actual.Count 1 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests set farm settings in a resource group with admin subscription id. +#> +function Test-SetFarm +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $corsAllowedOriginsList = 'http://manage.wossportal.com;http://www.example.com' + $settingsPullingInterval = 90 + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Set-ACSFarm -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -SettingsPollingIntervalInSecond $settingsPullingInterval -CorsAllowedOriginsList $corsAllowedOriginsList + Assert-AreEqual $actual.HealthStatus "Unknown" + } + finally + { + # Cleanup + # No cleanup needed for now + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.cs new file mode 100644 index 000000000000..91d4c7f58a73 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.cs @@ -0,0 +1,50 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class FaultsTests + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetFault() + { + TestsController.NewInstance.RunPsTest("Test-GetFault"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetHistoricFaults() + { + TestsController.NewInstance.RunPsTest("Test-GetHistoricFaults"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetCurrentFaults() + { + TestsController.NewInstance.RunPsTest("Test-GetCurrentFaults"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestResolveFault() + { + TestsController.NewInstance.RunPsTest("Test-ResolveFault"); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.ps1 new file mode 100644 index 000000000000..8470bbacb8e5 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/FaultsTests.ps1 @@ -0,0 +1,158 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting a single fault for a resource group with admin subscription id. +#> +function Test-GetFault +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $faultId = 'D64F6195-93FE-40AF-B0A7-D8EA10506028' + + try + { + $actual = Get-ACSFault -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -FaultId $faultId + + Assert-AreEqual $actual.Count 1 + Assert-AreEqual $actual.ActivatedTime.ToString("yyyy-MM-dd HH:mm:ss") "2015-05-18 18:02:00" + Assert-AreEqual $actual.AssociatedDataType 'Metrics' + Assert-AreEqual $actual.AssociatedEventQuery $null + Assert-AreEqual $actual.AssociatedMetricsName 'MetricsName' + Assert-AreEqual $actual.Description 'TBD' + Assert-AreEqual $actual.FaultId 'D64F6195-93FE-40AF-B0A7-D8EA10506028' + Assert-AreEqual $actual.FaultRuleName 'faultRule1' + Assert-AreEqual $actual.ResolutionText 'TBD' + Assert-AreEqual $actual.ResolvedTime $null + Assert-AreEqual $actual.ResourceUri '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableserverinstances/woss-node1' + Assert-AreEqual $actual.Severity 'Critical' + Assert-AreEqual $actual.ResourceGroupName $rgname + Assert-AreEqual $actual.FarmName $farmName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Dismiss a fault for a resource group with admin subscription id. +#> +function Test-ResolveFault +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $faultId = 'D64F6195-93FE-40AF-B0A7-D8EA10506028' + + try + { + $actual = Resolve-ACSFault -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -FaultId $faultId -Force + + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + + +<# +.SYNOPSIS +Tests get historic faults within a time period in a resource group with admin subscription id. +#> +function Test-GetHistoricFaults +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $startTime = [DateTime]'1/1/2015' + $endTime = [DateTime]'1/2/2015' + + $actual = Get-ACSFault ` + -FarmName $farmName -SubscriptionId $subscriptionId -ResourceGroupName $rgname -SkipCertificateValidation ` + -StartTime $startTime -EndTime $endTime + + Assert-AreEqual $actual.Count 1 + Assert-AreEqual $actual.ActivatedTime.ToString("yyyy-MM-dd HH:mm:ss") "2015-05-18 18:02:00" + Assert-AreEqual $actual.AssociatedDataType 'Metrics' + Assert-AreEqual $actual.AssociatedEventQuery $null + Assert-AreEqual $actual.AssociatedMetricsName 'MetricsName' + Assert-AreEqual $actual.Description 'TBD' + Assert-AreEqual $actual.FaultId 'D64F6195-93FE-40AF-B0A7-D8EA10506028' + Assert-AreEqual $actual.FaultRuleName 'faultRule1' + Assert-AreEqual $actual.ResolutionText 'TBD' + Assert-AreEqual $actual.ResolvedTime $null + Assert-AreEqual $actual.ResourceUri '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableserverinstances/woss-node1' + Assert-AreEqual $actual.Severity 'Critical' + Assert-AreEqual $actual.ResourceGroupName $rgname + Assert-AreEqual $actual.FarmName $farmName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests get current faults for a specific resource in a resource group with admin subscription id. +#> +function Test-GetCurrentFaults +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $resourceUri = '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/farms/03768357-B4F2-4C3C-AA75-574209B03D49' + $actual = Get-ACSFault ` + -FarmName $farmName -SubscriptionId $subscriptionId -ResourceGroupName $rgname -SkipCertificateValidation ` + -ResourceUri $resourceUri + + Assert-AreEqual $actual.Count 1 + Assert-AreEqual $actual.ActivatedTime.ToString("yyyy-MM-dd HH:mm:ss") "2015-05-18 18:02:00" + Assert-AreEqual $actual.AssociatedDataType 'Metrics' + Assert-AreEqual $actual.AssociatedEventQuery $null + Assert-AreEqual $actual.AssociatedMetricsName 'MetricsName' + Assert-AreEqual $actual.Description 'TBD' + Assert-AreEqual $actual.FaultId 'D64F6195-93FE-40AF-B0A7-D8EA10506028' + Assert-AreEqual $actual.FaultRuleName 'faultRule1' + Assert-AreEqual $actual.ResolutionText 'TBD' + Assert-AreEqual $actual.ResolvedTime $null + Assert-AreEqual $actual.ResourceUri '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableserverinstances/woss-node1' + Assert-AreEqual $actual.Severity 'Critical' + Assert-AreEqual $actual.ResourceGroupName $rgname + Assert-AreEqual $actual.FarmName $farmName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTest.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTest.cs new file mode 100644 index 000000000000..d225e1d5be30 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTest.cs @@ -0,0 +1,36 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class ManagementServicesTests + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetManagementService() + { + TestsController.NewInstance.RunPsTest("Test-GetManagementService"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSetManagementService() + { + TestsController.NewInstance.RunPsTest("Test-SetManagementService"); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTests.ps1 new file mode 100644 index 000000000000..54a13ff9473b --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/ManagementServicesTests.ps1 @@ -0,0 +1,62 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting a single farm for a resource group with admin subscription id. +#> +function Test-GetManagementService +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Get-ACSManagementService -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName + + # Assert TODO add more asserts for detail payload check + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing farms in a resource group with admin subscription id. +#> +function Test-SetManagementService +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Set-ACSManagementService -FarmName $farmName ` + -SubscriptionId $subscriptionId -ResourceGroupName $rgname -SkipCertificateValidation ` + -WacContainerGcFullScanIntervalInSeconds 3600 ` + -WacAccountGcFullScanIntervalInSeconds 3600 ` + } + finally + { + # Cleanup + # No cleanup needed for now + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.cs new file mode 100644 index 000000000000..59282fd947b2 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.cs @@ -0,0 +1,51 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class NodesTests : RMTestBase + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetNode() + { + TestsController.NewInstance.RunPsTest("Test-GetNode"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestListNodes() + { + TestsController.NewInstance.RunPsTest("Test-ListNodes"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableNode() + { + TestsController.NewInstance.RunPsTest("Test-DisableNode"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestEnableNode() + { + TestsController.NewInstance.RunPsTest("Test-EnableNode"); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.ps1 new file mode 100644 index 000000000000..a05f3ccacdc8 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/NodesTests.ps1 @@ -0,0 +1,152 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting a single node for a resource group with admin subscription id. +#> +function Test-GetNode +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $nodeName = 'woss-node-1' + + try + { + $orgin = Get-ACSNode -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -NodeName $nodeName + Assert-AreEqual $orgin.HealthState "Critical" + Assert-AreEqual $orgin.FarmName "03768357-B4F2-4C3C-AA75-574209B03D49" + Assert-AreEqual $orgin.Id "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1" + Assert-AreEqual $orgin.Location "West_US" + Assert-AreEqual $orgin.Name "03768357-B4F2-4C3C-AA75-574209B03D49/woss-node-1" + Assert-AreEqual $orgin.Type "Microsoft.Storage.Admin/farms/nodes" + Assert-AreEqual $orgin.codeVersion "3.0.1414.9492" + Assert-AreEqual $orgin.configVersion "1.0" + Assert-AreEqual $orgin.faultDomain "fd:/woss-node-1" + Assert-AreEqual $orgin.configVersion "1.0" + Assert-AreEqual $orgin.upgradeDomain "WOSS_U1" + Assert-AreEqual $orgin.runningInstanceUris.count 2 + Assert-AreEqual $orgin.runningInstanceUris[0] "subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/tableserverinstances/woss-node-1" + Assert-AreEqual $orgin.runningInstanceUris[1] "subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/accountcontainerserverinstances/woss-node-1" + + $actual = $orgin | Disable-ACSNode + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing nodes in a resource group with admin subscription id. +#> +function Test-ListNodes +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Get-ACSNode -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName + + # Assert TODO add more asserts + Assert-AreEqual $actual.Count 1 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests disabling a single node in cluster in a resource group with admin subscription id. +#> +function Test-EnableNode +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Enable-ACSNode -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName + + # Assert TODO add more asserts + Assert-AreEqual $actual.Count 1 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests disabling a single node in cluster in a resource group with admin subscription id. +#> +function Test-DisableNode +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $nodeName = 'woss-node-1' + + try + { + $actual = Disable-ACSNode -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -NodeName $nodeName + + # Assert TODO add more asserts + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests enabling a single node in cluster in a resource group with admin subscription id. +#> +function Test-EnableNode +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $nodeName = 'woss-node-1' + + try + { + $actual = Enable-ACSNode -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -NodeName $nodeName + + # Assert TODO add more asserts + } + finally + { + # Cleanup + # No cleanup needed for now + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.cs new file mode 100644 index 000000000000..bcb07aec7682 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.cs @@ -0,0 +1,64 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class RoleInstancesTests + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetRoleInstance() + { + TestsController.NewInstance.RunPsTest("Test-GetRoleInstance"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestListRoleInstances() + { + TestsController.NewInstance.RunPsTest("Test-ListRoleInstances"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestRestartRoleInstance() + { + TestsController.NewInstance.RunPsTest("Test-RestartRoleInstance"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestStartRoleInstance() + { + TestsController.NewInstance.RunPsTest("Test-StartRoleInstance"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestStopRoleInstance() + { + TestsController.NewInstance.RunPsTest("Test-StopRoleInstance"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestRoleInstancePipeline() + { + TestsController.NewInstance.RunPsTest("Test-RoleInstancePipeline"); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.ps1 new file mode 100644 index 000000000000..15d453f65228 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/RoleInstancesTests.ps1 @@ -0,0 +1,187 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting a single role instance for a resource group with admin subscription id. +#> +function Test-GetRoleInstance +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '3c62b865-d397-47fe-99ed-6dda536a1a69' + $roleInstanceId = 'D11180COL0' + + try + { + $result = Get-ACSRoleInstance ` + -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -RoleType TableServer ` + -InstanceId $roleInstanceId + + Assert-AreEqual $result.HealthStatus "Healthy" + Assert-AreEqual $result.NodeUri "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL0" + Assert-AreEqual $result.InstanceId $roleInstanceId + Assert-AreEqual $result.Status "Active" + + $settings = $result.settings + Assert-AreEqual $settings.TableServerMaxConnections 100 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing role instances in a resource group with admin subscription id. +#> +function Test-ListRoleInstances +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '3c62b865-d397-47fe-99ed-6dda536a1a69' + + try + { + $results = Get-ACSRoleInstance ` + -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -RoleType TableServer + + # Assert TODO add more asserts + Assert-AreEqual $results.Count 6 + Assert-AreEqual $results[0].HealthStatus "Healthy" + Assert-AreEqual $results[0].NodeUri "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL0" + Assert-AreEqual $results[0].InstanceId "D11180COL0" + Assert-AreEqual $results[0].Status "Active" + + $settings = $results[0].settings + Assert-AreEqual $settings.TableServerMaxConnections 100 + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests restarting a role instance in cluster in a resource group with admin subscription id. +#> +function Test-RestartRoleInstance +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '3c62b865-d397-47fe-99ed-6dda536a1a69' + $roleInstanceId = 'D11180COL0' + + try + { + $actual = Restart-ACSRoleInstance ` + -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -RoleType TableServer ` + -InstanceId $roleInstanceId + + # Assert TODO add more asserts + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests starting a role instance in cluster in a resource group with admin subscription id. +#> +function Test-StartRoleInstance +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '3c62b865-d397-47fe-99ed-6dda536a1a69' + $roleInstanceId = 'D11180COL0' + + try + { + $actual = Start-ACSBlobServerRoleInstance ` + -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -InstanceId $roleInstanceId + + # Assert TODO add more asserts + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests stop a role instance in cluster in a resource group with admin subscription id. +#> +function Test-StopRoleInstance +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '3c62b865-d397-47fe-99ed-6dda536a1a69' + $roleInstanceId = 'D11180COL0' + + try + { + $actual = Stop-ACSBlobServerRoleInstance ` + -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -InstanceId $roleInstanceId + + # Assert TODO add more asserts + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests role instance pipeline. Get a roleinstance, then restart it thru pipeline. +#> +function Test-RoleInstancePipeline +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '3c62b865-d397-47fe-99ed-6dda536a1a69' + + try + { + $results = Get-ACSRoleInstance ` + -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -RoleType TableServer | Select-Object -First 1 | Restart-ACSRoleInstance + } + finally + { + # Cleanup + # No cleanup needed for now + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.cs new file mode 100644 index 000000000000..4dd79031170e --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.cs @@ -0,0 +1,36 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class SharesTests + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetShare() + { + TestsController.NewInstance.RunPsTest("Test-GetShare"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestListShares() + { + TestsController.NewInstance.RunPsTest("Test-ListShares"); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.ps1 new file mode 100644 index 000000000000..4b7465a34510 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/SharesTests.ps1 @@ -0,0 +1,76 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting a single share for a resource group with admin subscription id. +#> +function Test-GetShare +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $shareName = '||smb|share1' + + try + { + $actual = Get-ACSShare -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -ShareName $shareName + + Assert-AreEqual $actual.Count 1 + Assert-AreEqual $actual.FreeCapacity 460 + Assert-AreEqual $actual.HealthStatus 'Warning' + Assert-AreEqual $actual.ShareName $shareName + Assert-AreEqual $actual.TotalCapacity 500 + Assert-AreEqual $actual.UncPath $shareName + Assert-AreEqual $actual.UsedCapacity 40 + Assert-AreEqual $actual.FarmName $farmName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing shares in a resource group with admin subscription id. +#> +function Test-ListShares +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Get-ACSShare -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName + + Assert-AreEqual $actual.Count 1 + Assert-AreEqual $actual[0].FreeCapacity 460 + Assert-AreEqual $actual[0].HealthStatus 'Warning' + Assert-AreEqual $actual[0].ShareName '||smb|share1' + Assert-AreEqual $actual[0].TotalCapacity 500 + Assert-AreEqual $actual[0].UncPath '||smb|share1' + Assert-AreEqual $actual[0].UsedCapacity 40 + Assert-AreEqual $actual[0].FarmName $farmName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.cs new file mode 100644 index 000000000000..7458d90eb358 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.cs @@ -0,0 +1,50 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class StorageAccountsTests + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetStorageAccount() + { + TestsController.NewInstance.RunPsTest("Test-GetStorageAccount"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestListStorageAccounts() + { + TestsController.NewInstance.RunPsTest("Test-ListStorageAccounts"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestUndoStorageAccountDeletion() + { + TestsController.NewInstance.RunPsTest("Test-UndoStorageAccountDeletion"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestStorageAccountPipeline() + { + TestsController.NewInstance.RunPsTest("Test-StorageAccountPipeline"); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.ps1 new file mode 100644 index 000000000000..0b27df9d7813 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/StorageAccountsTests.ps1 @@ -0,0 +1,169 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting a single storage account with account ID given for a resource group with admin subscription id. +#> +function Test-GetStorageAccount +{ + # Setup + $rgname = 'system' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $accountId = 1 + + try + { + $actual = Get-ACSStorageAccount -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -AccountId $accountId -Detail + + Assert-AreEqual $actual.Count 1 + Assert-AreEqual $actual.AccountId 1 + Assert-AreEqual $actual.AdminViewId '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1' + Assert-AreEqual $actual.TenantViewId '/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourcegroups/system/providers/Microsoft.Storage/storageaccounts/demo007' + Assert-AreEqual $actual.AccountType 'StandardGRS' + Assert-AreEqual $actual.State 'Created' + Assert-AreEqual $actual.PrimaryEndpoints['blob'] 'https://host:11100/demo007' + Assert-AreEqual $actual.PrimaryEndpoints['queue'] 'https://host:11101/demo007' + Assert-AreEqual $actual.PrimaryEndpoints['table'] 'https://host:11102/demo007' + + #TODO: should the type of CreationTime be DateTime? + Assert-AreEqual $actual.CreationTime 'Tue, 13 Oct 2015 05:42:48 GMT' + Assert-AreEqual $actual.AlternateName $null + Assert-AreEqual $actual.StatusOfPrimary 'Available' + Assert-AreEqual $actual.TenantSubscriptionId '177fbbce-fd6a-4f11-bfa4-52c2f3a21918' + Assert-AreEqual $actual.TenantAccountName 'demo007' + Assert-AreEqual $actual.TenantResourceGroupName $rgname + Assert-AreEqual $actual.CurrentOperation 'None' + Assert-AreEqual $actual.CustomDomain $null + Assert-AreEqual $actual.AcquisitionOperationCount 0 + Assert-AreEqual $actual.DeletedTime $null + Assert-AreEqual $actual.AccountStatus 'Active' + Assert-AreEqual $actual.RecoveredTime.ToString("yyyy-MM-dd HH:mm:ss") '2015-10-13 05:44:29' + Assert-AreEqual $actual.RecycledTime $null + Assert-AreEqual $actual.Permissions $null + #TODO: verify WacAccountId, WacInternalState etc + Assert-AreEqual $actual.FarmName $farmName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing storage accounts with partial/full storage account name given in a resource group with admin subscription id. +#> +function Test-ListStorageAccounts +{ + # Setup + $rgname = 'system' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $partialAccountName = 'acc' + $tenantSubscriptionId = 'DB3972C4-90B4-4A11-9209-D6C12060F6FC' + + try + { + $actual = Get-ACSStorageAccount -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -PartialAccountName $partialAccountName ` + -TenantSubscriptionId $tenantSubscriptionId + + Assert-AreEqual $actual.Count 1 + Assert-AreEqual $actual[0].AccountId 1 + Assert-AreEqual $actual[0].AdminViewId '/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1' + Assert-AreEqual $actual[0].TenantViewId '/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourcegroups/system/providers/Microsoft.Storage/storageaccounts/demo007' + Assert-AreEqual $actual[0].AccountType 'StandardGRS' + Assert-AreEqual $actual[0].State 'Created' + Assert-AreEqual $actual[0].PrimaryEndpoints['blob'] 'https://host:11100/demo007' + Assert-AreEqual $actual[0].PrimaryEndpoints['queue'] 'https://host:11101/demo007' + Assert-AreEqual $actual[0].PrimaryEndpoints['table'] 'https://host:11102/demo007' + + #TODO: should the type of CreationTime be DateTime? + Assert-AreEqual $actual[0].CreationTime 'Tue, 13 Oct 2015 05:42:48 GMT' + Assert-AreEqual $actual[0].AlternateName $null + Assert-AreEqual $actual[0].StatusOfPrimary 'Available' + Assert-AreEqual $actual[0].TenantSubscriptionId '177fbbce-fd6a-4f11-bfa4-52c2f3a21918' + Assert-AreEqual $actual[0].TenantAccountName 'demo007' + Assert-AreEqual $actual[0].TenantResourceGroupName $rgname + Assert-AreEqual $actual[0].CurrentOperation 'None' + Assert-AreEqual $actual[0].CustomDomain $null + Assert-AreEqual $actual[0].AcquisitionOperationCount 0 + Assert-AreEqual $actual[0].DeletedTime $null + Assert-AreEqual $actual[0].AccountStatus 'Active' + Assert-AreEqual $actual[0].RecoveredTime.ToString("yyyy-MM-dd HH:mm:ss") '2015-10-13 05:44:29' + Assert-AreEqual $actual[0].RecycledTime $null + Assert-AreEqual $actual[0].Permissions $null + #TODO: verify WacAccountId, WacInternalState etc + Assert-AreEqual $actual[0].FarmName $farmName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests undo the deletion of a storage account with account ID given in a resource group with admin subscription id. +#> +function Test-UndoStorageAccountDeletion +{ + # Setup + $rgname = 'system' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $accountId = 1 + $tenantSubscriptionId = 'DB3972C4-90B4-4A11-9209-D6C12060F6FC' + $newAccountName = 'acc_new_name' + + try + { + $actual = Undo-ACSStorageAccountDeletion -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName ` + -AccountId $accountId -NewAccountName $newAccountName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests pipeline. Get an account first, then undo deletion. +#> +function Test-StorageAccountPipeline +{ + # Setup + $rgname = 'system' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + $accountId = 1 + $newAccountName = 'acc_new_name' + + try + { + $actual = Get-ACSStorageAccount -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName -AccountId $accountId -Detail ` + | Undo-ACSStorageAccountDeletion -NewAccountName $newAccountName + } + finally + { + # Cleanup + # No cleanup needed for now + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.cs new file mode 100644 index 000000000000..76caea401fa7 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.cs @@ -0,0 +1,36 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public class TableServicesTests + { + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetTableService() + { + TestsController.NewInstance.RunPsTest("Test-GetTableService"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSetTableService() + { + TestsController.NewInstance.RunPsTest("Test-SetTableService"); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.ps1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.ps1 new file mode 100644 index 000000000000..3562f6c83351 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TableServicesTests.ps1 @@ -0,0 +1,85 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# 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. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Tests getting a single farm for a resource group with admin subscription id. +#> +function Test-GetTableService +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $orgin = Get-ACSTableService -ResourceGroupName $rgname -SubscriptionId $subscriptionId -FarmName $farmName + Assert-AreEqual $orgin.HealthStatus "Unknown" + Assert-AreEqual $orgin.FarmName "82ba752f-0fac-47e2-8477-5731f9f5db34" + Assert-AreEqual $orgin.Id "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/82ba752f-0fac-47e2-8477-5731f9f5db34/tableservices/default" + Assert-AreEqual $orgin.Location "redmond" + Assert-AreEqual $orgin.Name "82ba752f-0fac-47e2-8477-5731f9f5db34/default" + Assert-AreEqual $orgin.Type "Microsoft.Storage.Admin/farms/tableservices" + Assert-AreEqual $orgin.version "1.0" + + Assert-AreEqual $orgin.Settings.frontEndHttpListenPort "11002" + Assert-AreEqual $orgin.Settings.frontEndHttpsListenPort "11102" + Assert-AreEqual $orgin.Settings.frontEndCallbackThreadsCount "1800" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingEnabled "true" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingPercentCpuThreshold "100" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingPercentRequestsToThrottle "10" + Assert-AreEqual $orgin.Settings.frontEndCpuBasedKeepAliveThrottlingCpuMonitorIntervalInSeconds "20" + Assert-AreEqual $orgin.Settings.frontEndMemoryThrottlingEnabled "true" + Assert-AreEqual $orgin.Settings.frontEndMaxMillisecondsBetweenMemorySamples "10000" + Assert-AreEqual $orgin.Settings.frontEndMemoryThrottleThresholdSettings "5,100,0;7,50,0;10,25,0;15,0,25;" + #Assert-AreEqual $orgin.Settings.frontEndMinThreadPoolThreads "1600" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAliveIOCompletionThreshold "1500" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAliveWorkerThreadThreshold "1500" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAliveMonitorIntervalInSeconds "30" + Assert-AreEqual $orgin.Settings.frontEndThreadPoolBasedKeepAlivePercentage "10" + Assert-AreEqual $orgin.Settings.frontEndUseSlaTimeInAvailability "true" + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + +<# +.SYNOPSIS +Tests listing farms in a resource group with admin subscription id. +#> +function Test-SetTableService +{ + # Setup + $rgname = 'Default-Web-EastUS' + $subscriptionId = 'a93fb07c-6c93-40be-bf3b-4f0deba10f4b' + $farmName = '03768357-B4F2-4C3C-AA75-574209B03D49' + + try + { + $actual = Set-ACSTableService -FarmName $farmName ` + -SubscriptionId $subscriptionId -ResourceGroupName $rgname -SkipCertificateValidation ` + -FrontEndCpuBasedKeepAliveThrottlingEnabled $true ` + -FrontEndMemoryThrottlingEnabled $true + } + finally + { + # Cleanup + # No cleanup needed for now + } +} + diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TestsController.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TestsController.cs new file mode 100644 index 000000000000..07e41b0a1902 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/ScenarioTests/TestsController.cs @@ -0,0 +1,154 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Common.Authentication; +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Microsoft.Azure.Test; +using System; +using System.Linq; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; + +namespace Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests +{ + public sealed class TestsController : RMTestBase + { + private CSMTestEnvironmentFactory csmTestFactory; + private EnvironmentSetupHelper helper; + + public string UserDomain { get; private set; } + + public static TestsController NewInstance + { + get + { + return new TestsController(); + } + } + + public TestsController() + { + helper = new EnvironmentSetupHelper(); + } + + public void RunPsTest(params string[] scripts) + { + var callingClassType = TestUtilities.GetCallingClass(2); + var mockName = TestUtilities.GetCurrentMethodName(2); + + RunPsTestWorkflow( + () => scripts, + // no custom initializer + null, + // no custom cleanup + null, + callingClassType, + mockName); + } + + public void RunPsTestWorkflow( + Func scriptBuilder, + Action initialize, + Action cleanup, + string callingClassType, + string mockName) + { + using (UndoContext context = UndoContext.Current) + { + context.Start(callingClassType, mockName); + + this.csmTestFactory = new CSMTestEnvironmentFactory(); + + if(initialize != null) + { + initialize(this.csmTestFactory); + } + + SetupManagementClients(); + + helper.SetupEnvironment(AzureModule.AzureResourceManager); + + var callingClassName = callingClassType + .Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries) + .Last(); + helper.SetupModules( + AzureModule.AzureResourceManager, + "ScenarioTests\\Common.ps1", + "ScenarioTests\\" + callingClassName + ".ps1", + helper.RMProfileModule, + helper.GetRMModulePath("AzureRM.AzureStackStorage.psd1")); + + try + { + if (scriptBuilder != null) + { + var psScripts = scriptBuilder(); + + if (psScripts != null) + { + helper.RunPowerShellTest(psScripts); + } + } + } + finally + { + if(cleanup !=null) + { + cleanup(); + } + } + } + } + + private void SetupManagementClients() + { + var storageAdminClient = GetStorageManagementClient(); + + helper.SetupManagementClients(storageAdminClient); + } + + private IStorageAdminManagementClient GetStorageManagementClient() + { + return TestBase.GetServiceClient(this.csmTestFactory); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestGetBlobService.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestGetBlobService.json new file mode 100644 index 000000000000..bc76856c652b --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestGetBlobService.json @@ -0,0 +1,113 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/blobservices/default?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/82ba752f-0fac-47e2-8477-5731f9f5db34/tableservices/default\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34/default\",\"type\":\"Microsoft.Storage.Admin/farms/tableservices\",\"location\":\"redmond\",\"properties\":{\"settings\":{\"frontEndHttpListenPort\":11002,\"frontEndHttpsListenPort\":11102,\"frontEndCallbackThreadsCount\":1800,\"frontEndCpuBasedKeepAliveThrottlingEnabled\":true,\"frontEndCpuBasedKeepAliveThrottlingPercentCpuThreshold\":100,\"frontEndCpuBasedKeepAliveThrottlingPercentRequestsToThrottle\":10,\"frontEndCpuBasedKeepAliveThrottlingCpuMonitorIntervalInSeconds\":20,\"frontEndMemoryThrottlingEnabled\":true,\"frontEndMaxMillisecondsBetweenMemorySamples\":10000,\"frontEndMemoryThrottleThresholdSettings\":\"5,100,0;7,50,0;10,25,0;15,0,25;\",\"frontEndMinThreadPoolThreads\":1600,\"frontEndThreadPoolBasedKeepAliveIOCompletionThreshold\":1500,\"frontEndThreadPoolBasedKeepAliveWorkerThreadThreshold\":1500,\"frontEndThreadPoolBasedKeepAliveMonitorIntervalInSeconds\":30,\"frontEndThreadPoolBasedKeepAlivePercentage\":10,\"frontEndUseSlaTimeInAvailability\":true},\"version\":\"1.0\",\"healthStatus\":\"Unknown\"}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/82ba752f-0fac-47e2-8477-5731f9f5db34/blobservices/default?api-version=2015-12-01-preview", + "RequestMethod": "PATCH", + "RequestBody": "{\"properties\":{\"settings\":{\"frontEndCpuBasedKeepAliveThrottlingEnabled\":false}},\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ "Microsoft.Azure.Insights.InsightsClient/0.9.0.0 AzurePowershell/v0.8.14" ], + "Content-Length": [ "1217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Connection": [ "Keep-Alive" ], + "Expect": [ "100-continue" ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/82ba752f-0fac-47e2-8477-5731f9f5db34/tableservices/default\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34/default\",\"type\":\"Microsoft.Storage.Admin/farms/tableservices\",\"location\":\"redmond\",\"properties\":{\"settings\":{\"frontEndHttpListenPort\":11002,\"frontEndHttpsListenPort\":11102,\"frontEndCallbackThreadsCount\":1800,\"frontEndCpuBasedKeepAliveThrottlingEnabled\":false,\"frontEndCpuBasedKeepAliveThrottlingPercentCpuThreshold\":100,\"frontEndCpuBasedKeepAliveThrottlingPercentRequestsToThrottle\":10,\"frontEndCpuBasedKeepAliveThrottlingCpuMonitorIntervalInSeconds\":20,\"frontEndMemoryThrottlingEnabled\":true,\"frontEndMaxMillisecondsBetweenMemorySamples\":10000,\"frontEndMemoryThrottleThresholdSettings\":\"5,100,0;7,50,0;10,25,0;15,0,25;\",\"frontEndMinThreadPoolThreads\":1600,\"frontEndThreadPoolBasedKeepAliveIOCompletionThreshold\":1500,\"frontEndThreadPoolBasedKeepAliveWorkerThreadThreshold\":1500,\"frontEndThreadPoolBasedKeepAliveMonitorIntervalInSeconds\":30,\"frontEndThreadPoolBasedKeepAlivePercentage\":10,\"frontEndUseSlaTimeInAvailability\":true},\"version\":\"1.0\",\"healthStatus\":\"Unknown\"}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Content-Length": [ + "1612" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "47af504c-88a1-49c5-9766-e397d54e490b" + ], + "x-ms-correlation-request-id": [ + "e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150303T190828Z:e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-GetTableService": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestSetBlobService.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestSetBlobService.json new file mode 100644 index 000000000000..9e95f9889d52 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.BlobServicesTests/TestSetBlobService.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/blobservices/default?api-version=2015-12-01-preview", + "RequestMethod": "PATCH", + "RequestBody": "{\"properties\":{\"settings\":{\"frontEndCallbackThreadsCount\":1800,\"frontEndCpuBasedKeepAliveThrottlingEnabled\":true,\"frontEndCpuBasedKeepAliveThrottlingPercentCpuThreshold\":100,\"frontEndCpuBasedKeepAliveThrottlingPercentRequestsToThrottle\":10,\"frontEndCpuBasedKeepAliveThrottlingCpuMonitorIntervalInSeconds\":20,\"frontEndMemoryThrottlingEnabled\":true}},\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ "Microsoft.Azure.Insights.InsightsClient/0.9.0.0 AzurePowershell/v0.8.14" ], + "Content-Length": [ "1217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Connection": [ "Keep-Alive" ], + "Expect": [ "100-continue" ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"redmond\",\"properties\":{\"farmId\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"version\":\"2015-12-01-preview\",\"settingsStore\":\"file://172.17.145.159/SMB/Settings/ObjectStorageService/Settings\",\"healthStatus\":\"Unknown\",\"settings\":{\"settingsPollingIntervalInSecond\":90,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"}}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Content-Length": [ + "1612" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "47af504c-88a1-49c5-9766-e397d54e490b" + ], + "x-ms-correlation-request-id": [ + "e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150303T190828Z:e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-SetTableService": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestGetFarm.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestGetFarm.json new file mode 100644 index 000000000000..fd9d2cf026a4 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestGetFarm.json @@ -0,0 +1,113 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/farm_01\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"west us\",\"name\":\"farm_01\",\"properties\":{\"settings\":{\"settingsPollingIntervalInSecond\":60,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"},\"settingsStore\":\"anypath\",\"healthStatus\":\"Warning\"}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/farm_01?api-version=2015-12-01-preview", + "RequestMethod": "PATCH", + "RequestBody": "{\"properties\":{\"settings\":{\"settingsPollingIntervalInSecond\":90,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\"}},\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ "Microsoft.Azure.Insights.InsightsClient/0.9.0.0 AzurePowershell/v0.8.14" ], + "Content-Length": [ "1217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Connection": [ "Keep-Alive" ], + "Expect": [ "100-continue" ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"redmond\",\"properties\":{\"farmId\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"version\":\"2015-12-01-preview\",\"settingsStore\":\"file://172.17.145.159/SMB/Settings/ObjectStorageService/Settings\",\"healthStatus\":\"Unknown\",\"settings\":{\"settingsPollingIntervalInSecond\":90,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"}}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Content-Length": [ + "1612" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "47af504c-88a1-49c5-9766-e397d54e490b" + ], + "x-ms-correlation-request-id": [ + "e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150303T190828Z:e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-GetFarm": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestListFarms.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestListFarms.json new file mode 100644 index 000000000000..621041f941bc --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestListFarms.json @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"value\":[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/rg1/providers/Microsoft.Storage.Admin/farms/farm_01\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"west us\",\"name\":\"farm_01\",\"properties\":{\"settings\":{\"settingsPollingIntervalInSecond\":60,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"},\"settingsStore\":\"anypath\",\"healthStatus\":\"Warning\"}}]}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-ListFarms": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestSetFarm.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestSetFarm.json new file mode 100644 index 000000000000..39f6ff51542e --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FarmsTests/TestSetFarm.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49?api-version=2015-12-01-preview", + "RequestMethod": "PATCH", + "RequestBody": "{\"properties\":{\"settings\":{\"settingsPollingIntervalInSecond\":90,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\"}},\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ "Microsoft.Azure.Insights.InsightsClient/0.9.0.0 AzurePowershell/v0.8.14" ], + "Content-Length": [ "1217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Connection": [ "Keep-Alive" ], + "Expect": [ "100-continue" ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"redmond\",\"properties\":{\"farmId\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"version\":\"2015-12-01-preview\",\"settingsStore\":\"file://172.17.145.159/SMB/Settings/ObjectStorageService/Settings\",\"healthStatus\":\"Unknown\",\"settings\":{\"settingsPollingIntervalInSecond\":90,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"}}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Content-Length": [ + "1612" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "47af504c-88a1-49c5-9766-e397d54e490b" + ], + "x-ms-correlation-request-id": [ + "e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150303T190828Z:e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-SetFarm": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetCurrentFaults.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetCurrentFaults.json new file mode 100644 index 000000000000..4dac049256a6 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetCurrentFaults.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/faults?api-version=2015-12-01-preview&$filter=resourceUri%20eq%20'%2Fsubscriptions%2Fa93fb07c-6c93-40be-bf3b-4f0deba10f4b%2Fresourcegroups%2FDefault-Web-EastUS%2Ffarms%2F03768357-B4F2-4C3C-AA75-574209B03D49'", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/faults/D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"type\":\"Microsoft.Storage.Admin/farms/faults\",\"location\":\"EAST US\",\"properties\":{\"faultId\":\"D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"faultRuleName\":\"faultRule1\",\"description\":\"TBD\",\"resourceUri\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableserverinstances/woss-node1\",\"severity\":\"Critical\",\"activatedTime\":\"2015-05-18T18:02:00Z\",\"resolvedTime\":null,\"resolutionText\":\"TBD\",\"associatedDataType\":\"Metrics\",\"associatedMetricsName\":\"MetricsName\"}}]", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetFault.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetFault.json new file mode 100644 index 000000000000..e34bb073c2c2 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetFault.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/faults/D64F6195-93FE-40AF-B0A7-D8EA10506028?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/faults/D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"type\":\"Microsoft.Storage.Admin/farms/faults\",\"location\":\"EAST US\",\"properties\":{\"faultId\":\"D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"faultRuleName\":\"faultRule1\",\"description\":\"TBD\",\"resourceUri\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableserverinstances/woss-node1\",\"severity\":\"Critical\",\"activatedTime\":\"2015-05-18T18:02:00Z\",\"resolvedTime\":null,\"resolutionText\":\"TBD\",\"associatedDataType\":\"Metrics\",\"associatedMetricsName\":\"MetricsName\"}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetHistoricFaults.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetHistoricFaults.json new file mode 100644 index 000000000000..b634a6b5dae5 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestGetHistoricFaults.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/faults?api-version=2015-12-01-preview&$filter=startTime%20eq%20'2015-01-01T00%3A00%3A00.0000000'%20and%20endTime%20eq%20'2015-01-02T00%3A00%3A00.0000000'", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/faults/D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"type\":\"Microsoft.Storage.Admin/farms/faults\",\"location\":\"EAST US\",\"properties\":{\"faultId\":\"D64F6195-93FE-40AF-B0A7-D8EA10506028\",\"faultRuleName\":\"faultRule1\",\"description\":\"TBD\",\"resourceUri\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableserverinstances/woss-node1\",\"severity\":\"Critical\",\"activatedTime\":\"2015-05-18T18:02:00Z\",\"resolvedTime\":null,\"resolutionText\":\"TBD\",\"associatedDataType\":\"Metrics\",\"associatedMetricsName\":\"MetricsName\"}}]", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestResolveFault.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestResolveFault.json new file mode 100644 index 000000000000..bc1c76b18081 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.FaultsTests/TestResolveFault.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/faults/D64F6195-93FE-40AF-B0A7-D8EA10506028/dismiss?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestGetManagementService.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestGetManagementService.json new file mode 100644 index 000000000000..3493e9af14d7 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestGetManagementService.json @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/managementservices/default?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/managementservices/default\",\"name\":\"6fc55539-11fa-4a2d-aa19-a88cd546ef45/default\",\"type\":\"Microsoft.Storage.Admin/farms/managementservices\",\"location\":\"redmond\",\"properties\":{\"settings\":{\"wacContainerGcFullScanIntervalInSeconds\":3600,\"wacAccountGcFullScanIntervalInSeconds\":3600,\"wacGcWaitPeriodInMilliseconds\":32000,\"wacHoldingPeriodInHours\":336,\"wacMaxGcThreadNumber\":10,\"wacMaxCacheSize\":2097152,\"wacMaxConnections\":2000,\"healthAccountName\":\"monitoringaccount\",\"healthAccountKey\":\"zN8d5l/m+h2DmGDYEoTpz0wPHPdRzP8R+sVTFSzdwjCYWIt4hzA7JN6Gcjto2ZuFt7JbCqP7oU80tGRm6F1GTQ==\",\"healthHistoryDays\":7,\"metricsBucketCount\":8,\"metricsAccountName\":\"metricaccount\",\"metricsAccountKey\":\"IwULNjunNhFEfI6p53MpW1lb16h9+TRfHzrlcF/3t3csuOBG/7c4RSagXSSL975bfKSX049t2oARdqM4Xz+8mg==\"},\"version\":\"1.0\",\"healthStatus\":\"Healthy\"}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-GetTableService": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestSetManagementService.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestSetManagementService.json new file mode 100644 index 000000000000..8d8ae94ed2b0 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.ManagementServicesTests/TestSetManagementService.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/managementservices/default?api-version=2015-12-01-preview", + "RequestMethod": "PATCH", + "RequestBody": "{\"properties\":{\"settings\":{\"wacContainerGcFullScanIntervalInSeconds\":3600,\"wacAccountGcFullScanIntervalInSeconds\":3600,\"wacGcWaitPeriodInMilliseconds\":32000,\"wacHoldingPeriodInHours\":336,\"wacMaxGcThreadNumber\":10,\"wacMaxCacheSize\":2097152,\"wacMaxConnections\":2000,\"healthAccountName\":\"monitoringaccount\",\"healthAccountKey\":\"zN8d5l/m+h2DmGDYEoTpz0wPHPdRzP8R+sVTFSzdwjCYWIt4hzA7JN6Gcjto2ZuFt7JbCqP7oU80tGRm6F1GTQ==\",\"healthHistoryDays\":7,\"metricsBucketCount\":8,\"metricsAccountName\":\"metricsaccount\",\"metricsAccountKey\":\"IwULNjunNhFEfI6p53MpW1lb16h9+TRfHzrlcF/3t3csuOBG/7c4RSagXSSL975bfKSX049t2oARdqM4Xz+8mg==\"}},\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ "Microsoft.Azure.Insights.InsightsClient/0.9.0.0 AzurePowershell/v0.8.14" ], + "Content-Length": [ "1217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Connection": [ "Keep-Alive" ], + "Expect": [ "100-continue" ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"redmond\",\"properties\":{\"farmId\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"version\":\"2015-12-01-preview\",\"settingsStore\":\"file://172.17.145.159/SMB/Settings/ObjectStorageService/Settings\",\"healthStatus\":\"Unknown\",\"settings\":{\"settingsPollingIntervalInSecond\":90,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"}}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Content-Length": [ + "1612" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "47af504c-88a1-49c5-9766-e397d54e490b" + ], + "x-ms-correlation-request-id": [ + "e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150303T190828Z:e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-SetTableService": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestDisableNode.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestDisableNode.json new file mode 100644 index 000000000000..c0a5fd467596 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestDisableNode.json @@ -0,0 +1,215 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/offline?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-correlation-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31988" + ], + "x-ms-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-correlation-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004225Z:514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:42:25 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-DisableNode": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestEnableNode.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestEnableNode.json new file mode 100644 index 000000000000..6349939eddc7 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestEnableNode.json @@ -0,0 +1,215 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/online?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-correlation-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31988" + ], + "x-ms-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-correlation-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004225Z:514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:42:25 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-DisableNode": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestGetNode.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestGetNode.json new file mode 100644 index 000000000000..e8ca0eb38ce6 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestGetNode.json @@ -0,0 +1,216 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/woss-node-1\",\"type\":\"Microsoft.Storage.Admin/farms/nodes\",\"location\":\"West_US\",\"properties\":{\"codeVersion\":\"3.0.1414.9492\",\"configVersion\":\"1.0\",\"faultDomain\":\"fd:/woss-node-1\",\"healthStatus\":\"Critical\",\"ipAddressOrFqdn\":\"woss-node-1\",\"isSeedNode\":true,\"nodeId\":\"c8e6bfe487b4b8eceb5dc36ff6a2452\",\"nodeName\":\"woss-node-1\",\"nodeStatus\":\"Up\",\"nodeType\":\"Common\",\"nodeUpTime\":\"PT1H\",\"upgradeDomain\":\"WOSS_U1\",\"runningInstanceUris\":[\"subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/tableserverinstances/woss-node-1\",\"subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/accountcontainerserverinstances/woss-node-1\"]}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/offline?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-correlation-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/6368ed38-3570-481f-b4fa-1d0a6e8d3f3b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1/operationresults/491b11bf-fffc-4990-81c2-e6693627d5e2?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31988" + ], + "x-ms-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-correlation-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004225Z:514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:42:25 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-GetNode": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b", + "TenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "Domain": "microsoft.com" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestListNodes.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestListNodes.json new file mode 100644 index 000000000000..f8c0dda6841c --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestListNodes.json @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/woss-node-1\",\"type\":\"Microsoft.Storage.Admin/farms/nodes\",\"location\":\"West_US\",\"properties\":{\"codeVersion\":\"3.0.1414.9492\",\"configVersion\":\"1.0\",\"faultDomain\":\"fd:/woss-node-1\",\"healthState\":\"Ok\",\"ipAddressOrFqdn\":\"woss-node-1\",\"isSeedNode\":true,\"nodeId\":\"c8e6bfe487b4b8eceb5dc36ff6a2452\",\"nodeName\":\"woss-node-1\",\"nodeStatus\":\"Up\",\"nodeType\":\"Common\",\"nodeUpTime\":\"PT1H\",\"upgradeDomain\":\"WOSS_U1\",\"runningInstanceUris\":[\"subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/tableserverinstances/woss-node-1\",\"subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/accountcontainerserverinstances/woss-node-1\"]}}]", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-ListNodes": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestSetFarm.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestSetFarm.json new file mode 100644 index 000000000000..9be6dec5715b --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.NodesTests/TestSetFarm.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49?api-version=2014-12-01-preview", + "RequestMethod": "PATCH", + "RequestBody": "{\"properties\":{\"settings\":{\"settingsPollingIntervalInSecond\":90,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\"}},\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ "Microsoft.Azure.Insights.InsightsClient/0.9.0.0 AzurePowershell/v0.8.14" ], + "Content-Length": [ "1217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Connection": [ "Keep-Alive" ], + "Expect": [ "100-continue" ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"redmond\",\"properties\":{\"farmId\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"version\":\"2014-12-01-preview\",\"settingsStore\":\"file://172.17.145.159/SMB/Settings/ObjectStorageService/Settings\",\"healthStatus\":\"Unknown\",\"settings\":{\"settingsPollingIntervalInSecond\":90,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"}}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Content-Length": [ + "1612" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "47af504c-88a1-49c5-9766-e397d54e490b" + ], + "x-ms-correlation-request-id": [ + "e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150303T190828Z:e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-SetFarm": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestGetRoleInstance.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestGetRoleInstance.json new file mode 100644 index 000000000000..c791614ae51a --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestGetRoleInstance.json @@ -0,0 +1,84 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{ + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0\", + \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL0\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", + \"location\": \"redmond\", + \"properties\": { + \"settings\": { + \"tableServerMaxCacheSize\": 917504, + \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, + \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, + \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, + \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL0\", + \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", + \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL0\", + \"historyInfos\": [] + } +}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestListRoleInstances.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestListRoleInstances.json new file mode 100644 index 000000000000..9cb83afd484a --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestListRoleInstances.json @@ -0,0 +1,211 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "[ + { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0\", + \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL0\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", + \"location\": \"redmond\", + \"properties\": { + \"settings\": { + \"tableServerMaxCacheSize\": 917504, + \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, + \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, + \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, + \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL0\", + \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", + \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL0\", + \"historyInfos\": [] + } + }, + { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL1\", + \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL1\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", + \"location\": \"redmond\", + \"properties\": { + \"settings\": { + \"tableServerMaxCacheSize\": 917504, + \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, + \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, + \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, + \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL1\", + \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", + \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL1\", + \"historyInfos\": [] + } + }, + { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL2\", + \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL2\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", + \"location\": \"redmond\", + \"properties\": { + \"settings\": { + \"tableServerMaxCacheSize\": 917504, + \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, + \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, + \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, + \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL2\", + \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", + \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL2\", + \"historyInfos\": [] + } + }, + { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL3\", + \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL3\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", + \"location\": \"redmond\", + \"properties\": { + \"settings\": { + \"tableServerMaxCacheSize\": 917504, + \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, + \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, + \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, + \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL3\", + \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", + \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL3\", + \"historyInfos\": [] + } + }, + { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL4\", + \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL4\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", + \"location\": \"redmond\", + \"properties\": { + \"settings\": { + \"tableServerMaxCacheSize\": 917504, + \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, + \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, + \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, + \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL4\", + \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", + \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL4\", + \"historyInfos\": [] + } + }, + { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL5\", + \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL5\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", + \"location\": \"redmond\", + \"properties\": { + \"settings\": { + \"tableServerMaxCacheSize\": 917504, + \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, + \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, + \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, + \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL5\", + \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", + \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL5\", + \"historyInfos\": [] + } + } +]", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRestartRoleInstance.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRestartRoleInstance.json new file mode 100644 index 000000000000..c162bed5dee6 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRestartRoleInstance.json @@ -0,0 +1,159 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/restart?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-correlation-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31988" + ], + "x-ms-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-correlation-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004225Z:514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:42:25 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRoleInstancePipeline.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRoleInstancePipeline.json new file mode 100644 index 000000000000..621f2c876031 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestRoleInstancePipeline.json @@ -0,0 +1,264 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "[ + { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0\", \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL0\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", \"location\": \"redmond\", + \"properties\": { \"settings\": { + \"tableServerMaxCacheSize\": 917504, \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" + }, + \"roleIdentifier\": \"D11180COL0\", \"version\": \"2015-12-01-preview\", + \"status\": \"Active\", \"healthStatus\": \"Healthy\", + \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL0\", \"historyInfos\": [] + } +}, { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL1\", \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL1\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", \"location\": \"redmond\", + \"properties\": { \"settings\": { + \"tableServerMaxCacheSize\": 917504, \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" +}, \"roleIdentifier\": \"D11180COL1\", \"version\": \"2015-12-01-preview\", \"status\": \"Active\", \"healthStatus\": \"Healthy\", \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL1\", \"historyInfos\": [] } }, { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL2\", \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL2\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", \"location\": \"redmond\", + \"properties\": { \"settings\": { + \"tableServerMaxCacheSize\": 917504, \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" +}, \"roleIdentifier\": \"D11180COL2\", \"version\": \"2015-12-01-preview\", \"status\": \"Active\", \"healthStatus\": \"Healthy\", \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL2\", \"historyInfos\": [] } }, { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL3\", \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL3\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", \"location\": \"redmond\", + \"properties\": { \"settings\": { + \"tableServerMaxCacheSize\": 917504, \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" +}, \"roleIdentifier\": \"D11180COL3\", \"version\": \"2015-12-01-preview\", \"status\": \"Active\", \"healthStatus\": \"Healthy\", \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL3\", \"historyInfos\": [] } }, { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL4\", \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL4\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", \"location\": \"redmond\", + \"properties\": { \"settings\": { + \"tableServerMaxCacheSize\": 917504, \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" +}, \"roleIdentifier\": \"D11180COL4\", \"version\": \"2015-12-01-preview\", \"status\": \"Active\", \"healthStatus\": \"Healthy\", \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL4\", \"historyInfos\": [] } }, { + \"id\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL5\", \"name\": \"3c62b865-d397-47fe-99ed-6dda536a1a69/D11180COL5\", + \"type\": \"Microsoft.Storage.Admin/farms/tableserverinstances\", \"location\": \"redmond\", + \"properties\": { \"settings\": { + \"tableServerMaxCacheSize\": 917504, \"tableServerMaxConnections\": 100, + \"tableServerCpuUsagePercentageThrottling\": 0.8, \"tableServerCpuUsageThrottlingThreshold\": 90, + \"tableServerMaxThrottlingProbabilityForAccount\": 0.9, \"tableServerPendingRequestCountThrottlingThreshold\": 5000, + \"tableServerScanThrottlingThreshold\": 10, \"settingsPollingIntervalInSeconds\": 60, + \"settingsTimestamp\": \"20151117T195500\" +}, \"roleIdentifier\": \"D11180COL5\", \"version\": \"2015-12-01-preview\", \"status\": \"Active\", \"healthStatus\": \"Healthy\", \"nodeUri\": \"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/nodes/D11180COL5\", \"historyInfos\": [] } } ]", "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] +}, "StatusCode": 200 }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/restart?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-correlation-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, +{ + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/tableserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31988" + ], + "x-ms-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-correlation-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004225Z:514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:42:25 GMT" + ] + }, + "StatusCode": 200 +} + ], "Names": { +}, "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" +} } diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStartRoleInstance.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStartRoleInstance.json new file mode 100644 index 000000000000..9c48ea040555 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStartRoleInstance.json @@ -0,0 +1,159 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/online?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-correlation-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31988" + ], + "x-ms-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-correlation-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004225Z:514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:42:25 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStopRoleInstance.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStopRoleInstance.json new file mode 100644 index 000000000000..3a3a240c282c --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.RoleInstancesTests/TestStopRoleInstance.json @@ -0,0 +1,159 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/offline?api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-correlation-request-id": [ + "1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:1fccaffa-7dd6-4fd0-8ebf-bdf8523ae631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31991" + ], + "x-ms-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-correlation-request-id": [ + "f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004139Z:f62f23d6-0868-4e9e-ada8-f31ca9538c1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:41:39 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/3c62b865-d397-47fe-99ed-6dda536a1a69/blobserverinstances/D11180COL0/operationresults/8006fda9-6397-4a93-8d10-d5dd36b20c93?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-12-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31988" + ], + "x-ms-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-correlation-request-id": [ + "514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150218T004225Z:514a2b94-333d-4837-a70f-e7bc4572d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Feb 2015 00:42:25 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestGetShare.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestGetShare.json new file mode 100644 index 000000000000..fab64152f234 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestGetShare.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/shares/%7C%7Csmb%7Cshare1?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/shares/smb|share1\",\"type\":\"Microsoft.Storage.Admin/farms/shares\",\"location\":\"west us\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/smb|share1\",\"properties\":{\"shareName\":\"||smb|share1\",\"uncPath\":\"||smb|share1\",\"healthStatus\":\"Warning\",\"totalCapacity\":500,\"freeCapacity\":460,\"usedCapacity\":40}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestListShares.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestListShares.json new file mode 100644 index 000000000000..4026a850c8ac --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.SharesTests/TestListShares.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/shares?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/shares/smb|share1\",\"type\":\"Microsoft.Storage.Admin/farms/shares\",\"location\":\"west us\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/smb|share1\",\"properties\":{\"shareName\":\"||smb|share1\",\"uncPath\":\"||smb|share1\",\"healthStatus\":\"Warning\",\"totalCapacity\":500,\"freeCapacity\":460,\"usedCapacity\":40}}]", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestGetStorageAccount.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestGetStorageAccount.json new file mode 100644 index 000000000000..b2f40ac7ff81 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestGetStorageAccount.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts?api-version=2015-12-01-preview&$filter=VersionedAccountName%20eq%20%271%27&summary=false", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"value\":[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1\",\"type\":\"Microsoft.Storage.Admin/storageaccounts\",\"name\":\"1\",\"location\":\"redmond\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"primaryEndpoints\":{\"blob\":\"https://host:11100/demo007\",\"queue\":\"https://host:11101/demo007\",\"table\":\"https://host:11102/demo007\"},\"primaryLocation\":\"redmond\",\"statusOfPrimary\":\"Available\",\"tenantViewId\":\"/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourcegroups/system/providers/Microsoft.Storage/storageaccounts/demo007\",\"tenantSubscriptionId\":\"177fbbce-fd6a-4f11-bfa4-52c2f3a21918\",\"tenantStorageAccountName\":\"demo007\",\"tenantResourceGroupName\":\"system\",\"currentOperation\":\"None\",\"acquisitionOperationCount\":0,\"accountStatus\":\"Active\",\"recoveredTime\":\"2015-10-13T05:44:29.743\",\"accountType\":\"Standard_GRS\",\"creationTime\":\"Tue, 13 Oct 2015 05:42:48 GMT\"}}]}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestListStorageAccounts.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestListStorageAccounts.json new file mode 100644 index 000000000000..d00f8650e5ce --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestListStorageAccounts.json @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts?api-version=2015-12-01-preview&$filter=TenantSubscriptionId%20eq%20%27DB3972C4-90B4-4A11-9209-D6C12060F6FC%27%20and%20PartialAccountName%20eq%20%27acc%27&summary=true", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"value\":[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1\",\"type\":\"Microsoft.Storage.Admin/storageaccounts\",\"name\":\"1\",\"location\":\"redmond\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"primaryEndpoints\":{\"blob\":\"https://host:11100/demo007\",\"queue\":\"https://host:11101/demo007\",\"table\":\"https://host:11102/demo007\"},\"primaryLocation\":\"redmond\",\"statusOfPrimary\":\"Available\",\"tenantViewId\":\"/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourcegroups/system/providers/Microsoft.Storage/storageaccounts/demo007\",\"tenantSubscriptionId\":\"177fbbce-fd6a-4f11-bfa4-52c2f3a21918\",\"tenantStorageAccountName\":\"demo007\",\"tenantResourceGroupName\":\"system\",\"currentOperation\":\"None\",\"acquisitionOperationCount\":0,\"accountStatus\":\"Active\",\"recoveredTime\":\"2015-10-13T05:44:29.743\",\"accountType\":\"Standard_GRS\",\"creationTime\":\"Tue, 13 Oct 2015 05:42:48 GMT\"}}]}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestStorageAccountPipeLine.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestStorageAccountPipeLine.json new file mode 100644 index 000000000000..0a13cdb366c3 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestStorageAccountPipeLine.json @@ -0,0 +1,213 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts?api-version=2015-12-01-preview&$filter=VersionedAccountName%20eq%20%271%27&summary=false", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"value\":[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1\",\"type\":\"Microsoft.Storage.Admin/storageaccounts\",\"name\":\"1\",\"location\":\"redmond\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"primaryEndpoints\":{\"blob\":\"https://host:11100/demo007\",\"queue\":\"https://host:11101/demo007\",\"table\":\"https://host:11102/demo007\"},\"primaryLocation\":\"redmond\",\"statusOfPrimary\":\"Available\",\"tenantViewId\":\"/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourcegroups/system/providers/Microsoft.Storage/storageaccounts/demo007\",\"tenantSubscriptionId\":\"177fbbce-fd6a-4f11-bfa4-52c2f3a21918\",\"tenantStorageAccountName\":\"demo007\",\"tenantResourceGroupName\":\"system\",\"currentOperation\":\"None\",\"acquisitionOperationCount\":0,\"accountStatus\":\"Active\",\"recoveredTime\":\"2015-10-13T05:44:29.743\",\"accountType\":\"Standard_GRS\",\"creationTime\":\"Tue, 13 Oct 2015 05:42:48 GMT\"}}]}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1?action=undelete&api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "{\"newAccountName\":\"acc_new_name\",\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts?api-version=2015-12-01-preview&$filter=%7Bversionedaccountname%20eq%20%271%27%7D&summary=true", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"value\":[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1\",\"type\":\"Microsoft.Storage.Admin/storageaccounts\",\"name\":\"1\",\"location\":\"redmond\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"primaryEndpoints\":{\"blob\":\"https://host:11100/demo007\",\"queue\":\"https://host:11101/demo007\",\"table\":\"https://host:11102/demo007\"},\"primaryLocation\":\"redmond\",\"statusOfPrimary\":\"Available\",\"tenantViewId\":\"/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourcegroups/system/providers/Microsoft.Storage/storageaccounts/demo007\",\"tenantSubscriptionId\":\"177fbbce-fd6a-4f11-bfa4-52c2f3a21918\",\"tenantStorageAccountName\":\"demo007\",\"tenantResourceGroupName\":\"system\",\"currentOperation\":\"None\",\"acquisitionOperationCount\":0,\"accountStatus\":\"Active\",\"recoveredTime\":\"2015-10-13T05:44:29.743\",\"accountType\":\"Standard_GRS\",\"creationTime\":\"Tue, 13 Oct 2015 05:42:48 GMT\"}}]}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/providers/Microsoft.Resources.Admin/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourceGroups/system/SynchronizeResources?api-version=1.0", + "RequestMethod": "POST", + "RequestBody": "{\"apiVersion\":\"2015-06-15\",\"resourceLocation\":\"redmond\",\"targetOperation\":\"Create\",\"id\":\"subscriptions/177FBBCE-FD6A-4F11-BFA4-52C2F3A21918/resourceGroups/system/providers/Microsoft.Storage/StorageAccounts/acc_new_name\",\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"correlationId\":\"4ec418ca-5acd-47da-83bb-0aefbe8f365e\",\"frontdoorLocation\":\"redmond\",\"timestamp\":\"2015-10-19T05:51:43.9138942Z\",\"message\":\"Resource group synchronization jobs started successfully.\",\"data\":{\"targetNamespaces\":[\"Microsoft.Authorization\",\"Microsoft.Insights\",\"Microsoft.Gallery\",\"Microsoft.Sql\",\"Microsoft.Sql.Admin\",\"Microsoft.Subscriptions\",\"Microsoft.Subscriptions.Admin\",\"Microsoft.Commerce\",\"Microsoft.Storage\",\"Microsoft.Storage.Admin\"]}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestUndoStorageAccountDeletion.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestUndoStorageAccountDeletion.json new file mode 100644 index 000000000000..75b53bf6fc19 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.StorageAccountsTests/TestUndoStorageAccountDeletion.json @@ -0,0 +1,161 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1?action=undelete&api-version=2015-12-01-preview", + "RequestMethod": "POST", + "RequestBody": "{\"newAccountName\":\"acc_new_name\",\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts?api-version=2015-12-01-preview&$filter=%7Bversionedaccountname%20eq%20%271%27%7D&summary=true", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"value\":[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/storageaccounts/1\",\"type\":\"Microsoft.Storage.Admin/storageaccounts\",\"name\":\"1\",\"location\":\"redmond\",\"tags\":{},\"properties\":{\"provisioningState\":\"Succeeded\",\"primaryEndpoints\":{\"blob\":\"https://host:11100/demo007\",\"queue\":\"https://host:11101/demo007\",\"table\":\"https://host:11102/demo007\"},\"primaryLocation\":\"redmond\",\"statusOfPrimary\":\"Available\",\"tenantViewId\":\"/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourcegroups/system/providers/Microsoft.Storage/storageaccounts/demo007\",\"tenantSubscriptionId\":\"177fbbce-fd6a-4f11-bfa4-52c2f3a21918\",\"tenantStorageAccountName\":\"demo007\",\"tenantResourceGroupName\":\"system\",\"currentOperation\":\"None\",\"acquisitionOperationCount\":0,\"accountStatus\":\"Active\",\"recoveredTime\":\"2015-10-13T05:44:29.743\",\"accountType\":\"Standard_GRS\",\"creationTime\":\"Tue, 13 Oct 2015 05:42:48 GMT\"}}]}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/providers/Microsoft.Resources.Admin/subscriptions/177fbbce-fd6a-4f11-bfa4-52c2f3a21918/resourceGroups/system/SynchronizeResources?api-version=1.0", + "RequestMethod": "POST", + "RequestBody": "{\"apiVersion\":\"2015-06-15\",\"resourceLocation\":\"redmond\",\"targetOperation\":\"Create\",\"id\":\"subscriptions/177FBBCE-FD6A-4F11-BFA4-52C2F3A21918/resourceGroups/system/providers/Microsoft.Storage/StorageAccounts/acc_new_name\",\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"correlationId\":\"4ec418ca-5acd-47da-83bb-0aefbe8f365e\",\"frontdoorLocation\":\"redmond\",\"timestamp\":\"2015-10-19T05:51:43.9138942Z\",\"message\":\"Resource group synchronization jobs started successfully.\",\"data\":{\"targetNamespaces\":[\"Microsoft.Authorization\",\"Microsoft.Insights\",\"Microsoft.Gallery\",\"Microsoft.Sql\",\"Microsoft.Sql.Admin\",\"Microsoft.Subscriptions\",\"Microsoft.Subscriptions.Admin\",\"Microsoft.Commerce\",\"Microsoft.Storage\",\"Microsoft.Storage.Admin\"]}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestGetTableService.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestGetTableService.json new file mode 100644 index 000000000000..d86f4ab1a435 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestGetTableService.json @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableservices/default?api-version=2015-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/82ba752f-0fac-47e2-8477-5731f9f5db34/tableservices/default\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34/default\",\"type\":\"Microsoft.Storage.Admin/farms/tableservices\",\"location\":\"redmond\",\"properties\":{\"settings\":{\"frontEndHttpListenPort\":11002,\"frontEndHttpsListenPort\":11102,\"frontEndCallbackThreadsCount\":1800,\"frontEndCpuBasedKeepAliveThrottlingEnabled\":true,\"frontEndCpuBasedKeepAliveThrottlingPercentCpuThreshold\":100,\"frontEndCpuBasedKeepAliveThrottlingPercentRequestsToThrottle\":10,\"frontEndCpuBasedKeepAliveThrottlingCpuMonitorIntervalInSeconds\":20,\"frontEndMemoryThrottlingEnabled\":true,\"frontEndMaxMillisecondsBetweenMemorySamples\":10000,\"frontEndMemoryThrottleThresholdSettings\":\"5,100,0;7,50,0;10,25,0;15,0,25;\",\"frontEndMinThreadPoolThreads\":1600,\"frontEndThreadPoolBasedKeepAliveIOCompletionThreshold\":1500,\"frontEndThreadPoolBasedKeepAliveWorkerThreadThreshold\":1500,\"frontEndThreadPoolBasedKeepAliveMonitorIntervalInSeconds\":30,\"frontEndThreadPoolBasedKeepAlivePercentage\":10,\"frontEndUseSlaTimeInAvailability\":true},\"version\":\"1.0\",\"healthStatus\":\"Unknown\"}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-GetTableService": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestListNodes.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestListNodes.json new file mode 100644 index 000000000000..71b0d19f3bc9 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestListNodes.json @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes?api-version=2014-12-01-preview", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ + "Microsoft.AzureStack.Management.StorageAdmin/0.9.0.0 AzurePowershell/v0.8.14" + ] + }, + "ResponseBody": "{\"value\":[{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/nodes/woss-node-1\",\"name\":\"03768357-B4F2-4C3C-AA75-574209B03D49/woss-node-1\",\"type\":\"Microsoft.Storage.Admin/farms/nodes\",\"location\":\"West_US\",\"properties\":{\"codeVersion\":\"3.0.1414.9492\",\"configVersion\":\"1.0\",\"faultDomain\":\"fd:/woss-node-1\",\"healthState\":\"Ok\",\"ipAddressOrFqdn\":\"woss-node-1\",\"isSeedNode\":true,\"nodeId\":\"c8e6bfe487b4b8eceb5dc36ff6a2452\",\"nodeName\":\"woss-node-1\",\"nodeStatus\":\"Up\",\"nodeType\":\"Common\",\"nodeUpTime\":\"PT1H\",\"upgradeDomain\":\"WOSS_U1\",\"runningInstanceUris\":[\"subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/tableserverinstances/woss-node-1\",\"subscriptions/serviceAdmin/resourcegroups/system/providers/Microsoft.Storage.Admin/farms/WEST_US_1/accountcontainerserverinstances/woss-node-1\"]}}]}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "Content-Length": [ + "8232" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "31998" + ], + "x-ms-request-id": [ + "WestUS_d9e73d2735f24797a08dda5d8228e509_635609224343322694" + ], + "x-ms-correlation-request-id": [ + "45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150302T194714Z:45888041-1ede-478b-949f-13aa6e47e0ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-ListFarms": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestSetTableService.json b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestSetTableService.json new file mode 100644 index 000000000000..2d5a9cd4cb5f --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/SessionRecords/Microsoft.AzureStack.Commands.StorageAdmin.Test.ScenarioTests.TableServicesTests/TestSetTableService.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourcegroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49/tableservices/default?api-version=2015-12-01-preview", + "RequestMethod": "PATCH", + "RequestBody": "{\"properties\":{\"settings\":{\"frontEndCallbackThreadsCount\":1800,\"frontEndCpuBasedKeepAliveThrottlingEnabled\":true,\"frontEndCpuBasedKeepAliveThrottlingPercentCpuThreshold\":100,\"frontEndCpuBasedKeepAliveThrottlingPercentRequestsToThrottle\":10,\"frontEndCpuBasedKeepAliveThrottlingCpuMonitorIntervalInSeconds\":20,\"frontEndMemoryThrottlingEnabled\":true}},\"tags\":{}}", + "RequestHeaders": { + "Accept": [ "application/json" ], + "User-Agent": [ "Microsoft.Azure.Insights.InsightsClient/0.9.0.0 AzurePowershell/v0.8.14" ], + "Content-Length": [ "1217" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Connection": [ "Keep-Alive" ], + "Expect": [ "100-continue" ] + }, + "ResponseBody": "{\"id\":\"/subscriptions/a93fb07c-6c93-40be-bf3b-4f0deba10f4b/resourceGroups/Default-Web-EastUS/providers/Microsoft.Storage.Admin/farms/03768357-B4F2-4C3C-AA75-574209B03D49\",\"name\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"type\":\"Microsoft.Storage.Admin/farms\",\"location\":\"redmond\",\"properties\":{\"farmId\":\"82ba752f-0fac-47e2-8477-5731f9f5db34\",\"version\":\"2015-12-01-preview\",\"settingsStore\":\"file://172.17.145.159/SMB/Settings/ObjectStorageService/Settings\",\"healthStatus\":\"Unknown\",\"settings\":{\"settingsPollingIntervalInSecond\":90,\"hostStyleHttpPort\":80,\"hostStyleHttpsPort\":443,\"corsAllowedOriginsList\":\"http://manage.wossportal.com;http://www.example.com\",\"dataCenterUriHostSuffixes\":\"contoso.com\"}}}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 03 Mar 2015 00:07:07 GMT" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Content-Length": [ + "1612" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "47af504c-88a1-49c5-9766-e397d54e490b" + ], + "x-ms-correlation-request-id": [ + "e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20150303T190828Z:e223e5fa-7d3c-4d2c-a2e9-aed3011aefb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-SetTableService": [ + "" + ] + }, + "Variables": { + "SubscriptionId": "a93fb07c-6c93-40be-bf3b-4f0deba10f4b" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config new file mode 100644 index 000000000000..c5da93f88844 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminCmdlet.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminCmdlet.cs new file mode 100644 index 000000000000..feb3bda45a9d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminCmdlet.cs @@ -0,0 +1,232 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using System.Net; +using System.Net.Security; +using Microsoft.Azure; +using Microsoft.Azure.Commands.ResourceManager.Common; +using Microsoft.Azure.Common.Authentication; +using Microsoft.Azure.Common.Authentication.Models; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.WindowsAzure.Commands.Utilities.Common; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Admin cmdlet base + /// + public abstract class AdminCmdlet : AzureRMCmdlet, IDisposable + { + private bool disposed; + + /// + /// Storage Admin Management Client + /// + public StorageAdminManagementClient Client + { + get; + set; + } + + /// + /// Subscription identifier + /// + [Parameter(Position = 0, ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string SubscriptionId { get; set; } + + /// + /// Authentication token + /// + [Parameter(Position = 1, ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string Token { get; set; } + + /// + /// Azure package admin URL + /// + [Parameter(Position = 2, ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + [ValidateAbsoluteUri] + public Uri AdminUri { get; set; } + + /// + /// Resource group name + /// + [Parameter(Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string ResourceGroupName { get; set; } + + /// + /// Disable certification validation + /// + [Parameter] + public SwitchParameter SkipCertificateValidation { get; set; } + + ~AdminCmdlet() + { + Dispose(false); + } + + private RemoteCertificateValidationCallback originalValidateCallback; + + private static readonly RemoteCertificateValidationCallback unCheckCertificateValidation = (s, certificate, chain, sslPolicyErrors) => true; + + //TODO: take back the validation + private void ValidateParameters() + { + if (string.IsNullOrEmpty(Token)) + { + if (DefaultContext == null) + { + throw new ApplicationException(Resources.InvalidProfile); + } + } + else + { + // if token is specified, AdminUri is required as well. + if (AdminUri == null || SubscriptionId == null) + { + throw new ApplicationException(Resources.TokenAndAdminUriRequired); + } + } + } + + + /// + /// Initial StorageAdminManagementClient + /// + /// + protected override void BeginProcessing() + { + base.BeginProcessing(); + + originalValidateCallback = ServicePointManager.ServerCertificateValidationCallback; + + if (SkipCertificateValidation) + { + ServicePointManager.ServerCertificateValidationCallback = unCheckCertificateValidation; + } + + ValidateParameters(); + + Client = GetClient(); + } + + protected override AzureContext DefaultContext + { + get + { + if (DefaultProfile == null) + { + return null; + } + + return DefaultProfile.Context; + } + } + + /// + /// Dispose StorageAdminManagementClient + /// + /// + protected override void EndProcessing() + { + StorageAdminManagementClient client = Client; + if (client != null) + { + client.Dispose(); + } + Client = null; + if (SkipCertificateValidation) + { + if (originalValidateCallback != null) + { + ServicePointManager.ServerCertificateValidationCallback = originalValidateCallback; + } + } + + base.EndProcessing(); + } + + protected override void ProcessRecord() + { + Execute(); + base.ProcessRecord(); + } + + protected virtual void Execute() + { + } + + /// + /// Get token credentials + /// + /// + protected TokenCloudCredentials GetTokenCredentials() + { + return new TokenCloudCredentials(SubscriptionId, Token); + } + + /// + /// Dispose the resources + /// + /// Indicates whether the managed resources should be disposed or not + protected override void Dispose(bool disposing) + { + if (!disposed) + { + if (Client != null) + { + Client.Dispose(); + Client = null; + } + + disposed = true; + } + base.Dispose(disposing); + } + + protected StorageAdminManagementClient GetClient() + { + // get client from azure session if token is null or empty + if (string.IsNullOrEmpty(Token)) + { + return GetClientThruAzureSession(); + } + + return new StorageAdminManagementClient( + baseUri: AdminUri, + credentials: new TokenCloudCredentials(subscriptionId: SubscriptionId, token: Token)); + } + + private StorageAdminManagementClient GetClientThruAzureSession() + { + var context = DefaultContext; + + var armUri = context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager); + + var credentials = AzureSession.AuthenticationFactory.GetSubscriptionCloudCredentials(context); + + if (string.IsNullOrEmpty(SubscriptionId)) + { + SubscriptionId = credentials.SubscriptionId; + } + + return AzureSession.ClientFactory.CreateCustomClient(credentials, armUri); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminException.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminException.cs new file mode 100644 index 000000000000..8c2a0f7610f4 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminException.cs @@ -0,0 +1,40 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Exception for admin operation errors + /// + public sealed class AdminException : Exception + { + /// + /// Constructor + /// + /// + public AdminException(string message) + : base(message) { } + + /// + /// Constructor + /// + /// + /// + public AdminException(string message, Exception innerException) + : base(message, innerException) { } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricCmdLet.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricCmdLet.cs new file mode 100644 index 000000000000..41d354d0e4c1 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricCmdLet.cs @@ -0,0 +1,81 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + public abstract class AdminMetricCmdlet: AdminCmdlet + { + /// + /// Gets or sets the timegrain parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public TimeGrain TimeGrain { get; set; } + + /// + /// Gets or sets the starttime parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true)] + public DateTime StartTime { get; set; } + + /// + /// Gets or sets the endtime parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true)] + public DateTime EndTime { get; set; } + + /// + /// Gets or sets the metricnames parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string[] MetricNames { get; set; } + + /// + /// Gets or sets the detailedoutput parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true)] + public SwitchParameter DetailedOutput { get; set; } + + + /// + /// Get Metrics result + /// + /// + /// + protected abstract MetricsResult GetMetricsResult(string filter); + + /// + /// + /// + protected override void Execute() + { + string filter = Tools.GenerateFilter(MetricNames, StartTime, EndTime, TimeGrain); + bool fullDetails = this.DetailedOutput.IsPresent; + + MetricsResult metrics = GetMetricsResult(filter); + var result = metrics.Metrics.Select(_ => fullDetails ? new PSMetric(_) : new PSMetricNoDetails(_)); + WriteObject(result, true); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricDefinitionCmdlet.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricDefinitionCmdlet.cs new file mode 100644 index 000000000000..f06e02baec1e --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AdminMetricDefinitionCmdlet.cs @@ -0,0 +1,60 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + public abstract class AdminMetricDefinitionCmdlet : AdminCmdlet + { + /// + /// Gets or sets the metricnames parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string[] MetricNames { get; set; } + + /// + /// Gets or sets the detailedoutput parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true)] + public SwitchParameter DetailedOutput { get; set; } + + /// + /// Get Metrics definition result + /// + /// + /// + protected abstract MetricDefinitionsResult GetMetricDefinitionsResult(string filter); + + /// + /// + /// + protected override void Execute() + { + string filter = Tools.GenerateFilter(MetricNames); + bool fullDetails = this.DetailedOutput.IsPresent; + + MetricDefinitionsResult definitions = GetMetricDefinitionsResult(filter); + var result = definitions.Value.Select(_ => fullDetails ? new PSMetricDefinition(_) : new PSMetricDefinitionNoDetails(_)); + WriteObject(result); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AzureRM.AzureStackStorage.psd1 b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AzureRM.AzureStackStorage.psd1 new file mode 100644 index 000000000000..fc11b6a3c947 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AzureRM.AzureStackStorage.psd1 @@ -0,0 +1,88 @@ +# +# Module manifest for module 'Microsoft.Azure.Commands.Insights' +# +# Generated by: Microsoft Corporation +# +# Generated on: 9/19/2015 +# + +@{ + +# Version number of this module. +ModuleVersion = '0.10.1' + +# ID used to uniquely identify this module +GUID = 'DA5816B5-97A6-4301-9AA0-72CC68C79F20' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell - Storage management cmdlets for Azure Stack' + +# Minimum version of the Windows PowerShell engine required by this module +PowerShellVersion = '3.0' + +# Name of the Windows PowerShell host required by this module +PowerShellHostName = '' + +# Minimum version of the Windows PowerShell host required by this module +PowerShellHostVersion = '' + +# Minimum version of the .NET Framework required by this module +DotNetFrameworkVersion = '4.0' + +# Minimum version of the common language runtime (CLR) required by this module +CLRVersion='4.0' + +# Processor architecture (None, X86, Amd64, IA64) required by this module +ProcessorArchitecture = 'None' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = @() + +# Script files (.ps1) that are run in the caller's environment prior to importing this module +ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in ModuleToProcess +NestedModules = @( + '.\Microsoft.AzureStack.Commands.StorageAdmin.dll' +) + +# Functions to export from this module +FunctionsToExport = '*' + +# Cmdlets to export from this module +CmdletsToExport = '*' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module +AliasesToExport = @() + +# List of all modules packaged with this module +ModuleList = @() + +# List of all files packaged with this module +FileList = @() + +# Private data to pass to the module specified in ModuleToProcess +PrivateData = '' + +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/BaseCmdlet.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/BaseCmdlet.cs new file mode 100644 index 000000000000..8f97ba9aad29 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/BaseCmdlet.cs @@ -0,0 +1,117 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + public abstract class BaseCmdlet : PSCmdlet + { + /// + /// Gets or sets the progress record. + /// + protected ProgressRecord ProgressRecord { get; set; } + + // TODO: progress handler when necessary + //protected void ProgressHandler(object sender, ProgressEventArgs e) + //{ + //} + + /// + /// Gets the name of the cmdlet + /// + protected string CmdletName + { + get + { + return MyInvocation.MyCommand.Name; + } + } + + /// + /// Process record for this cmdlet. + /// + /// + /// We will catch all exceptions here so we can log them in our event provider. + /// + protected override void ProcessRecord() + { + Execute(); + } + + /// + /// Execute this cmdlet. + /// + /// + /// Descendant classes must override this methods instead of Cmdlet.ProcessRecord, so + /// we can have a unique place where log all errors. + /// + protected abstract void Execute(); + + /// + /// Send an error event to the current event source + /// + /// The operation + /// The message + /// The exception + protected abstract void TraceError(string operation, string message, Exception exception); + + /// + /// Send a warning event to the current event source + /// + /// The operation + /// The message + protected abstract void TraceWarning(string operation, string message); + + /// + /// Send an informational event to the current event source + /// + /// The operation + /// The message + protected abstract void TraceInformational(string operation, string message); + + /// + /// Send a verbose event to the current event source + /// + /// The operation. + /// The message. + protected abstract void TraceVerbose(string operation, string message); + + /// + /// Override the WriteError method to log the error on our event provider. + /// + /// The error to write + public new void WriteError(ErrorRecord errorRecord) + { + if (errorRecord == null) + throw new ArgumentNullException("errorRecord"); + base.WriteError(errorRecord); + TraceError(CmdletName, errorRecord.Exception.Message, errorRecord.Exception); + } + + /// + /// Override the WriteWarning method to log the warning on our event provider. + /// + /// The text to write + public new void WriteWarning(string text) + { + base.WriteWarning(text); + TraceWarning(CmdletName, text); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj new file mode 100644 index 000000000000..7f591939e829 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj @@ -0,0 +1,229 @@ + + + + + Debug + AnyCPU + {D4CA0CC1-CD0A-4CE2-A40D-2D8A082D8791} + Library + Properties + Microsoft.AzureStack.Commands.StorageAdmin + Microsoft.AzureStack.Commands.StorageAdmin + v4.5 + 512 + ..\..\..\ + true + + + AnyCPU + true + full + false + ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.AzureStackStorage\ + DEBUG;TRACE + prompt + 4 + true + false + true + + + AnyCPU + pdbonly + true + ..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRM.AzureStackStorage\ + TRACE + prompt + 4 + true + true + MSSharedLibKey.snk + true + false + + + + False + ..\..\..\packages\Hyak.Common.1.0.3\lib\portable-net403+win+wpa81\Hyak.Common.dll + + + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll + + + ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.6.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll + True + + + False + ..\..\..\packages\WindowsAzure.Storage.6.1.0\lib\net40\Microsoft.WindowsAzure.Storage.dll + + + ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll + + + False + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.13-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + + + False + ..\..\..\packages\Microsoft.AzureStack.Management.Storage.0.9.2-preview\lib\net45\Microsoft.AzureStack.Management.Storage.dll + + + False + ..\..\..\packages\Microsoft.Data.Edm.5.6.4\lib\net40\Microsoft.Data.Edm.dll + + + False + ..\..\..\packages\Microsoft.Data.OData.5.6.4\lib\net40\Microsoft.Data.OData.dll + + + False + ..\..\..\packages\Microsoft.Data.Services.Client.5.6.4\lib\net40\Microsoft.Data.Services.Client.dll + + + ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + True + + + ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll + True + + + ..\..\..\packages\Microsoft.Rest.ClientRuntime.1.8.2\lib\net45\Microsoft.Rest.ClientRuntime.dll + True + + + ..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.0.11.0\lib\net45\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll + True + + + ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll + + + False + ..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll + + + + + + + + + False + ..\..\..\packages\System.Spatial.5.6.4\lib\net40\System.Spatial.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Always + + + + Designer + + + + + + + + + Always + Designer + + + + + {5ee72c53-1720-4309-b54b-5fb79703195f} + Commands.Common + + + {3819d8a7-c62c-4c47-8ddd-0332d9ce1252} + Commands.ResourceManager.Common + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Enums.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Enums.cs new file mode 100644 index 000000000000..2fc0dea2b3ab --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Enums.cs @@ -0,0 +1,77 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + public enum TimeGrain + { + Daily = 0, + Hourly, + Minutely + } + + /// + /// + /// + public enum RoleType + { + /// + /// + /// + TableServer, + + /// + /// + /// + BlobServer, + + /// + /// + /// + TableMaster, + + /// + /// + /// + AccountContainerserver, + + /// + /// + /// + TableFrontend, + + /// + /// + /// + BlobFrontend, + + /// + /// + /// + MetricsServer, + + /// + /// + /// + HealthMonitoringserver + } + + public enum StorageAccountSearchFilterParameter + { + TenantSubscriptionId, + PartialAccountName, + StorageAccountStatus, + VersionedAccountName + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Extensions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Extensions.cs new file mode 100644 index 000000000000..a24df9aa8ba6 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Extensions.cs @@ -0,0 +1,88 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System.Collections.Generic; +using System.Globalization; +using System.Text; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal static class Extensions + { + public static string FormatInvariantCulture(this string format, params object[] arg0) + { + return string.Format(CultureInfo.InvariantCulture, format, arg0); + } + + /// + /// A string representation of the list of MetricAvailability objects including indentation + /// + /// The list of MetricAvailability objects + /// The number of tabs to insert in front of each member + /// A string representation of the list of MetricAvailability objects including indentation + public static string ToString(this IList metricAvailabilities, int indentationTabs) + { + StringBuilder output = new StringBuilder(); + foreach (var metricAvailability in metricAvailabilities) + { + output.AppendLine(); + output.AddSpacesInFront(indentationTabs).AppendLine("Retention : " + metricAvailability.Retention); + output.AddSpacesInFront(indentationTabs).Append("Values : " + metricAvailability.TimeGrain); + } + + return output.ToString(); + } + + /// + /// A string representation of the list of PSMetricValue objects including indentation + /// + /// The list of PSMetricValue objects + /// The number of tabs to insert in front of each member + /// A string representation of the list of PSMetricValue objects including indentation + public static string ToString(this IList metricValues, int indentationTabs) + { + StringBuilder output = new StringBuilder(); + foreach (var metricValue in metricValues) + { + output.AppendLine(); + output.AddSpacesInFront(indentationTabs).AppendLine("Average : " + metricValue.Average); + output.AddSpacesInFront(indentationTabs).AppendLine("Count : " + metricValue.Count); + output.AddSpacesInFront(indentationTabs).AppendLine("Maximum : " + metricValue.Maximum); + output.AddSpacesInFront(indentationTabs).AppendLine("Minimum : " + metricValue.Minimum); + output.AddSpacesInFront(indentationTabs).AppendLine("Properties : " + metricValue.Properties); + output.AddSpacesInFront(indentationTabs).AppendLine("Timestamp : " + metricValue.TimeStamp); + output.AddSpacesInFront(indentationTabs).Append("Total : " + metricValue.Total); + } + return output.ToString(); + } + + /// + /// Add spaces into the string builder + /// + /// The string builder + /// The number of tab chars to insert + /// The input string builder with the tabs appended + public static StringBuilder AddSpacesInFront(this StringBuilder output, int indentationTabs) + { + for (int i = 0; i < indentationTabs; i++) + { + output.Append('\t'); + } + + return output; + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm.cs new file mode 100644 index 000000000000..0efb92b578d9 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm.cs @@ -0,0 +1,73 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Globalization; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Add-Farm [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-SettingAccessString] {string} [-Region] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Add, Nouns.AdminFarm, SupportsShouldProcess = true)] + public sealed class AddAdminFarm : AdminCmdlet + { + const string ShouldProcessTargetFormat = "farm {0} "; + + /// + /// Farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// setting access string. ex: file:\\localhost\db1\settings + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNull] + public string SettingAccessString { get; set; } + + /// + /// Location of the farm + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 6)] + [ValidateNotNull] + public string Location{ get; set; } + + protected override void Execute() + { + if (ShouldProcess(string.Format(CultureInfo.InvariantCulture, ShouldProcessTargetFormat, FarmName))){ + FarmCreateParameters request = new FarmCreateParameters + { + Location = Location, + + Properties = new FarmCreate + { + SettingAccessString = SettingAccessString + } + }; + + FarmGetResponse response = Client.Farms.Create(ResourceGroupName, FarmName, request); + + WriteObject(new FarmResponse(response.Farm)); + } + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm_new.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm_new.cs new file mode 100644 index 000000000000..465016f78c4e --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/AddFarm_new.cs @@ -0,0 +1,87 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Globalization; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Add-Farm [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-SettingAccessString] {string} [-Region] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Add, Nouns.AdminFarm, SupportsShouldProcess = true)] + public sealed class AddAdminFarm : AdminCmdlet + { + const string ShouldProcessTargetFormat = "farm {0} "; + + /// + /// Farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// setting access string. ex: file:\\localhost\db1\settings + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNull] + public string SettingAccessString { get; set; } + + /// + /// Location of the farm + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 6)] + [ValidateNotNull] + public string Location{ get; set; } + + protected override void Execute() + { + if (ShouldProcess(string.Format(CultureInfo.InvariantCulture, ShouldProcessTargetFormat, FarmName))){ + FarmCreateParameters request = new FarmCreateParameters + { + Location = Location, + + Properties = new FarmCreate + { + SettingAccessString = SettingAccessString + } + }; + + FarmGetResponse response = Client.Farms.Create(ResourceGroupName, FarmName, request); + + WriteObject(response); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEvent.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEvent.cs new file mode 100644 index 000000000000..9dd647198b0f --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEvent.cs @@ -0,0 +1,151 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Parameter Set: EventWithFilter + /// Get-Event [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} -ResourceGroupName {string} + /// [-SkipCertificateValidation] -FarmName {string} -StartTime {DateTime} -EndTime {DateTime} [-NodeName {string}] + /// [-ResourceUri {string}] [-ProviderGuid {Guid}] -EventIds {int[]} [{CommonParameters}] + /// + /// Parameter Set: EventWithLocation + /// Get-Event [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} -EventQuery {EventQuery} + /// [{CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminFarmEvent, DefaultParameterSetName = EventWithFilterSet)] + public sealed class GetEvent : AdminCmdlet + { + const string EventWithFilterSet = "EventWithFilter"; + + const string EventWithLocationSet = "EventWithLocation"; + + Action func; + + /// + /// + /// + [Parameter(Mandatory = true, ParameterSetName = EventWithFilterSet)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = true, ParameterSetName = EventWithFilterSet)] + public DateTime StartTime + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = true, ParameterSetName = EventWithFilterSet)] + public DateTime EndTime + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, ParameterSetName = EventWithFilterSet)] + public String NodeName + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, ParameterSetName = EventWithFilterSet)] + public String ResourceUri + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, ParameterSetName = EventWithFilterSet)] + public Guid ProviderGuid + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, ParameterSetName = EventWithFilterSet)] + public int[] EventId + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = EventWithLocationSet)] + public EventQuery EventQuery + { + get; + set; + } + + protected override void BeginProcessing() + { + base.BeginProcessing(); + switch (ParameterSetName) + { + case EventWithFilterSet: + { + func = () => WriteObject( + Client.Farms.ExecuteEventQuery(ResourceGroupName, FarmName, StartTime, EndTime, NodeName, ResourceUri, ProviderGuid, EventId)); + } + break; + case EventWithLocationSet: + { + func = () => WriteObject( + Client.Farms.ExecuteEventQuery(EventQuery), + true); + } + break; + default: + throw new ArgumentException(Resources.BadParameterSet); + } + } + + protected override void Execute() + { + func(); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEventQuery.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEventQuery.cs new file mode 100644 index 000000000000..5d3ac6864e6b --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetEventQuery.cs @@ -0,0 +1,142 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-EventQuery [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-StartTime] {DateTime} [-EndTime] {DateTime} [[-NodeName] {string}] + /// [[-ResourceUri] {string}] [[-ProviderGuid] {Guid}] [[-EventIds] {int[]}] [{CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminFarmEventQuery)] + public sealed class GetEventQuery : AdminCmdlet + { + /// + /// + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = true, Position = 5)] + public DateTime StartTime + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = true, Position = 6)] + public DateTime EndTime + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, Position = 7)] + public string NodeName + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, Position = 8)] + public string ResourceUri + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, Position = 9)] + public Guid? ProviderGuid + { + get; + set; + } + + /// + /// + /// + [Parameter(Mandatory = false, Position = 10)] + public int[] EventId + { + get; + set; + } + + protected override void Execute() + { + List filterList = new List(); + filterList.Add(string.Format(CultureInfo.InvariantCulture, "startTime eq '{0:O}'", StartTime.ToUniversalTime())); + filterList.Add(string.Format(CultureInfo.InvariantCulture, "endTime eq '{0:O}'", EndTime.ToUniversalTime())); + if (!string.IsNullOrEmpty(NodeName)) + { + filterList.Add(string.Format(CultureInfo.InvariantCulture, "computerName eq '{0}'", NodeName)); + } + if (!string.IsNullOrEmpty(ResourceUri)) + { + filterList.Add(string.Format(CultureInfo.InvariantCulture, "resourceUri eq '{0}'", ResourceUri)); + } + if (ProviderGuid != null) + { + filterList.Add(string.Format(CultureInfo.InvariantCulture, "providerId eq '{0}'", ProviderGuid)); + } + if (EventId != null) + { + List eventIdFilters = new List(); + foreach (var eventId in EventId) + { + eventIdFilters.Add(string.Format(CultureInfo.InvariantCulture, "eventId eq '{0}'", eventId)); + } + if (eventIdFilters.Any()) + { + string eventIdFilter = eventIdFilters.Aggregate((current, next) => string.Format(CultureInfo.InvariantCulture, "{0} or {1}", current, next)); + filterList.Add(string.Format(CultureInfo.InvariantCulture, "({0})", eventIdFilter)); + } + } + string filter = filterList.Aggregate((current, next) => string.Format(CultureInfo.InvariantCulture, "{0} and {1}", current, next)); + + EventQuery eventQuery = Client.Farms.GetEventQuery(ResourceGroupName, FarmName, filter); + WriteObject(eventQuery, true); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarm.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarm.cs new file mode 100644 index 000000000000..d36d4448dac5 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarm.cs @@ -0,0 +1,58 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-Farm [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [[-FarmName] {string}] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminFarm)] + public sealed class GetAdminFarm : AdminCmdlet + { + /// + /// Farm identifier + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNullOrEmpty] + public string FarmName + { + get; + set; + } + + protected override void Execute() + { + if (string.IsNullOrEmpty(FarmName) == false) + { + FarmGetResponse response = Client.Farms.Get(ResourceGroupName, FarmName); + WriteObject(new FarmResponse(response.Farm)); + } + else + { + FarmListResponse response = Client.Farms.List(ResourceGroupName); + + WriteObject(response.Farms.Select(_=>new FarmResponse(_)), true); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetricDefinitions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetricDefinitions.cs new file mode 100644 index 000000000000..e40211a0e751 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetricDefinitions.cs @@ -0,0 +1,45 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminFarmMetricDefinition)] + public sealed class GetFarmMetricDefinitions : AdminMetricDefinitionCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricDefinitionsResult GetMetricDefinitionsResult(string filter) + { + return Client.Farms.GetMetricDefinitions(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetrics.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetrics.cs new file mode 100644 index 000000000000..aa8739be268d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/GetFarmMetrics.cs @@ -0,0 +1,45 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminFarmMetric)] + public sealed class GetFarmMetric : AdminMetricCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricsResult GetMetricsResult(string filter) + { + return Client.Farms.GetMetrics(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/InvokeLogCollect.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/InvokeLogCollect.cs new file mode 100644 index 000000000000..41512eda09a8 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/InvokeLogCollect.cs @@ -0,0 +1,144 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Globalization; +using System.Management.Automation; +using System.Net; +using System.Runtime.InteropServices; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsData.Export, Nouns.Log, SupportsShouldProcess = true)] + public sealed class InvokeLogCollect : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string FarmName { get; set; } + + /// + /// StartTime + /// + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public DateTime StartTime { get; set; } + + /// + /// + /// + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public DateTime EndTime { get; set; } + + /// + /// Credential to run the log copy + /// + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSCredential Credential { get; set; } + + /// + /// Blob Prefix for the uploaded logs + /// + [Parameter(Mandatory = false)] + [ValidateNotNullOrEmpty] + public string LogPrefix { get; set; } + + /// + /// Azure blob name + /// + [Parameter(Mandatory = false)] + [ValidateNotNullOrEmpty] + public string AzureStorageContainer { get; set; } + + /// + /// Azure Storage account name + /// + [Parameter(Mandatory = false)] + [ValidateNotNullOrEmpty] + public string AzureStorageAccountName { get; set; } + + /// + /// Azure storage account key + /// + [Parameter(Mandatory = false)] + [ValidateNotNullOrEmpty] + public string AzureStorageAccountKey { get; set; } + + /// + /// Azure SAS Token + /// + [Parameter(Mandatory = false)] + [ValidateNotNullOrEmpty] + public string AzureSasToken { get; set; } + + /// + /// Target Share folder to save logs + /// + [Parameter(Mandatory = false)] + [ValidateNotNullOrEmpty] + public string TargetShareFolder { get; set; } + + protected override void Execute() + { + IntPtr valuePtr = IntPtr.Zero; + string password; + try + { + valuePtr = Marshal.SecureStringToGlobalAllocUnicode(Credential.Password); + password = Marshal.PtrToStringUni(valuePtr); + } + finally + { + Marshal.ZeroFreeGlobalAllocUnicode(valuePtr); + } + + LogCollectParameters parameters = new LogCollectParameters + { + AzureBlobContainer = AzureStorageContainer, + AzureSasToken = AzureSasToken, + AzureStorageAccountKey = AzureStorageAccountKey, + AzureStorageAccountName = AzureStorageAccountName, + EndTime = EndTime, + StartTime = StartTime, + LogPrefix = LogPrefix, + UserName = Credential.UserName, + PlainPassword = password, + TargetShareFolder = TargetShareFolder + }; + + var logCollectTask = Client.Farms.CollectLogAsync(ResourceGroupName, FarmName, parameters); + + WriteVerbose("Sending request to start a log Collect job, it will take some time..."); + + var response = logCollectTask.Result; + + if (response.StatusCode != HttpStatusCode.OK) + { + throw new AdminException(string.Format(CultureInfo.InvariantCulture, Resources.OperationFailedErrorMessage, response.StatusCode)); + } + + WriteObject(response); + } + } +} + diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/SetFarm.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/SetFarm.cs new file mode 100644 index 000000000000..35b12db7deb7 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Farm/SetFarm.cs @@ -0,0 +1,97 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Globalization; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Set-Farm [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [[-SettingPollingIntervalInSeconds] {int}] [-FarmName] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Set, Nouns.AdminFarm, SupportsShouldProcess = true)] + public sealed class SetAdminFarm : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// + /// + [Parameter] + [SettingField] + public int? SettingsPollingIntervalInSecond { get; set; } + + /// + /// + /// + [Parameter] + [SettingField] + public int? HostStyleHttpPort { get; set; } + + /// + /// + /// + [Parameter] + [SettingField] + public int? HostStyleHttpsPort { get; set; } + + /// + /// + /// + [Parameter] + [SettingField] + public string CorsAllowedOriginsList { get; set; } + + /// + [Parameter] + [SettingField] + public string DataCenterUriHostSuffixes { get; set; } + + protected override void Execute() + { + string confirmString; + FarmSettings settings = Tools.ToSettingsObject(this, out confirmString); + + if (ShouldProcess( + Resources.SetFarmDescription.FormatInvariantCulture(FarmName, confirmString), + Resources.SetFarmWarning.FormatInvariantCulture(FarmName, confirmString), + Resources.ShouldProcessCaption)) + { + + FarmUpdateParameters parameters = new FarmUpdateParameters + { + Farm = new FarmBase {Settings = settings} + }; + + FarmGetResponse response = Client.Farms.Update(ResourceGroupName, FarmName, parameters); + + WriteObject(new FarmResponse(response.Farm)); + } + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/GetFault.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/GetFault.cs new file mode 100644 index 000000000000..5ce56681d2cf --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/GetFault.cs @@ -0,0 +1,151 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Globalization; +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// get faults + /// + /// SYNTAX + /// Parameter Set: GetFault + /// Get-Fault [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} -FaultId {string} [ {CommonParameters}] + /// + /// Parameter Set: GetCurrentFault + /// Get-Fault [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-ResourceUri {string}] [ {CommonParameters}] + /// + /// Parameter Set: GetHistoryFault + /// Get-Fault [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} -StartTime {DateTime} -EndTime {DateTime} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminFault, DefaultParameterSetName = GetCurrentFaultSet)] + public sealed class GetFault : AdminCmdlet + { + + const string GetCurrentFaultSet = "GetCurrentFault"; + const string GetHistoryFaultSet = "GetHistoryFault"; + const string GetFaultSet = "GetFault"; + Action func; + + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// Fault Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = GetFaultSet)] + [ValidateNotNull] + public string FaultId + { + get; + set; + } + + /// + /// Resource Uri + /// + [Alias("Id")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, ParameterSetName = GetCurrentFaultSet)] + [ValidateNotNull] + public string ResourceUri + { + get; + set; + } + + /// + /// Query Fault StartTime + /// + [Parameter(Mandatory = true, ParameterSetName = GetHistoryFaultSet)] + [ValidateNotNull] + public DateTime StartTime + { + get; + set; + } + + /// + /// Query Fault EndTime + /// + [Parameter(Mandatory = true, ParameterSetName = GetHistoryFaultSet)] + [ValidateNotNull] + public DateTime EndTime + { + get; + set; + } + + protected override void BeginProcessing() + { + base.BeginProcessing(); + + switch (ParameterSetName) + { + case GetFaultSet: + { + func = () => + { + FaultGetResponse fault = Client.Faults.Get(ResourceGroupName, FarmName, FaultId); + WriteObject(new FaultResponse(fault.Fault)); + }; + } + break; + case GetHistoryFaultSet: + { + func = () => + { + FaultListResponse faults = Client.Faults.ListHistoryFaults(ResourceGroupName, FarmName, + StartTime.ToString("O", CultureInfo.InvariantCulture), + EndTime.ToString("O", CultureInfo.InvariantCulture)); + WriteObject(faults.Select(_ => new FaultResponse(_)), true); + }; + } + break; + case GetCurrentFaultSet: + { + func = () => + { + FaultListResponse faults = Client.Faults.ListCurrentFaults(ResourceGroupName, FarmName, ResourceUri); + WriteObject(faults.Faults.Select(_=>new FaultResponse(_)), true); + }; + } + break; + default: + throw new ArgumentException("Bad GetFault parameter set"); + } + } + + protected override void Execute() + { + func(); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/ResolveFault.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/ResolveFault.cs new file mode 100644 index 000000000000..985f8ac3bdba --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Fault/ResolveFault.cs @@ -0,0 +1,76 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Globalization; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// dismiss faults + /// + /// SYNTAX + /// Resolve-Fault [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-FaultId] {string} [-Force] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsDiagnostic.Resolve, Nouns.AdminFault, SupportsShouldProcess = true)] + public sealed class ResolveFault : AdminCmdlet + { + const string ShouldProcessTargetFormat = "fault {0} "; + const string ShouldContinueQuery = "Continue with resolve fault?"; + const string ShouldContinueCaption = "Confirm"; + + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// Fault Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNull] + public string FaultId + { + get; + set; + } + + [Parameter] + public SwitchParameter Force + { + get; + set; + } + + protected override void Execute() + { + if (ShouldProcess(string.Format(CultureInfo.InvariantCulture, ShouldProcessTargetFormat, FaultId)) && + (Force || ShouldContinue(ShouldContinueQuery,ShouldContinueCaption))) + { + Client.Faults.Dismiss(ResourceGroupName, FarmName, FaultId); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/MSSharedLibKey.snk b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/MSSharedLibKey.snk new file mode 100644 index 0000000000000000000000000000000000000000..695f1b38774e839e5b90059bfb7f32df1dff4223 GIT binary patch literal 160 zcmV;R0AK$ABme*efB*oL000060ssI2Bme+XQ$aBR1ONa50098C{E+7Ye`kjtcRG*W zi8#m|)B?I?xgZ^2Sw5D;l4TxtPwG;3)3^j?qDHjEteSTF{rM+4WI`v zCD?tsZ^;k+S&r1&HRMb=j738S=;J$tCKNrc$@P|lZ + + + + Add-ACSFarm + + Register a new provisioned ACS farm. + + + + + Add + ACSFarm + + + + After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. + + + + Add-ACSFarm + + FarmName + + + + String + + + SettingAccessString + + + + String + + + Location + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingAccessString + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Add-ACSFarm -ResourceGroupName $resourceGroup -FarmName 'YourNameFarmName' -Location 'YourLocation' + + + + + + + + + + + + + + + + + + + + + + Disable-ACSNode + + Disable a particular node from service fabric cluster. + + + + + Disable + ACSNode + + + + Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. + + + + Disable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Disable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' + + + + + + + + + + + + + + + + + + + + + + Enable-ACSNode + + Enable a particular node in the service fabric cluster. + + + + + Enable + ACSNode + + + + Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. + + + + Enable-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Eable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobService + + Retrieve the status and settings of blob service + + + + + Get + ACSBlobService + + + + Retrieve the status and settings of blob service + + + + Get-ACSBlobService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetric + + Retrieve the metrics of blob service + + + + + Get + ACSBlobServiceMetric + + + + Retrieve the metrics of blob service + + + + Get-ACSBlobServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSBlobServiceMetricDefinition + + Retrieve the metric definitions of blob service + + + + + Get + ACSBlobServiceMetricDefinition + + + + Retrieve the metric definitions of blob service + + + + Get-ACSBlobServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSEventQuery + + Returns a query object, which could be used as the input parameter for Get-ACSEvent. + + + + + Get + ACSEventQuery + + + + This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. + + + + Get-ACSEventQuery + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Nullable`1[Guid] + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Nullable`1[Guid] + + Nullable`1[Guid] + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +$endtime=get-date +$starttime=$endtime.addminutes(-10) + +Get-ACSEventQuery -FarmId $farm.Name -ResourceGroupName $resourceGroup -StartTime $starttime + -EndTime $endtime + + + + + + + + + + + + + + + + + + + + + + Get-ACSEvents + + List the events in the Azure Consistent Storage system. + + + + + Get + ACSEvents + + + + This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. + + + + Get-ACSEvents + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + Node + + + + String + + + ResourceUri + + + + String + + + ProviderGuid + + + + Guid + + + EventId + + + + Int32[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSEvents + + EventQuery + + + + EventQuery + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + Node + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + ProviderGuid + + + + Guid + + Guid + + + + + + EventId + + + + Int32[] + + Int32[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + EventQuery + + + + EventQuery + + EventQuery + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSEvents -startTime $startTime -endtime $endtime -FarmName $farm -ResourceGroupName $resourceGroup + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarm + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + + Get + ACSFarm + + + + Retrieve the Azure-consistent Storage Farm and its properties and settings. + + + + Get-ACSFarm + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Get-ACSFarm -ResourceGroupName $resourceGroup + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetric + + Retrieve the metrics of ACS farm + + + + + Get + ACSFarmMetric + + + + Retrieve the metrics of ACS farm + + + + Get-ACSFarmMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFarmMetricDefinition + + Retrieve the metric definitions of ACS farm + + + + + Get + ACSFarmMetricDefinition + + + + Retrieve the metric definitions of ACS farm + + + + Get-ACSFarmMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSFault + + List faults in the Azure Consistent Storage system. + + + + + Get + ACSFault + + + + This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: +The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. +GetHistoryFaults returns a list of active fault objects within specified time range. +GetFault returns one fault object with the specified fault ID. + + + + Get-ACSFault + + FarmName + + + + String + + + ResourceUri + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSFault + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ResourceUri + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + FaultId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementService + + Retrieve running status and settings of management service. + + + + + Get + ACSManagementService + + + + Retrieve running status and settings of management service. + + + + Get-ACSManagementService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetric + + Retrieve the metrics of management service + + + + + Get + ACSManagementServiceMetric + + + + Retrieve the metrics of management service + + + + Get-ACSManagementServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSManagementServiceMetricDefinition + + Retrieve the metric definitions of management service + + + + + Get + ACSManagementServiceMetricDefinition + + + + Retrieve the metric definitions of management service + + + + Get-ACSManagementServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNode + + Get a list of nodes in Azure Consistent Storage. + + + + + Get + ACSNode + + + + Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. + + + + Get-ACSNode + + FarmName + + + + String + + + NodeName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSNode -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetric + + Retrieve the metrics of a node + + + + + Get + ACSNodeMetric + + + + Retrieve the metrics of a node + + + + Get-ACSNodeMetric + + FarmName + + + + String + + + NodeName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSNodeMetricDefinition + + Retrieve the metric definitions of node + + + + + Get + ACSNodeMetricDefinition + + + + Retrieve the metric definitions of node + + + + Get-ACSNodeMetricDefinition + + FarmName + + + + String + + + NodeName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + NodeName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstance + + Get a list of a specific type of role instances. + + + + + Get + ACSRoleInstance + + + + Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. + + + + Get-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend + + + + + + + + + + + + + + + + -------------------------- Example 2 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetric + + Retrieve the metrics of a role instance + + + + + Get + ACSRoleInstanceMetric + + + + Retrieve the metrics of a role instance + + + + Get-ACSRoleInstanceMetric + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSRoleInstanceMetricDefinition + + Retrieve the metric definitions of role instance + + + + + Get + ACSRoleInstanceMetricDefinition + + + + Retrieve the metric definitions of role instance + + + + Get-ACSRoleInstanceMetricDefinition + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShare + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + + Get + ACSShare + + + + Get list of SMB shares used in the Azure Consistent Storage system. + + + + Get-ACSShare + + FarmName + + + + String + + + ShareName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSShare -ResourceGroupName $resourceGroup -FarmName $farm.Name -ShareName 'YourShareName' + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetric + + Retrieve the metrics of a share + + + + + Get + ACSShareMetric + + + + Retrieve the metrics of a share + + + + Get-ACSShareMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSShareMetricDefinition + + Retrieve the metric definitions of share + + + + + Get + ACSShareMetricDefinition + + + + Retrieve the metric definitions of share + + + + Get-ACSShareMetricDefinition + + FarmName + + + + String + + + ShareName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + ShareName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSStorageAccount + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + + Get + ACSStorageAccount + + + + Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + TenantSubscriptionId + + + + String + + + PartialAccountName + + + + String + + + StorageAccountStatus + + + + Nullable`1[Int32] + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + Get-ACSStorageAccount + + FarmName + + + + String + + + AccountId + + + + Int64 + + + Detail + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + PartialAccountName + + + + String + + String + + + + + + StorageAccountStatus + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + Detail + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSStorageAccount -ResourceGroupName $resourceGroup -FarmName $farm.Name -PartialAccountName ‘YourStorageAccountName’ + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableService + + Get status and settings of table service. + + + + + Get + ACSTableService + + + + Get status and settings of table service. + + + + Get-ACSTableService + + FarmName + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Get-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetric + + Retrieve the metrics of table service + + + + + Get + ACSTableServiceMetric + + + + Retrieve the metrics of table service + + + + Get-ACSTableServiceMetric + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + TimeGrain + + + + TimeGrain + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + TimeGrain + + + + TimeGrain + + TimeGrain + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.Metric + + + + + + + + + + + + + + + + + + + + + + + + + Get-ACSTableServiceMetricDefinition + + Retrieve the metric definitions of table service + + + + + Get + ACSTableServiceMetricDefinition + + + + Retrieve the metric definitions of table service + + + + Get-ACSTableServiceMetricDefinition + + FarmName + + + + String + + + MetricNames + + + + String[] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + MetricNames + + + + String[] + + String[] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Export-ACSLog + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. + + + + + Export + ACSLog + + + + Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. + + + + Export-ACSLog + + FarmName + + + + String + + + StartTime + + + + DateTime + + + EndTime + + + + DateTime + + + UserName + + + + String + + + Password + + + + String + + + LogPrefix + + + + String + + + AzureStorageContainer + + + + String + + + AzureStorageAccountName + + + + String + + + AzureStorageAccountKey + + + + String + + + AzureSasToken + + + + String + + + TargetShareFolder + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + StartTime + + + + DateTime + + DateTime + + + + + + EndTime + + + + DateTime + + DateTime + + + + + + UserName + + + + String + + String + + + + + + Password + + + + String + + String + + + + + + LogPrefix + + + + String + + String + + + + + + AzureStorageContainer + + + + String + + String + + + + + + AzureStorageAccountName + + + + String + + String + + + + + + AzureStorageAccountKey + + + + String + + String + + + + + + AzureSasToken + + + + String + + String + + + + + + TargetShareFolder + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Resolve-ACSFault + + Resolve/Dismiss a fault in Azure Consistent Storage System. + + + + + Resolve + ACSFault + + + + This cmdlet change the state of a fault from Active to Resolved. + + + + Resolve-ACSFault + + FarmName + + + + String + + + FaultId + + + + String + + + Force + + + + SwitchParameter + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FaultId + + + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Resolve-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name -FaultId <FaultId> + + + + + + + + + + + + + + + + + + + + + + Restart-ACSRoleInstance + + Restart a role instance in the Azure Consistent Storage system. + + + + + Restart + ACSRoleInstance + + + + Restart a role instance in the Azure Consistent Storage system. + + + + Restart-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Restart-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + + + + + + + + + + + + + + + + Set-ACSBlobService + + Configure Settings of blob service + + + + + Set + ACSBlobService + + + + Configure Settings of blob service + + + + Set-ACSBlobService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + BlobSvcContainerGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcShallowGcInterval + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + BlobSvcStreamMapMinContainerOccupancyPercent + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true + + + + + + + + + + + + + + + + + + + + + + Set-ACSFarm + + Change the setting of service configuration on ACS Farm + + + + + Set + ACSFarm + + + + Change the setting of service configuration on ACS Farm + + + + Set-ACSFarm + + FarmName + + + + String + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + + CorsAllowedOriginsList + + + + String + + + DataCenterUriHostSuffixes + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + SettingsPollingIntervalInSecond + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + HostStyleHttpsPort + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + CorsAllowedOriginsList + + + + String + + String + + + + + + DataCenterUriHostSuffixes + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSFarm -ResourceGroupName $resourceGroup -FarmName $farm.Name -SettingPollingIntervalInSeconds 45 + + + + + + + + + + + + + + + + + + + + + + Set-ACSManagementService + + Configure Settings of management service + + + + + Set + ACSManagementService + + + + Configure Settings of management service + + + + Set-ACSManagementService + + FarmName + + + + String + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + WacContainerGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + WacAccountGcFullScanIntervalInSeconds + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name WacAccountGcFullScanIntervalInSeconds 60000000 + + + + + + + + + + + + + + + + + + + + + + Set-ACSTableService + + Configure Settings of table service + + + + + Set + ACSTableService + + + + Configure Settings of table service + + + + Set-ACSTableService + + FarmName + + + + String + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + FrontEndCpuBasedKeepAliveThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + FrontEndMemoryThrottlingEnabled + + + + Nullable`1[Boolean] + + Nullable`1[Boolean] + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Set-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true + + + + + + + + + + + + + + + + + + + + + + Start-ACSBlobServerRoleInstance + + Start blob service instance on a specific physical node. + + + + + Start + ACSBlobServerRoleInstance + + + + Start blob service instance on a specific physical node. + + + + Start-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +start-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + + + + + + + + + + + + + + + + Stop-ACSBlobServerRoleInstance + + Stop blob service instance on a specific physical node. + + + + + Stop + ACSBlobServerRoleInstance + + + + Stop blob service instance on a specific physical node. + + + + Stop-ACSBlobServerRoleInstance + + FarmName + + + + String + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +stop-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' + + + + + + + + + + + + + + + + + + + + + + Sync-ACSStorageAccount + + Synchronize the account status of the tenant storage accounts from backend to frontend cache. + + + + + Sync + ACSStorageAccount + + + + After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. + + + + Sync-ACSStorageAccount + + TenantAccountName + + + + String + + + TenantSubscriptionId + + + + String + + + Location + + + + String + + + TenantResourceGroup + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + TenantAccountName + + + + String + + String + + + + + + TenantSubscriptionId + + + + String + + String + + + + + + Location + + + + String + + String + + + + + + TenantResourceGroup + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +Sync-ACSStorageAccount -AccountName first -TenantSubscriptionId <TenantSubscriptionId> -ResourceLocation 'local' -ResourceGroupName $resourceGroup + + + + + + + + + + + + + + + + + + + + + + Undo-ACSStorageAccountDeletion + + Undelete a tenant storage account. + + + + + Undo + ACSStorageAccountDeletion + + + + Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. + + + + Undo-ACSStorageAccountDeletion + + FarmName + + + + String + + + AccountId + + + + Int64 + + + NewAccountName + + + + String + + + StorageAccountApiVersion + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + AccountId + + + + Int64 + + Int64 + + + + + + NewAccountName + + + + String + + String + + + + + + StorageAccountApiVersion + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + $resourceGroup = 'System' + +$farm = Get-ACSFarm -ResourceGroupName $resourceGroup + +Undo-ACSStorageAccountDeletion -ResourceGroupName $resourceGroup -FarmName $farm.Name -AccountId <AccountId> + + + + + + + + + + + + + + + + + + + + + + Update-ACSRoleInstance + + Update the settings of a role instance from setting repository + + + + + Update + ACSRoleInstance + + + + Update the settings of a role instance from setting repository + + + + Update-ACSRoleInstance + + FarmName + + + + String + + + RoleType + + + + RoleType + + + InstanceId + + + + String + + + SubscriptionId + + + + String + + + Token + + + + String + + + AdminUri + + + + Uri + + + ResourceGroupName + + + + String + + + SkipCertificateValidation + + + + SwitchParameter + + + WhatIf + + + + SwitchParameter + + + Confirm + + + + SwitchParameter + + + + + + FarmName + + + + String + + String + + + + + + RoleType + + + + RoleType + + RoleType + + + + + + InstanceId + + + + String + + String + + + + + + SubscriptionId + + + + String + + String + + + + + + Token + + + + String + + String + + + + + + AdminUri + + + + Uri + + Uri + + + + + + ResourceGroupName + + + + String + + String + + + + + + SkipCertificateValidation + + + + SwitchParameter + + SwitchParameter + + + + + + WhatIf + + + + SwitchParameter + + SwitchParameter + + + + + + Confirm + + + + SwitchParameter + + SwitchParameter + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse + + + + + + + + + + Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse + + + + + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + + PS C:\> + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/AccountContainerRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/AccountContainerRoleInstanceResponse.cs new file mode 100644 index 000000000000..6503f748ddf1 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/AccountContainerRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class AccountContainerRoleInstanceResponse: RoleInstanceResponseBase + { + public AccountContainerRoleInstanceResponse(AccountContainerRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.AccountContainerserver; + } + + public AccountContainerRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobFrontEndRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobFrontEndRoleInstanceResponse.cs new file mode 100644 index 000000000000..2c0cb5942589 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobFrontEndRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class BlobFrontEndRoleInstanceResponse : RoleInstanceResponseBase + { + public BlobFrontEndRoleInstanceResponse(BlobFrontEndRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.BlobFrontend; + } + + public BlobFrontEndRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServerRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServerRoleInstanceResponse.cs new file mode 100644 index 000000000000..9481834555f5 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServerRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class BlobServerRoleInstanceResponse : RoleInstanceResponseBase + { + public BlobServerRoleInstanceResponse(BlobServerRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.BlobServer; + } + + public BlobServerRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServiceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServiceResponse.cs new file mode 100644 index 000000000000..6a3ce22d01a9 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/BlobServiceResponse.cs @@ -0,0 +1,27 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class BlobServiceResponse : ServiceResponseBase + { + public BlobServiceResponse(BlobServiceResponseResource resource) : base(resource, "BlobService") + { + } + + public BlobServiceSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FarmResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FarmResponse.cs new file mode 100644 index 000000000000..ac95a56cc53d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FarmResponse.cs @@ -0,0 +1,31 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class FarmResponse: ResponseBase + { + public FarmResponse(FarmModel resource) : base(resource) + { + } + + public string SettingsStore { get; set; } + + public HealthStatus HealthStatus { get; set; } + + public FarmSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FaultResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FaultResponse.cs new file mode 100644 index 000000000000..0c5849fd5a56 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/FaultResponse.cs @@ -0,0 +1,42 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class FaultResponse:ResponseBase + { + public FaultResponse(FaultModel resource) : base(resource) + { + } + + public DateTime ActivatedTime { get; set; } + public AssociatedDataType AssociatedDataType { get; set; } + public EventQuery AssociatedEventQuery { get; set; } + public string AssociatedMetricsName { get; set; } + public string Description { get; set; } + public string FaultId { get; set; } + public string FaultRuleName { get; set; } + public string ResolutionText { get; set; } + public DateTime? ResolvedTime { get; set; } + public string ResourceUri { get; set; } + public Severity Severity { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ManagementServiceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ManagementServiceResponse.cs new file mode 100644 index 000000000000..efdc123bf904 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ManagementServiceResponse.cs @@ -0,0 +1,27 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class ManagementServiceResponse : ServiceResponseBase + { + public ManagementServiceResponse(ManagementServiceResponseResource resource) : base(resource, "ManagementService") + { + } + + public ManagementServiceSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MetricsServerRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MetricsServerRoleInstanceResponse.cs new file mode 100644 index 000000000000..59367d1fb10b --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MetricsServerRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class MetricsServerRoleInstanceResponse : RoleInstanceResponseBase + { + public MetricsServerRoleInstanceResponse(MetricsServerRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.MetricsServer; + } + + public MetricsServerRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MonitoringServerRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MonitoringServerRoleInstanceResponse.cs new file mode 100644 index 000000000000..6badb606e8df --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/MonitoringServerRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class MonitoringServerRoleInstanceResponse : RoleInstanceResponseBase + { + public MonitoringServerRoleInstanceResponse(MonitoringServerRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.HealthMonitoringserver; + } + + public MonitoringServerRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/NodeResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/NodeResponse.cs new file mode 100644 index 000000000000..5d8f936cb979 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/NodeResponse.cs @@ -0,0 +1,54 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class NodeResponse : ResponseBase + { + public NodeResponse(NodeModel resource) : base(resource) + { + } + + public string CodeVersion { get; set; } + + public string ConfigVersion { get; set; } + + public Uri FaultDomain { get; set; } + + public HealthStatus HealthState { get; set; } + + + public string IpAddressOrFqdn { get; set; } + + public bool IsSeedNode { get; set; } + + public string NodeId { get; set; } + + public string NodeName { get; set; } + + public NodeStatus NodeStatus { get; set; } + + public string NodeType { get; set; } + + public TimeSpan NodeUpTime { get; set; } + + public string UpgradeDomain { get; set; } + + public IEnumerable RunningInstanceUris { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSAvailabilityCollection.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSAvailabilityCollection.cs new file mode 100644 index 000000000000..b996e695487d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSAvailabilityCollection.cs @@ -0,0 +1,46 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System.Collections.Generic; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Wraps around a list of Dimension objects to display them with indentation + /// + internal class PSAvailabilityCollection + { + private IList metricAvailabilities; + + /// + /// Initializes a new instance of the PSAvailabilityCollection class + /// + /// The list of metric availabilities + public PSAvailabilityCollection(IList metricAvailabilities) + { + this.metricAvailabilities = metricAvailabilities; + } + + /// + /// A string representation of the list MetricAvailability objects including indentation + /// + /// A string representation of the list of MetricAvailability objects including indentation + public override string ToString() + { + return this.metricAvailabilities.ToString(indentationTabs: 1); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetric.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetric.cs new file mode 100644 index 000000000000..1c8fa3717543 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetric.cs @@ -0,0 +1,39 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Wrapps around the Metric and exposes a summary of the properties properties + /// + internal class PSMetric : PSMetricNoDetails + { + /// + /// Gets or sets the MetricValues collection of the metric + /// + public new PSMetricValuesCollection MetricValues { get; set; } + + /// + /// Initializes a new instance of the PSMetric class. + /// + /// The input Metric object + public PSMetric(Metric metric) : base(metric) + { + this.MetricValues = new PSMetricValuesCollection(metric.MetricValues); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinition.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinition.cs new file mode 100644 index 000000000000..6bde718617d5 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinition.cs @@ -0,0 +1,36 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class PSMetricDefinition : PSMetricDefinitionNoDetails + { + /// + /// Gets or sets the MetricAvailabilties of the metric + /// + public new PSAvailabilityCollection MetricAvailabilities { get; set; } + + /// + /// Initializes an new instance of the PSMetricDefinition class + /// + /// The MetricDefinition + public PSMetricDefinition(MetricDefinition metricDefinition): base(metricDefinition) + { + this.MetricAvailabilities = new PSAvailabilityCollection(metricDefinition.MetricAvailabilities); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinitionNoDetails.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinitionNoDetails.cs new file mode 100644 index 000000000000..513ef158af2b --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricDefinitionNoDetails.cs @@ -0,0 +1,45 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Wraps around MetricDefinition to provide summarized data about it + /// + internal class PSMetricDefinitionNoDetails : MetricDefinition + { + /// + /// Gets or sets the Name of the metric + /// + public new string Name { get; set; } + + /// + /// Initializes an new instance of the PSMetricDefinitionNoDetails class + /// + /// The MetricDefinition + public PSMetricDefinitionNoDetails(MetricDefinition metricDefinition) + { + // Keep the original value (localized string, Dictionary, List) in the base + base.Name = metricDefinition.Name; + + this.MetricAvailabilities = metricDefinition.MetricAvailabilities; + this.Name = metricDefinition.Name == null ? null : metricDefinition.Name.Value; + this.PrimaryAggregationType = metricDefinition.PrimaryAggregationType; + this.Unit = metricDefinition.Unit; + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricNoDetails.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricNoDetails.cs new file mode 100644 index 000000000000..6a995608e94a --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricNoDetails.cs @@ -0,0 +1,47 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Wrapps around the Metric and exposes a summary of the properties properties + /// + internal class PSMetricNoDetails : Metric + { + /// + /// Gets or sets the Name of the metric + /// + public new string Name { get; set; } + + /// + /// Initializes a new instance of the PSMetric class. + /// + /// The input Metric object + public PSMetricNoDetails(Metric metric) + { + // Keep the original value (localized string, Dictionary, List) in the base + base.Name = metric.Name; + + this.EndTime = metric.EndTime; + this.Name = metric.Name == null ? null : metric.Name.Value; + this.MetricValues = metric.MetricValues; + this.StartTime = metric.StartTime; + this.TimeGrain = metric.TimeGrain; + this.MetricUnit = metric.MetricUnit; + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricValuesCollection.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricValuesCollection.cs new file mode 100644 index 000000000000..aa29d4aa0262 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/PSMetricValuesCollection.cs @@ -0,0 +1,46 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System.Collections.Generic; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Wraps around a list of PSMetricValue objects to display them with indentation + /// + internal class PSMetricValuesCollection + { + private IList metricValues; + + /// + /// Initializes a new instance of the PSMetricValuesCollection class + /// + /// The list of metric values + public PSMetricValuesCollection(IList metricValues) + { + this.metricValues = metricValues; + } + + /// + /// A string representation of the list Dimension objects including indentation + /// + /// A string representation of the list of Dimension objects including indentation + public override string ToString() + { + return this.metricValues.ToString(indentationTabs: 1); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ResponseBase.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ResponseBase.cs new file mode 100644 index 000000000000..45dbab258e80 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ResponseBase.cs @@ -0,0 +1,69 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class ResponseBase : ResourceBase + { + public ResponseBase(ResourceBase resource) : this(resource, "Properties") + { + + } + + public ResponseBase(ResourceBase resource, string propertyNameToExpand) + { + Id = resource.Id; + Location = resource.Location; + Tags = resource.Tags; + Type = resource.Type; + Name = resource.Name; + + // Id is in the following format: + // /subscriptions/{subid}/resourceGroups/{resourceGroupName}/providers/{providerName}/farms/{farmId}/nodes/{nodeId} + string[] ids = resource.Id.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries); + ResourceGroupName = ids[3]; + FarmName = ids[7]; + + Type inputType = resource.GetType(); + Type outPutType = this.GetType(); + + PropertyInfo propertiesPropertyInfo = inputType.GetProperty(propertyNameToExpand); + + if (propertiesPropertyInfo != null) + { + var propertiesValue = propertiesPropertyInfo.GetValue(resource); + PropertyInfo[] properties = propertiesValue.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); + foreach (var property in properties) + { + object propertyValue = property.GetValue(propertiesValue); + if (propertyValue != null) + { + PropertyInfo propertyInfoInResponse = outPutType.GetProperty(property.Name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); + if (propertyInfoInResponse != null) + { + propertyInfoInResponse.SetValue(this, propertyValue); + } + } + } + } + } + + public string ResourceGroupName { get; set; } + public string FarmName { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/RoleInstanceResponseBase.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/RoleInstanceResponseBase.cs new file mode 100644 index 000000000000..48e81bbf1197 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/RoleInstanceResponseBase.cs @@ -0,0 +1,47 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class RoleInstanceResponseBase:ResponseBase + { + public RoleInstanceResponseBase(ResourceBase resource) : base(resource) + { + } + + public string InstanceId + { + get + { + return RoleIdentifier; + } + } + + protected string RoleIdentifier { get; set; } + public string Version { get; set; } + public RoleInstanceStatus Status { get; set; } + public HealthStatus HealthStatus { get; set; } + public string NodeUri { get; set; } + public IEnumerable HistoryInfos { get; set; } + + public RoleType RoleType { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ServiceResponseBase.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ServiceResponseBase.cs new file mode 100644 index 000000000000..faf9bfaa967d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ServiceResponseBase.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class ServiceResponseBase : ResponseBase + { + public ServiceResponseBase(ResourceBase resource, string propertyNameToExpand) : base(resource, propertyNameToExpand) + { + } + + public HealthStatus HealthStatus { get; set; } + public string Version { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ShareResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ShareResponse.cs new file mode 100644 index 000000000000..64652e20efe4 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/ShareResponse.cs @@ -0,0 +1,37 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class ShareResponse:ResponseBase + { + public ShareResponse(ShareModel resource) : base(resource) + { + } + + public ulong? FreeCapacity { get; set; } + public HealthStatus HealthStatus { get; set; } + public string ShareName { get; set; } + public ulong? TotalCapacity { get; set; } + public string UncPath { get; set; } + public ulong? UsedCapacity { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/StorageAccountResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/StorageAccountResponse.cs new file mode 100644 index 000000000000..89a828bc9a85 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/StorageAccountResponse.cs @@ -0,0 +1,80 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class StorageAccountResponse : ResponseBase + { + public StorageAccountResponse(StorageAccountModel model, string farmName) + : base(model) + { + // Manually set those with different names or in root + this.AccountId = long.Parse(model.Name, CultureInfo.InvariantCulture); + this.AdminViewId = model.Id; + this.Location = model.Location; + this.WacAccountId = model.Properties.AccountId; + this.ResourceType = model.ResourceType; + this.Type = model.Type; + this.Tags = model.Tags; + this.FarmName = farmName; + } + + public string ResourceType { get; set; } + public long AccountId { get; set; } + public string AdminViewId { get; set; } + public string TenantViewId { get; set; } + public StorageAccountType AccountType { get; set; } + + public StorageAccountState State { get; set; } + + public IDictionary PrimaryEndpoints { get; set; } + + public string CreationTime { get; set; } + + public string AlternateName { get; set; } + + public RegionStatus StatusOfPrimary { get; set; } + + public Guid TenantSubscriptionId { get; set; } + + public string TenantAccountName { get; set; } + + public string TenantResourceGroupName { get; set; } + + public StorageAccountOperation CurrentOperation { get; set; } + + public string CustomDomain { get; set; } + public int AcquisitionOperationCount { get; set; } + public DateTime? DeletedTime { get; set; } + + public StorageAccountStatus AccountStatus { get; set; } + + public DateTime? RecoveredTime { get; set; } + + public DateTime? RecycledTime { get; set; } + + public WacAccountPermissions? Permissions { get; set; } + + public ulong? WacAccountId { get; set; } + public WacAccountStates? WacInternalState { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableFrontEndRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableFrontEndRoleInstanceResponse.cs new file mode 100644 index 000000000000..a51df47b2617 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableFrontEndRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class TableFrontEndRoleInstanceResponse : RoleInstanceResponseBase + { + public TableFrontEndRoleInstanceResponse(TableFrontEndRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.TableFrontend; + } + + public TableFrontEndRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableMasterRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableMasterRoleInstanceResponse.cs new file mode 100644 index 000000000000..f812b6deebff --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableMasterRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class TableMasterRoleInstanceResponse : RoleInstanceResponseBase + { + public TableMasterRoleInstanceResponse(TableMasterRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.TableMaster; + } + + public TableMasterRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServerRoleInstanceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServerRoleInstanceResponse.cs new file mode 100644 index 000000000000..bed88bbadf24 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServerRoleInstanceResponse.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class TableServerRoleInstanceResponse : RoleInstanceResponseBase + { + public TableServerRoleInstanceResponse(TableServerRoleInstanceModel resource) : base(resource) + { + RoleType = RoleType.TableServer; + } + + public TableServerRoleInstanceEffectiveSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServiceResponse.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServiceResponse.cs new file mode 100644 index 000000000000..186316580e60 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Model/TableServiceResponse.cs @@ -0,0 +1,27 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal class TableServiceResponse : ServiceResponseBase + { + public TableServiceResponse(TableServiceResponseResource resource) : base(resource, "TableService") + { + } + + public TableServiceSettings Settings { get; set; } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/DisableNode.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/DisableNode.cs new file mode 100644 index 000000000000..1cde4b28da59 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/DisableNode.cs @@ -0,0 +1,68 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +// +// +// Copyright (C) Microsoft. All rights reserved. +// +// + +using System; +using System.Globalization; +using System.Management.Automation; +using System.Net; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Disable-Node [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [[-NodeName] {string}] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsLifecycle.Disable, Nouns.AdminNode, SupportsShouldProcess = true)] + public sealed class DisableAdminNode : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNullOrEmpty] + public string FarmName { get; set; } + + /// + /// Node name + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNullOrEmpty] + public string NodeName { get; set; } + + protected override void Execute() + { + if (ShouldProcess( + Resources.DisableNodeVerboseDescription.FormatInvariantCulture(NodeName, FarmName), + Resources.DisableNodeVerboseWarning.FormatInvariantCulture(NodeName, FarmName), + Resources.ShouldProcessCaption)) + { + var response = Client.Nodes.Disable(ResourceGroupName, FarmName, NodeName); + if (response.StatusCode != HttpStatusCode.OK) + { + throw new AdminException(string.Format(CultureInfo.InvariantCulture, Resources.OperationFailedErrorMessage, response.StatusCode)); + } + } + } + } +} + diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/EnableNode.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/EnableNode.cs new file mode 100644 index 000000000000..9955e771d210 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/EnableNode.cs @@ -0,0 +1,61 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Globalization; +using System.Management.Automation; +using System.Net; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Enable-Node [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [[-NodeName] {string}] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsLifecycle.Enable, Nouns.AdminNode, SupportsShouldProcess = true)] + public sealed class EnableAdminNode : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNullOrEmpty] + public string FarmName { get; set; } + + /// + /// Node name + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNullOrEmpty] + public string NodeName { get; set; } + + protected override void Execute() + { + if (ShouldProcess( + Resources.EnableNodeVerboseDescription.FormatInvariantCulture(NodeName, FarmName), + Resources.EnableNodeVerboseWarning.FormatInvariantCulture(NodeName, FarmName), + Resources.ShouldProcessCaption)) + { + var response = Client.Nodes.Enable(ResourceGroupName, FarmName, NodeName); + if (response.StatusCode != HttpStatusCode.OK) + { + throw new AdminException(string.Format(CultureInfo.InvariantCulture, Resources.OperationFailedErrorMessage, response.StatusCode)); + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNode.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNode.cs new file mode 100644 index 000000000000..d00cd742619e --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNode.cs @@ -0,0 +1,60 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-Node [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [[-NodeName] {string}] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminNode)] + public sealed class GetAdminNode : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// Node name + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, Position = 5)] + public string NodeName { get; set; } + + + protected override void Execute() + { + if (string.IsNullOrEmpty(NodeName)) + { + NodeListResponse nodes = Client.Nodes.List(ResourceGroupName, FarmName); + + WriteObject(nodes.Nodes.Select(_=>new NodeResponse(_)), true); + } + else + { + NodeGetResponse node = Client.Nodes.Get(ResourceGroupName, FarmName, NodeName); + WriteObject(new NodeResponse(node.Node)); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetricDefinitions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetricDefinitions.cs new file mode 100644 index 000000000000..a939a6fee198 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetricDefinitions.cs @@ -0,0 +1,51 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminNodeMetricDefinition)] + public sealed class GetNodeMetricDefinitions : AdminMetricDefinitionCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// Node name + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public string NodeName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricDefinitionsResult GetMetricDefinitionsResult(string filter) + { + return Client.Nodes.GetMetricDefinitions(ResourceGroupName, FarmName, NodeName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetrics.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetrics.cs new file mode 100644 index 000000000000..7a3dc6860e0a --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Node/GetNodeMetrics.cs @@ -0,0 +1,50 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminNodeMetric)] + public sealed class GetNodeMetrics : AdminMetricCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// Node name + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public string NodeName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricsResult GetMetricsResult(string filter) + { + return Client.Nodes.GetMetrics(ResourceGroupName, FarmName, NodeName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Nouns.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Nouns.cs new file mode 100644 index 000000000000..49306c358290 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Nouns.cs @@ -0,0 +1,93 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + class Nouns + { + public const string Prefix = "ACS"; + + public const string Metric = "Metric"; + + public const string MetricDefinition = "MetricDefinition"; + + + // farm + public const string AdminFarm = Prefix + "Farm"; + + public const string AdminFarmMetric = AdminFarm + Metric; + + public const string AdminFarmMetricDefinition = AdminFarm + MetricDefinition; + + public const string AdminFarmEvent = Prefix + "Event"; + + public const string AdminFarmEventQuery = Prefix + "EventQuery"; + + // LogCollect + public const string Log = Prefix + "Log"; + + // node + public const string AdminNode = Prefix + "Node"; + + public const string AdminNodeMetric = AdminNode + Metric; + + public const string AdminNodeMetricDefinition = AdminNode + MetricDefinition; + + // blob server role instance + public const string AdminBlobServerRoleInstance = Prefix + "BlobServerRoleInstance"; + + // role instance + public const string AdminRoleInstance = Prefix + "RoleInstance"; + + // role instance + public const string AdminRoleInstanceSettingsPullNow = Prefix + "RoleInstancePullSettings"; + + public const string AdminRoleInstanceMetric = AdminRoleInstance + Metric; + + public const string AdminRoleInstanceMetricDefinition = AdminRoleInstance + MetricDefinition; + + // service + public const string AdminTableService = Prefix + "TableService"; + public const string AdminBlobService = Prefix + "BlobService"; + public const string AdminManagementService = Prefix + "ManagementService"; + + public const string AdminTableServiceMetric = AdminTableService + Metric; + public const string AdminTableServiceMetricDefinition = AdminTableService + MetricDefinition; + + public const string AdminBlobServiceMetric = AdminBlobService + Metric; + public const string AdminBlobServiceMetricDefinition = AdminBlobService + MetricDefinition; + + public const string AdminManagementServiceMetric = AdminManagementService + Metric; + public const string AdminManagementServiceMetricDefinition = AdminManagementService + MetricDefinition; + + // share + public const string AdminShare = Prefix + "Share"; + + public const string AdminShareMetric = AdminShare + Metric; + + public const string AdminShareMetricDefinition = AdminShare + MetricDefinition; + + // fault + public const string AdminFault = Prefix + "Fault"; + + // role instance + public const string AdminInstance = Prefix + "Instance"; + + // storage account + public const string AdminStorageAccount = Prefix + "StorageAccount"; + + // storage account deletion operation + public const string AdminStorageAccountDeletion = Prefix + "StorageAccountDeletion"; + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..9ed1b8b38608 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +// +// +// Copyright (C) Microsoft. All rights reserved. +// +// + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34014 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +[assembly: System.CLSCompliantAttribute(false)] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] + diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.Designer.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.Designer.cs new file mode 100644 index 000000000000..2a844b8de104 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.Designer.cs @@ -0,0 +1,432 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.AzureStack.Commands.StorageAdmin { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AzureStack.Commands.StorageAdmin.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Bad parameter set. + /// + internal static string BadParameterSet { + get { + return ResourceManager.GetString("BadParameterSet", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ACS Blob Service. + /// + internal static string BlobService { + get { + return ResourceManager.GetString("BlobService", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Disabling Node '{0}' in Storage cluster '{1}'.. + /// + internal static string DisableNodeVerboseDescription { + get { + return ResourceManager.GetString("DisableNodeVerboseDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to disable Node '{0}' in Storage cluster '{1}'?. + /// + internal static string DisableNodeVerboseWarning { + get { + return ResourceManager.GetString("DisableNodeVerboseWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enabling Node '{0}' in Storage cluster '{1}'.. + /// + internal static string EnableNodeVerboseDescription { + get { + return ResourceManager.GetString("EnableNodeVerboseDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to enable Node '{0}' in Storage cluster '{1}'?. + /// + internal static string EnableNodeVerboseWarning { + get { + return ResourceManager.GetString("EnableNodeVerboseWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Failed to get undeleted storage account via Account Id or one of its properties is invalid: Tenant Subscription Id, Tenant View Id, Tenant Resource Group Name, Location.. + /// + internal static string FailedToGetAccount { + get { + return ResourceManager.GetString("FailedToGetAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Failed to undelete storage account.. + /// + internal static string FailedToUndeleteAccount { + get { + return ResourceManager.GetString("FailedToUndeleteAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The Azure profile is invalid, Make sure that you are in the Azure context with the Add-AzureEnvironment and Add-AzureAccount cmdlets.. + /// + internal static string InvalidProfile { + get { + return ResourceManager.GetString("InvalidProfile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This role type is not supported: '{0}'. + /// + internal static string InvalidRoleTypeErrorMessageFormat { + get { + return ResourceManager.GetString("InvalidRoleTypeErrorMessageFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ACS Management Service. + /// + internal static string ManagementService { + get { + return ResourceManager.GetString("ManagementService", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operation is failed. Error code is: '{0}'. + /// + internal static string OperationFailedErrorMessage { + get { + return ResourceManager.GetString("OperationFailedErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to If specified VersionedAccountName parameter, PartialAccountName, StorageAccountStatus or TenantSubscriptionId parameters must not be set.. + /// + internal static string OtherParameterMustNotSetWithVersionedAccountNameSet { + get { + return ResourceManager.GetString("OtherParameterMustNotSetWithVersionedAccountNameSet", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Restarting role instance '{0}' with type '{1}'.. + /// + internal static string RestartRoleInstanceVerboseDescription { + get { + return ResourceManager.GetString("RestartRoleInstanceVerboseDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to restart role instance '{0}' with type '{1}'.. + /// + internal static string RestartRoleInstanceVerboseWarning { + get { + return ResourceManager.GetString("RestartRoleInstanceVerboseWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Retrieve properties of undeleted storage account to prepare for resource sync. + /// + internal static string RetrieveUndeletedStorageAccount { + get { + return ResourceManager.GetString("RetrieveUndeletedStorageAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Performing the operation set ACS Farm '{0}', {1}.. + /// + internal static string SetFarmDescription { + get { + return ResourceManager.GetString("SetFarmDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to perform the operation "set ACS Farm '{0}', {1}"?. + /// + internal static string SetFarmWarning { + get { + return ResourceManager.GetString("SetFarmWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Performing the operation set {0} {1}.. + /// + internal static string SetServiceDescription { + get { + return ResourceManager.GetString("SetServiceDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to '{0}' to '{1}'. + /// + internal static string SetServiceSettingParameter { + get { + return ResourceManager.GetString("SetServiceSettingParameter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to perform the operation "set {0}{1}"?. + /// + internal static string SetServiceWarning { + get { + return ResourceManager.GetString("SetServiceWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Confirm. + /// + internal static string ShouldProcessCaption { + get { + return ResourceManager.GetString("ShouldProcessCaption", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Specified SMB share will be removed. + /// + internal static string ShouldProcessRemoveSmbShare { + get { + return ResourceManager.GetString("ShouldProcessRemoveSmbShare", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Starting Blob server instance '{0}'.. + /// + internal static string StartBlobServerRoleInstanceVerboseDescription { + get { + return ResourceManager.GetString("StartBlobServerRoleInstanceVerboseDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to start Blob server role instance ‘{0}’.. + /// + internal static string StartBlobServerRoleInstanceVerboseWarning { + get { + return ResourceManager.GetString("StartBlobServerRoleInstanceVerboseWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stopping Blob server instance '{0}'.. + /// + internal static string StopBlobServerRoleInstanceVerboseDescription { + get { + return ResourceManager.GetString("StopBlobServerRoleInstanceVerboseDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to stop Blob server role instance ‘{0}’.. + /// + internal static string StopBlobServerRoleInstanceVerboseWarning { + get { + return ResourceManager.GetString("StopBlobServerRoleInstanceVerboseWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Storage Account '{0}'. + /// + internal static string StorageAccount { + get { + return ResourceManager.GetString("StorageAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Storage Account With VersionedAccountName '{0}'. + /// + internal static string StorageAccountAdminView { + get { + return ResourceManager.GetString("StorageAccountAdminView", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resource Sync. + /// + internal static string SyncOperation { + get { + return ResourceManager.GetString("SyncOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ACS Table Service. + /// + internal static string TableService { + get { + return ResourceManager.GetString("TableService", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Both the parameters Token, AdminUri and SubscriptionId are required.. + /// + internal static string TokenAndAdminUriRequired { + get { + return ResourceManager.GetString("TokenAndAdminUriRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Triger resource sync now.. + /// + internal static string TriggerResourceSync { + get { + return ResourceManager.GetString("TriggerResourceSync", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Undelete. + /// + internal static string UndeleteOperation { + get { + return ResourceManager.GetString("UndeleteOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Performing the operation update the settings on ACS Role Instance '{0}' with type '{1}'.. + /// + internal static string UpdateRoleInstanceSettingDescription { + get { + return ResourceManager.GetString("UpdateRoleInstanceSettingDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to perform the operation "update the settings on ACS Role Instance '{0}' with type '{1}'"?. + /// + internal static string UpdateRoleInstanceSettingWarning { + get { + return ResourceManager.GetString("UpdateRoleInstanceSettingWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Argument should be an absolute URI.. + /// + internal static string ValidateAbsoluteUriNotAbsolute { + get { + return ResourceManager.GetString("ValidateAbsoluteUriNotAbsolute", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to System.Uri type is expected.. + /// + internal static string ValidateAbsoluteUriWrongType { + get { + return ResourceManager.GetString("ValidateAbsoluteUriWrongType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Argument should be a valid UNC.. + /// + internal static string ValidateUncNotValidUnc { + get { + return ResourceManager.GetString("ValidateUncNotValidUnc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to System.Uri type is expected.. + /// + internal static string ValidateUncWrongType { + get { + return ResourceManager.GetString("ValidateUncWrongType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please wait a few minutes to let frontdoor finish sync job. After that storage account can be accessed by tenant user.. + /// + internal static string WaitAfterArmSync { + get { + return ResourceManager.GetString("WaitAfterArmSync", resourceCulture); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.resx b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.resx new file mode 100644 index 000000000000..525b804d7848 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Resources.resx @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ACS Blob Service + + + Disabling Node '{0}' in Storage cluster '{1}'. + + + Are you sure you want to disable Node '{0}' in Storage cluster '{1}'? + + + Enabling Node '{0}' in Storage cluster '{1}'. + + + Are you sure you want to enable Node '{0}' in Storage cluster '{1}'? + + + Failed to get undeleted storage account via Account Id or one of its properties is invalid: Tenant Subscription Id, Tenant View Id, Tenant Resource Group Name, Location. + + + Failed to undelete storage account. + + + This role type is not supported: '{0}' + + + ACS Management Service + + + Operation is failed. Error code is: '{0}' + {0} is the error code. + + + If specified VersionedAccountName parameter, PartialAccountName, StorageAccountStatus or TenantSubscriptionId parameters must not be set. + + + Restarting role instance '{0}' with type '{1}'. + + + Are you sure you want to restart role instance '{0}' with type '{1}'. + + + Performing the operation set {0} {1}. + + + '{0}' to '{1}' + whilte space in the beginning can't be discarded, it's treated as seperator. + + + Are you sure you want to perform the operation "set {0}{1}"? + + + Retrieve properties of undeleted storage account to prepare for resource sync + + + Confirm + + + Specified SMB share will be removed + + + Starting Blob server instance '{0}'. + + + Are you sure you want to start Blob server role instance ‘{0}’. + + + Stopping Blob server instance '{0}'. + + + Are you sure you want to stop Blob server role instance ‘{0}’. + + + ACS Table Service + + + Performing the operation update the settings on ACS Role Instance '{0}' with type '{1}'. + + + Are you sure you want to perform the operation "update the settings on ACS Role Instance '{0}' with type '{1}'"? + + + Storage Account '{0}' + + + Storage Account With VersionedAccountName '{0}' + + + Resource Sync + + + Triger resource sync now. + + + Undelete + + + Argument should be an absolute URI. + + + System.Uri type is expected. + + + Argument should be a valid UNC. + + + System.Uri type is expected. + + + Please wait a few minutes to let frontdoor finish sync job. After that storage account can be accessed by tenant user. + + + The Azure profile is invalid, Make sure that you are in the Azure context with the Add-AzureEnvironment and Add-AzureAccount cmdlets. + + + Both the parameters Token, AdminUri and SubscriptionId are required. + + + Performing the operation set ACS Farm '{0}', {1}. + {0} is the farm name, {1} is the updated settings key/value pair. + + + Are you sure you want to perform the operation "set ACS Farm '{0}', {1}"? + + + Bad parameter set + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstance.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstance.cs new file mode 100644 index 000000000000..d173432242d9 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstance.cs @@ -0,0 +1,135 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; +using System.Globalization; +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-RoleInstance [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-RoleType] {enum} [[-InstanceId] {string}] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminRoleInstance)] + public sealed class GetAdminNodeRoleInstance : AdminCmdlet + { + /// + /// farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// name of role + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public RoleType RoleType + { + get; + set; + } + + /// + /// instance identifier + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, Position = 6)] + [ValidateNotNull] + public string InstanceId + { + get; + set; + } + + protected override void Execute() + { + object resultObject; + if (string.IsNullOrEmpty(InstanceId)) + { + switch (RoleType) + { + case RoleType.AccountContainerserver: + resultObject = Client.AccountContainerServerInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_=>new AccountContainerRoleInstanceResponse(_)); + break; + case RoleType.BlobFrontend: + resultObject = Client.BlobFrontendInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_ => new BlobFrontEndRoleInstanceResponse(_)); + break; + case RoleType.TableFrontend: + resultObject = Client.TableFrontendInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_ => new TableFrontEndRoleInstanceResponse(_)); + break; + case RoleType.BlobServer: + resultObject = Client.BlobServerInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_ => new BlobServerRoleInstanceResponse(_)); + break; + case RoleType.TableServer: + resultObject = Client.TableServerInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_ => new TableServerRoleInstanceResponse(_)); + break; + case RoleType.HealthMonitoringserver: + resultObject = Client.HealthMonitoringServerInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_ => new MonitoringServerRoleInstanceResponse(_)); + break; + case RoleType.MetricsServer: + resultObject = Client.MetricsServerInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_ => new MetricsServerRoleInstanceResponse(_)); + break; + case RoleType.TableMaster: + resultObject = Client.TableMasterInstances.List(ResourceGroupName, FarmName).RoleInstances.Select(_ => new TableMasterRoleInstanceResponse(_)); + break; + default: + throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, Resources.InvalidRoleTypeErrorMessageFormat, RoleType)); + } + } + else + { + switch (RoleType) + { + case RoleType.AccountContainerserver: + resultObject = new AccountContainerRoleInstanceResponse(Client.AccountContainerServerInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + case RoleType.BlobFrontend: + resultObject = new BlobFrontEndRoleInstanceResponse(Client.BlobFrontendInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + case RoleType.TableFrontend: + resultObject = new TableFrontEndRoleInstanceResponse(Client.TableFrontendInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + case RoleType.BlobServer: + resultObject = new BlobServerRoleInstanceResponse(Client.BlobServerInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + case RoleType.TableServer: + resultObject = new TableServerRoleInstanceResponse(Client.TableServerInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + case RoleType.HealthMonitoringserver: + resultObject = new MonitoringServerRoleInstanceResponse(Client.HealthMonitoringServerInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + case RoleType.MetricsServer: + resultObject = new MetricsServerRoleInstanceResponse(Client.MetricsServerInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + case RoleType.TableMaster: + resultObject = new TableMasterRoleInstanceResponse(Client.TableMasterInstances.Get(ResourceGroupName, FarmName, InstanceId).RoleInstance); + break; + default: + throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, Resources.InvalidRoleTypeErrorMessageFormat, RoleType)); + } + } + WriteObject(resultObject, true); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetricDefinitions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetricDefinitions.cs new file mode 100644 index 000000000000..f786ae62e365 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetricDefinitions.cs @@ -0,0 +1,103 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Globalization; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminRoleInstanceMetricDefinition)] + public sealed class GetRoleInstanceMetricDefinitions : AdminMetricDefinitionCmdlet + { + /// + /// farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// name of role + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public RoleType RoleType + { + get; + set; + } + + /// + /// instance identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 6)] + [ValidateNotNull] + public string InstanceId + { + get; + set; + } + + /// + /// + /// + /// + /// + protected override MetricDefinitionsResult GetMetricDefinitionsResult(string filter) + { + MetricDefinitionsResult resultObject; + + switch (RoleType) + { + case RoleType.AccountContainerserver: + resultObject = Client.AccountContainerServerInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.BlobFrontend: + resultObject = Client.BlobFrontendInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.TableFrontend: + resultObject = Client.TableFrontendInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.BlobServer: + resultObject = Client.BlobServerInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.TableServer: + resultObject = Client.TableServerInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.HealthMonitoringserver: + resultObject = Client.HealthMonitoringServerInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.MetricsServer: + resultObject = Client.MetricsServerInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.TableMaster: + resultObject = Client.TableMasterInstances.GetMetricDefinitions(ResourceGroupName, FarmName, InstanceId, filter); + break; + default: + throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, Resources.InvalidRoleTypeErrorMessageFormat, RoleType)); + } + + return resultObject; + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetrics.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetrics.cs new file mode 100644 index 000000000000..d5b409a7a0f5 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/GetRoleInstanceMetrics.cs @@ -0,0 +1,103 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + + +using System; +using System.Globalization; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminRoleInstanceMetric)] + public sealed class GetRoleInstanceMetrics : AdminMetricCmdlet + { + /// + /// farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// name of role + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public RoleType RoleType + { + get; + set; + } + + /// + /// instance identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 6)] + [ValidateNotNull] + public string InstanceId + { + get; + set; + } + + /// + /// + /// + /// + /// + protected override MetricsResult GetMetricsResult(string filter) + { + MetricsResult resultObject; + switch (RoleType) + { + case RoleType.AccountContainerserver: + resultObject = Client.AccountContainerServerInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.BlobFrontend: + resultObject = Client.BlobFrontendInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.TableFrontend: + resultObject = Client.TableFrontendInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.BlobServer: + resultObject = Client.BlobServerInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.TableServer: + resultObject = Client.TableServerInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.HealthMonitoringserver: + resultObject = Client.HealthMonitoringServerInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.MetricsServer: + resultObject = Client.MetricsServerInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + case RoleType.TableMaster: + resultObject = Client.TableMasterInstances.GetMetrics(ResourceGroupName, FarmName, InstanceId, filter); + break; + default: + throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, Resources.InvalidRoleTypeErrorMessageFormat, RoleType)); + } + return resultObject; + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RestartRoleInstance.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RestartRoleInstance.cs new file mode 100644 index 000000000000..07ec665fd2c1 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RestartRoleInstance.cs @@ -0,0 +1,111 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Globalization; +using System.Management.Automation; +using System.Net; +using Microsoft.Azure; +using Microsoft.AzureStack.Commands.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Restart-RoleInstance [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-RoleType] {enum} [-InstanceId] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsLifecycle.Restart, Nouns.AdminRoleInstance, SupportsShouldProcess = true)] + public sealed class RestartRoleInstance : AdminCmdlet + { + /// + /// farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNullOrEmpty] + public string FarmName + { + get; + set; + } + + /// + /// name of role + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public RoleType RoleType + { + get; + set; + } + + /// + /// instance identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNullOrEmpty] + public string InstanceId + { + get; + set; + } + + protected override void Execute() + { + if (ShouldProcess( + Resources.RestartRoleInstanceVerboseDescription.FormatInvariantCulture(InstanceId, RoleType), + Resources.RestartRoleInstanceVerboseWarning.FormatInvariantCulture(InstanceId, RoleType), + Resources.ShouldProcessCaption)) + { + AzureOperationResponse response; + switch (RoleType) + { + case RoleType.AccountContainerserver: + response = Client.AccountContainerServerInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + case RoleType.BlobFrontend: + response = Client.BlobFrontendInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + case RoleType.TableFrontend: + response = Client.TableFrontendInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + case RoleType.BlobServer: + response = Client.BlobServerInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + case RoleType.TableServer: + response = Client.TableServerInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + case RoleType.HealthMonitoringserver: + response = Client.HealthMonitoringServerInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + case RoleType.MetricsServer: + response = Client.MetricsServerInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + case RoleType.TableMaster: + response = Client.TableMasterInstances.Restart(ResourceGroupName, FarmName, InstanceId); + break; + default: + throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, Resources.InvalidRoleTypeErrorMessageFormat, RoleType)); + } + + if (response.StatusCode != HttpStatusCode.OK) + { + throw new AdminException(string.Format(CultureInfo.InvariantCulture, Resources.OperationFailedErrorMessage, response.StatusCode)); + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RoleInstanceSettingsPullNow.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RoleInstanceSettingsPullNow.cs new file mode 100644 index 000000000000..61e81d37c046 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/RoleInstanceSettingsPullNow.cs @@ -0,0 +1,105 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; +using System.Globalization; +using System.Management.Automation; +using Microsoft.AzureStack.Commands.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Update-RoleInstance [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-RoleType] {enum} [[-InstanceId] {string}] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsData.Update, Nouns.AdminRoleInstance, SupportsShouldProcess = true)] + public sealed class RoleInstanceSettingsPullNow : AdminCmdlet + { + /// + /// farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// name of role + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public RoleType RoleType { get; set; } + + /// + /// instance identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 6)] + [ValidateNotNull] + public string InstanceId { get; set; } + + + protected override void Execute() + { + if (ShouldProcess( + Resources.UpdateRoleInstanceSettingDescription.FormatInvariantCulture(InstanceId, RoleType), + Resources.UpdateRoleInstanceSettingWarning.FormatInvariantCulture(InstanceId, RoleType), + Resources.ShouldProcessCaption)) + { + object resultObject; + + switch (RoleType) + { + case RoleType.AccountContainerserver: + resultObject = Client.AccountContainerServerInstances.SettingsPullNow(ResourceGroupName, + FarmName, InstanceId); + break; + case RoleType.BlobFrontend: + resultObject = Client.BlobFrontendInstances.SettingsPullNow(ResourceGroupName, FarmName, + InstanceId); + break; + case RoleType.TableFrontend: + resultObject = Client.TableFrontendInstances.SettingsPullNow(ResourceGroupName, FarmName, + InstanceId); + break; + case RoleType.BlobServer: + resultObject = Client.BlobServerInstances.SettingsPullNow(ResourceGroupName, FarmName, + InstanceId); + break; + case RoleType.TableServer: + resultObject = Client.TableServerInstances.SettingsPullNow(ResourceGroupName, FarmName, + InstanceId); + break; + case RoleType.HealthMonitoringserver: + resultObject = Client.HealthMonitoringServerInstances.SettingsPullNow(ResourceGroupName, + FarmName, InstanceId); + break; + case RoleType.MetricsServer: + resultObject = Client.MetricsServerInstances.SettingsPullNow(ResourceGroupName, FarmName, + InstanceId); + break; + case RoleType.TableMaster: + resultObject = Client.TableMasterInstances.SettingsPullNow(ResourceGroupName, FarmName, + InstanceId); + break; + default: + throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, + Resources.InvalidRoleTypeErrorMessageFormat, RoleType)); + } + WriteObject(resultObject, true); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StartBlobServerRoleInstance.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StartBlobServerRoleInstance.cs new file mode 100644 index 000000000000..9c3991b97858 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StartBlobServerRoleInstance.cs @@ -0,0 +1,71 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; +using System.Globalization; +using System.Management.Automation; +using System.Net; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Start-BlobServerRoleInstance [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-InstanceId] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsLifecycle.Start, Nouns.AdminBlobServerRoleInstance, SupportsShouldProcess = true)] + public sealed class StartBlobServerRoleInstance : AdminCmdlet + { + /// + /// farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNullOrEmpty] + public string FarmName + { + get; + set; + } + + /// + /// instance identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNullOrEmpty] + public string InstanceId + { + get; + set; + } + + protected override void Execute() + { + if (ShouldProcess( + Resources.StartBlobServerRoleInstanceVerboseDescription.FormatInvariantCulture(InstanceId), + Resources.StartBlobServerRoleInstanceVerboseWarning.FormatInvariantCulture(InstanceId), + Resources.ShouldProcessCaption)) + { + var response = Client.BlobServerInstances.Start(ResourceGroupName, FarmName, InstanceId); + + if (response.StatusCode != HttpStatusCode.OK) + { + throw new AdminException(string.Format(CultureInfo.InvariantCulture, Resources.OperationFailedErrorMessage, response.StatusCode)); + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StopBlobServerRoleInstance.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StopBlobServerRoleInstance.cs new file mode 100644 index 000000000000..4cea201af4fe --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/RoleInstance/StopBlobServerRoleInstance.cs @@ -0,0 +1,71 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; +using System.Globalization; +using System.Management.Automation; +using System.Net; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Stop-BlobServerRoleInstance [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-InstanceId] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsLifecycle.Stop, Nouns.AdminBlobServerRoleInstance, SupportsShouldProcess = true)] + public sealed class StopBlobServerRoleInstance : AdminCmdlet + { + /// + /// farm identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNullOrEmpty] + public string FarmName + { + get; + set; + } + + /// + /// instance identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNullOrEmpty] + public string InstanceId + { + get; + set; + } + + protected override void Execute() + { + if (ShouldProcess( + Resources.StopBlobServerRoleInstanceVerboseDescription.FormatInvariantCulture(InstanceId), + Resources.StopBlobServerRoleInstanceVerboseWarning.FormatInvariantCulture(InstanceId), + Resources.ShouldProcessCaption)) + { + var response = Client.BlobServerInstances.Stop(ResourceGroupName, FarmName, InstanceId); + if (response.StatusCode != HttpStatusCode.OK) + { + throw new AdminException(string.Format(CultureInfo.InvariantCulture, + Resources.OperationFailedErrorMessage, response.StatusCode)); + } + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobService.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobService.cs new file mode 100644 index 000000000000..a9b2012e011d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobService.cs @@ -0,0 +1,45 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-BlobService [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminBlobService)] + public sealed class GetBlobService : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + + protected override void Execute() + { + BlobServiceGetResponse result = Client.BlobService.Get(ResourceGroupName, FarmName); + WriteObject(new BlobServiceResponse(result.Resource)); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetricDefinitions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetricDefinitions.cs new file mode 100644 index 000000000000..9ead00633ef7 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetricDefinitions.cs @@ -0,0 +1,44 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminBlobServiceMetricDefinition)] + public sealed class GetBlobServiceMetricDefinitions : AdminMetricDefinitionCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricDefinitionsResult GetMetricDefinitionsResult(string filter) + { + return Client.BlobService.GetMetricDefinitions(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetrics.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetrics.cs new file mode 100644 index 000000000000..d4aa9fd5dc5e --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetBlobServiceMetrics.cs @@ -0,0 +1,44 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminBlobServiceMetric)] + public sealed class GetBlobServiceMetrics : AdminMetricCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricsResult GetMetricsResult(string filter) + { + return Client.BlobService.GetMetrics(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementService.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementService.cs new file mode 100644 index 000000000000..09bfa559c67d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementService.cs @@ -0,0 +1,45 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-ManagementService [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminManagementService)] + public sealed class GetManagementService : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + + protected override void Execute() + { + ManagementServiceGetResponse result = Client.ManagementService.Get(ResourceGroupName, FarmName); + WriteObject(new ManagementServiceResponse(result.Resource)); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetricDefinitions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetricDefinitions.cs new file mode 100644 index 000000000000..d7adb09560d4 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetricDefinitions.cs @@ -0,0 +1,44 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminManagementServiceMetricDefinition)] + public sealed class GetManagementServiceMetricDefinitions : AdminMetricDefinitionCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricDefinitionsResult GetMetricDefinitionsResult(string filter) + { + return Client.ManagementService.GetMetricDefinitions(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetrics.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetrics.cs new file mode 100644 index 000000000000..3cfb4c677b6c --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetManagementServiceMetrics.cs @@ -0,0 +1,43 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminManagementServiceMetric)] + public sealed class GetManagementServiceMetrics : AdminMetricCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricsResult GetMetricsResult(string filter) + { + return Client.ManagementService.GetMetrics(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableService.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableService.cs new file mode 100644 index 000000000000..90a822b83378 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableService.cs @@ -0,0 +1,45 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-TableService [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminTableService)] + public sealed class GetTableService : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + + protected override void Execute() + { + TableServiceGetResponse result = Client.TableService.Get(ResourceGroupName, FarmName); + WriteObject(new TableServiceResponse(result.Resource)); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetricDefinitions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetricDefinitions.cs new file mode 100644 index 000000000000..853faae6cbdb --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetricDefinitions.cs @@ -0,0 +1,44 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminTableServiceMetricDefinition)] + public sealed class GetTableServiceMetricDefinitions : AdminMetricDefinitionCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricDefinitionsResult GetMetricDefinitionsResult(string filter) + { + return Client.TableService.GetMetricDefinitions(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetrics.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetrics.cs new file mode 100644 index 000000000000..72334fea4e5d --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/GetTableServiceMetrics.cs @@ -0,0 +1,44 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminTableServiceMetric)] + public sealed class GetTableServiceMetrics : AdminMetricCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricsResult GetMetricsResult(string filter) + { + return Client.TableService.GetMetrics(ResourceGroupName, FarmName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetBlobService.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetBlobService.cs new file mode 100644 index 000000000000..83778a65cbd7 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetBlobService.cs @@ -0,0 +1,114 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Set, Nouns.AdminBlobService, SupportsShouldProcess = true)] + public sealed class SetBlobService : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + + /// + /// CpuBasedKeepAliveThrottlingEnabled + /// + [Parameter] + [SettingField] + public bool? FrontEndCpuBasedKeepAliveThrottlingEnabled + { + get; + set; + } + + + /// + /// MemoryThrottlingEnabled + /// + [Parameter] + [SettingField] + public bool? FrontEndMemoryThrottlingEnabled + { + get; + set; + } + + /// + /// ContainerGcInterval + /// + [Parameter] + [SettingField] + public int? BlobSvcContainerGcInterval + { + get; + set; + } + + /// + /// ShallowGcInterval + /// + [Parameter] + [SettingField] + public int? BlobSvcShallowGcInterval + { + get; + set; + } + + /// + /// StreamMapMinContainerOccupancyPercent + /// + [Parameter] + [SettingField] + public int? BlobSvcStreamMapMinContainerOccupancyPercent + { + get; + set; + } + + protected override void Execute() + { + string confirmString; + BlobServiceWritableSettings settings = Tools.ToSettingsObject(this, out confirmString); + + if (ShouldProcess( + Resources.SetServiceDescription.FormatInvariantCulture(Resources.BlobService, confirmString), + Resources.SetServiceWarning.FormatInvariantCulture(Resources.BlobService, confirmString), + Resources.ShouldProcessCaption)) + { + BlobServiceGetResponse result = Client.BlobService.Patch(ResourceGroupName, FarmName, new BlobServicePatchParameters + { + BlobService = new BlobServiceRequest + { + Settings = settings + } + }); + WriteObject(new BlobServiceResponse(result.Resource)); + } + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetManagementService.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetManagementService.cs new file mode 100644 index 000000000000..2fa5d953035a --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetManagementService.cs @@ -0,0 +1,71 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Set, Nouns.AdminManagementService, SupportsShouldProcess = true)] + public sealed class SetManagementService : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// WacContainerGcFullScanIntervalInSeconds + /// + [Parameter] + [SettingField] + public int? WacContainerGcFullScanIntervalInSeconds { get; set; } + + /// + /// WacAccountGcFullScanIntervalInSeconds + /// + [Parameter] + [SettingField] + public int? WacAccountGcFullScanIntervalInSeconds { get; set; } + + protected override void Execute() + { + string confirmString; + ManagementServiceWritableSettings settings = Tools.ToSettingsObject(this, out confirmString); + if (ShouldProcess( + Resources.SetServiceDescription.FormatInvariantCulture(Resources.ManagementService, confirmString), + Resources.SetServiceWarning.FormatInvariantCulture(Resources.ManagementService, confirmString), + Resources.ShouldProcessCaption)) + { + ManagementServiceGetResponse result = Client.ManagementService.Patch(ResourceGroupName, FarmName, + new ManagementServicePatchParameters + { + ManagementService = new ManagementServiceRequest + { + Settings = settings + } + }); + WriteObject(new ManagementServiceResponse(result.Resource)); + } + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetTableService.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetTableService.cs new file mode 100644 index 000000000000..d665d4893e15 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Service/SetTableService.cs @@ -0,0 +1,69 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Set, Nouns.AdminTableService, SupportsShouldProcess = true)] + public sealed class SetTableService : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// CpuBasedKeepAliveThrottlingEnabled + /// + [Parameter] + [SettingField] + public bool? FrontEndCpuBasedKeepAliveThrottlingEnabled { get; set; } + + /// + /// MemoryThrottlingEnabled + /// + [Parameter] + [SettingField] + public bool? FrontEndMemoryThrottlingEnabled { get; set; } + + protected override void Execute() + { + string confirmString; + TableServiceWritableSettings settings = Tools.ToSettingsObject(this, out confirmString); + if (ShouldProcess( + Resources.SetServiceDescription.FormatInvariantCulture(Resources.TableService, confirmString), + Resources.SetServiceWarning.FormatInvariantCulture(Resources.TableService, confirmString), + Resources.ShouldProcessCaption)) + { + TableServiceGetResponse result = Client.TableService.Patch(ResourceGroupName, FarmName, + new TableServicePatchParameters + { + TableService = new TableServiceRequest + { + Settings = settings + } + }); + WriteObject(new TableServiceResponse(result.Resource)); + } + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/SettingFieldAttribute.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/SettingFieldAttribute.cs new file mode 100644 index 000000000000..124db76eaad2 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/SettingFieldAttribute.cs @@ -0,0 +1,27 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Setting Field Attribute + /// + [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)] + public sealed class SettingFieldAttribute : Attribute + { + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShare.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShare.cs new file mode 100644 index 000000000000..ee31b1cce63f --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShare.cs @@ -0,0 +1,69 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Linq; +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// get shares + /// + /// SYNTAX + /// Get-Share [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-ShareName] {string} [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminShare)] + public sealed class GetAdminShare : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string FarmName + { + get; + set; + } + + /// + /// + [Parameter(ValueFromPipelineByPropertyName = true)] + [ValidateNotNullOrEmpty] + public string ShareName + { + get; + set; + } + + protected override void Execute() + { + if (string.IsNullOrEmpty(ShareName)) + { + var shares = Client.Shares.List(ResourceGroupName, FarmName); + + WriteObject(shares.Shares.Select(_=>new ShareResponse(_)), true); + } + else + { + var share = Client.Shares.Get(ResourceGroupName, FarmName, ShareName); + + WriteObject(new ShareResponse(share.Share)); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetricDefinitions.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetricDefinitions.cs new file mode 100644 index 000000000000..63d2a6bbd33a --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetricDefinitions.cs @@ -0,0 +1,62 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-ShareMetricDefinition [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [-ShareName] {string} [[-MetricNames] {string[]}] [ {CommonParameters}] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminShareMetricDefinition)] + public sealed class GetShareMetricDefinitions : AdminMetricDefinitionCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string FarmName + { + get; + set; + } + + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true)] + [ValidateNotNull] + public string ShareName + { + get; + set; + } + + /// + /// + /// + /// + /// + protected override MetricDefinitionsResult GetMetricDefinitionsResult(string filter) + { + return Client.Shares.GetMetricDefinitions(ResourceGroupName, FarmName, ShareName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetrics.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetrics.cs new file mode 100644 index 000000000000..434a9f3b5505 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Share/GetShareMetrics.cs @@ -0,0 +1,50 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminShareMetric)] + public sealed class GetShareMetric : AdminMetricCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// share name + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 8)] + public string ShareName { get; set; } + + /// + /// + /// + /// + /// + protected override MetricsResult GetMetricsResult(string filter) + { + return Client.Shares.GetMetrics(ResourceGroupName, FarmName, ShareName, filter); + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/GetStorageAccountWithAdminInfo.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/GetStorageAccountWithAdminInfo.cs new file mode 100644 index 000000000000..e846e9f4342f --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/GetStorageAccountWithAdminInfo.cs @@ -0,0 +1,107 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Globalization; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Get-StorageAccountsWithAdminInfo [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [[-TenantSubscriptionId] {string}] [[-StorageAccountName] {string}] + /// [[-StorageAccountStatus] {int}] [[-AccountId] {long}] [-Summary]] + /// + /// + [Cmdlet(VerbsCommon.Get, Nouns.AdminStorageAccount, DefaultParameterSetName = ListAccountsParamSet)] + public sealed class GetStorageAccountsWithAdminInfo : AdminCmdlet + { + const string ListAccountsParamSet = "ListMultipleAccounts"; + const string GetSingleAccountParamSet = "GetSingleAccount"; + + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// Tenant Subscription Id + /// + [Parameter(Mandatory = false, Position = 5, ParameterSetName = ListAccountsParamSet)] + public string TenantSubscriptionId { get; set; } + + /// + /// Storage Account Name + /// + [Parameter(Mandatory = false, Position = 6, ParameterSetName = ListAccountsParamSet)] + public string PartialAccountName { get; set; } + + /// + /// Storage Account Status + /// + [Parameter(Mandatory = false, Position = 7, ParameterSetName = ListAccountsParamSet)] + public int? StorageAccountStatus { get; set; } + + /// + /// Storage Account AccountId + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 8, ParameterSetName = GetSingleAccountParamSet)] + public long AccountId { get; set; } + + /// + /// Only need return summary information if not specified + /// + [Parameter(Mandatory = false, Position = 9)] + public SwitchParameter Detail { get; set; } + + protected override void Execute() + { + List> filters = new List>(); + + switch (ParameterSetName) + { + case GetSingleAccountParamSet: + filters.Add(new KeyValuePair(StorageAccountSearchFilterParameter.VersionedAccountName, AccountId.ToString(CultureInfo.InvariantCulture))); + break; + case ListAccountsParamSet: + if (TenantSubscriptionId != null) + filters.Add(new KeyValuePair(StorageAccountSearchFilterParameter.TenantSubscriptionId, TenantSubscriptionId)); + if (PartialAccountName != null) + filters.Add(new KeyValuePair(StorageAccountSearchFilterParameter.PartialAccountName, PartialAccountName)); + if (StorageAccountStatus.HasValue == true) + filters.Add(new KeyValuePair(StorageAccountSearchFilterParameter.StorageAccountStatus, StorageAccountStatus.Value.ToString(CultureInfo.InvariantCulture))); + break; + } + string filter = Tools.GenerateStorageAccountsSearchFilter(filters); + var response = Client.StorageAccounts.List(ResourceGroupName, FarmName, filter, !Detail.IsPresent); + if (response.StatusCode == System.Net.HttpStatusCode.OK) + { + List adminViewList = new List(); + foreach (StorageAccountModel model in response.StorageAccounts) + { + adminViewList.Add(new StorageAccountResponse(model, FarmName)); + } + WriteObject(adminViewList, true); + } + else + WriteObject(response, true); + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/SyncStorageAccount.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/SyncStorageAccount.cs new file mode 100644 index 000000000000..7802373ad199 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/SyncStorageAccount.cs @@ -0,0 +1,98 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; +using System.Globalization; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Sync-StorageAccount [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-AccountName] {string} [-ResourceLocation] {string} [-TenantSubscriptionId] {string} + /// + /// + [Cmdlet(VerbsData.Sync, Nouns.AdminStorageAccount, SupportsShouldProcess = true)] + public sealed class SyncStorageAccount : AdminCmdlet + { + /// + /// Storage Account Name + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string TenantAccountName { get; set; } + + /// + /// Tenant Subscription Id + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + [ValidateNotNull] + public string TenantSubscriptionId { get; set; } + + /// + /// Resource Location + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 6)] + [ValidateNotNull] + public string Location { get; set; } + + /// + /// Tenant Resource Group + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 7)] + [ValidateNotNull] + public string TenantResourceGroup { get; set; } + + /// + /// Specify storage account api version whic resource was created with + /// + [Parameter(Mandatory = false, Position = 8)] + public string StorageAccountApiVersion { get; set; } + + + internal static string DefaultStorageAccountApiVersion = "2015-06-15"; + internal static string SyncTargetOperation = "Create"; + + internal static string BuildSyncTargetId(string tenantSubscriptionId, string resourceGroupName, string accountName) + { + return "/subscriptions/" + tenantSubscriptionId + "/resourcegroups/" + resourceGroupName + "/providers/Microsoft.Storage/storageAccounts/" + accountName; + } + + protected override void Execute() + { + StorageAccountSyncRequest req = new StorageAccountSyncRequest(); + + if (StorageAccountApiVersion == null) + StorageAccountApiVersion = DefaultStorageAccountApiVersion; + req.ApiVersion = StorageAccountApiVersion; + req.TargetOperaton = SyncTargetOperation; + req.ResourceLocation = Location; + req.Id = BuildSyncTargetId(TenantSubscriptionId, TenantResourceGroup, TenantAccountName); + + WriteObject(req, true); + + if (ShouldProcess( + string.Format(CultureInfo.InvariantCulture, Resources.StorageAccount, req.Id), + string.Format(CultureInfo.InvariantCulture, Resources.SyncOperation))) + { + StorageAccountSyncResponse syncResponse = Client.StorageAccounts.Sync(TenantSubscriptionId, TenantResourceGroup, req); + WriteObject(syncResponse, true); + + WriteWarning(Resources.WaitAfterArmSync); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/UndeleteStorageAccount.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/UndeleteStorageAccount.cs new file mode 100644 index 000000000000..553f7d8262d0 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/StorageAccount/UndeleteStorageAccount.cs @@ -0,0 +1,103 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System.Management.Automation; +using Microsoft.AzureStack.Management.StorageAdmin; +using Microsoft.AzureStack.Management.StorageAdmin.Models; +using System.Globalization; +using System; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// SYNTAX + /// Undo-StorageAccountDeletion [-SubscriptionId] {string} [-Token] {string} [-AdminUri] {Uri} [-ResourceGroupName] {string} + /// [-SkipCertificateValidation] [-FarmName] {string} [[-AccountId] {long}] [[-NewAccountName] {string}] [-TenantSubscriptionId] {string} [-Sync] {bool} [-ResourceLocation] {string} + /// + /// + [Cmdlet(VerbsCommon.Undo, Nouns.AdminStorageAccountDeletion, SupportsShouldProcess = true)] + public sealed class UndeleteStorageAccount : AdminCmdlet + { + /// + /// Farm Identifier + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 4)] + [ValidateNotNull] + public string FarmName { get; set; } + + /// + /// Storage Account Name + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, Position = 5)] + public long AccountId { get; set; } + + /// + /// Storage Account Name + /// + [Parameter(Mandatory = false, Position = 6)] + public string NewAccountName { get; set; } + + /// + /// Specify storage account api version whic resource was created with + /// + [Parameter(Mandatory = false, Position = 7)] + public string StorageAccountApiVersion { get; set; } + + protected override void Execute() + { + StorageAccountUndeleteParameters undeleteParam = new StorageAccountUndeleteParameters + { + NewAccountName = NewAccountName + }; + if (ShouldProcess( + string.Format(CultureInfo.InvariantCulture, Resources.StorageAccountAdminView, AccountId), + string.Format(CultureInfo.InvariantCulture, Resources.UndeleteOperation))) + { + var response = Client.StorageAccounts.Undelete(ResourceGroupName, FarmName, AccountId.ToString(CultureInfo.InvariantCulture), undeleteParam); + if (response.StatusCode != System.Net.HttpStatusCode.OK) + { + throw new ApplicationException(String.Format(CultureInfo.InvariantCulture, Resources.FailedToUndeleteAccount)); + } + + // get recovered account to set parameters for resource sync + WriteVerbose(Resources.RetrieveUndeletedStorageAccount); + StorageAccountListResponse accounts = Client.StorageAccounts.List(ResourceGroupName, FarmName, "{versionedaccountname eq '" + AccountId + "'}", true); + if (accounts.StatusCode != System.Net.HttpStatusCode.OK || + accounts.StorageAccounts.Count == 0 || + accounts.StorageAccounts[0].Properties == null || + accounts.StorageAccounts[0].Properties.TenantSubscriptionId.Equals(Guid.Empty) == true || + accounts.StorageAccounts[0].Properties.TenantViewId == null || + accounts.StorageAccounts[0].Properties.TenantResourceGroupName == null || + accounts.StorageAccounts[0].Location == null) + { + throw new ApplicationException(String.Format(CultureInfo.InvariantCulture, Resources.FailedToGetAccount)); + } + + // trigger resource sync + WriteVerbose(Resources.TriggerResourceSync); + StorageAccountSyncRequest req = new StorageAccountSyncRequest(); + if (StorageAccountApiVersion == null) + StorageAccountApiVersion = SyncStorageAccount.DefaultStorageAccountApiVersion; + req.ApiVersion = StorageAccountApiVersion; + req.TargetOperaton = SyncStorageAccount.SyncTargetOperation; + req.ResourceLocation = accounts.StorageAccounts[0].Location; + req.Id = accounts.StorageAccounts[0].Properties.TenantViewId; + + Client.StorageAccounts.Sync(accounts.StorageAccounts[0].Properties.TenantSubscriptionId.ToString(), accounts.StorageAccounts[0].Properties.TenantResourceGroupName, req); + + WriteWarning(Resources.WaitAfterArmSync); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Tools.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Tools.cs new file mode 100644 index 000000000000..38e91888c0f4 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Tools.cs @@ -0,0 +1,142 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Reflection; +using System.Xml; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + internal static class Tools + { + private static readonly string filterParameterSeperator = " and "; + + private static readonly string filterParameterConditionEqual = " eq "; + + public static TSettings ToSettingsObject(TCmdlet cmd, out string confirmString) where TSettings: new() + { + List updatedSettingStrings = new List(); + TSettings ret = new TSettings(); + foreach (PropertyInfo propertyInfo in typeof (TCmdlet).GetProperties().Where(_=>_.GetCustomAttributes(typeof(SettingFieldAttribute)).Any())) + { + var settingValue = propertyInfo.GetValue(cmd); + if (settingValue != null) + { + PropertyInfo propertyInfoInSettings = typeof(TSettings).GetProperty(propertyInfo.Name, BindingFlags.Public | BindingFlags.Instance); + if (propertyInfoInSettings == null) + { + throw new ArgumentException(String.Format(CultureInfo.InvariantCulture, "Setting key '{0}' is not valid.", propertyInfo.Name)); + } + propertyInfoInSettings.SetValue(ret, settingValue); + updatedSettingStrings.Add(Resources.SetServiceSettingParameter.FormatInvariantCulture(propertyInfo.Name, settingValue)); + } + } + confirmString = string.Join("", updatedSettingStrings); + return ret; + } + + public static string GenerateFilter(string[] metricNames) + { + string filter = string.Empty; + + if (metricNames != null && metricNames.Any()) + { + List conditions = metricNames.Select(_ => ("name.value eq '" + _ + "'")).ToList(); + + if (conditions.Count > 1) + { + filter = conditions.Aggregate((a, b) => a + " or " + b); + } + else if (conditions.Count == 1) + { + filter = conditions[0]; + } + } + + return filter; + } + + public static string GenerateFilter(string[] metricNames, DateTime startTime, DateTime endTime, + TimeGrain timeGrain = TimeGrain.Daily) + { + List filters = new List(); + + if (metricNames != null && metricNames.Any()) + { + List conditions = metricNames.Select(_ => ("name.value eq '" + _ + "'")).ToList(); + + if (conditions.Count > 1) + { + string nameFilter = conditions.Aggregate((a, b) => a + " or " + b); + nameFilter = "(" + nameFilter + ")"; + filters.Add(nameFilter); + } + else if (conditions.Count == 1) + { + filters.Add(conditions[0]); + } + } + string startTimeFilter = string.Format(CultureInfo.InvariantCulture, "startTime eq '{0:O}'", startTime.ToUniversalTime()); + + filters.Add(startTimeFilter); + + string endTimeFilter = string.Format(CultureInfo.InvariantCulture, "endTime eq '{0:O}'", endTime.ToUniversalTime()); + + filters.Add(endTimeFilter); + + string timeGrainFilter; + + switch (timeGrain) + { + case TimeGrain.Hourly: + timeGrainFilter = XmlConvert.ToString(TimeSpan.FromHours(1)); + break; + case TimeGrain.Minutely: + timeGrainFilter = XmlConvert.ToString(TimeSpan.FromMinutes(1)); + break; + default: + timeGrainFilter = XmlConvert.ToString(TimeSpan.FromDays(1)); + break; + } + + timeGrainFilter = string.Format(CultureInfo.InvariantCulture, "timeGrain eq '{0}'", timeGrainFilter); + + filters.Add(timeGrainFilter); + + string filter = filters.Aggregate((a, b) => a + " and " + b); + + return filter; + } + + public static string GenerateStorageAccountsSearchFilter(List> filters) + { + string ret = string.Empty; + for (int i = 0; i < filters.Count; i++) + { + if (i != 0) + ret += filterParameterSeperator; + ret += filters[i].Key.ToString(); + ret += filterParameterConditionEqual; + ret += "'"; + ret += filters[i].Value; + ret += "'"; + } + return ret; + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateAbsoluteUri.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateAbsoluteUri.cs new file mode 100644 index 000000000000..4da10913e1ca --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateAbsoluteUri.cs @@ -0,0 +1,52 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + + +using System; +using System.Management.Automation; + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + /// + /// Validation for URI parameters in cmdlets + /// + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public sealed class ValidateAbsoluteUri : ValidateArgumentsAttribute + { + /// + /// Do the validation + /// + /// The args + /// The intrinsics + protected override void Validate(object arguments, EngineIntrinsics engineIntrinsics) + { + if (arguments == null) + { + return; + } + + var uri = arguments as Uri; + + if (uri == null) + { + throw new ValidationMetadataException(Resources.ValidateAbsoluteUriWrongType); + } + + if (!uri.IsAbsoluteUri) + { + throw new ValidationMetadataException(Resources.ValidateAbsoluteUriNotAbsolute); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateUnc.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateUnc.cs new file mode 100644 index 000000000000..5cb5ed7fac6a --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Validation/ValidateUnc.cs @@ -0,0 +1,43 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; + + +namespace Microsoft.AzureStack.Commands.StorageAdmin +{ + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class ValidateUnc : ValidateArgumentsAttribute + { + protected override void Validate(object arguments, EngineIntrinsics engineIntrinsics) + { + if (arguments == null) + { + return; + } + var uri = arguments as Uri; + + if (uri == null) + { + throw new ValidationMetadataException(Resources.ValidateUncWrongType); + } + + if (uri.IsUnc == false) + { + throw new ValidationMetadataException(Resources.ValidateUncWrongType); + } + } + } +} diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config new file mode 100644 index 000000000000..2f5c06dc73da --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/NuGet.Config b/src/ResourceManager/AzureStackStorage/NuGet.Config new file mode 100644 index 000000000000..2de911013532 --- /dev/null +++ b/src/ResourceManager/AzureStackStorage/NuGet.Config @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 index 2f6765349c16..691e190fce38 100644 --- a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 +++ b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 @@ -114,7 +114,8 @@ NestedModules = @( '.\AzureRM.DataLakeAnalytics', '.\AzureRM.DataLakeStore', '.\AzureRM.Intune', - '.\AzureRM.RecoveryServices' + '.\AzureRM.RecoveryServices', + '.\AzureRM.AzureStackStorage' ) # Functions to export from this module From 27cafb2b180514bd21378b314afbcdeeff19a385 Mon Sep 17 00:00:00 2001 From: "Eric Dai (JI)" Date: Thu, 28 Jan 2016 04:24:56 -0800 Subject: [PATCH 08/27] remove local temp files commit by mistake --- .../AzureRM.AzureStackStorage.Help.final.xml | 10970 ---------------- ...reRM.AzureStackStorage.Help.no.example.xml | 10353 --------------- .../AzureRM.AzureStackStorage.Help.pshproj | 5156 -------- 3 files changed, 26479 deletions(-) delete mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml delete mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml delete mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml deleted file mode 100644 index 4e181b7c7b00..000000000000 --- a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.final.xml +++ /dev/null @@ -1,10970 +0,0 @@ - - - - - Add-ACSFarm - - Register a new provisioned ACS farm. - - - - - Add - ACSFarm - - - - After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. - - - - Add-ACSFarm - - FarmName - - - - String - - - SettingAccessString - - - - String - - - Location - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SettingAccessString - - - - String - - String - - - - - - Location - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -Add-ACSFarm -ResourceGroupName $resourceGroup -FarmName 'YourNameFarmName' -Location 'YourLocation' - - - - - - - - - - - - - - - - - - - - - - Disable-ACSNode - - Disable a particular node from service fabric cluster. - - - - - Disable - ACSNode - - - - Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. - - - - Disable-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -Disable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' - - - - - - - - - - - - - - - - - - - - - - Enable-ACSNode - - Enable a particular node in the service fabric cluster. - - - - - Enable - ACSNode - - - - Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. - - - - Enable-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -Eable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobService - - Retrieve the status and settings of blob service - - - - - Get - ACSBlobService - - - - Retrieve the status and settings of blob service - - - - Get-ACSBlobService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobServiceMetric - - Retrieve the metrics of blob service - - - - - Get - ACSBlobServiceMetric - - - - Retrieve the metrics of blob service - - - - Get-ACSBlobServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobServiceMetricDefinition - - Retrieve the metric definitions of blob service - - - - - Get - ACSBlobServiceMetricDefinition - - - - Retrieve the metric definitions of blob service - - - - Get-ACSBlobServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSEventQuery - - Returns a query object, which could be used as the input parameter for Get-ACSEvent. - - - - - Get - ACSEventQuery - - - - This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. - - - - Get-ACSEventQuery - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - Node - - - - String - - - ResourceUri - - - - String - - - ProviderGuid - - - - Nullable`1[Guid] - - - EventId - - - - Int32[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - Node - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - ProviderGuid - - - - Nullable`1[Guid] - - Nullable`1[Guid] - - - - - - EventId - - - - Int32[] - - Int32[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -$endtime=get-date -$starttime=$endtime.addminutes(-10) - -Get-ACSEventQuery -FarmId $farm.Name -ResourceGroupName $resourceGroup -StartTime $starttime - -EndTime $endtime - - - - - - - - - - - - - - - - - - - - - - Get-ACSEvents - - List the events in the Azure Consistent Storage system. - - - - - Get - ACSEvents - - - - This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. - - - - Get-ACSEvents - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - Node - - - - String - - - ResourceUri - - - - String - - - ProviderGuid - - - - Guid - - - EventId - - - - Int32[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSEvents - - EventQuery - - - - EventQuery - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - Node - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - ProviderGuid - - - - Guid - - Guid - - - - - - EventId - - - - Int32[] - - Int32[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - EventQuery - - - - EventQuery - - EventQuery - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSEvents -startTime $startTime -endtime $endtime -FarmName $farm -ResourceGroupName $resourceGroup - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarm - - Retrieve the Azure-consistent Storage Farm and its properties and settings. - - - - - Get - ACSFarm - - - - Retrieve the Azure-consistent Storage Farm and its properties and settings. - - - - Get-ACSFarm - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -Get-ACSFarm -ResourceGroupName $resourceGroup - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarmMetric - - Retrieve the metrics of ACS farm - - - - - Get - ACSFarmMetric - - - - Retrieve the metrics of ACS farm - - - - Get-ACSFarmMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarmMetricDefinition - - Retrieve the metric definitions of ACS farm - - - - - Get - ACSFarmMetricDefinition - - - - Retrieve the metric definitions of ACS farm - - - - Get-ACSFarmMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFault - - List faults in the Azure Consistent Storage system. - - - - - Get - ACSFault - - - - This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: -The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. -GetHistoryFaults returns a list of active fault objects within specified time range. -GetFault returns one fault object with the specified fault ID. - - - - Get-ACSFault - - FarmName - - - - String - - - ResourceUri - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSFault - - FarmName - - - - String - - - FaultId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSFault - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - FaultId - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementService - - Retrieve running status and settings of management service. - - - - - Get - ACSManagementService - - - - Retrieve running status and settings of management service. - - - - Get-ACSManagementService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementServiceMetric - - Retrieve the metrics of management service - - - - - Get - ACSManagementServiceMetric - - - - Retrieve the metrics of management service - - - - Get-ACSManagementServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementServiceMetricDefinition - - Retrieve the metric definitions of management service - - - - - Get - ACSManagementServiceMetricDefinition - - - - Retrieve the metric definitions of management service - - - - Get-ACSManagementServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNode - - Get a list of nodes in Azure Consistent Storage. - - - - - Get - ACSNode - - - - Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. - - - - Get-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSNode -ResourceGroupName $resourceGroup -FarmName $farm.Name - - - - - - - - - - - - - - - - - - - - - - Get-ACSNodeMetric - - Retrieve the metrics of a node - - - - - Get - ACSNodeMetric - - - - Retrieve the metrics of a node - - - - Get-ACSNodeMetric - - FarmName - - - - String - - - NodeName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNodeMetricDefinition - - Retrieve the metric definitions of node - - - - - Get - ACSNodeMetricDefinition - - - - Retrieve the metric definitions of node - - - - Get-ACSNodeMetricDefinition - - FarmName - - - - String - - - NodeName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstance - - Get a list of a specific type of role instances. - - - - - Get - ACSRoleInstance - - - - Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. - - - - Get-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend - - - - - - - - - - - - - - - - -------------------------- Example 2 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstanceMetric - - Retrieve the metrics of a role instance - - - - - Get - ACSRoleInstanceMetric - - - - Retrieve the metrics of a role instance - - - - Get-ACSRoleInstanceMetric - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstanceMetricDefinition - - Retrieve the metric definitions of role instance - - - - - Get - ACSRoleInstanceMetricDefinition - - - - Retrieve the metric definitions of role instance - - - - Get-ACSRoleInstanceMetricDefinition - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShare - - Get list of SMB shares used in the Azure Consistent Storage system. - - - - - Get - ACSShare - - - - Get list of SMB shares used in the Azure Consistent Storage system. - - - - Get-ACSShare - - FarmName - - - - String - - - ShareName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ShareName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSShare -ResourceGroupName $resourceGroup -FarmName $farm.Name -ShareName 'YourShareName' - - - - - - - - - - - - - - - - - - - - - - Get-ACSShareMetric - - Retrieve the metrics of a share - - - - - Get - ACSShareMetric - - - - Retrieve the metrics of a share - - - - Get-ACSShareMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - ShareName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - ShareName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShareMetricDefinition - - Retrieve the metric definitions of share - - - - - Get - ACSShareMetricDefinition - - - - Retrieve the metric definitions of share - - - - Get-ACSShareMetricDefinition - - FarmName - - - - String - - - ShareName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ShareName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSStorageAccount - - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - - - - - Get - ACSStorageAccount - - - - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - - - - Get-ACSStorageAccount - - FarmName - - - - String - - - TenantSubscriptionId - - - - String - - - PartialAccountName - - - - String - - - StorageAccountStatus - - - - Nullable`1[Int32] - - - Detail - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSStorageAccount - - FarmName - - - - String - - - AccountId - - - - Int64 - - - Detail - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - TenantSubscriptionId - - - - String - - String - - - - - - PartialAccountName - - - - String - - String - - - - - - StorageAccountStatus - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - Detail - - - - SwitchParameter - - SwitchParameter - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - AccountId - - - - Int64 - - Int64 - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSStorageAccount -ResourceGroupName $resourceGroup -FarmName $farm.Name -PartialAccountName ‘YourStorageAccountName’ - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableService - - Get status and settings of table service. - - - - - Get - ACSTableService - - - - Get status and settings of table service. - - - - Get-ACSTableService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableServiceMetric - - Retrieve the metrics of table service - - - - - Get - ACSTableServiceMetric - - - - Retrieve the metrics of table service - - - - Get-ACSTableServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableServiceMetricDefinition - - Retrieve the metric definitions of table service - - - - - Get - ACSTableServiceMetricDefinition - - - - Retrieve the metric definitions of table service - - - - Get-ACSTableServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invoke-ACSLogCollect - - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. - - - - - Invoke - ACSLogCollect - - - - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. - - - - Invoke-ACSLogCollect - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - UserName - - - - String - - - Password - - - - String - - - LogPrefix - - - - String - - - AzureStorageContainer - - - - String - - - AzureStorageAccountName - - - - String - - - AzureStorageAccountKey - - - - String - - - AzureSasToken - - - - String - - - TargetShareFolder - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - UserName - - - - String - - String - - - - - - Password - - - - String - - String - - - - - - LogPrefix - - - - String - - String - - - - - - AzureStorageContainer - - - - String - - String - - - - - - AzureStorageAccountName - - - - String - - String - - - - - - AzureStorageAccountKey - - - - String - - String - - - - - - AzureSasToken - - - - String - - String - - - - - - TargetShareFolder - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Resolve-ACSFault - - Resolve/Dismiss a fault in Azure Consistent Storage System. - - - - - Resolve - ACSFault - - - - This cmdlet change the state of a fault from Active to Resolved. - - - - Resolve-ACSFault - - FarmName - - - - String - - - FaultId - - - - String - - - Force - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FaultId - - - - String - - String - - - - - - Force - - - - SwitchParameter - - SwitchParameter - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Resolve-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name -FaultId <FaultId> - - - - - - - - - - - - - - - - - - - - - - Restart-ACSRoleInstance - - Restart a role instance in the Azure Consistent Storage system. - - - - - Restart - ACSRoleInstance - - - - Restart a role instance in the Azure Consistent Storage system. - - - - Restart-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Restart-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' - - - - - - - - - - - - - - - - - - - - - - Set-ACSBlobService - - Configure Settings of blob service - - - - - Set - ACSBlobService - - - - Configure Settings of blob service - - - - Set-ACSBlobService - - FarmName - - - - String - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - - BlobSvcContainerGcInterval - - - - Nullable`1[Int32] - - - BlobSvcShallowGcInterval - - - - Nullable`1[Int32] - - - BlobSvcStreamMapMinContainerOccupancyPercent - - - - Nullable`1[Int32] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - BlobSvcContainerGcInterval - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - BlobSvcShallowGcInterval - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - BlobSvcStreamMapMinContainerOccupancyPercent - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true - - - - - - - - - - - - - - - - - - - - - - Set-ACSFarm - - Change the setting of service configuration on ACS Farm - - - - - Set - ACSFarm - - - - Change the setting of service configuration on ACS Farm - - - - Set-ACSFarm - - FarmName - - - - String - - - SettingsPollingIntervalInSecond - - - - Nullable`1[Int32] - - - HostStyleHttpPort - - - - Nullable`1[Int32] - - - HostStyleHttpsPort - - - - Nullable`1[Int32] - - - CorsAllowedOriginsList - - - - String - - - DataCenterUriHostSuffixes - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SettingsPollingIntervalInSecond - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - HostStyleHttpPort - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - HostStyleHttpsPort - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - CorsAllowedOriginsList - - - - String - - String - - - - - - DataCenterUriHostSuffixes - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSFarm -ResourceGroupName $resourceGroup -FarmName $farm.Name -SettingPollingIntervalInSeconds 45 - - - - - - - - - - - - - - - - - - - - - - Set-ACSManagementService - - Configure Settings of management service - - - - - Set - ACSManagementService - - - - Configure Settings of management service - - - - Set-ACSManagementService - - FarmName - - - - String - - - WacContainerGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - - WacAccountGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - WacContainerGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - WacAccountGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name WacAccountGcFullScanIntervalInSeconds 60000000 - - - - - - - - - - - - - - - - - - - - - - Set-ACSTableService - - Configure Settings of table service - - - - - Set - ACSTableService - - - - Configure Settings of table service - - - - Set-ACSTableService - - FarmName - - - - String - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true - - - - - - - - - - - - - - - - - - - - - - Start-ACSBlobServerRoleInstance - - Start blob service instance on a specific physical node. - - - - - Start - ACSBlobServerRoleInstance - - - - Start blob service instance on a specific physical node. - - - - Start-ACSBlobServerRoleInstance - - FarmName - - - - String - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -start-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' - - - - - - - - - - - - - - - - - - - - - - Stop-ACSBlobServerRoleInstance - - Stop blob service instance on a specific physical node. - - - - - Stop - ACSBlobServerRoleInstance - - - - Stop blob service instance on a specific physical node. - - - - Stop-ACSBlobServerRoleInstance - - FarmName - - - - String - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -stop-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' - - - - - - - - - - - - - - - - - - - - - - Sync-ACSStorageAccount - - Synchronize the account status of the tenant storage accounts from backend to frontend cache. - - - - - Sync - ACSStorageAccount - - - - After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. - - - - Sync-ACSStorageAccount - - TenantAccountName - - - - String - - - TenantSubscriptionId - - - - String - - - Location - - - - String - - - TenantResourceGroup - - - - String - - - StorageAccountApiVersion - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - TenantAccountName - - - - String - - String - - - - - - TenantSubscriptionId - - - - String - - String - - - - - - Location - - - - String - - String - - - - - - TenantResourceGroup - - - - String - - String - - - - - - StorageAccountApiVersion - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -Sync-ACSStorageAccount -AccountName first -TenantSubscriptionId <TenantSubscriptionId> -ResourceLocation 'local' -ResourceGroupName $resourceGroup - - - - - - - - - - - - - - - - - - - - - - Undo-ACSStorageAccountDeletion - - Undelete a tenant storage account. - - - - - Undo - ACSStorageAccountDeletion - - - - Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. - - - - Undo-ACSStorageAccountDeletion - - FarmName - - - - String - - - AccountId - - - - Int64 - - - NewAccountName - - - - String - - - StorageAccountApiVersion - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - AccountId - - - - Int64 - - Int64 - - - - - - NewAccountName - - - - String - - String - - - - - - StorageAccountApiVersion - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Undo-ACSStorageAccountDeletion -ResourceGroupName $resourceGroup -FarmName $farm.Name -AccountId <AccountId> - - - - - - - - - - - - - - - - - - - - - - Update-ACSRoleInstance - - Update the settings of a role instance from setting repository - - - - - Update - ACSRoleInstance - - - - Update the settings of a role instance from setting repository - - - - Update-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse - - - - - - - - - - - - - - - - - - - -------------------------- Example 1 -------------------------- - - PS C:\> - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml deleted file mode 100644 index a66a5f6d2a24..000000000000 --- a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.no.example.xml +++ /dev/null @@ -1,10353 +0,0 @@ - - - - - Add-ACSFarm - - Register a new provisioned ACS farm. - - - - - Add - ACSFarm - - - - After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. - - - - Add-ACSFarm - - FarmName - - - - String - - - SettingAccessString - - - - String - - - Location - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SettingAccessString - - - - String - - String - - - - - - Location - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - Disable-ACSNode - - Disable a particular node from service fabric cluster. - - - - - Disable - ACSNode - - - - Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. - - - - Disable-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Enable-ACSNode - - Enable a particular node in the service fabric cluster. - - - - - Enable - ACSNode - - - - Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. - - - - Enable-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobService - - Retrieve the status and settings of blob service - - - - - Get - ACSBlobService - - - - Retrieve the status and settings of blob service - - - - Get-ACSBlobService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobServiceMetric - - Retrieve the metrics of blob service - - - - - Get - ACSBlobServiceMetric - - - - Retrieve the metrics of blob service - - - - Get-ACSBlobServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobServiceMetricDefinition - - Retrieve the metric definitions of blob service - - - - - Get - ACSBlobServiceMetricDefinition - - - - Retrieve the metric definitions of blob service - - - - Get-ACSBlobServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSEventQuery - - Returns a query object, which could be used as the input parameter for Get-ACSEvent. - - - - - Get - ACSEventQuery - - - - This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. - - - - Get-ACSEventQuery - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - Node - - - - String - - - ResourceUri - - - - String - - - ProviderGuid - - - - Nullable`1[Guid] - - - EventId - - - - Int32[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - Node - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - ProviderGuid - - - - Nullable`1[Guid] - - Nullable`1[Guid] - - - - - - EventId - - - - Int32[] - - Int32[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSEvents - - List the events in the Azure Consistent Storage system. - - - - - Get - ACSEvents - - - - This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. - - - - Get-ACSEvents - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - Node - - - - String - - - ResourceUri - - - - String - - - ProviderGuid - - - - Guid - - - EventId - - - - Int32[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSEvents - - EventQuery - - - - EventQuery - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - Node - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - ProviderGuid - - - - Guid - - Guid - - - - - - EventId - - - - Int32[] - - Int32[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - EventQuery - - - - EventQuery - - EventQuery - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarm - - Retrieve the Azure-consistent Storage Farm and its properties and settings. - - - - - Get - ACSFarm - - - - Retrieve the Azure-consistent Storage Farm and its properties and settings. - - - - Get-ACSFarm - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarmMetric - - Retrieve the metrics of ACS farm - - - - - Get - ACSFarmMetric - - - - Retrieve the metrics of ACS farm - - - - Get-ACSFarmMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarmMetricDefinition - - Retrieve the metric definitions of ACS farm - - - - - Get - ACSFarmMetricDefinition - - - - Retrieve the metric definitions of ACS farm - - - - Get-ACSFarmMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFault - - List faults in the Azure Consistent Storage system. - - - - - Get - ACSFault - - - - This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: -The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. -GetHistoryFaults returns a list of active fault objects within specified time range. -GetFault returns one fault object with the specified fault ID. - - - - Get-ACSFault - - FarmName - - - - String - - - ResourceUri - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSFault - - FarmName - - - - String - - - FaultId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSFault - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - FaultId - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementService - - Retrieve running status and settings of management service. - - - - - Get - ACSManagementService - - - - Retrieve running status and settings of management service. - - - - Get-ACSManagementService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementServiceMetric - - Retrieve the metrics of management service - - - - - Get - ACSManagementServiceMetric - - - - Retrieve the metrics of management service - - - - Get-ACSManagementServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementServiceMetricDefinition - - Retrieve the metric definitions of management service - - - - - Get - ACSManagementServiceMetricDefinition - - - - Retrieve the metric definitions of management service - - - - Get-ACSManagementServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNode - - Get a list of nodes in Azure Consistent Storage. - - - - - Get - ACSNode - - - - Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. - - - - Get-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNodeMetric - - Retrieve the metrics of a node - - - - - Get - ACSNodeMetric - - - - Retrieve the metrics of a node - - - - Get-ACSNodeMetric - - FarmName - - - - String - - - NodeName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNodeMetricDefinition - - Retrieve the metric definitions of node - - - - - Get - ACSNodeMetricDefinition - - - - Retrieve the metric definitions of node - - - - Get-ACSNodeMetricDefinition - - FarmName - - - - String - - - NodeName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstance - - Get a list of a specific type of role instances. - - - - - Get - ACSRoleInstance - - - - Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. - - - - Get-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstanceMetric - - Retrieve the metrics of a role instance - - - - - Get - ACSRoleInstanceMetric - - - - Retrieve the metrics of a role instance - - - - Get-ACSRoleInstanceMetric - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstanceMetricDefinition - - Retrieve the metric definitions of role instance - - - - - Get - ACSRoleInstanceMetricDefinition - - - - Retrieve the metric definitions of role instance - - - - Get-ACSRoleInstanceMetricDefinition - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShare - - Get list of SMB shares used in the Azure Consistent Storage system. - - - - - Get - ACSShare - - - - Get list of SMB shares used in the Azure Consistent Storage system. - - - - Get-ACSShare - - FarmName - - - - String - - - ShareName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ShareName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShareMetric - - Retrieve the metrics of a share - - - - - Get - ACSShareMetric - - - - Retrieve the metrics of a share - - - - Get-ACSShareMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - ShareName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - ShareName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShareMetricDefinition - - Retrieve the metric definitions of share - - - - - Get - ACSShareMetricDefinition - - - - Retrieve the metric definitions of share - - - - Get-ACSShareMetricDefinition - - FarmName - - - - String - - - ShareName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ShareName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSStorageAccount - - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - - - - - Get - ACSStorageAccount - - - - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - - - - Get-ACSStorageAccount - - FarmName - - - - String - - - TenantSubscriptionId - - - - String - - - PartialAccountName - - - - String - - - StorageAccountStatus - - - - Nullable`1[Int32] - - - Detail - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSStorageAccount - - FarmName - - - - String - - - AccountId - - - - Int64 - - - Detail - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - TenantSubscriptionId - - - - String - - String - - - - - - PartialAccountName - - - - String - - String - - - - - - StorageAccountStatus - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - Detail - - - - SwitchParameter - - SwitchParameter - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - AccountId - - - - Int64 - - Int64 - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableService - - Get status and settings of table service. - - - - - Get - ACSTableService - - - - Get status and settings of table service. - - - - Get-ACSTableService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableServiceMetric - - Retrieve the metrics of table service - - - - - Get - ACSTableServiceMetric - - - - Retrieve the metrics of table service - - - - Get-ACSTableServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableServiceMetricDefinition - - Retrieve the metric definitions of table service - - - - - Get - ACSTableServiceMetricDefinition - - - - Retrieve the metric definitions of table service - - - - Get-ACSTableServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invoke-ACSLogCollect - - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. - - - - - Invoke - ACSLogCollect - - - - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. - - - - Invoke-ACSLogCollect - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - UserName - - - - String - - - Password - - - - String - - - LogPrefix - - - - String - - - AzureStorageContainer - - - - String - - - AzureStorageAccountName - - - - String - - - AzureStorageAccountKey - - - - String - - - AzureSasToken - - - - String - - - TargetShareFolder - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - UserName - - - - String - - String - - - - - - Password - - - - String - - String - - - - - - LogPrefix - - - - String - - String - - - - - - AzureStorageContainer - - - - String - - String - - - - - - AzureStorageAccountName - - - - String - - String - - - - - - AzureStorageAccountKey - - - - String - - String - - - - - - AzureSasToken - - - - String - - String - - - - - - TargetShareFolder - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Resolve-ACSFault - - Resolve/Dismiss a fault in Azure Consistent Storage System. - - - - - Resolve - ACSFault - - - - This cmdlet change the state of a fault from Active to Resolved. - - - - Resolve-ACSFault - - FarmName - - - - String - - - FaultId - - - - String - - - Force - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FaultId - - - - String - - String - - - - - - Force - - - - SwitchParameter - - SwitchParameter - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Restart-ACSRoleInstance - - Restart a role instance in the Azure Consistent Storage system. - - - - - Restart - ACSRoleInstance - - - - Restart a role instance in the Azure Consistent Storage system. - - - - Restart-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSBlobService - - Configure Settings of blob service - - - - - Set - ACSBlobService - - - - Configure Settings of blob service - - - - Set-ACSBlobService - - FarmName - - - - String - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - - BlobSvcContainerGcInterval - - - - Nullable`1[Int32] - - - BlobSvcShallowGcInterval - - - - Nullable`1[Int32] - - - BlobSvcStreamMapMinContainerOccupancyPercent - - - - Nullable`1[Int32] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - BlobSvcContainerGcInterval - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - BlobSvcShallowGcInterval - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - BlobSvcStreamMapMinContainerOccupancyPercent - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSFarm - - Change the setting of service configuration on ACS Farm - - - - - Set - ACSFarm - - - - Change the setting of service configuration on ACS Farm - - - - Set-ACSFarm - - FarmName - - - - String - - - SettingsPollingIntervalInSecond - - - - Nullable`1[Int32] - - - HostStyleHttpPort - - - - Nullable`1[Int32] - - - HostStyleHttpsPort - - - - Nullable`1[Int32] - - - CorsAllowedOriginsList - - - - String - - - DataCenterUriHostSuffixes - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SettingsPollingIntervalInSecond - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - HostStyleHttpPort - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - HostStyleHttpsPort - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - CorsAllowedOriginsList - - - - String - - String - - - - - - DataCenterUriHostSuffixes - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSManagementService - - Configure Settings of management service - - - - - Set - ACSManagementService - - - - Configure Settings of management service - - - - Set-ACSManagementService - - FarmName - - - - String - - - WacContainerGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - - WacAccountGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - WacContainerGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - WacAccountGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSTableService - - Configure Settings of table service - - - - - Set - ACSTableService - - - - Configure Settings of table service - - - - Set-ACSTableService - - FarmName - - - - String - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Start-ACSBlobServerRoleInstance - - Start blob service instance on a specific physical node. - - - - - Start - ACSBlobServerRoleInstance - - - - Start blob service instance on a specific physical node. - - - - Start-ACSBlobServerRoleInstance - - FarmName - - - - String - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stop-ACSBlobServerRoleInstance - - Stop blob service instance on a specific physical node. - - - - - Stop - ACSBlobServerRoleInstance - - - - Stop blob service instance on a specific physical node. - - - - Stop-ACSBlobServerRoleInstance - - FarmName - - - - String - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sync-ACSStorageAccount - - Synchronize the account status of the tenant storage accounts from backend to frontend cache. - - - - - Sync - ACSStorageAccount - - - - After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. - - - - Sync-ACSStorageAccount - - TenantAccountName - - - - String - - - TenantSubscriptionId - - - - String - - - Location - - - - String - - - TenantResourceGroup - - - - String - - - StorageAccountApiVersion - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - TenantAccountName - - - - String - - String - - - - - - TenantSubscriptionId - - - - String - - String - - - - - - Location - - - - String - - String - - - - - - TenantResourceGroup - - - - String - - String - - - - - - StorageAccountApiVersion - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Undo-ACSStorageAccountDeletion - - Undelete a tenant storage account. - - - - - Undo - ACSStorageAccountDeletion - - - - Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. - - - - Undo-ACSStorageAccountDeletion - - FarmName - - - - String - - - AccountId - - - - Int64 - - - NewAccountName - - - - String - - - StorageAccountApiVersion - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - AccountId - - - - Int64 - - Int64 - - - - - - NewAccountName - - - - String - - String - - - - - - StorageAccountApiVersion - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Update-ACSRoleInstance - - Update the settings of a role instance from setting repository - - - - - Update - ACSRoleInstance - - - - Update the settings of a role instance from setting repository - - - - Update-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj deleted file mode 100644 index cd8d78be5a8f..000000000000 --- a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.pshproj +++ /dev/null @@ -1,5156 +0,0 @@ - - - AzureRM.AzureStackStorage - 0.10.1 - Microsoft Azure PowerShell - Storage management cmdlets for Azure Stack - true - false - - - - Add-ACSFarm - - Register a new provisioned ACS farm. - After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - Add-ACSFarm [-FarmName] <String> [-SettingAccessString] <String> [-Location] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SettingAccessString - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Location - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -Add-ACSFarm -ResourceGroupName $resourceGroup -FarmName 'YourNameFarmName' -Location 'YourLocation' - - - - - - - false - - - Disable-ACSNode - - Disable a particular node from service fabric cluster. - Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - Disable-ACSNode [-FarmName] <String> [[-NodeName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - NodeName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -Disable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' - - - - - - - false - - - Enable-ACSNode - - Enable a particular node in the service fabric cluster. - Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - Enable-ACSNode [-FarmName] <String> [[-NodeName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullOrEmptyAttribute - System.Management.Automation.ParameterAttribute - - - - - - - NodeName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -Eable-ACSNode -ResourceGroupName $resourceGroup -NodeName 'YourNodeName' - - - - - - - false - - - Get-ACSBlobService - - Retrieve the status and settings of blob service - Retrieve the status and settings of blob service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - Get-ACSBlobService [-FarmName] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl - - - - - - - - false - - - Get-ACSBlobServiceMetric - - Retrieve the metrics of blob service - Retrieve the metrics of blob service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - Get-ACSBlobServiceMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - TimeGrain - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSBlobServiceMetricDefinition - - Retrieve the metric definitions of blob service - Retrieve the metric definitions of blob service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; - - - - - - - - Get-ACSBlobServiceMetricDefinition [-FarmName] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSEventQuery - - Returns a query object, which could be used as the input parameter for Get-ACSEvent. - This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - Get-ACSEventQuery [-FarmName] <String> [-StartTime] <DateTime> [-EndTime] <DateTime> [[-Node] <String>] [[-ResourceUri] <String>] [[-ProviderGuid] <Nullable`1[Guid]>] [[-EventId] <Int32[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - Node - - System.Management.Automation.ParameterAttribute - - - - - - - ResourceUri - - System.Management.Automation.ParameterAttribute - - - - - - - ProviderGuid - - System.Management.Automation.ParameterAttribute - - - - - - - EventId - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -$endtime=get-date -$starttime=$endtime.addminutes(-10) - -Get-ACSEventQuery -FarmId $farm.Name -ResourceGroupName $resourceGroup -StartTime $starttime - -EndTime $endtime - - - - - - - false - - - Get-ACSEvents - - List the events in the Azure Consistent Storage system. - This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Get-ACSEvents -FarmName <String> -StartTime <DateTime> -EndTime <DateTime> [-Node <String>] [-ResourceUri <String>] [-ProviderGuid <Guid>] [-EventId <Int32[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - Get-ACSEvents -EventQuery <EventQuery> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - Node - - System.Management.Automation.ParameterAttribute - - - - - - - ResourceUri - - System.Management.Automation.ParameterAttribute - - - - - - - ProviderGuid - - System.Management.Automation.ParameterAttribute - - - - - - - EventId - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - EventQuery - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSEvents -startTime $startTime -endtime $endtime -FarmName $farm -ResourceGroupName $resourceGroup - - - - - - - false - - - Get-ACSFarm - - Retrieve the Azure-consistent Storage Farm and its properties and settings. - Retrieve the Azure-consistent Storage Farm and its properties and settings. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - Get-ACSFarm [[-FarmName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -Get-ACSFarm -ResourceGroupName $resourceGroup - - - - - - - false - - - Get-ACSFarmMetric - - Retrieve the metrics of ACS farm - Retrieve the metrics of ACS farm - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - Get-ACSFarmMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - TimeGrain - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSFarmMetricDefinition - - Retrieve the metric definitions of ACS farm - Retrieve the metric definitions of ACS farm - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; - - - - - - - - Get-ACSFarmMetricDefinition [-FarmName] <String> [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSFault - - List faults in the Azure Consistent Storage system. - This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: -The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. -GetHistoryFaults returns a list of active fault objects within specified time range. -GetFault returns one fault object with the specified fault ID. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse - - - - - - - - - - Get-ACSFault [-FarmName] <String> [-ResourceUri <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - Get-ACSFault [-FarmName] <String> -FaultId <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - Get-ACSFault [-FarmName] <String> -StartTime <DateTime> -EndTime <DateTime> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - ResourceUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.AliasAttribute - - - Id - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - FaultId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - EndTime - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name - - - - - - - - false - - - Get-ACSManagementService - - Retrieve running status and settings of management service. - Retrieve running status and settings of management service. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - Get-ACSManagementService [-FarmName] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name | fl - - - - - - - false - - - Get-ACSManagementServiceMetric - - Retrieve the metrics of management service - Retrieve the metrics of management service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - Get-ACSManagementServiceMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - TimeGrain - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSManagementServiceMetricDefinition - - Retrieve the metric definitions of management service - Retrieve the metric definitions of management service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; - - - - - - - - Get-ACSManagementServiceMetricDefinition [-FarmName] <String> [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSNode - - Get a list of nodes in Azure Consistent Storage. - Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - Get-ACSNode [-FarmName] <String> [[-NodeName] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - NodeName - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSNode -ResourceGroupName $resourceGroup -FarmName $farm.Name - - - - - - - false - - - Get-ACSNodeMetric - - Retrieve the metrics of a node - Retrieve the metrics of a node - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - Get-ACSNodeMetric [-FarmName] <String> [-NodeName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - NodeName - - System.Management.Automation.ParameterAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - TimeGrain - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSNodeMetricDefinition - - Retrieve the metric definitions of node - Retrieve the metric definitions of node - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - Get-ACSNodeMetricDefinition [-FarmName] <String> [-NodeName] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - NodeName - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSRoleInstance - - Get a list of a specific type of role instances. - Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse - - - - - - - - Get-ACSRoleInstance [-FarmName] <String> [-RoleType] <RoleType> [[-InstanceId] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - RoleType - - System.Management.Automation.ParameterAttribute - - - - - - - InstanceId - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend - - - - - Example 2 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmId $farm.Name -RoleType BlobFrontend - - - - - - - false - - - Get-ACSRoleInstanceMetric - - Retrieve the metrics of a role instance - Retrieve the metrics of a role instance - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - Get-ACSRoleInstanceMetric [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - RoleType - - System.Management.Automation.ParameterAttribute - - - - - - - InstanceId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - TimeGrain - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSRoleInstanceMetricDefinition - - Retrieve the metric definitions of role instance - Retrieve the metric definitions of role instance - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; - - - - - - - - Get-ACSRoleInstanceMetricDefinition [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - RoleType - - System.Management.Automation.ParameterAttribute - - - - - - - InstanceId - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSShare - - Get list of SMB shares used in the Azure Consistent Storage system. - Get list of SMB shares used in the Azure Consistent Storage system. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse - - - - - - - - Get-ACSShare -FarmName <String> [-ShareName <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - ShareName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSShare -ResourceGroupName $resourceGroup -FarmName $farm.Name -ShareName 'YourShareName' - - - - - - - false - - - Get-ACSShareMetric - - Retrieve the metrics of a share - Retrieve the metrics of a share - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - Get-ACSShareMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-ShareName] <String> [[-MetricNames] <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - TimeGrain - - System.Management.Automation.ParameterAttribute - - - - - - - ShareName - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSShareMetricDefinition - - Retrieve the metric definitions of share - Retrieve the metric definitions of share - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; - - - - - - - - Get-ACSShareMetricDefinition -FarmName <String> -ShareName <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - ShareName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSStorageAccount - - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - Get-ACSStorageAccount [-FarmName] <String> [[-TenantSubscriptionId] <String>] [[-PartialAccountName] <String>] [[-StorageAccountStatus] <Nullable`1[Int32]>] [[-Detail] <SwitchParameter>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - Get-ACSStorageAccount [-FarmName] <String> [-AccountId] <Int64> [[-Detail] <SwitchParameter>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - TenantSubscriptionId - - System.Management.Automation.ParameterAttribute - - - - - - - PartialAccountName - - System.Management.Automation.ParameterAttribute - - - - - - - StorageAccountStatus - - System.Management.Automation.ParameterAttribute - - - - - - - Detail - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - AccountId - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSStorageAccount -ResourceGroupName $resourceGroup -FarmName $farm.Name -PartialAccountName ‘YourStorageAccountName’ - - - - - - - - false - - - Get-ACSTableService - - Get status and settings of table service. - Get status and settings of table service. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - Get-ACSTableService [-FarmName] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Get-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name - - - - - - - false - - - Get-ACSTableServiceMetric - - Retrieve the metrics of table service - Retrieve the metrics of table service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricNoDetails;Microsoft.AzureStack.Commands.StorageAdmin.Metric - - - - - - - - Get-ACSTableServiceMetric [-FarmName] <String> [[-StartTime] <DateTime>] [[-EndTime] <DateTime>] [[-TimeGrain] <TimeGrain>] [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - - - - - - - TimeGrain - - System.Management.Automation.ParameterAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Get-ACSTableServiceMetricDefinition - - Retrieve the metric definitions of table service - Retrieve the metric definitions of table service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinition;Microsoft.AzureStack.Commands.StorageAdmin.PSMetricDefinitionNoDetails; - - - - - - - - Get-ACSTableServiceMetricDefinition [-FarmName] <String> [-MetricNames <String[]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - MetricNames - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - - - - false - - - Invoke-ACSLogCollect - - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - Invoke-ACSLogCollect -FarmName <String> -StartTime <DateTime> -EndTime <DateTime> -UserName <String> -Password <String> [-LogPrefix <String>] [-AzureStorageContainer <String>] [-AzureStorageAccountName <String>] [-AzureStorageAccountKey <String>] [-AzureSasToken <String>] [-TargetShareFolder <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullOrEmptyAttribute - System.Management.Automation.ParameterAttribute - - - - - - - StartTime - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - EndTime - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - UserName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - Password - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - LogPrefix - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - AzureStorageContainer - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - AzureStorageAccountName - - System.Management.Automation.ValidateNotNullOrEmptyAttribute - System.Management.Automation.ParameterAttribute - - - - - - - AzureStorageAccountKey - - System.Management.Automation.ValidateNotNullOrEmptyAttribute - System.Management.Automation.ParameterAttribute - - - - - - - AzureSasToken - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - TargetShareFolder - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - - false - - - Resolve-ACSFault - - Resolve/Dismiss a fault in Azure Consistent Storage System. - This cmdlet change the state of a fault from Active to Resolved. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - Resolve-ACSFault [-FarmName] <String> [-FaultId] <String> [-Force] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - FaultId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Force - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Resolve-ACSFault -ResourceGroupName $resourceGroup -FarmName $farm.Name -FaultId <FaultId> - - - - - - - false - - - Restart-ACSRoleInstance - - Restart a role instance in the Azure Consistent Storage system. - Restart a role instance in the Azure Consistent Storage system. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse; - - - - - - - - - - - Restart-ACSRoleInstance [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullOrEmptyAttribute - System.Management.Automation.ParameterAttribute - - - - - - - RoleType - - System.Management.Automation.ParameterAttribute - - - - - - - InstanceId - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Restart-ACSRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' - - - - - - - false - - - Set-ACSBlobService - - Configure Settings of blob service - Configure Settings of blob service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - Set-ACSBlobService [-FarmName] <String> [-FrontEndCpuBasedKeepAliveThrottlingEnabled <Nullable`1[Boolean]>] [-FrontEndMemoryThrottlingEnabled <Nullable`1[Boolean]>] [-BlobSvcContainerGcInterval <Nullable`1[Int32]>] [-BlobSvcShallowGcInterval <Nullable`1[Int32]>] [-BlobSvcStreamMapMinContainerOccupancyPercent <Nullable`1[Int32]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - FrontEndMemoryThrottlingEnabled - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - BlobSvcContainerGcInterval - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - BlobSvcShallowGcInterval - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - BlobSvcStreamMapMinContainerOccupancyPercent - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSBlobService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true - - - - - - - false - - - Set-ACSFarm - - Change the setting of service configuration on ACS Farm - Change the setting of service configuration on ACS Farm - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - Set-ACSFarm [-FarmName] <String> [-SettingsPollingIntervalInSecond <Nullable`1[Int32]>] [-HostStyleHttpPort <Nullable`1[Int32]>] [-HostStyleHttpsPort <Nullable`1[Int32]>] [-CorsAllowedOriginsList <String>] [-DataCenterUriHostSuffixes <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SettingsPollingIntervalInSecond - - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - System.Management.Automation.ParameterAttribute - - - - - - - HostStyleHttpPort - - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - System.Management.Automation.ParameterAttribute - - - - - - - HostStyleHttpsPort - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - CorsAllowedOriginsList - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - DataCenterUriHostSuffixes - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSFarm -ResourceGroupName $resourceGroup -FarmName $farm.Name -SettingPollingIntervalInSeconds 45 - - - - - - - false - - - Set-ACSManagementService - - Configure Settings of management service - Configure Settings of management service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - Set-ACSManagementService [-FarmName] <String> [-WacContainerGcFullScanIntervalInSeconds <Nullable`1[Int32]>] [-WacAccountGcFullScanIntervalInSeconds <Nullable`1[Int32]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - WacContainerGcFullScanIntervalInSeconds - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - WacAccountGcFullScanIntervalInSeconds - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSManagementService -ResourceGroupName $resourceGroup -FarmName $farm.Name WacAccountGcFullScanIntervalInSeconds 60000000 - - - - - - - false - - - Set-ACSTableService - - Configure Settings of table service - Configure Settings of table service - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - Set-ACSTableService [-FarmName] <String> [-FrontEndCpuBasedKeepAliveThrottlingEnabled <Nullable`1[Boolean]>] [-FrontEndMemoryThrottlingEnabled <Nullable`1[Boolean]>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - FrontEndMemoryThrottlingEnabled - - System.Management.Automation.ParameterAttribute - Microsoft.AzureStack.Commands.StorageAdmin.SettingFieldAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Set-ACSTableService -ResourceGroupName $resourceGroup -FarmName $farm.Name -FrontEndCpuBasedKeepAliveThrottlingEnabled $true - - - - - - - false - - - Start-ACSBlobServerRoleInstance - - Start blob service instance on a specific physical node. - Start blob service instance on a specific physical node. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - Start-ACSBlobServerRoleInstance [-FarmName] <String> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - InstanceId - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullOrEmptyAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -start-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' - - - - - - - false - - - Stop-ACSBlobServerRoleInstance - - Stop blob service instance on a specific physical node. - Stop blob service instance on a specific physical node. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - Stop-ACSBlobServerRoleInstance [-FarmName] <String> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullOrEmptyAttribute - System.Management.Automation.ParameterAttribute - - - - - - - InstanceId - - System.Management.Automation.ValidateNotNullOrEmptyAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -stop-ACSBlobServerRoleInstance -ResourceGroupName $resourceGroup -FarmName $farm.Name -InstanceID 'YourInstanceID' - - - - - - - false - - - Sync-ACSStorageAccount - - Synchronize the account status of the tenant storage accounts from backend to frontend cache. - After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - Sync-ACSStorageAccount [-TenantAccountName] <String> [-TenantSubscriptionId] <String> [-Location] <String> [-TenantResourceGroup] <String> [[-StorageAccountApiVersion] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - TenantAccountName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - TenantSubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Location - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - TenantResourceGroup - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - StorageAccountApiVersion - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -Sync-ACSStorageAccount -AccountName first -TenantSubscriptionId <TenantSubscriptionId> -ResourceLocation 'local' -ResourceGroupName $resourceGroup - - - - - - - false - - - Undo-ACSStorageAccountDeletion - - Undelete a tenant storage account. - Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - Undo-ACSStorageAccountDeletion [-FarmName] <String> [-AccountId] <Int64> [[-NewAccountName] <String>] [[-StorageAccountApiVersion] <String>] [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AccountId - - System.Management.Automation.ParameterAttribute - - - - - - - NewAccountName - - System.Management.Automation.ParameterAttribute - - - - - - - StorageAccountApiVersion - - System.Management.Automation.ParameterAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - $resourceGroup = 'System' - -$farm = Get-ACSFarm -ResourceGroupName $resourceGroup - -Undo-ACSStorageAccountDeletion -ResourceGroupName $resourceGroup -FarmName $farm.Name -AccountId <AccountId> - - - - - - - false - - - Update-ACSRoleInstance - - Update the settings of a role instance from setting repository - Update the settings of a role instance from setting repository - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse;Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse;Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse - - - - - - - - Update-ACSRoleInstance [-FarmName] <String> [-RoleType] <RoleType> [-InstanceId] <String> [[-SubscriptionId] <String>] [[-Token] <String>] [[-AdminUri] <Uri>] [-ResourceGroupName] <String> [-SkipCertificateValidation] [-WhatIf] [-Confirm] - - - - FarmName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - RoleType - - System.Management.Automation.ParameterAttribute - - - - - - - InstanceId - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - SubscriptionId - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - Token - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - - - - - - - AdminUri - - System.Management.Automation.ParameterAttribute - System.Management.Automation.ValidateNotNullAttribute - Microsoft.AzureStack.Commands.StorageAdmin.ValidateAbsoluteUri - - - - - - - ResourceGroupName - - System.Management.Automation.ValidateNotNullAttribute - System.Management.Automation.ParameterAttribute - - - - - - - SkipCertificateValidation - - System.Management.Automation.ParameterAttribute - - - - - - - WhatIf - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - wi - - - - - - Confirm - - System.Management.Automation.AliasAttribute - System.Management.Automation.ParameterAttribute - - - cf - - - - - - - - Example 1 - - - - - - - - false - - - \ No newline at end of file From 4f9dc01daa4ece6a8f6fe953dd00da7292c6ed4a Mon Sep 17 00:00:00 2001 From: Bala Ganapathy Date: Thu, 28 Jan 2016 11:57:41 -0800 Subject: [PATCH 09/27] Removing the app.config reference in the csproj file --- .../Commands.AzureStackStorage.Test.csproj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj index 3639e890fcd6..84f1dda8d599 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj @@ -64,7 +64,7 @@ False -..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5799.28345-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll + ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5799.28345-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll False @@ -170,7 +170,6 @@ - Designer From 4d273d3617d92e22954a1920b7cb942414214856 Mon Sep 17 00:00:00 2001 From: Bala Ganapathy Date: Thu, 28 Jan 2016 14:42:42 -0800 Subject: [PATCH 10/27] fixing csproj files and packages --- .../AzureRM.AzureStackAdmin.psd1 | 8 +- .../AzureRM.AzureStackAdmin.psd1 | 86 - .../Commands.AzureStackAdmin.csproj | 28 +- .../Properties/AssemblyInfo.cs | 5 +- .../Commands.AzureStackAdmin/packages.config | 2 +- .../AzureRM.AzureStackStorage.Help.xml | 10063 ---------------- .../AzureRM.AzureStackStorage.psd1 | 2 +- .../Commands.AzureStackStorage.Test.csproj | 10 +- .../packages.config | 9 +- .../Commands.AzureStackStorage.csproj | 30 +- .../Properties/AssemblyInfo.cs | 32 +- .../packages.config | 2 +- .../AzureResourceManager.psd1 | 1 + 13 files changed, 63 insertions(+), 10215 deletions(-) delete mode 100644 src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 delete mode 100644 src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml rename src/ResourceManager/AzureStackStorage/{Commands.AzureStackStorage => }/AzureRM.AzureStackStorage.psd1 (98%) diff --git a/src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 b/src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 index b32a2961de9e..e26e79b5e86e 100644 --- a/src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 +++ b/src/ResourceManager/AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 @@ -12,7 +12,7 @@ ModuleToProcess = 'Microsoft.AzureStack.Commands.dll' # Version number of this module. -ModuleVersion = '0.10.1' +ModuleVersion = '0.9.1' # ID used to uniquely identify this module GUID = '0e691e0a-ce16-40f2-af84-86fb0d82fb29' @@ -24,10 +24,10 @@ Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' # Copyright statement for this module -Copyright = '© Microsoft Corporation. All rights reserved.' +Copyright = 'Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module -Description = 'Azure Stack Administration Module' +Description = 'Microsoft Azure Stack Administration Module' # Minimum version of the Windows PowerShell engine required by this module PowerShellVersion = '3.0' @@ -48,7 +48,7 @@ CLRVersion = '4.0' ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @() +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 deleted file mode 100644 index a2893b5db200..000000000000 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/AzureRM.AzureStackAdmin.psd1 +++ /dev/null @@ -1,86 +0,0 @@ -# -# Module manifest for module 'AzureRM.AzureStackAdmin' -# -# Generated by: Microsoft Corporation -# -# Updated on: 10/27/2015 -# - -@{ - -# Script module or binary module file associated with this manifest -ModuleToProcess = 'Microsoft.AzureStack.Commands.dll' - -# Version number of this module. -ModuleVersion = '0.9.1' - -# ID used to uniquely identify this module -GUID = '0e691e0a-ce16-40f2-af84-86fb0d82fb29' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = '© Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Azure Stack Administration Module' - -# Minimum version of the Windows PowerShell engine required by this module -PowerShellVersion = '3.0' - -# Name of the Windows PowerShell host required by this module -PowerShellHostName = '' - -# Minimum version of the Windows PowerShell host required by this module -PowerShellHostVersion = '' - -# Minimum version of the .NET Framework required by this module -DotNetFrameworkVersion = '4.5' - -# Minimum version of the common language runtime (CLR) required by this module -CLRVersion = '4.0' - -# Processor architecture (None, X86, Amd64, IA64) required by this module -ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @() - -# Assemblies that must be loaded prior to importing this module -# RequiredAssemblies = @() - -# Type files (.ps1xml) to be loaded when importing this module -TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -# FormatsToProcess = @('AzureStackAdmin.format.ps1xml') - -# Modules to import as nested modules of the module specified in ModuleToProcess -NestedModules = @() - -# Functions to export from this module -FunctionsToExport = '*' - -# Cmdlets to export from this module -CmdletsToExport = '*' - -# Variables to export from this module -VariablesToExport = '*' - -# Aliases to export from this module -AliasesToExport = '*' - -# List of all modules packaged with this module -ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in ModuleToProcess -PrivateData = '' -} - diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj index 0789c58f751d..2f64f2b9ea98 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj @@ -11,10 +11,9 @@ Microsoft.AzureStack.Commands v4.5 512 - ..\ + ..\..\..\ true - - f4bbdcaf + /assemblyCompareMode:StrongNameIgnoringVersion true @@ -24,19 +23,23 @@ TRACE;DEBUG prompt 4 - false - false - true true - MinimumRecommendedRules.ruleset + true + false - pdbonly - true ..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRm.AzureStackAdmin\ TRACE;SIGN + true + pdbonly + AnyCPU + bin\Release\Microsoft.AzureStack.Commands.dll.CodeAnalysisLog.xml + true + GlobalSuppressions.cs prompt - 4 + MinimumRecommendedRules.ruleset + ;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\Rule Sets + ;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\Rules true true MSSharedLibKey.snk @@ -143,9 +146,6 @@ - - Always - Always @@ -158,7 +158,6 @@ PublicResXFileCodeGenerator Resources.Designer.cs Designer - Microsoft.AzureStack.Commands @@ -166,5 +165,4 @@ - \ No newline at end of file diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs index 8d45f4583551..fc2dc57a7897 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Properties/AssemblyInfo.cs @@ -29,6 +29,5 @@ [assembly: Guid("0B02390C-8AA9-4D99-8AA8-2A9D2D39682F")] -[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)] -[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)] - +[assembly: AssemblyVersion("0.9.1")] +[assembly: AssemblyFileVersion("0.9.1")] \ No newline at end of file diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config index f82854cf2195..ca7570def70b 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config @@ -6,5 +6,5 @@ - + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml deleted file mode 100644 index 8def7658a8bc..000000000000 --- a/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.Help.xml +++ /dev/null @@ -1,10063 +0,0 @@ - - - - - Add-ACSFarm - - Register a new provisioned ACS farm. - - - - - Add - ACSFarm - - - - After fabric admin deploy a new ACS farm. Service Admin could use the cmdlet to registered that farm to SRP. - - - - Add-ACSFarm - - FarmName - - - - String - - - SettingAccessString - - - - String - - - Location - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SettingAccessString - - - - String - - String - - - - - - Location - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - Disable-ACSNode - - Disable a particular node from service fabric cluster. - - - - - Disable - ACSNode - - - - Disable a particular node from service fabric cluster. After disable, service fabric instances will be moved to other nodes. - - - - Disable-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Enable-ACSNode - - Enable a particular node in the service fabric cluster. - - - - - Enable - ACSNode - - - - Enable a particular node in the service fabric cluster. After enabing the node, service instances can be initantiated to this node. - - - - Enable-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobService - - Retrieve the status and settings of blob service - - - - - Get - ACSBlobService - - - - Retrieve the status and settings of blob service - - - - Get-ACSBlobService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobServiceMetric - - - - - - - Get - ACSBlobServiceMetric - - - - - - - - Get-ACSBlobServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSBlobServiceMetricDefinition - - - - - - - Get - ACSBlobServiceMetricDefinition - - - - - - - - Get-ACSBlobServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSEventQuery - - Returns a query object, which could be used as the input parameter for Get-ACSEvent. - - - - - Get - ACSEventQuery - - - - This cmdlet returns a ACSEventQuery object. Then the ACSEventQuery object can be used to query events from Azure-consistent Storage system. - - - - Get-ACSEventQuery - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - Node - - - - String - - - ResourceUri - - - - String - - - ProviderGuid - - - - Nullable`1[Guid] - - - EventId - - - - Int32[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - Node - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - ProviderGuid - - - - Nullable`1[Guid] - - Nullable`1[Guid] - - - - - - EventId - - - - Int32[] - - Int32[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSEvents - - List the events in the Azure Consistent Storage system. - - - - - Get - ACSEvents - - - - This cmdlet returns a list of event objects. You could specify query parameters: start time, end time, computer name, resource uri, provider guid, event id. You can also compose an event query with Get-ACSEventQuery cmdlet. - - - - Get-ACSEvents - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - Node - - - - String - - - ResourceUri - - - - String - - - ProviderGuid - - - - Guid - - - EventId - - - - Int32[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSEvents - - EventQuery - - - - EventQuery - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - Node - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - ProviderGuid - - - - Guid - - Guid - - - - - - EventId - - - - Int32[] - - Int32[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - EventQuery - - - - EventQuery - - EventQuery - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarm - - Retrieve the Azure-consistent Storage Farm and its properties and settings. - - - - - Get - ACSFarm - - - - Retrieve the Azure-consistent Storage Farm and its properties and settings. - - - - Get-ACSFarm - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarmMetric - - - - - - - Get - ACSFarmMetric - - - - - - - - Get-ACSFarmMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFarmMetricDefinition - - - - - - - Get - ACSFarmMetricDefinition - - - - - - - - Get-ACSFarmMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSFault - - List faults in the Azure Consistent Storage system. - - - - - Get - ACSFault - - - - This cmdlet returns a list of faults in the Azure-consistent Storage system. It supports several parameter set: -The default parameter set is GetCurrentFaults, which returns a list of current active fault objects. If ResourceUri is specified, the cmdlet returns a list of current active fault objects on this resource. -GetHistoryFaults returns a list of active fault objects within specified time range. -GetFault returns one fault object with the specified fault ID. - - - - Get-ACSFault - - FarmName - - - - String - - - ResourceUri - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSFault - - FarmName - - - - String - - - FaultId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSFault - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ResourceUri - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - FaultId - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FaultResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementService - - Retrieve running status and settings of management service. - - - - - Get - ACSManagementService - - - - Retrieve running status and settings of management service. - - - - Get-ACSManagementService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementServiceMetric - - - - - - - Get - ACSManagementServiceMetric - - - - - - - - Get-ACSManagementServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSManagementServiceMetricDefinition - - - - - - - Get - ACSManagementServiceMetricDefinition - - - - - - - - Get-ACSManagementServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNode - - Get a list of nodes in Azure Consistent Storage. - - - - - Get - ACSNode - - - - Get a list of nodes in Azure Consistent Storage. A node could be of either Blob Server type and Service Fabric Node type. - - - - Get-ACSNode - - FarmName - - - - String - - - NodeName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.NodeResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNodeMetric - - - - - - - Get - ACSNodeMetric - - - - - - - - Get-ACSNodeMetric - - FarmName - - - - String - - - NodeName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSNodeMetricDefinition - - - - - - - Get - ACSNodeMetricDefinition - - - - - - - - Get-ACSNodeMetricDefinition - - FarmName - - - - String - - - NodeName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - NodeName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstance - - Get a list of a specific type of role instances. - - - - - Get - ACSRoleInstance - - - - Get a list of a specific type of role instances, including TableServer | BlobServer | TableMaster | AccountContainerserver | TableFrontend | BlobFrontend | MetricsServer | HealthMonitoringserver. - - - - Get-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobFrontendRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableFrontendInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MonitoringServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.MetricsServerRoleInstanceResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableMasterRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstanceMetric - - - - - - - Get - ACSRoleInstanceMetric - - - - - - - - Get-ACSRoleInstanceMetric - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSRoleInstanceMetricDefinition - - - - - - - Get - ACSRoleInstanceMetricDefinition - - - - - - - - Get-ACSRoleInstanceMetricDefinition - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShare - - Get list of SMB shares used in the Azure Consistent Storage system. - - - - - Get - ACSShare - - - - Get list of SMB shares used in the Azure Consistent Storage system. - - - - Get-ACSShare - - FarmName - - - - String - - - ShareName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ShareName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ShareResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShareMetric - - - - - - - Get - ACSShareMetric - - - - - - - - Get-ACSShareMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - ShareName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - ShareName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSShareMetricDefinition - - - - - - - Get - ACSShareMetricDefinition - - - - - - - - Get-ACSShareMetricDefinition - - FarmName - - - - String - - - ShareName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - ShareName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSStorageAccount - - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - - - - - Get - ACSStorageAccount - - - - Retrieve a list of the tenant storage accounts based on the tenant subscription ID, account name (or part of the account name) , account status or based on a account ID. - - - - Get-ACSStorageAccount - - FarmName - - - - String - - - TenantSubscriptionId - - - - String - - - PartialAccountName - - - - String - - - StorageAccountStatus - - - - Nullable`1[Int32] - - - Detail - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - Get-ACSStorageAccount - - FarmName - - - - String - - - AccountId - - - - Int64 - - - Detail - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - TenantSubscriptionId - - - - String - - String - - - - - - PartialAccountName - - - - String - - String - - - - - - StorageAccountStatus - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - Detail - - - - SwitchParameter - - SwitchParameter - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - AccountId - - - - Int64 - - Int64 - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableService - - Get status and settings of table service. - - - - - Get - ACSTableService - - - - Get status and settings of table service. - - - - Get-ACSTableService - - FarmName - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableServiceMetric - - - - - - - Get - ACSTableServiceMetric - - - - - - - - Get-ACSTableServiceMetric - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - TimeGrain - - - - TimeGrain - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - TimeGrain - - - - TimeGrain - - TimeGrain - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get-ACSTableServiceMetricDefinition - - - - - - - Get - ACSTableServiceMetricDefinition - - - - - - - - Get-ACSTableServiceMetricDefinition - - FarmName - - - - String - - - MetricNames - - - - String[] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - MetricNames - - - - String[] - - String[] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invoke-ACSLogCollect - - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related information and package all these information into a package. - - - - - Invoke - ACSLogCollect - - - - Invoke the log collector, which will collect logs, metrics, settings, health, and other system related informations and package all these information into a package. Later you can send the package to Microsoft for support. - - - - Invoke-ACSLogCollect - - FarmName - - - - String - - - StartTime - - - - DateTime - - - EndTime - - - - DateTime - - - UserName - - - - String - - - Password - - - - String - - - LogPrefix - - - - String - - - AzureStorageContainer - - - - String - - - AzureStorageAccountName - - - - String - - - AzureStorageAccountKey - - - - String - - - AzureSasToken - - - - String - - - TargetShareFolder - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - StartTime - - - - DateTime - - DateTime - - - - - - EndTime - - - - DateTime - - DateTime - - - - - - UserName - - - - String - - String - - - - - - Password - - - - String - - String - - - - - - LogPrefix - - - - String - - String - - - - - - AzureStorageContainer - - - - String - - String - - - - - - AzureStorageAccountName - - - - String - - String - - - - - - AzureStorageAccountKey - - - - String - - String - - - - - - AzureSasToken - - - - String - - String - - - - - - TargetShareFolder - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Resolve-ACSFault - - Resolve/Dismiss a fault in Azure Consistent Storage System. - - - - - Resolve - ACSFault - - - - This cmdlet change the state of a fault from Active to Resolved. - - - - Resolve-ACSFault - - FarmName - - - - String - - - FaultId - - - - String - - - Force - - - - SwitchParameter - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FaultId - - - - String - - String - - - - - - Force - - - - SwitchParameter - - SwitchParameter - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Restart-ACSRoleInstance - - Restart a role instance in the Azure Consistent Storage system. - - - - - Restart - ACSRoleInstance - - - - Restart a role instance in the Azure Consistent Storage system. - - - - Restart-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSBlobService - - Configure Settings of blob service - - - - - Set - ACSBlobService - - - - Configure Settings of blob service - - - - Set-ACSBlobService - - FarmName - - - - String - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - - BlobSvcContainerGcInterval - - - - Nullable`1[Int32] - - - BlobSvcShallowGcInterval - - - - Nullable`1[Int32] - - - BlobSvcStreamMapMinContainerOccupancyPercent - - - - Nullable`1[Int32] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - BlobSvcContainerGcInterval - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - BlobSvcShallowGcInterval - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - BlobSvcStreamMapMinContainerOccupancyPercent - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse, - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.BlobServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSFarm - - Change the setting of service configuration on ACS Farm - - - - - Set - ACSFarm - - - - Change the setting of service configuration on ACS Farm - - - - Set-ACSFarm - - FarmName - - - - String - - - SettingsPollingIntervalInSecond - - - - Nullable`1[Int32] - - - HostStyleHttpPort - - - - Nullable`1[Int32] - - - HostStyleHttpsPort - - - - Nullable`1[Int32] - - - CorsAllowedOriginsList - - - - String - - - DataCenterUriHostSuffixes - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - SettingsPollingIntervalInSecond - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - HostStyleHttpPort - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - HostStyleHttpsPort - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - CorsAllowedOriginsList - - - - String - - String - - - - - - DataCenterUriHostSuffixes - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSManagementService - - Configure Settings of management service - - - - - Set - ACSManagementService - - - - Configure Settings of management service - - - - Set-ACSManagementService - - FarmName - - - - String - - - WacContainerGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - - WacAccountGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - WacContainerGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - WacAccountGcFullScanIntervalInSeconds - - - - Nullable`1[Int32] - - Nullable`1[Int32] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.ManagementServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Set-ACSTableService - - Configure Settings of table service - - - - - Set - ACSTableService - - - - Configure Settings of table service - - - - Set-ACSTableService - - FarmName - - - - String - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - FrontEndCpuBasedKeepAliveThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - FrontEndMemoryThrottlingEnabled - - - - Nullable`1[Boolean] - - Nullable`1[Boolean] - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.TableServiceResponse - - - - - - - - - - - - - - - - - - - - - - - - - Start-ACSBlobServerRoleInstance - - Start blob service instance on a specific physical node. - - - - - Start - ACSBlobServerRoleInstance - - - - Start blob service instance on a specific physical node. - - - - Start-ACSBlobServerRoleInstance - - FarmName - - - - String - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Stop-ACSBlobServerRoleInstance - - Stop blob service instance on a specific physical node. - - - - - Stop - ACSBlobServerRoleInstance - - - - Stop blob service instance on a specific physical node. - - - - Stop-ACSBlobServerRoleInstance - - FarmName - - - - String - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sync-ACSStorageAccount - - Synchronize the account status of the tenant storage accounts from backend to frontend cache. - - - - - Sync - ACSStorageAccount - - - - After undelete a storage account, service admin need to synchronize the account status change back to the frontend cache in order to make sure the frontend could serve the request for that undeleted storage account. - - - - Sync-ACSStorageAccount - - TenantAccountName - - - - String - - - TenantSubscriptionId - - - - String - - - Location - - - - String - - - TenantResourceGroup - - - - String - - - StorageAccountApiVersion - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - TenantAccountName - - - - String - - String - - - - - - TenantSubscriptionId - - - - String - - String - - - - - - Location - - - - String - - String - - - - - - TenantResourceGroup - - - - String - - String - - - - - - StorageAccountApiVersion - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Undo-ACSStorageAccountDeletion - - Undelete a tenant storage account. - - - - - Undo - ACSStorageAccountDeletion - - - - Service admin can use the cmdlet to recover a a storage account deleted by tenant admin. - - - - Undo-ACSStorageAccountDeletion - - FarmName - - - - String - - - AccountId - - - - Int64 - - - NewAccountName - - - - String - - - StorageAccountApiVersion - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - AccountId - - - - Int64 - - Int64 - - - - - - NewAccountName - - - - String - - String - - - - - - StorageAccountApiVersion - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.StorageAccountResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Update-ACSRoleInstance - - Update the settings of a role instance from setting repository - - - - - Update - ACSRoleInstance - - - - Update the settings of a role instance from setting repository - - - - Update-ACSRoleInstance - - FarmName - - - - String - - - RoleType - - - - RoleType - - - InstanceId - - - - String - - - SubscriptionId - - - - String - - - Token - - - - String - - - AdminUri - - - - Uri - - - ResourceGroupName - - - - String - - - SkipCertificateValidation - - - - SwitchParameter - - - WhatIf - - - - SwitchParameter - - - Confirm - - - - SwitchParameter - - - - - - FarmName - - - - String - - String - - - - - - RoleType - - - - RoleType - - RoleType - - - - - - InstanceId - - - - String - - String - - - - - - SubscriptionId - - - - String - - String - - - - - - Token - - - - String - - String - - - - - - AdminUri - - - - Uri - - Uri - - - - - - ResourceGroupName - - - - String - - String - - - - - - SkipCertificateValidation - - - - SwitchParameter - - SwitchParameter - - - - - - WhatIf - - - - SwitchParameter - - SwitchParameter - - - - - - Confirm - - - - SwitchParameter - - SwitchParameter - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.FarmResponse - - - - - - - - - - Microsoft.AzureStack.Commands.StorageAdmin.AccountContainerRoleInstanceResponse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AzureRM.AzureStackStorage.psd1 b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.psd1 similarity index 98% rename from src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AzureRM.AzureStackStorage.psd1 rename to src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.psd1 index fc11b6a3c947..01c0259eb067 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/AzureRM.AzureStackStorage.psd1 +++ b/src/ResourceManager/AzureStackStorage/AzureRM.AzureStackStorage.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '0.10.1' +ModuleVersion = '0.9.2' # ID used to uniquely identify this module GUID = 'DA5816B5-97A6-4301-9AA0-72CC68C79F20' diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj index 84f1dda8d599..917bbbe95db8 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj @@ -68,7 +68,7 @@ False - ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5774.40163-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll + ..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.0.5799.28345-prerelease\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll False @@ -102,7 +102,7 @@ ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll - ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll + ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.3.2.0\lib\net40\Microsoft.WindowsAzure.Configuration.dll False @@ -112,7 +112,7 @@ False ..\..\..\packages\Moq.4.2.1402.2112\lib\net40\Moq.dll - + False ..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll @@ -136,7 +136,6 @@ ..\..\..\packages\xunit.extensions.1.9.2\lib\net20\xunit.extensions.dll True - @@ -303,5 +302,4 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config index c5da93f88844..bdf48333c815 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config @@ -7,7 +7,7 @@ - + @@ -18,11 +18,12 @@ - + - + - + + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj index 7f591939e829..486f7665a52f 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj @@ -1,5 +1,5 @@  - + Debug @@ -13,9 +13,9 @@ 512 ..\..\..\ true + /assemblyCompareMode:StrongNameIgnoringVersion - AnyCPU true full false @@ -28,13 +28,18 @@ true - AnyCPU - pdbonly - true ..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRM.AzureStackStorage\ - TRACE + TRACE;SIGN + true + pdbonly + AnyCPU + bin\Release\Microsoft.AzureStack.Commands.StorageAdmin.dll.CodeAnalysisLog.xml + true + GlobalSuppressions.cs prompt - 4 + MinimumRecommendedRules.ruleset + ;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\Rule Sets + ;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\Rules true true MSSharedLibKey.snk @@ -96,8 +101,8 @@ ..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.0.11.0\lib\net45\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll True - - ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll + + ..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.3.2.0\lib\net40\Microsoft.WindowsAzure.Configuration.dll False @@ -196,14 +201,10 @@ - - Always - Designer - @@ -225,5 +226,4 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs index 9ed1b8b38608..f0d5722a28e3 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Properties/AssemblyInfo.cs @@ -12,22 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -// -// -// Copyright (C) Microsoft. All rights reserved. -// -// +using System; +using System.Reflection; +using System.Runtime.InteropServices; -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Microsoft AzureStack Powershell ")] +[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] +[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] + +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] -[assembly: System.CLSCompliantAttribute(false)] -[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: Guid("D4CA0CC1-CD0A-4CE2-A40D-2D8A082D8791")] +[assembly: AssemblyVersion("0.9.2")] +[assembly: AssemblyFileVersion("0.9.2")] \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config index 2f5c06dc73da..44d9f64ece69 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config @@ -17,7 +17,7 @@ - + \ No newline at end of file diff --git a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 index 691e190fce38..5bbe0466ef31 100644 --- a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 +++ b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 @@ -115,6 +115,7 @@ NestedModules = @( '.\AzureRM.DataLakeStore', '.\AzureRM.Intune', '.\AzureRM.RecoveryServices', + '.\AzureRM.AzureStackAdmin', '.\AzureRM.AzureStackStorage' ) From 5904e074d87e8aaa274428e651e0a6f96c6cd496 Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Thu, 28 Jan 2016 15:05:17 -0800 Subject: [PATCH 11/27] Bumped up installer and AzureRm module versions. --- ChangeLog.md | 3 ++- setup/azurecmd.wxs | 4 ++-- tools/AzureRM/AzureRM.psd1 | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 1b85a50847f4..d82586d442ff 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,6 @@ -## 2016.02.02 version 1.1.1 +## 2016.02.02 version 1.2.0 * Azure RemoteApp: Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters. + ## 2016.01.12 version 1.1.0 * Azure SQL Database: Threat Detection policies: * Using new Threat Detection Types diff --git a/setup/azurecmd.wxs b/setup/azurecmd.wxs index a4d9d7660211..e25ce2bdf2f6 100644 --- a/setup/azurecmd.wxs +++ b/setup/azurecmd.wxs @@ -1,11 +1,11 @@  - + - + Date: Thu, 28 Jan 2016 15:26:08 -0800 Subject: [PATCH 12/27] setup changes for azurestackstorage --- setup/azurecmdfiles.wxi | 102 +++++++++++++++++- .../Commands.AzureStackStorage.Test.csproj | 1 + 2 files changed, 99 insertions(+), 4 deletions(-) diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi index 1aa66e8fffcb..311aa6e0d946 100644 --- a/setup/azurecmdfiles.wxi +++ b/setup/azurecmdfiles.wxi @@ -299,9 +299,6 @@ - - - @@ -354,6 +351,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5002,7 +5073,6 @@ - @@ -5020,6 +5090,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj index 917bbbe95db8..4dea6314f94c 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj @@ -136,6 +136,7 @@ ..\..\..\packages\xunit.extensions.1.9.2\lib\net20\xunit.extensions.dll True + From 449b775a2ac2d74de6daee0a7d93d9809654e8ce Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Thu, 28 Jan 2016 15:27:35 -0800 Subject: [PATCH 13/27] Bumped up module versions. --- .../Commands.Common.Storage/Properties/AssemblyInfo.cs | 4 ++-- src/Common/Commands.Common/AzurePowerShell.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- src/Common/Storage/Azure.Storage.psd1 | 4 ++-- .../Commands.Storage.MsTest2/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Storage.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Storage/Commands.Storage/Properties/AssemblyInfo.cs | 4 ++-- .../ApiManagement/AzureRM.ApiManagement.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.ApiManagement/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.SMAPI.Test/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Automation/AzureRM.Automation.psd1 | 6 +++--- .../Commands.Automation.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Automation/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/AzureBackup/AzureRM.Backup.psd1 | 6 +++--- .../Commands.AzureBackup.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.AzureBackup/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/AzureBatch/AzureRM.Batch.psd1 | 6 +++--- .../Commands.Batch.Test/Properties/AssemblyInfo.cs | 4 ++-- .../AzureBatch/Commands.Batch/Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Compute/AzureRM.Compute.psd1 | 6 +++--- .../Commands.Compute.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Compute/Commands.Compute/Properties/AssemblyInfo.cs | 4 ++-- .../DataFactories/AzureRM.DataFactories.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.DataFactories/Properties/AssemblyInfo.cs | 4 ++-- .../DataLakeAnalytics/AzureRM.DataLakeAnalytics.psd1 | 8 ++++---- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.DataLakeAnalytics/Properties/AssemblyInfo.cs | 4 ++-- .../DataLakeStore/AzureRM.DataLakeStore.psd1 | 8 ++++---- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.DataLakeStore/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Dns/AzureRM.Dns.psd1 | 6 +++--- .../Dns/Commands.Dns.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Dns/Commands.Dns/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/HDInsight/AzureRM.HDInsight.psd1 | 6 +++--- .../Commands.HDInsight.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.HDInsight/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Insights/AzureRM.Insights.psd1 | 6 +++--- .../Commands.Insights.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Insights/Commands.Insights/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Intune/AzureRM.Intune.psd1 | 6 +++--- .../Commands.Intune.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Intune/Commands.Intune/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/KeyVault/AzureRM.KeyVault.psd1 | 6 +++--- .../KeyVault/Commands.KeyVault/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Network/AzureRM.Network.psd1 | 6 +++--- .../Commands.Network.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Network/Commands.Network/Properties/AssemblyInfo.cs | 4 ++-- .../NotificationHubs/AzureRM.NotificationHubs.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.NotificationHubs/Properties/AssemblyInfo.cs | 4 ++-- .../OperationalInsights/AzureRM.OperationalInsights.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Profile/AzureRM.Profile.psd1 | 4 ++-- .../Commands.Profile.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Profile/Commands.Profile/Properties/AssemblyInfo.cs | 4 ++-- .../RecoveryServices/AzureRM.RecoveryServices.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.RecoveryServices/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/RedisCache/AzureRM.RedisCache.psd1 | 6 +++--- .../Commands.RedisCache.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.RedisCache/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Resources/AzureRM.Resources.psd1 | 6 +++--- .../Cmdlets/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Resources.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Resources/AzureResourceManager.psd1 | 4 ++-- .../Commands.Resources/Properties/AssemblyInfo.cs | 4 ++-- .../SiteRecovery/AzureRM.SiteRecovery.psd1 | 6 +++--- .../Commands.SiteRecovery.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.SiteRecovery/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Sql/AzureRM.Sql.psd1 | 6 +++--- .../Sql/Commands.Sql.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Sql/Commands.Sql/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Storage/AzureRM.Storage.psd1 | 8 ++++---- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../StreamAnalytics/AzureRM.StreamAnalytics.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.StreamAnalytics/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Tags/AzureRM.Tags.psd1 | 6 +++--- .../Tags/Commands.Tags/Properties/AssemblyInfo.cs | 4 ++-- .../TrafficManager/AzureRM.TrafficManager.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.TrafficManager2/Properties/AssemblyInfo.cs | 4 ++-- .../UsageAggregates/AzureRM.UsageAggregates.psd1 | 6 +++--- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.UsageAggregates/Properties/AssemblyInfo.cs | 4 ++-- src/ResourceManager/Websites/AzureRM.Websites.psd1 | 6 +++--- .../Commands.Websites.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Websites/Commands.Websites/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Automation.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Automation/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Common.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.ScenarioTest/Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.ServiceManagement/Properties/AssemblyInfo.cs | 4 ++-- .../Compute/Sync/Properties/AssemblyInfo.cs | 4 ++-- .../Compute/VhdManagement/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.ExpressRoute/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.HDInsight.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.HDInsight/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.ManagedCache.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.ManagedCache/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Network.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Network/Commands.Network/Properties/AssemblyInfo.cs | 4 ++-- .../Profile/Commands.Profile/Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.RecoveryServices/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Test.Utilities/Properties/AssemblyInfo.cs | 4 ++-- .../Services/Commands.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Services/Commands.Utilities/Azure.psd1 | 2 +- .../Commands.Utilities/Properties/AssemblyInfo.cs | 4 ++-- .../Services/Commands/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.SqlDatabase.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Sql/Commands.SqlDatabase/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.StorSimple.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.StorSimple/Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Commands.TrafficManager/Properties/AssemblyInfo.cs | 4 ++-- 130 files changed, 289 insertions(+), 289 deletions(-) diff --git a/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs b/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs index 8327bc4dc1db..deec55340bae 100644 --- a/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs +++ b/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("c565107e-98a9-4703-85cd-a7efc3d8da7b")] -[assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyFileVersion("1.0.0")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/Common/Commands.Common/AzurePowerShell.cs b/src/Common/Commands.Common/AzurePowerShell.cs index 246882fd07d2..c324a7f347a0 100644 --- a/src/Common/Commands.Common/AzurePowerShell.cs +++ b/src/Common/Commands.Common/AzurePowerShell.cs @@ -27,9 +27,9 @@ public class AzurePowerShell public const string AssemblyCopyright = "Copyright © Microsoft"; - public const string AssemblyVersion = "1.0.0"; + public const string AssemblyVersion = "1.0.4"; - public const string AssemblyFileVersion = "1.0.2"; + public const string AssemblyFileVersion = "1.0.4"; public const string ProfileFile = "AzureProfile.json"; diff --git a/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs b/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs index 98d020782545..d885d212a7cd 100644 --- a/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs +++ b/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/Common/Storage/Azure.Storage.psd1 b/src/Common/Storage/Azure.Storage.psd1 index 4456847a3e7b..36b405c28855 100644 --- a/src/Common/Storage/Azure.Storage.psd1 +++ b/src/Common/Storage/Azure.Storage.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '00612bca-fa22-401d-a671-9cc48b010e3b' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs index 05e13bd19b06..4f01d0a5f9e4 100644 --- a/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8.16")] -[assembly: AssemblyFileVersion("0.8.16")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs index 6b03c8c7761f..bcea417f2273 100644 --- a/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8.5")] -[assembly: AssemblyFileVersion("0.8.5")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs index 12aaec94e3f7..0e054195269c 100644 --- a/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8.5")] -[assembly: AssemblyFileVersion("0.8.5")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs index fb34ae2056bb..e328ad93614c 100644 --- a/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8.5")] -[assembly: AssemblyFileVersion("0.8.5")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs index 729955159e99..dee23a95f056 100644 --- a/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)] -[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/Common/Storage/Commands.Storage/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage/Properties/AssemblyInfo.cs index eb4145ace49f..50b5ad188983 100644 --- a/src/Common/Storage/Commands.Storage/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage/Properties/AssemblyInfo.cs @@ -44,8 +44,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Storage.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ResourceManager/ApiManagement/AzureRM.ApiManagement.psd1 b/src/ResourceManager/ApiManagement/AzureRM.ApiManagement.psd1 index 9cbfb58dbe63..aaf71d7802fd 100644 --- a/src/ResourceManager/ApiManagement/AzureRM.ApiManagement.psd1 +++ b/src/ResourceManager/ApiManagement/AzureRM.ApiManagement.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.ApiManagement' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'f875725d-8ce4-423f-a6af-ea880bc63f13' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs index d2b83cb5b7bf..df98f530fac8 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs @@ -42,5 +42,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Properties/AssemblyInfo.cs index 6720afcce6df..0f1e0c47cea1 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Properties/AssemblyInfo.cs b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Properties/AssemblyInfo.cs index 3c0e2407765d..9e68ad3db749 100644 --- a/src/ResourceManager/ApiManagement/Commands.ApiManagement/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/ApiManagement/Commands.ApiManagement/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Properties/AssemblyInfo.cs index a07ee955a6f1..421201341f40 100644 --- a/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Automation/AzureRM.Automation.psd1 b/src/ResourceManager/Automation/AzureRM.Automation.psd1 index 34d0dd5470e2..a6172536bf69 100644 --- a/src/ResourceManager/Automation/AzureRM.Automation.psd1 +++ b/src/ResourceManager/Automation/AzureRM.Automation.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Automation' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'bcea1c70-a32b-48c3-a05c-323e1c02f4d3' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs index 88f8580c2f54..3aa7667b4209 100644 --- a/src/ResourceManager/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs @@ -42,6 +42,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] diff --git a/src/ResourceManager/Automation/Commands.Automation/Properties/AssemblyInfo.cs b/src/ResourceManager/Automation/Commands.Automation/Properties/AssemblyInfo.cs index 4c69fa36505d..9035ff3833a4 100644 --- a/src/ResourceManager/Automation/Commands.Automation/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Automation/Commands.Automation/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.ResourceManager.Automation.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/AzureBackup/AzureRM.Backup.psd1 b/src/ResourceManager/AzureBackup/AzureRM.Backup.psd1 index ce23e9946e36..c813e6fd375f 100644 --- a/src/ResourceManager/AzureBackup/AzureRM.Backup.psd1 +++ b/src/ResourceManager/AzureBackup/AzureRM.Backup.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.AzureBackup' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '0b1d76f5-a928-4b8f-9c83-df26947568d4' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Properties/AssemblyInfo.cs index 66ffec4279b1..52407357aef0 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Properties/AssemblyInfo.cs @@ -46,5 +46,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/AssemblyInfo.cs index d610329fd4c0..7e8012eceb90 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/AzureBatch/AzureRM.Batch.psd1 b/src/ResourceManager/AzureBatch/AzureRM.Batch.psd1 index 962306420e69..fa0b51962059 100644 --- a/src/ResourceManager/AzureBatch/AzureRM.Batch.psd1 +++ b/src/ResourceManager/AzureBatch/AzureRM.Batch.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Batch' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'a8f00f40-1c1a-49b5-9db3-24076b75c3cf' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Properties/AssemblyInfo.cs index 1c7d55b10fef..01521d1531d7 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/AssemblyInfo.cs b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/AssemblyInfo.cs index b4496e975a60..e20109ef7143 100644 --- a/src/ResourceManager/AzureBatch/Commands.Batch/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/AzureBatch/Commands.Batch/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("ed102280-3577-49bf-93dd-11b6e3a44a57")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Batch.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Common/Commands.ResourceManager.Common/Properties/AssemblyInfo.cs b/src/ResourceManager/Common/Commands.ResourceManager.Common/Properties/AssemblyInfo.cs index abfe416364fb..a28ca9b3d78b 100644 --- a/src/ResourceManager/Common/Commands.ResourceManager.Common/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Common/Commands.ResourceManager.Common/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("3819d8a7-c62c-4c47-8ddd-0332d9ce1252")] -[assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyFileVersion("1.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] \ No newline at end of file diff --git a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Properties/AssemblyInfo.cs b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Properties/AssemblyInfo.cs index 24c15f222c0e..d11d2de303a7 100644 --- a/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Compute/AzureRM.Compute.psd1 b/src/ResourceManager/Compute/AzureRM.Compute.psd1 index 0fe343994075..9835aaa8ec1c 100644 --- a/src/ResourceManager/Compute/AzureRM.Compute.psd1 +++ b/src/ResourceManager/Compute/AzureRM.Compute.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Compute' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.2.1' +ModuleVersion = '1.2.2' # ID used to uniquely identify this module GUID = '0a83c907-1ffb-4d87-a492-c65ac7d7ed37' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Compute/Commands.Compute.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Compute/Commands.Compute.Test/Properties/AssemblyInfo.cs index 29e0ba680d1b..4e3aadc992b0 100644 --- a/src/ResourceManager/Compute/Commands.Compute.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Compute/Commands.Compute.Test/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ [assembly: Guid("28fe3fc0-6fdf-4f01-8a82-d7b4a834ddd2")] -[assembly: AssemblyVersion("1.2.1")] -[assembly: AssemblyFileVersion("1.2.1")] +[assembly: AssemblyVersion("1.2.2")] +[assembly: AssemblyFileVersion("1.2.2")] diff --git a/src/ResourceManager/Compute/Commands.Compute/Properties/AssemblyInfo.cs b/src/ResourceManager/Compute/Commands.Compute/Properties/AssemblyInfo.cs index 4f40e4d78590..906eba0828e6 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Compute/Commands.Compute/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("91792853-487B-4DC2-BE6C-DD09A0A1BC10")] -[assembly: AssemblyVersion("1.2.1")] -[assembly: AssemblyFileVersion("1.2.1")] +[assembly: AssemblyVersion("1.2.2")] +[assembly: AssemblyFileVersion("1.2.2")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Compute.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/DataFactories/AzureRM.DataFactories.psd1 b/src/ResourceManager/DataFactories/AzureRM.DataFactories.psd1 index e6e813977fb3..2c4715276098 100644 --- a/src/ResourceManager/DataFactories/AzureRM.DataFactories.psd1 +++ b/src/ResourceManager/DataFactories/AzureRM.DataFactories.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.DataFactories' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'e3c0f6bc-fe96-41a0-88f4-5e490a91f05d' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Properties/AssemblyInfo.cs index a981424c182a..142d3339ac5b 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories.Test/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ [assembly: Guid("8E86B542-B22F-44B6-8053-3F5118E04DEA")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/AssemblyInfo.cs b/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/AssemblyInfo.cs index e80c3ee639e6..3d622cf5051a 100644 --- a/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/DataFactories/Commands.DataFactories/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("5d024af0-81c9-44f0-b3b0-7080f103fb4d")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.DataFactories.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/DataLakeAnalytics/AzureRM.DataLakeAnalytics.psd1 b/src/ResourceManager/DataLakeAnalytics/AzureRM.DataLakeAnalytics.psd1 index 25ee1646d9ce..d9566026297c 100644 --- a/src/ResourceManager/DataLakeAnalytics/AzureRM.DataLakeAnalytics.psd1 +++ b/src/ResourceManager/DataLakeAnalytics/AzureRM.DataLakeAnalytics.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.DataLakeAnalytics' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'eca73aa1-a68f-4ceb-9775-70759316a57b' @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' # Copyright statement for this module -Copyright = ' Microsoft Corporation. All rights reserved.' +Copyright = '© Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module Description = 'Microsoft Azure PowerShell - Data Lake Analytics' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3' }) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4' }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/Properties/AssemblyInfo.cs index 2db4ce4880d6..34a508723774 100644 --- a/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ [assembly: Guid("C01CC766-EAA4-4CA3-A595-6C4681316532")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Properties/AssemblyInfo.cs b/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Properties/AssemblyInfo.cs index 467a6af4fddd..c490231530a5 100644 --- a/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/DataLakeStore/AzureRM.DataLakeStore.psd1 b/src/ResourceManager/DataLakeStore/AzureRM.DataLakeStore.psd1 index 4820786d4331..04440643e935 100644 --- a/src/ResourceManager/DataLakeStore/AzureRM.DataLakeStore.psd1 +++ b/src/ResourceManager/DataLakeStore/AzureRM.DataLakeStore.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.DataLakeStore' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '90dfd814-abce-4e1f-99b6-fe16760c079a' @@ -21,7 +21,7 @@ Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' # Copyright statement for this module -Copyright = ' Microsoft Corporation. All rights reserved.' +Copyright = '© Microsoft Corporation. All rights reserved.' # Description of the functionality provided by this module Description = 'Microsoft Azure PowerShell - Data Lake Store' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3' }) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4' }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/Properties/AssemblyInfo.cs index 45e0575fb01d..e96db409f76e 100644 --- a/src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ [assembly: Guid("C01CC766-EAA4-4CA3-A595-6C4681316532")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Properties/AssemblyInfo.cs b/src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Properties/AssemblyInfo.cs index afe8ce4f2ee7..f5b5989571f8 100644 --- a/src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Dns/AzureRM.Dns.psd1 b/src/ResourceManager/Dns/AzureRM.Dns.psd1 index 6ce80cfe5a3c..6d0411d23806 100644 --- a/src/ResourceManager/Dns/AzureRM.Dns.psd1 +++ b/src/ResourceManager/Dns/AzureRM.Dns.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Dns' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '5e5ed8bc-27bf-4380-9de1-4b22ba0920b2' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Dns/Commands.Dns.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Dns/Commands.Dns.Test/Properties/AssemblyInfo.cs index bb02cd42fd10..b3c7d1989158 100644 --- a/src/ResourceManager/Dns/Commands.Dns.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Dns/Commands.Dns.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("4623A8BD-075F-4B7C-9971-FBEDBFBDE521")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Dns/Commands.Dns/Properties/AssemblyInfo.cs b/src/ResourceManager/Dns/Commands.Dns/Properties/AssemblyInfo.cs index 48a13c447a77..f0fbf60a4ba3 100644 --- a/src/ResourceManager/Dns/Commands.Dns/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Dns/Commands.Dns/Properties/AssemblyInfo.cs @@ -44,8 +44,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/HDInsight/AzureRM.HDInsight.psd1 b/src/ResourceManager/HDInsight/AzureRM.HDInsight.psd1 index dbc390bab577..2f4b68ce7a83 100644 --- a/src/ResourceManager/HDInsight/AzureRM.HDInsight.psd1 +++ b/src/ResourceManager/HDInsight/AzureRM.HDInsight.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.HDInsight' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.4' +ModuleVersion = '1.0.5' # ID used to uniquely identify this module GUID = '3fd1475f-cb23-4ffb-bf08-33d94b7d1acb' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs index 8cd82e953e38..da6e6fb9c7e5 100644 --- a/src/ResourceManager/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs @@ -45,5 +45,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion("1.0.5")] +[assembly: AssemblyFileVersion("1.0.5")] diff --git a/src/ResourceManager/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs b/src/ResourceManager/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs index 058430761037..e4f036b3e574 100644 --- a/src/ResourceManager/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs @@ -27,5 +27,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("57ad7b0e-1f56-4166-b1f9-ec6512139a54")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion("1.0.5")] +[assembly: AssemblyFileVersion("1.0.5")] diff --git a/src/ResourceManager/Insights/AzureRM.Insights.psd1 b/src/ResourceManager/Insights/AzureRM.Insights.psd1 index 003ae685e3d1..8bdc9ee06519 100644 --- a/src/ResourceManager/Insights/AzureRM.Insights.psd1 +++ b/src/ResourceManager/Insights/AzureRM.Insights.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Insights' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '698c387c-bd6b-41c6-82ce-721f1ef39548' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Insights/Commands.Insights.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Insights/Commands.Insights.Test/Properties/AssemblyInfo.cs index 15e42004cb0d..18172f3dab84 100644 --- a/src/ResourceManager/Insights/Commands.Insights.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Insights/Commands.Insights.Test/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ [assembly: Guid("5802D147-3EE9-4352-A0B1-1C16B6DBCA7C")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Insights/Commands.Insights/Properties/AssemblyInfo.cs b/src/ResourceManager/Insights/Commands.Insights/Properties/AssemblyInfo.cs index 901f9e1da1a8..80d64d8ef25b 100644 --- a/src/ResourceManager/Insights/Commands.Insights/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Insights/Commands.Insights/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("ed102280-3577-49bf-93dd-11b6e3a44a57")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Intune/AzureRM.Intune.psd1 b/src/ResourceManager/Intune/AzureRM.Intune.psd1 index 0c0c3e7d9d67..4409946a6315 100644 --- a/src/ResourceManager/Intune/AzureRM.Intune.psd1 +++ b/src/ResourceManager/Intune/AzureRM.Intune.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'AzureRM.Intune' # # Generated by: vrmurthy @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '1.0.2' +ModuleVersion = '1.0.3' # ID used to uniquely identify this module GUID = '1be1e8c1-8b8a-41b3-82e9-88e7bc941fa0' @@ -48,7 +48,7 @@ CLRVersion='4.0' # ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() diff --git a/src/ResourceManager/Intune/Commands.Intune.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Intune/Commands.Intune.Test/Properties/AssemblyInfo.cs index aaa0bf43d21d..e784fac57392 100644 --- a/src/ResourceManager/Intune/Commands.Intune.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Intune/Commands.Intune.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.2")] -[assembly: AssemblyFileVersion("1.0.2")] +[assembly: AssemblyVersion("1.0.3")] +[assembly: AssemblyFileVersion("1.0.3")] diff --git a/src/ResourceManager/Intune/Commands.Intune/Properties/AssemblyInfo.cs b/src/ResourceManager/Intune/Commands.Intune/Properties/AssemblyInfo.cs index 4eeec966ac5f..228e1227c5ac 100644 --- a/src/ResourceManager/Intune/Commands.Intune/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Intune/Commands.Intune/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.2")] -[assembly: AssemblyFileVersion("1.0.2")] +[assembly: AssemblyVersion("1.0.3")] +[assembly: AssemblyFileVersion("1.0.3")] diff --git a/src/ResourceManager/KeyVault/AzureRM.KeyVault.psd1 b/src/ResourceManager/KeyVault/AzureRM.KeyVault.psd1 index ea6d5eed9c25..6d513a7f55fb 100644 --- a/src/ResourceManager/KeyVault/AzureRM.KeyVault.psd1 +++ b/src/ResourceManager/KeyVault/AzureRM.KeyVault.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.KeyVault' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.1.2' +ModuleVersion = '1.1.3' # ID used to uniquely identify this module GUID = 'fa236c1f-6464-4d6a-a48d-db47c0e7923d' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/KeyVault/Commands.KeyVault/Properties/AssemblyInfo.cs b/src/ResourceManager/KeyVault/Commands.KeyVault/Properties/AssemblyInfo.cs index cd76b0eaaa4d..30654e12a2b1 100644 --- a/src/ResourceManager/KeyVault/Commands.KeyVault/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/KeyVault/Commands.KeyVault/Properties/AssemblyInfo.cs @@ -29,8 +29,8 @@ [assembly: CLSCompliant(false)] [assembly: Guid("2994548F-69B9-4DC2-8D19-52CC0C0C85BC")] -[assembly: AssemblyVersion("1.1.2")] -[assembly: AssemblyFileVersion("1.1.2")] +[assembly: AssemblyVersion("1.1.3")] +[assembly: AssemblyFileVersion("1.1.3")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.KeyVault.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Network/AzureRM.Network.psd1 b/src/ResourceManager/Network/AzureRM.Network.psd1 index 830e985aa86c..2de4d7e1d145 100644 --- a/src/ResourceManager/Network/AzureRM.Network.psd1 +++ b/src/ResourceManager/Network/AzureRM.Network.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Network' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'eb75c732-e274-4a20-b502-e9958e63484a' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Network/Commands.Network.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Network/Commands.Network.Test/Properties/AssemblyInfo.cs index f410bcf846a0..7f36868b4f31 100644 --- a/src/ResourceManager/Network/Commands.Network.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Network/Commands.Network.Test/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ [assembly: Guid("d1e9969e-7b83-4dfc-a7a2-523d4f7e6cc9")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs b/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs index 5b7c12ae30ea..f2feb97cf1ad 100644 --- a/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Network/Commands.Network/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("be2ca022-590c-48ba-b465-9ab61d6e2ea0")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Network.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/NotificationHubs/AzureRM.NotificationHubs.psd1 b/src/ResourceManager/NotificationHubs/AzureRM.NotificationHubs.psd1 index 8d9e911bce48..ce89c4826e01 100644 --- a/src/ResourceManager/NotificationHubs/AzureRM.NotificationHubs.psd1 +++ b/src/ResourceManager/NotificationHubs/AzureRM.NotificationHubs.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.NotificationHubs' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'f875725d-8ce4-423f-a6af-ea880bc63f13' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3' }) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4' }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/NotificationHubs/Commands.NotificationHubs.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/NotificationHubs/Commands.NotificationHubs.Test/Properties/AssemblyInfo.cs index 47f1d408e76f..cf3340d09fa8 100644 --- a/src/ResourceManager/NotificationHubs/Commands.NotificationHubs.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/NotificationHubs/Commands.NotificationHubs.Test/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Properties/AssemblyInfo.cs b/src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Properties/AssemblyInfo.cs index a35f897fcf7e..28d9f719fa05 100644 --- a/src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("9e93b969-6685-4a67-b07d-cfd5ebd0091e")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.NotificationHubs.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/OperationalInsights/AzureRM.OperationalInsights.psd1 b/src/ResourceManager/OperationalInsights/AzureRM.OperationalInsights.psd1 index 8452439bace5..1ba293119b6e 100644 --- a/src/ResourceManager/OperationalInsights/AzureRM.OperationalInsights.psd1 +++ b/src/ResourceManager/OperationalInsights/AzureRM.OperationalInsights.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.OperationalInsights' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'e827799a-7abf-4538-a61f-94dc52a48bd4' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Properties/AssemblyInfo.cs index f6d3b7ca5db5..fdad9c8f317f 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Properties/AssemblyInfo.cs b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Properties/AssemblyInfo.cs index f7225bfafd7c..11f4222a83b3 100644 --- a/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("5be35a94-c20f-4659-aa29-9b9aebcfaf36")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.OperationalInsights.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Profile/AzureRM.Profile.psd1 b/src/ResourceManager/Profile/AzureRM.Profile.psd1 index bfe8182a976a..6498a636ef45 100644 --- a/src/ResourceManager/Profile/AzureRM.Profile.psd1 +++ b/src/ResourceManager/Profile/AzureRM.Profile.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Profile' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '342714fc-4009-4863-8afb-a9067e3db04b' diff --git a/src/ResourceManager/Profile/Commands.Profile.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Profile/Commands.Profile.Test/Properties/AssemblyInfo.cs index ac1ea1d21421..38345b60ee46 100644 --- a/src/ResourceManager/Profile/Commands.Profile.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Profile/Commands.Profile.Test/Properties/AssemblyInfo.cs @@ -25,5 +25,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Profile/Commands.Profile/Properties/AssemblyInfo.cs b/src/ResourceManager/Profile/Commands.Profile/Properties/AssemblyInfo.cs index 683f96b65ca9..a60440de0510 100644 --- a/src/ResourceManager/Profile/Commands.Profile/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Profile/Commands.Profile/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Profile.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ResourceManager/RecoveryServices/AzureRM.RecoveryServices.psd1 b/src/ResourceManager/RecoveryServices/AzureRM.RecoveryServices.psd1 index 7be466cb7b0a..aa622f26bc8f 100644 --- a/src/ResourceManager/RecoveryServices/AzureRM.RecoveryServices.psd1 +++ b/src/ResourceManager/RecoveryServices/AzureRM.RecoveryServices.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.RecoveryServices' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.4' +ModuleVersion = '1.0.5' # ID used to uniquely identify this module GUID = '4AA53B7E-FCFE-4E22-979C-9A4E6380DE58' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs index 0194f7ee69df..7a1292f06302 100644 --- a/src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs @@ -43,5 +43,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion("1.0.5")] +[assembly: AssemblyFileVersion("1.0.5")] diff --git a/src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs b/src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs index 92f179bd6d88..23329a3c9d3e 100644 --- a/src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs @@ -42,5 +42,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion("1.0.5")] +[assembly: AssemblyFileVersion("1.0.5")] diff --git a/src/ResourceManager/RedisCache/AzureRM.RedisCache.psd1 b/src/ResourceManager/RedisCache/AzureRM.RedisCache.psd1 index 32bf2cdea822..8db13dad3fc0 100644 --- a/src/ResourceManager/RedisCache/AzureRM.RedisCache.psd1 +++ b/src/ResourceManager/RedisCache/AzureRM.RedisCache.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.RedisCache' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.1.1' +ModuleVersion = '1.1.2' # ID used to uniquely identify this module GUID = '820628d7-6938-488a-8760-43373a5ffce6' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Properties/AssemblyInfo.cs index 7925dec06634..8a5dc0f08d44 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/RedisCache/Commands.RedisCache.Test/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ [assembly: Guid("C01CC766-EAA4-4CA3-A595-6C4681316532")] -[assembly: AssemblyVersion("1.1.1")] -[assembly: AssemblyFileVersion("1.1.1")] +[assembly: AssemblyVersion("1.1.2")] +[assembly: AssemblyFileVersion("1.1.2")] diff --git a/src/ResourceManager/RedisCache/Commands.RedisCache/Properties/AssemblyInfo.cs b/src/ResourceManager/RedisCache/Commands.RedisCache/Properties/AssemblyInfo.cs index a0aaa1473019..57d06250ee57 100644 --- a/src/ResourceManager/RedisCache/Commands.RedisCache/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/RedisCache/Commands.RedisCache/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("6D663ED9-C1A5-438F-B88A-D709562538C6")] -[assembly: AssemblyVersion("1.1.1")] -[assembly: AssemblyFileVersion("1.1.1")] +[assembly: AssemblyVersion("1.1.2")] +[assembly: AssemblyFileVersion("1.1.2")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.RedisCache.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Resources/AzureRM.Resources.psd1 b/src/ResourceManager/Resources/AzureRM.Resources.psd1 index 673f8cab94e0..5298573ea4e3 100644 --- a/src/ResourceManager/Resources/AzureRM.Resources.psd1 +++ b/src/ResourceManager/Resources/AzureRM.Resources.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Resources' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'ab3ca893-26fe-44b0-bd3c-8933df144d7b' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Properties/AssemblyInfo.cs b/src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Properties/AssemblyInfo.cs index e457064cc4e7..e4b3c3b3c203 100644 --- a/src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("e8f34267-c461-4eae-b156-5f3528553d10")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Resources/Commands.Resources.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Resources/Commands.Resources.Test/Properties/AssemblyInfo.cs index 7b7a7de34523..3ec000b7a648 100644 --- a/src/ResourceManager/Resources/Commands.Resources.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Resources/Commands.Resources.Test/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ [assembly: Guid("28fe3fc0-6fdf-4f01-8a82-d7b4a834ddd2")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 index 2f6765349c16..58059cf3f21b 100644 --- a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 +++ b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Azure Resource Manager' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '0.10.1' +ModuleVersion = '1.2.0' # ID used to uniquely identify this module GUID = '81d522a4-6e5d-4105-8f58-376204c47458' diff --git a/src/ResourceManager/Resources/Commands.Resources/Properties/AssemblyInfo.cs b/src/ResourceManager/Resources/Commands.Resources/Properties/AssemblyInfo.cs index 2ac131979d20..7c86d6d63e3a 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Resources/Commands.Resources/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("e386b843-f3f0-4db3-8664-37d16b860dde")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/SiteRecovery/AzureRM.SiteRecovery.psd1 b/src/ResourceManager/SiteRecovery/AzureRM.SiteRecovery.psd1 index 716b55fd87a7..645105b58d2f 100644 --- a/src/ResourceManager/SiteRecovery/AzureRM.SiteRecovery.psd1 +++ b/src/ResourceManager/SiteRecovery/AzureRM.SiteRecovery.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.SiteRecovery' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.1.2' +ModuleVersion = '1.1.3' # ID used to uniquely identify this module GUID = 'd1de7560-48e1-48f3-bc8c-4eea3af2bbe1' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Properties/AssemblyInfo.cs index a71676676b84..94e034694b14 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Properties/AssemblyInfo.cs @@ -43,5 +43,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.1.2")] -[assembly: AssemblyFileVersion("1.1.2")] +[assembly: AssemblyVersion("1.1.3")] +[assembly: AssemblyFileVersion("1.1.3")] diff --git a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/AssemblyInfo.cs b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/AssemblyInfo.cs index 072a2971dd67..5969b74db925 100644 --- a/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Properties/AssemblyInfo.cs @@ -42,5 +42,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.1.2")] -[assembly: AssemblyFileVersion("1.1.2")] +[assembly: AssemblyVersion("1.1.3")] +[assembly: AssemblyFileVersion("1.1.3")] diff --git a/src/ResourceManager/Sql/AzureRM.Sql.psd1 b/src/ResourceManager/Sql/AzureRM.Sql.psd1 index 3706eb60894d..ee9731e2d7d9 100644 --- a/src/ResourceManager/Sql/AzureRM.Sql.psd1 +++ b/src/ResourceManager/Sql/AzureRM.Sql.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Sql' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '150d9544-6348-4373-806f-10cd0b4de4cb' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Sql/Commands.Sql.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Sql/Commands.Sql.Test/Properties/AssemblyInfo.cs index 84e0b2304715..9b3cbf1a7db4 100644 --- a/src/ResourceManager/Sql/Commands.Sql.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Sql/Commands.Sql.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("f6f46134-9c1b-4599-8dd0-789299c076ef")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Sql/Commands.Sql/Properties/AssemblyInfo.cs b/src/ResourceManager/Sql/Commands.Sql/Properties/AssemblyInfo.cs index 5883a17da268..6dba7812539d 100644 --- a/src/ResourceManager/Sql/Commands.Sql/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Sql/Commands.Sql/Properties/AssemblyInfo.cs @@ -44,8 +44,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Storage/AzureRM.Storage.psd1 b/src/ResourceManager/Storage/AzureRM.Storage.psd1 index 99c42a2b4b52..7ed38956a671 100644 --- a/src/ResourceManager/Storage/AzureRM.Storage.psd1 +++ b/src/ResourceManager/Storage/AzureRM.Storage.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Management.Storage' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'da67eaa7-4cb1-4bfa-a194-8bf3faae8ac5' @@ -46,8 +46,8 @@ ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @( - @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}, - @{ ModuleName = 'Azure.Storage'; ModuleVersion = '1.0.3'} + @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}, + @{ ModuleName = 'Azure.Storage'; ModuleVersion = '1.0.4'} ) # Assemblies that must be loaded prior to importing this module diff --git a/src/ResourceManager/Storage/Commands.Management.Storage.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Storage/Commands.Management.Storage.Test/Properties/AssemblyInfo.cs index e34f675601a4..7cf98a99b3e0 100644 --- a/src/ResourceManager/Storage/Commands.Management.Storage.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Storage/Commands.Management.Storage.Test/Properties/AssemblyInfo.cs @@ -47,5 +47,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Storage/Commands.Management.Storage/Properties/AssemblyInfo.cs b/src/ResourceManager/Storage/Commands.Management.Storage/Properties/AssemblyInfo.cs index 85af45f3ef35..7651917fc546 100644 --- a/src/ResourceManager/Storage/Commands.Management.Storage/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Storage/Commands.Management.Storage/Properties/AssemblyInfo.cs @@ -46,5 +46,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/StreamAnalytics/AzureRM.StreamAnalytics.psd1 b/src/ResourceManager/StreamAnalytics/AzureRM.StreamAnalytics.psd1 index 79657e116595..5b3c4cdccb12 100644 --- a/src/ResourceManager/StreamAnalytics/AzureRM.StreamAnalytics.psd1 +++ b/src/ResourceManager/StreamAnalytics/AzureRM.StreamAnalytics.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.StreamAnalytics' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '59713673-194f-418a-b1f2-ac60db82edf9' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Properties/AssemblyInfo.cs index 2b05dc4c0bcb..2c87c95404a9 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/AssemblyInfo.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/AssemblyInfo.cs index 0e4a55a8c06b..01f2e58d4b5a 100644 --- a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("9188beb8-68c3-404a-91e2-6f287f162a52")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.StreamAnalytics.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Tags/AzureRM.Tags.psd1 b/src/ResourceManager/Tags/AzureRM.Tags.psd1 index b876ead5b042..4fa2534943d7 100644 --- a/src/ResourceManager/Tags/AzureRM.Tags.psd1 +++ b/src/ResourceManager/Tags/AzureRM.Tags.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Tags' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '59713673-194f-418a-b1f2-ac60db82edf9' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Tags/Commands.Tags/Properties/AssemblyInfo.cs b/src/ResourceManager/Tags/Commands.Tags/Properties/AssemblyInfo.cs index b95dafeb57f5..dfd940e45a92 100644 --- a/src/ResourceManager/Tags/Commands.Tags/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Tags/Commands.Tags/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("e386b843-f3f0-4db3-8664-37d16b860dde")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/TrafficManager/AzureRM.TrafficManager.psd1 b/src/ResourceManager/TrafficManager/AzureRM.TrafficManager.psd1 index 09bb06531e36..479704fa0191 100644 --- a/src/ResourceManager/TrafficManager/AzureRM.TrafficManager.psd1 +++ b/src/ResourceManager/TrafficManager/AzureRM.TrafficManager.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.TrafficManager' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = '59713673-194f-418a-b1f2-ac60db82edf9' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Properties/AssemblyInfo.cs index 774f1cde136f..f4cc8e779772 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/Properties/AssemblyInfo.cs @@ -45,5 +45,5 @@ // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Properties/AssemblyInfo.cs b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Properties/AssemblyInfo.cs index 52e8205ad214..38aff6159fd3 100644 --- a/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/TrafficManager/Commands.TrafficManager2/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("be2ca022-590c-48ba-b465-9ab61d6e2ea0")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.TrafficManager.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/UsageAggregates/AzureRM.UsageAggregates.psd1 b/src/ResourceManager/UsageAggregates/AzureRM.UsageAggregates.psd1 index 55573497fc30..6de6870ed897 100644 --- a/src/ResourceManager/UsageAggregates/AzureRM.UsageAggregates.psd1 +++ b/src/ResourceManager/UsageAggregates/AzureRM.UsageAggregates.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.UsageAggregates' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'e43e47c8-8bff-4013-b003-ded1741f403a' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/UsageAggregates/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/UsageAggregates/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs index 4200fde5f015..c4ab8a641630 100644 --- a/src/ResourceManager/UsageAggregates/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/UsageAggregates/Commands.UsageAggregates.Test/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ [assembly: Guid("e1252a92-e377-4295-ab57-7e06fb319d5e")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/UsageAggregates/Commands.UsageAggregates/Properties/AssemblyInfo.cs b/src/ResourceManager/UsageAggregates/Commands.UsageAggregates/Properties/AssemblyInfo.cs index 6fc7c6201c3d..fabc81ce0cde 100644 --- a/src/ResourceManager/UsageAggregates/Commands.UsageAggregates/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/UsageAggregates/Commands.UsageAggregates/Properties/AssemblyInfo.cs @@ -31,8 +31,8 @@ [assembly: Guid("4fc77441-aa7b-4539-9e0c-e716797751a5")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.ResourceManager.Automation.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ResourceManager/Websites/AzureRM.Websites.psd1 b/src/ResourceManager/Websites/AzureRM.Websites.psd1 index 870c262820bd..53618d2fc00d 100644 --- a/src/ResourceManager/Websites/AzureRM.Websites.psd1 +++ b/src/ResourceManager/Websites/AzureRM.Websites.psd1 @@ -1,4 +1,4 @@ -# +# # Module manifest for module 'Microsoft.Azure.Commands.Websites' # # Generated by: Microsoft Corporation @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'cc69c625-e961-43f4-8b50-0061eba6e4b6' @@ -45,7 +45,7 @@ CLRVersion='4.0' ProcessorArchitecture = 'None' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.3'}) +RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '1.0.4'}) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() diff --git a/src/ResourceManager/Websites/Commands.Websites.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/Websites/Commands.Websites.Test/Properties/AssemblyInfo.cs index 1100bf8edd7c..9b6b215b2461 100644 --- a/src/ResourceManager/Websites/Commands.Websites.Test/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Websites/Commands.Websites.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ResourceManager/Websites/Commands.Websites/Properties/AssemblyInfo.cs b/src/ResourceManager/Websites/Commands.Websites/Properties/AssemblyInfo.cs index 02589080f96c..d435c6ed3886 100644 --- a/src/ResourceManager/Websites/Commands.Websites/Properties/AssemblyInfo.cs +++ b/src/ResourceManager/Websites/Commands.Websites/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("76158def-441b-472a-9b1a-a75726a813f4")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ServiceManagement/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs index 40d5ad9d7b7f..1176996557a5 100644 --- a/src/ServiceManagement/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Automation/Commands.Automation.Test/Properties/AssemblyInfo.cs @@ -42,6 +42,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] diff --git a/src/ServiceManagement/Automation/Commands.Automation/Properties/AssemblyInfo.cs b/src/ServiceManagement/Automation/Commands.Automation/Properties/AssemblyInfo.cs index dadd3b2b2006..278d2c5985e9 100644 --- a/src/ServiceManagement/Automation/Commands.Automation/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Automation/Commands.Automation/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Automation.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ServiceManagement/Common/Commands.Common.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/Common/Commands.Common.Test/Properties/AssemblyInfo.cs index 169a20961986..354be543b44b 100644 --- a/src/ServiceManagement/Common/Commands.Common.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Common/Commands.Common.Test/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("080bc9b8-3c00-4d0e-bec2-38d2fd0d7061")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Common/Commands.ScenarioTest/Properties/AssemblyInfo.cs b/src/ServiceManagement/Common/Commands.ScenarioTest/Properties/AssemblyInfo.cs index dd8c9f6ee6b6..0aebc980b6f5 100644 --- a/src/ServiceManagement/Common/Commands.ScenarioTest/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Common/Commands.ScenarioTest/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/Common/Commands.ServiceManagement.Common/Properties/AssemblyInfo.cs b/src/ServiceManagement/Common/Commands.ServiceManagement.Common/Properties/AssemblyInfo.cs index 8195e7431f54..42e15755f9c8 100644 --- a/src/ServiceManagement/Common/Commands.ServiceManagement.Common/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Common/Commands.ServiceManagement.Common/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("4f3ab2e4-cc7a-43ac-bb15-f481fcf94d58")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.CloudService, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Properties/AssemblyInfo.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Properties/AssemblyInfo.cs index d948fb449c69..360dd07816c1 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Properties/AssemblyInfo.cs @@ -28,8 +28,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.ServiceManagement.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Properties/AssemblyInfo.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Properties/AssemblyInfo.cs index 49a3527dcd3a..ec9fb836470e 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Properties/AssemblyInfo.cs @@ -28,8 +28,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.ServiceManagement.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Properties/AssemblyInfo.cs index dd9b60c2270c..9b023aef322d 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Properties/AssemblyInfo.cs @@ -32,8 +32,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.ScenarioTest, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Compute/Commands.ServiceManagement/Properties/AssemblyInfo.cs b/src/ServiceManagement/Compute/Commands.ServiceManagement/Properties/AssemblyInfo.cs index a8ffb0bd8ba8..2ee287a38bea 100644 --- a/src/ServiceManagement/Compute/Commands.ServiceManagement/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Compute/Commands.ServiceManagement/Properties/AssemblyInfo.cs @@ -28,8 +28,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.ServiceManagement.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Compute/Sync/Properties/AssemblyInfo.cs b/src/ServiceManagement/Compute/Sync/Properties/AssemblyInfo.cs index e5e44c603033..16da56455287 100644 --- a/src/ServiceManagement/Compute/Sync/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Compute/Sync/Properties/AssemblyInfo.cs @@ -32,6 +32,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] diff --git a/src/ServiceManagement/Compute/VhdManagement/Properties/AssemblyInfo.cs b/src/ServiceManagement/Compute/VhdManagement/Properties/AssemblyInfo.cs index 0955367dc0bc..3ecca36f9d0f 100644 --- a/src/ServiceManagement/Compute/VhdManagement/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Compute/VhdManagement/Properties/AssemblyInfo.cs @@ -32,6 +32,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] diff --git a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Properties/AssemblyInfo.cs b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Properties/AssemblyInfo.cs index c6170399eda8..5f668a7857bc 100644 --- a/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Properties/AssemblyInfo.cs @@ -31,8 +31,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs index 18e80671469f..a3bacfd5f78e 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Properties/AssemblyInfo.cs @@ -43,6 +43,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] diff --git a/src/ServiceManagement/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs b/src/ServiceManagement/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs index bd427968adc8..5bfcd6040e3e 100644 --- a/src/ServiceManagement/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/HDInsight/Commands.HDInsight/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.HDInsight.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Properties/AssemblyInfo.cs index 2bfbffdf58ce..fd3d55c354ba 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Properties/AssemblyInfo.cs @@ -25,5 +25,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("3E5D3114-DEBB-4DC2-BB9D-CF2A2707F74D")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Properties/AssemblyInfo.cs b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Properties/AssemblyInfo.cs index 945da7795ce5..0725b16d55e3 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/Properties/AssemblyInfo.cs @@ -30,8 +30,8 @@ // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] #if SIGN diff --git a/src/ServiceManagement/Network/Commands.Network.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/Network/Commands.Network.Test/Properties/AssemblyInfo.cs index a0c4571d2344..8625a1cfe827 100644 --- a/src/ServiceManagement/Network/Commands.Network.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Network/Commands.Network.Test/Properties/AssemblyInfo.cs @@ -25,5 +25,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("3E5D3114-DEBB-4DC2-BB9D-CF2A2707F74D")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/Network/Commands.Network/Properties/AssemblyInfo.cs b/src/ServiceManagement/Network/Commands.Network/Properties/AssemblyInfo.cs index bd245322dff5..a12c5f4ee341 100644 --- a/src/ServiceManagement/Network/Commands.Network/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Network/Commands.Network/Properties/AssemblyInfo.cs @@ -30,8 +30,8 @@ // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] #if SIGN diff --git a/src/ServiceManagement/Profile/Commands.Profile/Properties/AssemblyInfo.cs b/src/ServiceManagement/Profile/Commands.Profile/Properties/AssemblyInfo.cs index 3511f38d683a..f8c36d737f02 100644 --- a/src/ServiceManagement/Profile/Commands.Profile/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Profile/Commands.Profile/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.CloudService.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs index e83f4fa12fed..0ec4432b6051 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Properties/AssemblyInfo.cs @@ -47,5 +47,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs index cd4607a607fe..cc1bf0f6a8e0 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Properties/AssemblyInfo.cs @@ -30,6 +30,6 @@ // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] [assembly: CLSCompliant(false)] diff --git a/src/ServiceManagement/Services/Commands.Test.Utilities/Properties/AssemblyInfo.cs b/src/ServiceManagement/Services/Commands.Test.Utilities/Properties/AssemblyInfo.cs index 3b9baa41dc55..40648d210f9a 100644 --- a/src/ServiceManagement/Services/Commands.Test.Utilities/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Services/Commands.Test.Utilities/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.HDInsight.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Services/Commands.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/Services/Commands.Test/Properties/AssemblyInfo.cs index 45a8f7fe6169..7f6803a3d83a 100644 --- a/src/ServiceManagement/Services/Commands.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Services/Commands.Test/Properties/AssemblyInfo.cs @@ -27,5 +27,5 @@ // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/Services/Commands.Utilities/Azure.psd1 b/src/ServiceManagement/Services/Commands.Utilities/Azure.psd1 index a946dfbf27ed..734bd3fc1852 100644 --- a/src/ServiceManagement/Services/Commands.Utilities/Azure.psd1 +++ b/src/ServiceManagement/Services/Commands.Utilities/Azure.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.0.3' +ModuleVersion = '1.0.4' # ID used to uniquely identify this module GUID = 'D48CF693-4125-4D2D-8790-1514F44CE325' diff --git a/src/ServiceManagement/Services/Commands.Utilities/Properties/AssemblyInfo.cs b/src/ServiceManagement/Services/Commands.Utilities/Properties/AssemblyInfo.cs index 7c3c6eb7b474..289fcc7c2b14 100644 --- a/src/ServiceManagement/Services/Commands.Utilities/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Services/Commands.Utilities/Properties/AssemblyInfo.cs @@ -29,8 +29,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Profile, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Services/Commands/Properties/AssemblyInfo.cs b/src/ServiceManagement/Services/Commands/Properties/AssemblyInfo.cs index 8ac0793e91af..40bc97b2c924 100644 --- a/src/ServiceManagement/Services/Commands/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Services/Commands/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.CloudService.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Properties/AssemblyInfo.cs index 9b524c154fc4..d28d19d5f619 100644 --- a/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Properties/AssemblyInfo.cs @@ -40,5 +40,5 @@ // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/Sql/Commands.SqlDatabase/Properties/AssemblyInfo.cs b/src/ServiceManagement/Sql/Commands.SqlDatabase/Properties/AssemblyInfo.cs index d75eac3ac43d..7a0a8c465e3b 100644 --- a/src/ServiceManagement/Sql/Commands.SqlDatabase/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/Sql/Commands.SqlDatabase/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.SqlDatabase.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Properties/AssemblyInfo.cs index 32522a83fddd..27e8c002797c 100644 --- a/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ [assembly: Guid("d1c35c6d-1778-4d39-92c8-0bf709cc5b23")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/StorSimple/Commands.StorSimple/Properties/AssemblyInfo.cs b/src/ServiceManagement/StorSimple/Commands.StorSimple/Properties/AssemblyInfo.cs index 3936464b9187..a10f9318b86c 100644 --- a/src/ServiceManagement/StorSimple/Commands.StorSimple/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/StorSimple/Commands.StorSimple/Properties/AssemblyInfo.cs @@ -44,8 +44,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.StorSimple.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else diff --git a/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Properties/AssemblyInfo.cs b/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Properties/AssemblyInfo.cs index df83398e6ace..80d06828dcb6 100644 --- a/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Properties/AssemblyInfo.cs @@ -40,5 +40,5 @@ // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] diff --git a/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Properties/AssemblyInfo.cs b/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Properties/AssemblyInfo.cs index a461b1addf48..b0d65e6a13a9 100644 --- a/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Properties/AssemblyInfo.cs +++ b/src/ServiceManagement/TrafficManager/Commands.TrafficManager/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3")] -[assembly: AssemblyFileVersion("1.0.3")] +[assembly: AssemblyVersion("1.0.4")] +[assembly: AssemblyFileVersion("1.0.4")] #if SIGN [assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Commands.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] #else From 9d444a3e74f4b330da69412e7af9d3bbbdaaa630 Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Thu, 28 Jan 2016 15:51:01 -0800 Subject: [PATCH 14/27] bumped up AzureRM.psm1 versions --- tools/AzureRM/AzureRM.psm1 | 56 +++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/tools/AzureRM/AzureRM.psm1 b/tools/AzureRM/AzureRM.psm1 index 50050041fc1a..f47ddcd92d52 100644 --- a/tools/AzureRM/AzureRM.psm1 +++ b/tools/AzureRM/AzureRM.psm1 @@ -1,35 +1,35 @@ $AzureRMDependencies = @{ - "Azure.Storage" = "1.0.3"; - "AzureRM.Profile" = "1.0.3"; + "Azure.Storage" = "1.0.4"; + "AzureRM.Profile" = "1.0.4"; } $AzureRMModules = @{ - "AzureRM.ApiManagement" = "1.0.3"; - "AzureRM.Automation" = "1.0.3"; - "AzureRM.Backup" = "1.0.3"; - "AzureRM.Batch" = "1.0.3"; - "AzureRM.Compute" = "1.2.1"; - "AzureRM.DataFactories" = "1.0.3"; - "AzureRM.DataLakeAnalytics" = "1.0.3"; - "AzureRM.DataLakeStore" = "1.0.3"; - "AzureRM.Dns" = "1.0.3"; - "AzureRM.HDInsight" = "1.0.4"; - "AzureRM.Insights" = "1.0.3"; - "AzureRM.KeyVault" = "1.1.2"; - "AzureRM.Network" = "1.0.3"; - "AzureRM.NotificationHubs" = "1.0.3"; - "AzureRM.OperationalInsights" = "1.0.3"; - "AzureRM.RecoveryServices" = "1.0.4"; - "AzureRM.RedisCache" = "1.1.1"; - "AzureRM.Resources" = "1.0.3"; - "AzureRM.SiteRecovery" = "1.1.2"; - "AzureRM.Sql" = "1.0.3"; - "AzureRM.Storage" = "1.0.3"; - "AzureRM.StreamAnalytics" = "1.0.3"; - "AzureRM.Tags" = "1.0.3"; - "AzureRM.TrafficManager" = "1.0.3"; - "AzureRM.UsageAggregates" = "1.0.3"; - "AzureRM.Websites" = "1.0.3"; + "AzureRM.ApiManagement" = "1.0.4"; + "AzureRM.Automation" = "1.0.4"; + "AzureRM.Backup" = "1.0.4"; + "AzureRM.Batch" = "1.0.4"; + "AzureRM.Compute" = "1.2.2"; + "AzureRM.DataFactories" = "1.0.4"; + "AzureRM.DataLakeAnalytics" = "1.0.4"; + "AzureRM.DataLakeStore" = "1.0.4"; + "AzureRM.Dns" = "1.0.4"; + "AzureRM.HDInsight" = "1.0.5"; + "AzureRM.Insights" = "1.0.4"; + "AzureRM.KeyVault" = "1.1.3"; + "AzureRM.Network" = "1.0.4"; + "AzureRM.NotificationHubs" = "1.0.4"; + "AzureRM.OperationalInsights" = "1.0.4"; + "AzureRM.RecoveryServices" = "1.0.5"; + "AzureRM.RedisCache" = "1.1.2"; + "AzureRM.Resources" = "1.0.4"; + "AzureRM.SiteRecovery" = "1.1.3"; + "AzureRM.Sql" = "1.0.4"; + "AzureRM.Storage" = "1.0.4"; + "AzureRM.StreamAnalytics" = "1.0.4"; + "AzureRM.Tags" = "1.0.4"; + "AzureRM.TrafficManager" = "1.0.4"; + "AzureRM.UsageAggregates" = "1.0.4"; + "AzureRM.Websites" = "1.0.4"; } function Test-AdminRights([string]$Scope) From dc11faf41c21dcc3ebd8503355943e50d039b810 Mon Sep 17 00:00:00 2001 From: Bala Ganapathy Date: Thu, 28 Jan 2016 16:06:30 -0800 Subject: [PATCH 15/27] adding a description for azurestack modules in the changelog --- ChangeLog.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index d82586d442ff..b0382a384358 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,7 @@ -## 2016.02.02 version 1.2.0 +## 2016.02.02 version 1.2.0 * Azure RemoteApp: Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters. +* Azure Stack Admin: New module for the management of azure stack administrative resources such as plan, offer, subscription, resource provider and gallery items +* Azure Stack Storage Admin: New module for the management of azure stack storage administrative resources such as configuration, infrastructure and health ## 2016.01.12 version 1.1.0 * Azure SQL Database: Threat Detection policies: From fd712a3123b442aeda9737616cea5d6396a25646 Mon Sep 17 00:00:00 2001 From: Vivek Srinivasan Date: Thu, 28 Jan 2016 17:43:55 -0800 Subject: [PATCH 16/27] Revert ARM to package using older api version --- .../Resources/Commands.Resources/Commands.Resources.csproj | 2 +- .../Resources/Commands.Resources/packages.config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj index 36bc1a3c7b03..f4843189ce2b 100644 --- a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj +++ b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj @@ -74,7 +74,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.13-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.14-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll diff --git a/src/ResourceManager/Resources/Commands.Resources/packages.config b/src/ResourceManager/Resources/Commands.Resources/packages.config index f4054068d033..07c00e2d7901 100644 --- a/src/ResourceManager/Resources/Commands.Resources/packages.config +++ b/src/ResourceManager/Resources/Commands.Resources/packages.config @@ -7,7 +7,7 @@ - + From c92b2dd7cc41d13a1dd94c9c31b2c6eaf10b54e9 Mon Sep 17 00:00:00 2001 From: Vivek Srinivasan Date: Thu, 28 Jan 2016 17:55:26 -0800 Subject: [PATCH 17/27] Update profile to use latest ARM --- .../Profile/Commands.Profile/Commands.Profile.csproj | 2 +- src/ResourceManager/Profile/Commands.Profile/packages.config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ResourceManager/Profile/Commands.Profile/Commands.Profile.csproj b/src/ResourceManager/Profile/Commands.Profile/Commands.Profile.csproj index bd5ca97b6d3c..4b17e0a0f2fe 100644 --- a/src/ResourceManager/Profile/Commands.Profile/Commands.Profile.csproj +++ b/src/ResourceManager/Profile/Commands.Profile/Commands.Profile.csproj @@ -62,7 +62,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.13-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.14-preview\lib\net40\Microsoft.Azure.ResourceManager.dll diff --git a/src/ResourceManager/Profile/Commands.Profile/packages.config b/src/ResourceManager/Profile/Commands.Profile/packages.config index df89a45abab5..f050b8000b55 100644 --- a/src/ResourceManager/Profile/Commands.Profile/packages.config +++ b/src/ResourceManager/Profile/Commands.Profile/packages.config @@ -4,7 +4,7 @@ - + From ab1c6655d86f667fe62d5bd4062aec03611adca6 Mon Sep 17 00:00:00 2001 From: Bala Ganapathy Date: Thu, 28 Jan 2016 18:32:57 -0800 Subject: [PATCH 18/27] updating csproj references and including psd1 file in setup --- setup/azurecmdfiles.wxi | 24 +++++++++++++++++++ .../Commands.AzureStackAdmin.csproj | 20 ++++++++++++++-- .../Commands.AzureStackAdmin/packages.config | 1 + .../Commands.AzureStackStorage.Test.csproj | 2 +- .../packages.config | 2 +- .../Commands.AzureStackStorage.csproj | 16 +++++++++---- .../packages.config | 3 ++- 7 files changed, 59 insertions(+), 9 deletions(-) diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi index 311aa6e0d946..c9c354811108 100644 --- a/setup/azurecmdfiles.wxi +++ b/setup/azurecmdfiles.wxi @@ -299,6 +299,9 @@ + + + @@ -317,6 +320,12 @@ + + + + + + @@ -326,6 +335,9 @@ + + + @@ -352,6 +364,9 @@ + + + @@ -370,6 +385,9 @@ + + + @@ -5073,15 +5091,19 @@ + + + + @@ -5090,12 +5112,14 @@ + + diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj index 2f64f2b9ea98..686628bdf993 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj @@ -89,6 +89,14 @@ ..\..\..\packages\Microsoft.Rest.ClientRuntime.1.8.2\lib\net45\Microsoft.Rest.ClientRuntime.dll True + + ..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.0.11.0\lib\net45\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll + True + + + False + ..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll + @@ -105,7 +113,13 @@ - + + AzureRM.AzureStackAdmin.psd1 + PreserveNewest + + + PreserveNewest + @@ -161,7 +175,9 @@ - + + PreserveNewest + diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config index ca7570def70b..00c10cb245c9 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/packages.config @@ -7,4 +7,5 @@ + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj index 4dea6314f94c..52aef5d3932f 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/Commands.AzureStackStorage.Test.csproj @@ -60,7 +60,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.13-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.14-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config index bdf48333c815..e66b0eed3c46 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj index 486f7665a52f..8f5a235bba32 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/Commands.AzureStackStorage.csproj @@ -59,15 +59,15 @@ True - False - ..\..\..\packages\WindowsAzure.Storage.6.1.0\lib\net40\Microsoft.WindowsAzure.Storage.dll + False + ..\..\..\packages\WindowsAzure.Storage.6.1.0\lib\net40\Microsoft.WindowsAzure.Storage.dll ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.13-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.14-preview\lib\net40\Microsoft.Azure.ResourceManager.dll False @@ -108,6 +108,10 @@ False ..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll + + ..\..\..\packages\Microsoft.Azure.KeyVault.Core.1.0.0\lib\net40\Microsoft.Azure.KeyVault.Core.dll + True + @@ -201,6 +205,10 @@ + + AzureRM.AzureStackStorage.psd1 + PreserveNewest + Designer @@ -226,4 +234,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config index 44d9f64ece69..a2089ea273b6 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage/packages.config @@ -4,7 +4,7 @@ - + @@ -20,4 +20,5 @@ + \ No newline at end of file From 23fa0ce66070f8043de20299041586d573ca348d Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Thu, 28 Jan 2016 19:28:57 -0800 Subject: [PATCH 19/27] Fixed on demand job failing tests. --- src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs | 4 ++-- src/Common/Commands.Common/AzurePowerShell.cs | 2 +- .../Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Storage.MsTest2/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs | 4 ++-- .../Properties/AssemblyInfo.cs | 4 ++-- .../Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs | 4 ++-- .../Commands.Profile.Test/Commands.Profile.Test.csproj | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs b/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs index deec55340bae..8327bc4dc1db 100644 --- a/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs +++ b/src/Common/Commands.Common.Storage/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("c565107e-98a9-4703-85cd-a7efc3d8da7b")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion("1.0.0")] +[assembly: AssemblyFileVersion("1.0.0")] diff --git a/src/Common/Commands.Common/AzurePowerShell.cs b/src/Common/Commands.Common/AzurePowerShell.cs index c324a7f347a0..ca6942e92c28 100644 --- a/src/Common/Commands.Common/AzurePowerShell.cs +++ b/src/Common/Commands.Common/AzurePowerShell.cs @@ -27,7 +27,7 @@ public class AzurePowerShell public const string AssemblyCopyright = "Copyright © Microsoft"; - public const string AssemblyVersion = "1.0.4"; + public const string AssemblyVersion = "1.0.0"; public const string AssemblyFileVersion = "1.0.4"; diff --git a/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs b/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs index d885d212a7cd..98d020782545 100644 --- a/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs +++ b/src/Common/Commands.ScenarioTests.Common/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs index 4f01d0a5f9e4..05e13bd19b06 100644 --- a/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.MsTest2/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion("0.8.16")] +[assembly: AssemblyFileVersion("0.8.16")] diff --git a/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs index bcea417f2273..6b03c8c7761f 100644 --- a/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.MsTestLib/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] \ No newline at end of file +[assembly: AssemblyVersion("0.8.5")] +[assembly: AssemblyFileVersion("0.8.5")] \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs index 0e054195269c..12aaec94e3f7 100644 --- a/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.ScenarioTest/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] \ No newline at end of file +[assembly: AssemblyVersion("0.8.5")] +[assembly: AssemblyFileVersion("0.8.5")] \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs index e328ad93614c..fb34ae2056bb 100644 --- a/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.StorageTestLib/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] \ No newline at end of file +[assembly: AssemblyVersion("0.8.5")] +[assembly: AssemblyFileVersion("0.8.5")] \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs b/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs index dee23a95f056..729955159e99 100644 --- a/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs +++ b/src/Common/Storage/Commands.Storage.Test/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.4")] -[assembly: AssemblyFileVersion("1.0.4")] +[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)] +[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)] diff --git a/src/ResourceManager/Profile/Commands.Profile.Test/Commands.Profile.Test.csproj b/src/ResourceManager/Profile/Commands.Profile.Test/Commands.Profile.Test.csproj index b64114529c17..fad970c4c118 100644 --- a/src/ResourceManager/Profile/Commands.Profile.Test/Commands.Profile.Test.csproj +++ b/src/ResourceManager/Profile/Commands.Profile.Test/Commands.Profile.Test.csproj @@ -69,7 +69,7 @@ False - ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.13-preview\lib\net40\Microsoft.Azure.ResourceManager.dll + ..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.14-preview\lib\net40\Microsoft.Azure.ResourceManager.dll ..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.5799.28345-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll From 80259349d6df6124b266eda7ea966dcc5acb078c Mon Sep 17 00:00:00 2001 From: Hovsep Date: Thu, 28 Jan 2016 22:15:33 -0800 Subject: [PATCH 20/27] Update ChangeLog.md --- ChangeLog.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index b0382a384358..689275dbbf63 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,7 +1,11 @@ -## 2016.02.02 version 1.2.0 -* Azure RemoteApp: Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters. -* Azure Stack Admin: New module for the management of azure stack administrative resources such as plan, offer, subscription, resource provider and gallery items -* Azure Stack Storage Admin: New module for the management of azure stack storage administrative resources such as configuration, infrastructure and health +## 2016.02.02 version 1.2.0 +* Azure RemoteApp: + * Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters. +* Azure Stack Admin: + * New module for the management of azure stack administrative resources such as plan, offer, subscription, resource provider and + gallery items. +* Azure Stack Storage Admin: + * New module for the management of azure stack storage administrative resources such as configuration, infrastructure and health. ## 2016.01.12 version 1.1.0 * Azure SQL Database: Threat Detection policies: From a51d518024051adf480606261ce3f9728f705c18 Mon Sep 17 00:00:00 2001 From: emmazhu Date: Fri, 29 Jan 2016 14:24:43 +0800 Subject: [PATCH 21/27] Change DMLib to 5.0.1 --- .../Commands.Storage.Test.csproj | 6 +++--- .../Commands.Storage.Test/packages.config | 1 - .../Commands.Storage/Commands.Storage.csproj | 6 +++--- .../Storage/Commands.Storage/packages.config | 1 - ...osoft.WindowsAzure.Storage.DataMovement.dll | Bin 0 -> 253208 bytes 5 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 src/lib/Microsoft.WindowsAzure.Storage.DataMovement.dll diff --git a/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj b/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj index d516eb171740..58c120ec8b32 100644 --- a/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj +++ b/src/Common/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj @@ -125,9 +125,9 @@ ..\..\..\packages\WindowsAzure.Storage.6.1.0\lib\net40\Microsoft.WindowsAzure.Storage.dll - + False - ..\..\..\packages\Microsoft.Azure.Storage.DataMovement.0.2.0\lib\net45\Microsoft.WindowsAzure.Storage.DataMovement.dll + ..\..\..\lib\Microsoft.WindowsAzure.Storage.DataMovement.dll ..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll @@ -281,4 +281,4 @@ - + \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage.Test/packages.config b/src/Common/Storage/Commands.Storage.Test/packages.config index e0c934bf1e82..4275b79bf2d5 100644 --- a/src/Common/Storage/Commands.Storage.Test/packages.config +++ b/src/Common/Storage/Commands.Storage.Test/packages.config @@ -5,7 +5,6 @@ - diff --git a/src/Common/Storage/Commands.Storage/Commands.Storage.csproj b/src/Common/Storage/Commands.Storage/Commands.Storage.csproj index be8d84979a6e..c432cf01b5f5 100644 --- a/src/Common/Storage/Commands.Storage/Commands.Storage.csproj +++ b/src/Common/Storage/Commands.Storage/Commands.Storage.csproj @@ -115,9 +115,9 @@ False ..\..\..\packages\WindowsAzure.Storage.6.1.0\lib\net40\Microsoft.WindowsAzure.Storage.dll - + False - ..\..\..\packages\Microsoft.Azure.Storage.DataMovement.0.2.0\lib\net45\Microsoft.WindowsAzure.Storage.DataMovement.dll + ..\..\..\lib\Microsoft.WindowsAzure.Storage.DataMovement.dll False @@ -325,4 +325,4 @@ powershell.exe -ExecutionPolicy Unrestricted -File "$(ProjectDir)\PostBuild.ps1" "..\..\..\ResourceManager\AzureResourceManager" - + \ No newline at end of file diff --git a/src/Common/Storage/Commands.Storage/packages.config b/src/Common/Storage/Commands.Storage/packages.config index 66c72bd1ca16..af2a4aa568d2 100644 --- a/src/Common/Storage/Commands.Storage/packages.config +++ b/src/Common/Storage/Commands.Storage/packages.config @@ -5,7 +5,6 @@ - diff --git a/src/lib/Microsoft.WindowsAzure.Storage.DataMovement.dll b/src/lib/Microsoft.WindowsAzure.Storage.DataMovement.dll new file mode 100644 index 0000000000000000000000000000000000000000..ea3f259d8328e69bdbd5a2caf3f0f076deac4a98 GIT binary patch literal 253208 zcmbq+37i~7^?z^AY|rfMZpiHJ%;W$Pj)Z28&9NLwxWawkhza+tS&oKXBAVXj76k$d zDky?z6c0S{MnOfCpMVM|;zd>jMUfxg7pUR?{k~V-T|Ki2`1|i?r@QLa@m{_6>Q&XN z>h432d%Kf!94C+8%P%|5mvQIca=C8$aw(Fh&H2hS=kq<^+v>|*hkS3VV_v^%eD3*U z!Ry9OJ$LTur=E9SaN*q3&YU~8`n;YZIsH#p?x^m9Y zukSoI#`cusZq?h>>p1TOWkrQfeiq@m2!DgrI@2ZWD%}KlyvQF~0{GU4mm1inZg;$U(J@afU-;Zj zOB>T0U%zqY347c=J%9Z_pFY69=fIzCv+u-t_uaAnj@w@N{e^e$u;uh8pStGM-(9=x z(e+RKaM#yWUcBjJm+rjav^PF*Lf1))zwy#e7oGE_V?Mh>_dumN?}w*9e#SFhmtK0w z&mXQow|;!WJ^9L^x83@wUH4v6*nQ^@ocx9TZ}{N_557FK_MGc(a{a2~l-vpMDL*t+ z1KG|WeJGLV7jSWd8dB?y)4R}h%BCT1HJAbDWWn`k;{GI(oi6AM#nIE_pq%667Ir%a zGk`xggfQ|K&q7{*HZIMYLVPgIo9{|O#4K(|D(2=cbsPa!-3fwy2uaDQJF^$&ou#O= z%W=xNnLbpkR2p#nEpYG6H;aY559XJ86+xl9>i5TGCyU582Z0d+UGi>$j?7FM3eKaq?oAb$WFq(8O1WssS*=;rbxd4~^t#BO!OU|!dhX!=@7OLLba}iiq@V7?NI9gU( zQ-8ws=Of_eA}}=Xx*>1Db^rxFE)kF?(CrC8gY&?d1J4g-L-D6o9qlLoqI^>pfmH-d*xjYpQb7OaJgoUVf zh+-CYO#^-Ptsy}PpuR!KW*1X$mTyBP*GHH0ntgf?b|Q_6$7^F`eX-kehw5&?0(H^~ zMWN{|yGOM0xfVEfM6<^|A{U_ldUbak+US)$je1Ac*SH2(zlE#OHI!4rh0bng1@6#h zv|s2NGI@6fT>*Gg%0n_JGBx{4UUlq2vfr~*+Rf$1VGYErc=ctme)||L(MMmI=Re&P z&(Sf2=g?#2xdfywo8me8n(&HXYQi+b~UR-?6D&FM(#VM@Ur@692FDh3Ne9dtzpF%p$st!6VRT*8>d z99~^Y^cFN)U{`|`16d;XX|RTkwnZ0A6s+Uy)I{CED7wUJn3T&VG1?0Q zvyr5}+}L|JQel5??EZ};4dyWh?FQzzwjJp5cV}SsfUALlft)7w4CE!yJP@+aJ6?nV z8bc$mUVtf9NyCL;c@i!LdnVzYV6P-x&IfxVQg?@>5*l1qBRq1Q%^)`zyt0Z3c1AOa zE&dPE_(%T1n!~cOVCzWb<4~{KDRMu=q&5b>eMg<3>=2Eq{aWH!1RtS&PT<825GDR57m-AK0wXU466?C>x&Wmk* z^hn4(?IjmVl&vV#R`eFU#dqb#=Aj}}eczPTcbB`Xl51VLyH+&ScWd>SOW4&*l+_n& zEBcD4-VMo(;1Ez8Ah9&)HD;E*;4lPX4$%X=o?sEi~~gvAC}$llps_J)rHih&N`%32Yv@jmasxBgViIiVDg1faC&5E-1+=G%r|* zEWvTOR0q2o2X{)YST4qrE7r>0hPOrGtyk_2jz>{TgzS@$!HPkML@QtXaTQ=8I3Y#l zO@*qb+!IT&r&cy|%5smOBCAg%s#KhU$^$A$MJr$YaWGid2HQCY1iIYHVSWL5%U@0; zsZtFFAx{;HfwLqFB; zWJwT{QUuQ;6mu{$deM{~jGm#3#5`g_62pMB3hi+7{@J{_{_EK^_-VZ0b*KePdUu0& z9$@20C^2s-f?DL=&2pUy&>LVMWkwYC>TSM?Hv+avUj^8U!d`%Z(F+>5)aSb!2E%Pp zEtMX#O=YwM0BFVl2>{TF0TO_9AQPk^_1TciI5d0!e5>`NC%8_Y=CL|F?1oz+5Vu+BH+S4LH^M zUyW$qU>xOYgZar;0T>nuYW`cD~(8Ic2+$3w45k#N^Bd~-rZ zVdjyFscK`u5gPq9S`WvGMW|;8^;E$C_L_OU$QvSEm8J=XiSkSUG+FYRUcrwLw0u^s zv+aD6?>L8{E1;<9BNrpve5`?M0Ttf$FG0M%pQVd_iR*8fMrXEp323dD zHq&U#>xN+DkruDA?oN~%Fk8vkxdHgqn%E{b(sQE-a6W@p^1E^aG{g~pkB`I~(yF@Q@PXBZ# zceUu^pwmBB!!Bkc+Z>>@IPgj?I!592{oMh&s-VkA>&=i4rxj4|QtL1U*2dq0Sa20( z+k{W#bV#bXmEJj@_TUo}phU1B!5HneOpR5$FcvLTgMe5#(S0kiY%fa*|A&C-Qlh`7 znqSvb>t3hx!qS{+-uNv@U4zl77NMQG-t2ao=wmg|jyakR8w-%;&N*W=f>!`O&V09j zD$wPFD^a>tpUMIE7K|Xq0jHx0cn1fhl6eJ+1wZcst;HED_eBR3k2GdB&aU`1UW;Ky zn!|jn_eW~*2V`bP@fsIq5)WkJG-UIk;9gtFGnu$KhAQf~*I1@>{usGu%F+t_7`uUV z_SD8cC-)g+56fNV%{JX$s~>&%HdHfy4H{DN#;?UK8YVk@G))G2;UGqtoybYf)g%A_ zrUMF)008J{3Xs6FIbo!5WabFGGWqcju}TX(L&5JO*uM`gP){+q#c}IY3>h;ZuNsWg zHZW}cJ^SX71ncem3cq6^&Tr!9hM1b?F<_1WJy$yWdPwcY46Z&D;c zW4&N4T0Gc2(CuG`fQ(jQP8T3Y{z6lW5Kf&p(s1?9WSo@TB@ zEQ`9XM_mKmnz-cP6eDmLjD>+hjIk!A+;YLjh|LXy@x&Bk!R4SR7>gN<1;tn}7=MaJ zD_erMB^Y}KdSZ+-48|TCV^4zdc_}V!>~RN524g9Mu}3jt04F((QG@P=1YPeyucBM- z&NS$HZFIdcy2(r2P;m9S1APWpUj|pN;_B7J*%^Tk56sHMH*__+YQ2-SJ`TttNs(Yt zhv}g#v|vVQ$JrB$f%tDn=pBEs6*Pif7*ePN9pf>^YZ;HJe(`uL+Jf;|^uP%j)$thm z$nlr}9gp{OXJe$G&SJ_WeT=^JPXOmE)H@Ej!K2?Sy20D2mst0?V=tf=&kn%i5?qTOqX%c6;#2FcaoEyh+wF93_MB0+b8auUh;;`bxW< zcZ2TPpxc-@j^ZV6Uv@$;(!spcIU7H$4kX-YXg(d_8^_1SPiDa4TB%}A5bX%&G7@mZPIWjmkAnq9A85c^F%bbp%zy8unqp zFr8)&@q%$W%{&1bFqJuCMw%n63}BAn1`u-u8`r4zu73pW!4d($tT~d*m562A%+X{| z$@9@?y$$F%#G4LEVyb71Y|##v!KxPg6{A%Hy)Rp6H3zF&FbMf*Qp`aU6WuobQJNx6 zDEb(6N|S@^k15p0NKmTBbLMT)Hq1kv_v6=t-}X>*+~lu<5Pw!5C1-N}?W}=56`eD0 zVfrX(Mjw4YQX^p@`lv9+2^rNsTF^d9fWMCQ+~Niw#J#zN-h&SzGWVT8JJRbvn+#V# zC-VOt?y>w^sKdyA0fMpo88-4~4we6|Zb&$Fw_X0rVH=o{@<)px|6yD?92G_WlM`-8 zcvkq5vmyoCg^$IQAoBtYQ69|7n#uVJ84}2RBPl^D$ZScaP?Zz}B6f3I=S{acgRy+R z{&lBTQoBiNJ7j{@z1U4QI+lqv3o;>w0ViZsWdgxBU^fZyMJAMO-uXRvjhPkZ2D#>< z+-jokEi|_*sJyCrx8#+tmKr^7AwVzps#r0MlGj&4ghuCMn?R7Q?%TI#ojDR)AIW-P zqWl>fv4tsy`J(6FK^5xte~~DR>%-1^eJ=cOA4ZxRTuEveYrkHi}5qcj@&NDRHuAWNXxuTe>AeIZ?x<vBWmD2eX;w7-7TK9raBRpsGTJRa%F=-OjDaL^Qf&7Nb5ZLMZ zSb%$68S@_8h0G0cp)j#r#7Hg`1)oI%7gFBXi`h9cNf==}@!`VJt{+O@>q^D>Lr~a#8iKkWPB2n2`#;3-1$4 zaHWFxse;4eL&2G3tZIcE^fYrt%0iXDin^%EOdKq5@=h8inX#6CJ5d)q3K;< zeuIh*ECjeAO9nRrY>cmvCuG^mo$ot=&ElDIh&076I)G_Ni z7p#D~XipKVij}ZURgb~27G0^!WSE%??gdigL+IVIptQ(70=f*(0-$fB@1k#i4H>~8 z|LeFf<;2$w7h%TOI$e|ca=|x{(hr9Pb6{JYx073a?5b7jQob>S#QQXnx0U1H#8q^Z z(YcPZe9q{?9;g|M!Xt$P3blwxj5}qX;u!P>JpX=Vk+VNLB7LQf96EQ#Zt<*m2r<28 zi0dHik8lqR_}kN9FtP8T9L_pO7DGrC|A#-@l#?mPj{DUBYd z-V-~U|1FRt;0ETBR`JbHjHPR%E3}qym~}~(bNp|kRAqGh0o;QB!G)V^^tCMqm9R6| z$6@Z~&UAP!K*;i4O2U9<2)=`|7?KFH9bd+eS8^K0&-O%S>W>BY(KoRh`bS@JUqGBE@LP|L=!Sc+(~Ppz70^nZWh{RI$vF3x zO_S+Hv>f@7#9QzJCfX+W7kY?x;9_V`%^+n@N4@^egziPCmZCGs4JDfb{>HL9B9|L# zHYs}!X?ln}UW-dV)bl#rTYJJRvLS9yv>$I1yW={LbNy+wilz0ZN~@UE?^2ObxT~Dk zycH>lnyyDp1367xlG_*`W-kBjlzcc4%!&3UayR5HD1mb(IDnw?VIR%V#s_d8e2`Mp zq?BY+z!1ysBz(|pDIXq=`H*^mmZPT$BQQQ#oWS^?oS4KpOTx2LZpmr*kahn|VmXLK zj#Md3Em%vR6l!d`?T6SF8pU4?+$w?H@Iz229X8#E9&%rR&5CWhNDnrh2w>A0Rhzz< z+H?YJn+}`C^%c)6b^8-g5m()yMmeRIF2_||mYA7zct>IR$8dz|d}H%1FQXTH7xXu$ z`wu`47CbLKLl9u}PyPbp3uDaL`q2BZ?=1F=MdN2#I#}S_P8gWufH*@`@*PyaNoQXLB%H7D;TNC{( zWsJ&>TDO{(p;v(d>v@_Rnx5tn#sobISnwDw{ts}0bAjY)n*TxYpzvzz#W7!D4|zNS z!_LTRnCC9FZ~psH*{dP)hbUi%XCtkw*Z)c)jG5VlyORW+Ec^iRbh41vv355QVzfu4 z$}#G-kRShY%`J1mw2HqT&+fnqE+TdGRBu~ zC*S2bO~{hA`~dU|OdfW53vjyOL5K;3Cb*mmLLE|B+t5^Pq?DyQ8c!5R9nN_ivJ<<@ z6+V%=Fs29dK5-zf1CZ}@F}#!KxFO+#c{g?_!!SwCiWEdeVs?#9wulaXg7(I)P{AQ} z7yX|CJ}Iuy6k70q2B?gY!eJHj$YI1bLV7SA=@C5Fiv@m)Cx5JW1xmm-B3x8_oYq=Epp;z5g5v8K?aRv!uM%8A?#Nz)?N!KPfcfjVoDGHkf$A zuPOQuk+T0B!TZEvxU&BYB>ji*Z2ys*m52p9`cFc1@H843_aDI_b=&Jn6ke-hI z1FI|jhsfgoBZQ;>2vttVsP-RBz3BrZK>N>Fdi=4PG|o_m5L0z&(8|@#8&x4?3>d$Cw=luUIxG=O*Or{vOcf zMQ9(N0Qek|f?xAo%`;?X!N)|t(cHS=S8%t}z2FDPHQ)x%BHw(Ta(hDT!kt8H>Ujn^ zqJuyix*cyaf#5m{M?tX8Ihs@hH+^K!!lo|<4YcV;fp3_f=a6LoX#zGCnQ#_Vr;v0p5Gh>@ui<^-Xk6)H!19li zY26WIQg#+8nJZGZ&2hT~HX8$yV8rTbs!c@2Sgalx3`M6@wxHxap|C+M&& zGw6~X#O3Y`)4(1Z9d-~E-Q>A$D7Z4)hc>S4_TglCz9Qq!3b_vNh)$cOQNliZ+MGgT zzhAs(FdJ;T4zm9!ei(Kf7n2IyT>V;{eaaCnUvLK$y|w8woR8O{n$yiMTe8D*Z&oU z2c4a9gG$Ky2Fc>ViWwuA!X}`spFV}_1Ok5g6qMPdVg+iz&KEu~PWwSgnKE!8fI&J3SF`E(Vu?P=(EMjp&MpchzsU8!cdQ3Z-cOVT1ex))F#JS-K zNR)l%U7iL>Zg>*nsb(>zFtz%$*1@%qW^gtx(UIh?rcWG7o?ZdXj!sSrxnUX>rU&p6 zlxizCz!IzOYGFy!%)xW4;uNVuuSx^Mobh|X?~q}TM=hR5pmhe09AZ!6Octm{Yz_Uk zXYf98BCZ3lmoOj=9)|qAs5P_R0h{Iy;wU=0p%e{S0zO}!j6n9;IGreURHRBE`(Gd% zz*!6?22W61#$O<%IMBkAm8bFMhC=0INR3V>K;u}~c){;Ub?*|)4jmk#_yc0-Fc_Vn zbaUj)`&Zf*&hxcX|4b!-z$0nruFDN8pbr;3)V9%L^Mv+ zqE@EHK?-WZ+a}~n-N7G0gI3?)qohdn2q)DeoK)YVZPZjc`$#sL@+VZYZ2OmAetB{L z$H@B!dN)+DK|5OylW!ccutw=oc8cbyef%@3Y@(}E@^ou~M-pTwjgM=Jq(#Cw#&8=7 z=)Q9b*6znK1nMs5WwA_gjznYtcl+;4fbj=|5c_1PIURj(C)4*xOWgNF#nAVN7h?#c z+V^0zIff9B_PrkGcuYBVj{DwONYuX9muKI5J>qfSgJELS3^pU(>&qyquzM?X5B~56nVdW~T z2I!!LV&$swf3qpXyyPxO)6gd^Wxc`2VX@%lnyv}K10Z7kJ(wq2RT|thYkTZKYusDK zCaf@8=BC%u@&&leg8_2Q8QZpG5a0!W1H$vak112Y!f^AN8(fbBEtZJ@g_GzXD$`_B#}8X+nR4zLXLXDClbn( zouD*kr*at%@32||l z{{r48UWe-d)&wx|GNfKF#4&9!vo4U_6)B7(ipW*sa{+5HbDx|6%^Gw=HWT|(a*qcK zQbRwn#{&ZrVK0qMzEC0*WK4bvj{WV2fMKBPPW0e^;tnr~JeP`~z~{hHu1EOaxMRYb z`5T6n<3j*s}V5+#7vA37a^Y;;_0t^@Dydq zp}V&3*C8N#=d6`yMK0of;zC>p;2D@h8TYRrk!qQQ10|dSQHq#j zN#;t#vZzZ$Y>v)0U}J@hr-`mtc4^W$#yaR=60Zer77+9!9{htu78@6oiveWF$Y9v3|78T<|R;D@*%{1=9Qq~U)s{20SfI&x0U9{m_vs1Upe zMDu|V!YH+_n%u0X*;}RwEUJD&4{@}7gS1$=goBjn)I*pk%!~EV%sntXJ8;)I7l4tQ z;cow34j6xyzLEVIecKBKmKl8`;R8-CBKu;!6L~@JL=sNOsOsHZ)jI-I@968zIp0Hn z*ah{ua7%HN9e)Y!jSiFG3k*^j(eu^HBqJ6)JD;XJlW9ZmP@fmTtawWwLkl#>gZz!9 z_a*V*U#PG;+OG=+KZVf4hoe08*(AI9^L9MsDBl?}{087z#h?8jq#Nmxk!lkC52AS15#|=B8?(6<%+*s{8<1s9S~nhNMV07S3+^(#jH+z|YHf5Sw>j_tlDFh))MBXg zq{ zy2qKA!`rBfEi{y3Xv|T{G`28?_9zr|pr0NpgmOiN-a?iz@Cy7W_h52GwbQ0r)s^vV z+2_b8YRcjdX)al?V_BdvSxJt=5mXXC3Z6|JQWf5)s|C-^dCmrC=C08F$|xpI#2w%O zS7|M@c6P5mLfu#G$6B$t^kc|b2wbENb}zX}BD4#AP&O{;{H>wrt^OnjA3!ZGrIHvB zpCV5(E`|J^xa2k{DQhgSF3z+qVLw5=%kM-^S@g+qY=caSFjc?12JEd!YPqSb1z}0;mq;;GxG-7zY#;h#S$?k^}=Np*}7!TOXO6hNZc+ zvWyvDTz1BWmtV$cmFNpFF4#gaW`QYI46OQm*0EhDey(d8njvEy3d6 zn1gBE2TA8PT{@0-RJ;Psv)U!I<-vSUez%XHs>*0lm_D*au_xzyz%Cez<$PYJ_VgJv zPACeqdnlT{v~B2b8*PBn57TH@S?<=Bm%ID2wQJqw{K%|n-SZBrtvCiPv8~KBSecm2 z;jLd8yBZyyE?RiZw0!L-6JNN$B^0iq6|M}%<6dlN*)udkJ2u)n=mMW3cny^Rf3E)^ zO3EqS133z&3v8XKjSRXqwK|w&VngbC$X$m?qJl^#vl5ee+~w-!4gL&Gh7*|Qx1{oT ztxw_Ws2jV@Twe#cXf2PJ)!ee3Yod;v&Q?u^EI-mCxEl!oj+xah$Ny!pqrG{ z3?r*K8)8wY6mk)zAOeV0;ZzFxQ`muE01xVO$nbwnjm`;U6+)h_^05mcG@KSIhXg?7 z=`lb80Gts6BoJ%f&txy}9#(D)l6Z$90<)QZCTVa(-gGnlEY`y{O}F!2=*4pA3HS1@ zL@RLAX!wn8col*nvtg53!cuq$Rhq+I1gf7O#OZlC&B=q!UVt%WiZgITfHQD!;cep0 zxbh6#JdC*5wyS^;H)K-g44mYxL@e2M2F@mIItjajz4{H+QA3A}Ls>uh$W~LQaqcFQ z%j}Z`Y0GU~(~vosMw7l7FJ(jc9X5s4dt(4VoF~PIQF%?n+{6$;_{_jT9l^1MK@btzr z!Dm~NyK~QIRt1v}H)!6FSW^ zG-PnRJ`;_@`b?C`2^rP(8G0>!#02>3P_Oijg7X&G(7o61$wt^>4qHe3gixe~D~6amkCmH5;x6N4%-6dOyi zjHn@q#;~vyfHKVHTQ_TNgt__NmWfImm;o4v5;K=++}j17G|(qKb(`7m&};f;u;cGnHx zfq3w==z|1*g`iOti9d_@XsjG*Vax6k*r6N(6y=x;s>H99oITzhQwS0TyZcVwCT_r$ zc6WQRyOVI>5S}r*lCdJi+KjI0xKg3iWOv*YsvVbed;b0U*U5P|BG2?y%3@z53pRtY zAS>cNE7U?3tQ)>OMpYK*qwKQ;XrKN4CWgWNA&lsCFlHDAd6VO?t6Q)i(d!X4W8tKm zj)ga&Udr*ypbv%Kji{FVlbi%k<2 z^&whMx(gGr@<=&pgjjFkZQ^EJDb|LF)eNUh%1Bo7R-|N`WbHPvjn;4~bWAZwaX6hS z?OY5mQw^ugD@?R;@npT8Acg0q6#N-c4yRMqd$tUxNiBM&`B9eI3Tn^cbYrDDhSMaY zO$y~4;A3(g52sV5D=*j}Gn`JD>HBOoY)r`>PDLL? z5$s->Ld|fRc^?0B(0Tr>@sygB>7yJ^VQ#PTdOxz8QTPK4YA)?(w*z30!V=d} zI7v!IVKs=d zGZd%bcqmTB;+-(|K{uQU+}p=uKFrOZH5QW@9b@qUMz_dV+J6cu9*c#0&@thQ6Edng zHmo{EfISxT^j|y{e+X%`;lET3`!J$YYgn3MY1l`R-3`+ueFW$ufSM6pg4PHw@pJ@t z!}c01#bUJ`iX}i%tOmuHvG*Lt*&f*YkMTBf2d=dD3&h@Y7$-bq>?LDGinSSgGmJ}x zQj={kQs@-(Z%i;8{w#YzN;39>V>Zl;dBFjA%5^8%Fi4XWkzoLn?1bbfdd{+Wz9S={VCojK7lI_OfM2Kt$#r9 zFe!UxS~6FpY}=V>9u*aI@Y%F)8S-%|Md#V*U~Ci}AEy#rnf*c=S9ZV9sD)H1l-p{N zLZ=!>Fhh6vv-E;Z&*%lmk%Nt1ut~8#2#=r-!~lI@RP|x8>H`7(It+I8my)BLBd(8S z0A^n2L-0J%$$PMYGlZdtVVrAW3icRzmjj)c=84baG|+hn=y3I{ruIXWL2cBm^r6Dq z@*6~633T;QP!l{48o+brMXQLW8jbQ6G7{h|Sf!TlgYJ_58)VUEapWB6*mwAN1@ zwJW7Hp>%Szuekbl%zRsZarH-dpIco0QQl`1SAUH6>BZI8;NIM$xEiY8)!JF<`YtNe zm&C|XDaEi38(2kob_gM9TK~+R;yAoY-kJ@wz;Imy{LI&wd7aVEQavuTB9;5ccN*b;Hl%N;fWhyT&$n|Bh?q zBVTRyl=ElS2YdPj-X`wCmG*Q*JL(CnJY-VFq)Oh3lx#Dpic|!lLDh(bV82e}tPHZ9 zW^#!ruSJVxi*F@P6R;_5e)4mU_ZOj}RS~9Yrg^HWQt(`qZf*xZ=|)p!V{wI5x&t}u z7+*|XIXB^;$s}qnR9QIBM*iCPUvV|Pja0{nbQ#tT`441RhJg&cq?}qctfiQ`!TV1v z93wy`r*g8-``1)ZI3sOI3TLE^q&_RPGbwvU+7?yzsZm!L)xvr~h}N9~S_uUNFM+fM zo;6~s=55cyv45_ES_B z_LC@JKN(f~xr5qI0@Qx0{flyVza;w<{90c^n%JjZFq49m?nXT6M;cXKWLK4=d(l^r z#SM8~`ZCMlsr9c4h-E{nPk^H;rRHqNItAevUrF*U*$d{kidUDL)U*TOI1~=_b>r#( z5dF0ynJStd=-c%xlzT@e>ZMIiT02uTd%8ur0IqH!G0jFSZpa3iQ+?U=j{H`&pN8I~ zr!sh|k7ZMAy7hMs5Y$SO(~8X!Ul87{$NIb$-We;|r4})a!eeu`k4f>2XZcCe(?tVmq4 z>%32V8CM=c-;oBsZ}MU{B%DXh)7Sn<&WaSoQSLK?ia!!S7}KE{0gA;m$w8KaC61hS6VX7wo^I0OQZH z7i?gMy*S+13lbUI3*iLp1xbRvU{vh|ob>dm5s=!8g7Y5GafGoK_aTk;VqX&YPWtGc{3Ay0up6k5cs1aUI`LzppU0PLa~-%eY%tM61q#UBaDX(30Q9G z8k=j59~R`2xe~D~9-G-2b@8!ZChA*ezRk)6 zcf6v&X})WvGLk$mP@0)-h3OMhHHB7%4KS@swUcjhz79$SFF{SH;1d(yVNPuUcK?@X z3$UgKSD9qqRx-w15&A!a*u9 zyVbq^-Dy>cHIj3E_##UxUpd?t16YCd>lnb=#fB7Ml89r-SQHU0=d1GQqCT34Lxo_= zd?i=LU(=UF%)%VIFQw45FIjs;=Rr65v-$=VB-1zcLKBZPeS;KnjY=xxJ|Y^0J|eo} zgp6t*S*m@6fVhwF+yZ>q@@E|=299)aFy~DJWaiwLd-zx5 zjs*wK!Ekb-rxrqasguk-tOZc;PYRBwSRwU%RX%Z6tp@)AbiOVQ#vg$^czA#rg1;ld zUjqFPuqyFzg6{jg=_a3&^gIBD+P5Kd@DSql>+u`{iZ}7>7$=2XcJUr8MNOEAGaS=? z8E8M6w8wA$-Q*kN$6rA8pw372UhpdtGro-EJ?wz(sgU>=ttgw!pys7v^gP$!U-I_to5O)$_^YEcI*Fw|k+5vYW^j03}_ zF6+Qpa#PBtL?%lwOM!`On!(h(OH4E$!&TlDZR%j6l{&s1Qb^M`?Hl`Sla{s5ijJoo zy%ze7NK#1r6c}i|R#$L}ob1=?rcm=*UHe@&)1goN)zHoo#tH0+Q_dal)IAnD$31c4 zhMhxiC`FBLEauc0|d}x z*1!)I-dS=VF8cik98G}{^Tz*#OMMDZP98WlZ@`hAIZU_Y%Mo$O7g*AhSE{rpq1P~J z0op!gk~%Q{48xGT97SJ))A?SMEY9bMQ%nCPDUC;ewbg6SKGw=IUfoF=tg}>61PZYf;Vpf!QiQe;%9|)|gk`Jxr7>&I z>%;2sJeiQd#Qq!J8J`wO;h!54h(Q5entn?84zU|P3ZRZlV3|aqXH!{x zmZrsjjQ5F0aHYlHRW1Hc1p$+?7GE+~B9?8l_;f%EIvjU0=n@l72ehK|Y;-W;ijMCp z5L_AiZR5(?Z+TY%k#VU@)+O&M5G>Ld+o_U5 zpJgw}rOf;gM&3CNMQJZdP&_XbcEVl?qnwaYwU@i8y(B>Ag*PR>YD||dMO!#s;yr%3 z0K+&7-|bwNcbwy?4^a3YqCDR%aEu%N2tm4Hs5lx^f3=2H?esJPb81{qBc$>4G{O_e zqt)wc2`(|!h|Y$ZnwGP+stD}ZsuJMm*&`o9CzGuz+htdc*bc7Ge!~02T>AFnk?TA^>%w%Vz?%1?meRz!Zah@T`Xjk=p;{Gr%JacEEH<`q6 zQPSqn11nK35U7V9=um-b$7cwq%EBqrTZu)_5Kc+TqfECBHB6N$JsGhn&W{{mH6%!- zLcd+Jx$!jd9JZbBBo!Mkq3-Yr_CCWfhQ+sO;_N%=d5x)SIvaG+t1m5<)pX(|i@o|Q zq8|$(ytc50W7gOJnwY!`BTb=6Xy6r8+5nbQ4>e87#!Hy@Wk}bQE@{6nBZbDMG|tr6_Rc`mQB49ujsO7cIv7QQc_szR0lShEe`DU_ds`)#RS(A2k zS#Pw4jJ;(po`Jb+J#iZJPyu=@f{c&-Fyz1Quf zE$=mxA`B0-8@xro6zW7}#e2Q4BGA+T$4AY)D)CfwHpMa zcBAO*06O-e-GHY33TZqOg!9W_;Iqsr-cqj1o89YQBv|2LYTY@A8=#Dt)+r(E)lD8ry+xNWStKaa zPzYCyj>}7fg$vSrdqt5#jgD^~Yb=~|&?EjVohA1&Itw;BCmEe3a{86o{8)E|-Oyd) zf$lP@y1TdPE&-~$Cz;j4pV2CQlE|!x>QARGW}kx=KA_S*WTf`nc$I0LaZXBxwdQ7e zmx)YO&Pjo0u7M9VO`Y=4mH1Wljm1}RmVqak8nvbLzwQJXo^0&F3*a}_-bW;*W5!=2?rwnXQr9|>iL(yBF@ftIh5WF8B2}8 zR>1!_e1p!S*Q&Sg9!wbZdxmlZyFLFoeiLWZ*WpbJ{+E#xff?JNG~S1Hz+Q2ZzcuJ8 z&5FN0QH%ZtlrRd!td>Dt5ougp5%RWu>^^};X@N|K;EIrJR|@T#nwGO%5d?O)A_Umx zipWf)h=>!ZfABu>7hE}!+K-*DZ~ZsXEH`9Qb|NL2D-p}KO{A3AT67htojedPEBGJ{ z^z4qWBK2UTB~u#P$hVUoM=tyQ+P&8Mwe@=?Y=|4O2%o5mPZJ3BLbW{=OQA+7W53t8 z(4Oz$w-#OeK-{;t{9eBWj6X|P$&C(OJd(yBk+^5M$%A^gPWBC*-jyX?v~@iiF&sg0lgW z7(Ek&;>m1|aF;Q|uGrf2zl|K@H{-GfFZBHcTOs)j0rH}iUfH^pB0ch8JA?K>$v%D- z__h!GI3}Dgf~TCT;*=(I^k0Z2JzS${N7HvcNB>41lSH<-p#``C0P6+(QeQ`BA`(4! zv7FP^wNTp3BS$0&Q^)`CHt`a!oH`z$;}|xwKqiwiQ%A{LiCD6I>L@hC>>_IAnUa>Q zzDDpCBPR0wwZgq=8s`_hgoRp-F@DCD3!y@xZOc>WRJI&j3J!l(|6mh4`o|fje~_rS ze+VzoKctyX$f))YbVBwI0^G0us^=le3!jJyAJ;30o**p;)yJruc!D$t%5 zF_ZFaf*Iuf&Mh2MB0Qdft-lq%@PhwERQ2_uqB<|!q&%1$nb62t?HAgwg$M`%W z9zn&4JKhMu&Y%_QHD3QDd362rM|O6lt6gd5wY>S`dqUfyykOERvC4WVz;VG6Olh|y z3b{NMz00);m&806?0*0rJXfoANE_PKp1=;Z7odzGdsFTA!9^bF!5)_$HzHo{Qx{3a zgo7&|={bms-@ASXvMgkhd8B6t9ycmz=1Rn}c%%nUAC%_vnI5K29tl(QK@J@I%)J#V zXT7U;WU-0d$>e!fL_TMB@&2eszG=oqfv_e1;1yZ4^yY*wmO$K4rI<)%G=MX&^ZW8O zA(p3-;310}ido#j+R%eRsT(pW`+a%IY#N&VzI<#Mw?SLhK#Cr#we|QJ2uxpO8^CzZ z8!Sb=$Wku36U=H3f{J*=9;Df6rnOnY0p#ptt-u3%EJgnYYtfUH1{=o|!x2$k8C{G< zsuHJIehH#RU}Xr2t&YaxPGzvM4-p&h#+!o48O{KTzKEXKKGqZ(n;&OS7!&^CfdJ>b zxW9<|k+^f*hFUooSGiy69E_ezyTm`ju{q}K0@&RaoN4@nFF}5m9izr}*s-&W9b+?N zJ0_|PJ0?o&gp8^kJ4Edm0jVA9c76(CV6bGo>O&gVQo!!qk014V1(Mxx8WOCbi&3=# z$=oj53@|7LliGS`G@VJ35^~P9>{irm;yTEs^{HcqlT0_18pE`(4r>oV5j%%9QjTG5 zfVYW$Tsf>^In3qROQQ5l$_#6gw-T{r`>87bN6`qf`7R7+dZ z^mb#pv1XxXcJ9K}ggWlRSq;N3oM{-gW57oyWq0B1mbD+8Z)=1!&tCw_|No?NNJ4%x zb6<`nrHBQF)FK}u8o^jt2#X{c_opC}&wQpflgL4D|(!SN>91J|G%p73|X~{Uv3E{^n zJvXcZ-mWCkEC5YfduN)>BrT;{CV8!Dk}m0nY2LQJlilhiX;iW;c%P`?%B|kRb;!6z zl#EGPC6mmRh-KThdX+j|Us;se`)o6aDV&Mxis1qlad7aF7X&;mXCI@@C5JFan@Io; zyRxKAD>SzW{uewrl$yFDF7oDca~!!Q?cf@74)H1vps6^3!ubKL7CIV}%o-DGaelv5 zG8-Ng5Cn0L z^)>bsS~Oo{w|y6LpkMr1x=iV1&W+*xsWWPHne3!LlVlBGTZ7CTaJnOs0v*SBo>C;@ zhmMP2osd!0aSUqIaRT%_*{FP@{W8uUhy1%aI>$pq9XS6Rf8>p<125aaP5qJJU{~}G zLRsb87~sHtJpw!r`cB??9#jJQ-Z8e5fAkhIUvocK4%;+$C4^PfM)0O-nS{_K>7ziS zH78D-u?c6SI4oI%`BDXg;*6v(l8(l+&GuJl13O%*MzSC1f*vOY-3T#>Tv zK1e-DBpC5j`cyth#pu}>F=;j!9{}ZUC>S$7NE>6;2T6~hpxZt{mpC9fS}3}rjSf>+ zMMsaI;L3O(ZCqLJqgh2tmBK4~h)AJ2MA&`m1_*;ct51>D9pl3}rcbd!@%SJzLEmBh z@CP!gedieMI|S(XkU3lQcB(7R7V#dREn-;C7Ciu3PNjaqXE+b#bwrybr6 zHCI~R8pVW8&i;ebaWPwD0{lFI$%If0y7U%4J49a5pl{Fn#C%-oG{mWGK0AbS*Mw(1 zhLW=)1=~D^lbd0QK#T>x%E6nQr?DZ8=|e+;Pw?1oz7!fyMq)qTy>ILp^m9|vDcgZOmP*i(4A+CLnzF+4qRz7LyN z3jT@g>P*Bo`J^<9`7Ow*n zyP_M=6RZ7=0|s(qzhyJF0#^S>wlVMH)F^y{2_Ntzxis=XN-ms!iR=&UHUK-7-t+HqFqeNj=_?-60vOC7(7|?=<^_Z z=!M|j9D1%s3lNEUE4u#-+k7o$sh$=u8bOw_=T0!I@w7+_+OkvrHs6f9MNqRSQM0Pp z-NHId{>OoHG-%N1=_kj80n%`LKuw{snRDW^C3srXse&IM%Dho3B&m-0kQq#d#qmvo!-vq^bSZf zXSpXq&+kBj8}0;PI><6+)R95$h|hydy8PGds)C8KML0i0QA&ZV%0)|&{Vgl@{ zY;Bgx!nB+&?Oqe>YsTBp2Ei?|l(&f;aiv>irE2R1(mEz(+#-^<60u~vTSOZm%EcB3 z-@~Q3xoKAlevsU_16`-Jdq*0JEc*s{+mXUj7axmOh--AI`iR=N-PyILW(IVv-I>CJ z?!pbMb1imYovZAiH-hl&BG+a{yC;RT1=uBvdxq35OtyPQ3N<~$o@?$3-Q&;Fa|)?L z&o3}~PL#2pi!`C7bsFc4^{>UtpP3_FcyNWfnKOP> z4hZ_hqV9FEJlA!6kM5SZw_*JKys$2Hjs^p1z{<53fQ#2y(8u~@$qkRGq!o&u=JUa`RMQ}Ef9UMjYtaZT(4dYUE|NPAylUh8!~Qe2pbgJ z5Yao>5Y~^i0;6g}PEZ>{fZCAEdKI==)~me7>s5xaUd=m8KnpsNeiLyyDv*~A4dbl) zUWjlYWzW`_Uen2JfTNc9T5Ys9a^i#YER47PSBIBtMxGxtVowxpA1w8lky~E-@IJ98 zt^-gsOfKZZN~+sT%RY%Oxhql_&p*H%mg4tFOzs`;?aj8f_2#}4on(ZELP%Z%yGv}4 z7hs>=!}$*`5eX<5fFXGyNxqVkwx1(3V+3dYm@7!&_IEmGcO)JN>r)E`Wdg@?VxsZo zY6LZ}GEbL9Qt=`p{4iP*$WaWzCZ)`I3@zL|)JDZgWnWPi64lX>=|x#FaP88-k-SD% zwZEr{EqqqbE&KOEevO#aoq;aq1+6?2HEV41lten2k4~jvqubc0;@@)oBK+>f zZwLJ1_3?6q3I7v*o8eco&d2mZ_xPJ>;CPOf+R)J#R-3-S7R7x*)CPTl^q?;=s(k^6 zK{;{DpxH|rfPgQAnU+X?Lgip_Q#b| zH5_t;b8qqtHzYhWPm_!lDb_JhBiewHF_U(wTPn4!N(zl9?eY75Z@)cx-!CcY;NKez z|A;5%pO6gxu~zVpQRUw$%0B{Z{$Za!nRg$IG&AqU-jJh~`cMEsftw_lZ_7RsG@@h#f!JO`$a846s7a186Wh_Hs9b`xZkRhWg z!_!oT1jI7r_pcrUZ#fTieKBXUHa(lRD&^boBAmGDNN$@oo)|xkw*mcmja9n6XZO7N*qi00@&^~+{@ZX6oA&nh+_$H%={++?lYfZ(QkVrjZP-``_S)KB4%VW8^XbHdyJ>i@ql834olbL5EA#3cLPr2 zR3)V`BwKV=;`OT*KdyD@ZY=x`aHz1BWj6~NR%7MIKBZLrIMzkh@hPFkB*FYmCDhll zA_(;a-X~VzN}--fq4rLmjc?fik`=1t#3!pIt4?F`I;B*K4L-b#1*3r+Z4n$&w|%rF zg_>~~vW)+D(11V7rjWFZEcZg@(8!Wp=RPBu5X)5B0+|Y-__j8ZRHkRCObJM3>N*&s zogvg0FA`^Cg<8dIKD9LB1?xrqK$}Tm|If*DCFW#N$-~N^GwlU1}@i+D9l8}Sw7-G{n|h3`pd18oGJa6JXV*hXlKhtk@{ zE{^*wgR$#W-X>1Qm17qU8fZ3t-0w{-|q zOJVI;3GnlDmplxbvqzYy2t)uyIE%N5GjOFMtWrh5M1t^)B1p!H6zfm~;;Ka-1%u2C zP%4*NZB0m_stNJ@@7{Y8Js=?+dT_DP1EPubKq!VDuukX!qpAm^ss{w99(drb=R9rk z_Vq|3Z$rGE3PIs5-d%+tI4qEM4inhHVF3z<@z#|oI7~F)@HxCqtiqKX#@;=<8isYk zGaQzTm59aKIBd8o6-rGuS5s(v|N7FG6220BhOe}rml(dXA+(?5K+IpE7yK1!oRCrF zFE*mt&j?8EXO_R`A_~AsSiN1s9ml>Y3A>=vv z5c6E<1VCuCH4jtLfdPC&}@Zs#&LJ*&C~Y38iW`@!}zFg@YYA0x#CQgpaTOmY+f zW|G=i99_&LEkuL4>@6Zhse~g8q$P#JG@tIcbXsvPMM)OqaVc*TA+D6i1tO32-v*6% zCKSMoNF*=5seSj!1 zZZfKU0Gku+0|aOv(9Z;ROp^BJB4Zd%L424x8$}iemblB9>%vbv>rK zp18V8m+M1`JyKoo?85jhD7S|DG~Lcipf#R@T@GH*&R!{9^h(4+HVx00F({4aPN^MF zHenUm*7*%k?CV2Q&dP`q{rSzjOBRtcYC1WLGu{QgvxN6ZSK(SFa zsa$Hcl`VzF$`;Sd9(g3OwIroOzpgO)MRvscB{W07gd!(oRQ2mZ)h_~K8%v)K{HzZ6 zTh^mMSUGL!$>#w!_UI#23Ucx?a(WBuq@1va2!nSuVn$BaAZP%IwDie08*0gnWjkah zK#|#rv0ccxQi&ciyOy_!x8h2fVLfT)A%tgSCK)Rci?zwj$Vn=cnru0x&`rpR=reNK z3p{zVkrNxjF_CPEv1LD;b$~_Cp^P<$ykY4Y-+wsg;JBv_Y}Gbz7u^1 z->))!XG6$$vL)ub& z{7-^1|8qmh(IJQwY6*hC4nYV|1ab0|f*?H*#Lc`-yc1Un0**E#2*NXhkc^dx#ika7 zR46ssf=Ho85V4(l>Z!y|5qpOmFzm~F`PdH1fxL<3Aml<0LW~nKs&ZJPav&g;L$`w= zCV778JxDWi!Y@D+S3^YmA{hhYdy%38M8ezXR=`YB8;7IYn52bhuFbPCQi%>YX?^z5 z9H}u(3%5OWkr*jX6iF*&bUSYox8O<{!IK3Ut^b`&vY3<+ljN;P$u=>?EtG-&K!Zeuqv_(^#ui?Z|nuLj?)h0|FO`EDoo3ax}yHV{E$2R&q z9#(o)l)D`Q*~r66N`Ap6AG1j%pR-9)nw?GBv`;yklqyBKcE3rXrr+3Sg5C~=<iApdG`y0!%OAeFAR<}?LD0ElT57{(641ROpv?|Mqc+K zuY8dsK2lMi9Oz+CU-=??F<*xMT#Yu<&-wwh!}RkrK-LrZVS5f!jSnKhP=<3lIl$v{ zI?p0(&a5y~fSE(P|DDfRux9$-Kg9dQI$Y_0hhLH1a*5zzQq~18nJZGZZC}NlSrLpF zGY!V%?W^oGiqW$%!V7IMJ^-rSP%viB<=7ar=W=*vMbKenFzAxA5`4x&(G_iUI4hy( zsN{kxb0Wva)pkxo&#Xw5!YfZGrt>f2$k^EUYPF8p5_%%ky*`Qd*MJCX3)(;(L zRCOFqN$NNOs^j}5?{5V|PX#-~r`tf^x|Vw6`tV{|XET;xPG+Y-`Ba#ECk&@SPJvC0 zzYF#p7ANMrVDf#h-^+Kw?C*Pd!LXGdZ~uz(^8tu4&95KZGT#I9qR&9vm&~MsSriU0{Q0PQIWUc6jjA}o;RQn+T z+7H($$6xu2aW^K?kS7s@g&VxnGu%TTE;wI9AHI%#7<<(p2OjSC-XNy(lZYkkhb|&2 z$`E}DA&sj7nPDhScPBoLpuB#gxlHp}rO^PUJ`Ppl8#Y;Ms)q80P0{`a4oNYM*1}ug z10t0?d1PxCuaFgTR0owFsrFH7sD;8Hkoi5{P-3ijH=eRZoAqrLY&4(P{VeYjpTLz* z>|REd>0SRpT9J@R*_oDP#zz_@xB40J@f^suD?^#k#D$6>shzy^D>FPEF}ZD_IoD8( zmU#iz5_U;>dFYdvp9<3?2WI_xS~&U)$;THic?%gCJ>J}pi|!Jj#ip41njpESmc`pzn$*;Cr1&(!P7S_FV$B@2bD>+raxa)B~>4KBl_A{0^iHft^(90B^qXns^tO zME=Rhm`2*ZXQLVLnlSx@jrsaz@I3Y6e{kt56oW5P)kk!k_#fm8>w0Ds z?JqcBbmUO)diq52tawhFSd{wTl_oxLDTHo7?fCW$!_WX+`E?u)HO#?#{B<0L>&LqO zd@4}RKZ|Jc{_An$Gs$-|mCqzg0D!N=0152n=DK}sQn1L`rpQ<091=j0dt!hD0Jt{> zNMK9FU0>$<=d-3<^bMvX-+jFA*lV$dx$2CL)uVRisN4*FG>7>AtH);-o0w{VZ z`W6#2Ehl6(dQn&OZAs&GDUMNt5DFu>2&A=Ux*_2KdZfOp0cufNHcN6*7_GBx(Y*~t zOo4NeZ8-5Ww*6v=hZgz%*!D^wwbzRwhV z7zelLI}GFFT)5Rr>)%6kTE-Nh{EnspB&TqN?_kj~zdr-}X5PH(9({B;$Jtw^US$fa5Wb}R?H0NCj zpG#g%wVs;KU!#Y0vt>`ll9;MrkPP$-;CAsegF9PMy3R7k-8JbWf;;UaA~5YE)Eem{ zDnyEbeMH0|eT4l-)5t5P3D4U45A_iJ$EcZVST3T5c{p?DI$)Y}Q>v?&p^L8m5O<@i z463d^ffi9$e*{Rx3&KBU_z4aFl;NK+Ouc;sxpn{dqu}?=!cW#EZ&0E*sJU-J(mwcI zir3@d0Tz?z1CHgsoL(!AGRipL1;Tssdg-jX>E@T11 zCy(##80zU~YDW~n3mgyi-57s}7H{p4J@mdg(~AWe>igXu9qNghLp|@!ErFbY2&_$z0szJGk8sz08Dvx~EPUp8UDe?UFDWuST z{sMQSlMJd(P8ywrHwoW(zy;EKhT*3frXK#-=%MFa4vo7-^pNETd&)igdPWZqLDEI& z+`QveYR*^iTe3eQV5lI&*BVeJOmsv=w;B@nVJb?|uaJr_8{n$XO*b?$R?Iu+&ko*z ze61PyIy^JXS+EvcTU|cpNT%F4W?ZG{*HVRE+mO8p=}^6AnWGy0MsL5B{F0M{Pjew; zoy0`XYu6FcV5wZH&RK9<8PAgu4{KR+JQ@g-&8n6h&afL2Gw0`}=sDJmcl#3{Dw?+Q zcT5V?t8~WN$^hzAnzLYd28uB;(?-dyZG4`^hob-Gts1?cx8E!954?q>s0H;UmDjJT z;ZP^rIl^h3WY-jh-V#Zfd6K2JA`*@aMSqlvr~qm}hN3?)%uZY~&9Z0fB*q&GBDS1G zCy(pwy}jjL^xih9SiQHmCQF@l<=%~TUXsAh%e&0e8HgrvLFc84)dq{}@kNkWbGc=A7#es?EG&0Xi`-vQ! zF$tYB_ckwpVwC2bFlRx4$ytfh7SR}%^BhQ>=RF}K0^J-5z{D9JP#kbKRCWgQij6+N zpaCWEKyhmdDuz$iU?F@B0u6W0g6PNK+QpCKf>}GR0elgq=AL8MLr4lqrzL3VRzP*} zkC4yolfu|n@k+V8jBi_xuSMbL2_)A$v+7irIHbmSMr#*BySkk#(60BhU9NH@xHVym z3?yJoxm!3B+(uD&Zt!m0XVJ@7>a7$;N;2s7dwq?HS1r_51UG}|evhFW5$emWMxSyy zPBrn`tUNtko_M4D?;zCY_7sEnO2v55Nyx_J6hi>*h7)2C`&37P#t)Fj;62FMJV5Wg z)xO5gh2lF(Ij9FTs3hzfyAiBZcENAutvwg=HID57-J>+Ut5{pnS1jOJ#QSrgjDK}} zsc2hRvF%|6C-4Q*6QL!;&H_A>dxG=6InzW(<~{l%>)EIx|Bj3TL)y9Qb4o} z{>`ASK1+mIpLOw1{~v4b0T@Sd{g3bMo>tOHmenk|``qO9=_D7q7u*dt&D~(CES+r` zSu5@&xAWNo3WT!Emd1UCN-vGQ@%S>K%8OY{02pIu#q z-Dp}xRSrCt!&9LyFoVE*P5TNUM4mR1H-(7}z5&Hq!=sT>3LDFe=i0c$A(W@Qos?&275zhS(^pgi#gGuBf^)yU?Xgjh$i_$^=P4RuQm zzmIlGvZoBa!$FyjMay-qS*^UH+8Nu;a{qR@OWD(|e_0lqhbZw%%U2sq|*HT-3l=5;g*8Te!?v%sztnu7q;Z`h1ZBjs?n zB&)2%tejDVOTjM9t{IYB6)3`+k40HUW=+5pa}88f=9?1E`Vy!p?^0P%*2Rm#vhgt- zbdlo72h>#(g+55lTIAT>0NB?ASllG-5ZK@p?Zm#0seR{~TAOH>y6ugA^cLi?K#ixf z!dzZRA8Q5r)Nn)w0g+4<@R8?l|dW40d|3)-JU6!96{SSabpF_y7?twrK zpj$T}dcd@H0cTh@0?5l&g_)026EtKAa^_ckoUm@$)~}Et-=Cw#ajf@+ItVa9m)u;z zI`fkf|K^*3E%H|vZ{Dsvxtn3Cz|<7v_6w!jzb?5VfRHZ9%0(-55$H;zQsN5CGVy0Y z`n#!B&T&`57Is2UGI+pOIG{<+TmOTnGjF9A^VaOL*n6CeU@Z0{Fo^?j;K$;uKY^7h z`VIPZ<qak^3(%k6vU!@;h`9w(&J1vc|Jzed|i>L=9^48 z4$T0E`%FG=5dDgWeH*BYniE|Rgl`AHb(VdIkRoq4EB1Yc@gcq_08|xJN|I`FNI|Af zN3I}ZSNNScC7>@7#~I;j6{N=%52{!;c=SyL^xlgCOcXM4ccqj#0sD4{HUV`We3Mf3 zD^zLXd(js3D?Di;>b@gacocXF1ECs!2QkD76W_DcdkAT6#!P2c6sO8nx8voO&iX{f&C@=E=$MuaV&i6+d!D@IEZap^gP88rf6~ zMPx&m%Eo9{bdLAzJ?ac#C4+j!lv^1Bh4I!Ok798tjVSW{pH}45hZvsHoHQG(BP&ZH_a>&jUkj;2yPdhU_cJeBfa(&m

X|n(k}{4;I{D9- zuQ^*i|Kv;tTRl8`z(1`1XkGBb2u3sUyB*^W*qC++od3b|Y}B^^p8SKdR`--Xz^pFT z1(9m}3pJf%KSRC&GKJ}*G`XJkWe_XS&BQGRX7^*z*RxMBt9#?yRGUzMLZ!OEh1kK= zm+OA7o zs_Kffgn+9sqrQ)wkAntCG*~z?tei?dO{$TuNlbKoyeEd50;`x*bkQA>GXs2s`cB?U^(muy8)A+ z1AjUFW%RR;`xj!ck2B@04EA$jk4!K72v{9J+2Av0Fm)7yJZHl{?nF4~dCnJ|8 zdZ|ZmJ~{~yrw(o0+ic3HC((zo^f({ZW8~;TD8@=0(K$~%P&NVVClMVd9`v~IRh(co zrU-yf935mMLI@pv#%))DMA^465bF&c)J069pP-dX)%3EtGmo#X;*$;lv64ru z8l>5zBT-eLqpW0J6;^s?<&8Z7b;W)|ok?bTI+PSsSk5?`D^3XXIC zPwnc7L4&m>W&cuU$9k5=o?$WKz-5%_r>#9$gf%| z2&jb!v%^XOn;|Z}AQ9(7HqxLCFVcC=pb_R4UXIUapd}9A9NhhQP{B6lIBi;6h|F+Cpx#WCuv@?1DL80TyU2F%cOC0yrKA~emE4vqWsR32pXYY#xi zJ1Cs_NSd= zk4TR#pu~<=WxHJ^%JoaPT*X7Z`!y^(XuDWe=_{tzbI7%HLOAX@!iX|+lB*6yt}O1MF6dtOg=HK#BZsp>vE;O)-fMEp)A&7!m-JBo-hE+xg`p*I+gF^8DVY&$M%*Gs&iL0Q? zmWk-1NSqkMLMaG^Y&U^;P%NK9CL7&vAgx%SQGS2uQqe5@X?5O+QmIN%k7`-aN}now z9<8b%s#3SUB*U#>s8p#$_9#@vr51JTbH<%1bg4z%`o=}ja6~tDIducWk&Iw6<`|Br zR-A;S$y(7Lib&*A3kRzeHlpvrD8XAR2&zS#he8#est13joe5=)vt0muAd(j|bz#>IoU z6wK;FZNQod7#7A2V$G#)T=5`rHy0ru)CUTo>I24BQXhzM>I2NbfZD~J3+B%g3Z?cV z@QWT#KZxy9fl4Tk8ojp9>>R}Qi^UVDQ<-lk8_Zji_F-6$B3t3Y=tDq71%D2bZ!~1u%ngAH5$>FnDOT9jd{|bm`?Bz` zY3jDdX^m`AuG{8Gv_LO5R^`Z>6r^}MRSTxkEzZI^^wcuW^Jyi}|F2~X#W=CwK|u6{ zzi07aKuBEZ`sC270w8*9i;pZT#77LvdHARVN9hCPIS#mpW` zzanf`(O(S*8-ye9uraN36pGUA7a<-Xf-XWlK=gMJ;sIiSix3YG z16_o8WE_fhAnpE6<4_~Y5|rZTU{1Ql%*N{BU}Ke;6+cRY1!a1QL)AW(QFbRROF_4& zo^4dV(@9N zVV{Epy=pL}V9IXzMln=gS*gJC)i&n*CT?AoP=J`$o0VOXAR`-o8N(o-IA50;t zEG(^hi7E?Nc{K=1ODP^8hPepw9Du&98VIA*qKg0?k>Uf$~g*B&l+Tz@JdG6v85c zWc9d0R1l$f(rX{e!j01_717>{;T%?x82NztCFsXiK~QM^5muEFjab8IZ``5=`6SngJzKyb5Z!u^tt${{Tn6fBqzU z0bVnpIGTy76h|2PR>koTP!c|`MULv40kj7E{<%bUIGWZ|pe5fwXQ;z61eRfZnUFe( z6WHkZr8XS`!wOGQeb9%{opTxl=d8*)Msqf{og2ma6`Se~Fz1CzkzVxVeW5ai&2W## z9%zxja^x+5CIo{o>N)NGNVXRb!DfnCF%ihSXlNDuHY$w)E#Hkuosa^;`;wx1ElyCq zFL@^PhdT#|Q144#Vesw2q0~yTdfI=4+OVWc9OmY1wq(B-t%3F%@OIX@(aOj=_b@!2 zb#8jqI`7Z@}eNVWViP<^aWO+D9_q6F>pB!x)ttVd#YIqZooObi=yI-q~+e2+C$vB8zrd zs)`58?%0;@ShAtV8D?WUlQoF`L^T{N29sNP-aZ@{;hwKZrx;@p5}2@7mQW8MyN<|g z&G-f~S=$qZE4|Xl*j${kqpFsAB2aES#;`gRPGU5`w9F7;lihesRJi~xhu>Kx7*qa^V`AZm&e7kJ{p4|bUPm({s^IQlVf1dSf z7I3Ha>fa`9H80zFR|Y!Q_>+^DEb4=-R|~xr?x0YaidwH`ZIbosl=(2nV!s{Mt62xJ zUhPydRlAG?YZvbe@oQ@!$Rm_-Qza~oZFHalL-m<7XI7H@%I-N*Cj!7?_Xw{Zqq{o{ zo{Ai?p{o7f9o=>;^JXX5Qernmk=zO@RcJ%me3#m%1H!OFbKm_LG+FhtnwGCko`XpQ zf*wTofXF!CZcPTG5!hgt<|WS2jr}z2w2FuK{sd3>ozS~Zg9HUImTHj7W6#i>C0VJ+ zqsLZ*b%IjB_(&i5H?)l?iARxt-n%miTH!qx`7p~V@F!-#QE2RZU>X5S%SRvA~P|Q&rOrz7NY|@iyc^C-`}7x zJ_jIJN$$J9okw5&+!S5INy@(&| zfOSyz>d_EsH{rJrzoq!`4`K2h9L#UDG5E0`^!^Go$+Tna|IutI4X($1HjbWJ{Cq8|QCNc359EqCtH3nxS zBP4~CcO;X-xbl`)OTS=UH|;cP8)EqcCY@H5cKJIc3HCv8;f#{CP9A@X7?ZWw6h`{fKUK7W;;t9JFCL&eK4E%E1+(m%uXppGD(d{CP5tg zDj2ZfO?Z6M+QMDKW>L0M4hGXuLrOb2&<<=t=NoErNWhfcYQD#19m8~iPU@2NH;zaD zKz&J>8`eC;#S2eTj|^)*pga>J04^cKqHywYZCG-o2Y+&WmlL|cp`n&(79p}jMy=Hl zp={_F@O(09L%nMTCavXA~VB3BvIq+KY_M|o#*Crc#8R}wrfV?{8N=FeDe)~S ze6O07JUvf*PV9yhzIS!5o6wA51nbi2RWr62cX~5^?m^<0#b7V6;y=TRqecLxj0zdp z80`;lv@QutS)q<-e?*?tTWN+Y0ApBTEk&lQ%CoTy{2Xkh3M(kb0)z3!2&uM`mhHsT zNNZFDFcxG0F4~aNIHe7Ea;a~3%d!b3Nm4J*j+WgkSY|ss1!ZR$xL*x)nJ@TbaucbTA&PlPP~R1 zZA_$lkfsLalf`Dle zVCdcm0!jpwCI&>RG{pm(%+l6DQ@f>Jc;BcpqSUZ%adlf-gl*KWET4Li0aJ9H1$};m zAF`{h!Vg6$uiwDxc$`8T_Z}RjZk4!|TJ~tZ8cGhOMWAZ;q}1Ix0#&<5^eYREog+}S zdqlqni9prvNvXRt1*&#WO5L3!P_=tf>Xry<(dRL!O)dK1od}P@M2pVr5z4eaNLqd) z()e+jz#n@Fb;D``h>O*NZO~opWf!AXKdoj2hC+JT>QbwLUKH(Ew`j!!#5flr9w5fM z2=Q=DbvkH2i?WZc29ZD+dVjetjITv;u@{h|Cx2zU3gZVME9Db{9;tyYi1ep9Zebd)pwHZtx0mc1g@-z! zt*KCYolq}BU5~YadtxG0`YOlh&iXg^nD#6LJ5LoQC^510fcUz70g{HUKx4<1YAj3> zYhUcrON(_0X{$A4l2&0J24Ztq2iB$1{RO&C?qBfTAeN#YYXRvzS>txfD?3?UI0@HN zm6yybbWMZWi}1a)_>mY7%glA+<0wTvel%buDK|TMR+n@{mE${ePzslg7*~cf)Kxj)AIE0k=%3S>u;y=o5iqRs{d>0ZOQB#Ascf!(dq2<3f59Rhkt zfRi7-WLG^;kIzd_tjFgAVPAzK32HXvxv91+K}~Q5zL3vNN5SO`{9Mk4^7q|@<`ds5 z1TuXFE|I%Q+72`DP7?NXBuwezZ%JLqP&15GV^Jx`ol0l+GEC0*{Tn5N<%y0737hsC zAY$6rAxXc2nn|6wmOEUNgfnqD4qOgkVYh=$d;OfW$4gqwP&0{_E#m!O2)CDa(fb`x zg(HQMYh4Fzw3nn~lk-aV+&>2aZ{T+q3ho9xm!SOckih}*m}JX)aRF!U$*`Tk@#k4H zpc!r!stbTKFvja#u9;g)6gtCP0UYEzN?GM?p-c)40##S0FQy>uC0@9}aIuScr$n$7el2?2?wsU-G zivlvC@utFjHV|53VKWi)q#%+7SBLm$YYJ_)E`tDVCqlEZsWx9nK=(LQ2rYb<$lK>^!&DS!(Tfv_nrkb_Dx64!46VQ(_~ zpUfi$Z1~&t|l6`$PD0%I%N%z_i}}7#`@! z(2f9=mz{ihj+0t9r{}9QPq#4y!W;a$y&KQG%4}VM|@ ziuyVjU63HHP?Gpa3soWzeHi*xuSH{LK*f=jg6%owX1Tnyv|VlL=2eDNiqwnLSg%!r zsT6W1$r?b3vtyqy(~yh#{tce5NO^n;tSknxJd!|%@<`#`@Z2Z~YuyGI z_M)ITRy_UItw6Cw-oRSR1qbm&9SVE!s=Desc%CoW+MaS#vhM zrHNk%=6@*2Iq=GwJjW8RQjR#2l^sIcD&?Fi&P0RVIh7MU;s`xXDq(D4@fpCX-@O!) z0M@a74SyvDUX&!Z3jp69r672FROA^fY|4)nA=Bn!+=!=CrhOmM$vShOLII&tb*H2NirpEmzII^=b+ns7RgbXfgu)jf0!-sUr3&x@pSA^A-=#Y}xhm?GH<)TfiIbu*7 zxj^y8LD~wGk#3xS3IY@7A_-04JU(dx;sL@5kjScT=<=T8YtZ-RZHQee1D$X%`WmF) zgX}otjPD?L?0Yx?vyJg2GVVY)UvX-a=Mw7yC@MN59|zHhu>XSu=$Hh1Y)0%O8L>UO zWTLPzBlg0K*c}e(=uY;%ZM#1$wZ+pBepdo_Th}!Z!%&hmuBL& zCL?x7M(mpzu_fIy(LFpP_Kb|!M>1l6%!o~tW#aZ+Mr@DrOmVkl#6Ff0`*B9>;O?2| z)@8)rlo9(@Mr>}6Omrt_#9o&X`$IlprP1Y>Bun<5F-vgz zTQt%apvlzziA(X|XHfX8HnOUU<>vW|7+9XT7!RCyEiaE9K--$Q5MWlgpY z8F(OZ3FGAHG0e+N0r;&YrmsSuO(u32(W?fl71sCAWUCcc+)5KY6_Pr)(l}q1Q7NiD zDc(<}z?!T|p{|orDMDkgEkqd(`0&}35O%o<@Qfdy+-SrY5c3R2D2yE}1M5Y4oOwg1 z#CNT6{8{^(i~*Pin>?if4EJ%~$PBbsR)v%s2EQ9E9uOMY|VK+m$(xZ(y^ z+PLv^u!O{=Jlr)%^^WZ3s5F^=-_7VI_)!3&?dp<70$u4r1{rt9$Tqm{B+C@^B+a~B3;SAc{cBy!bCZ~Lf)$>iHgSuNo~6!s9Pb3v|;e0|?S_@_oj6 zIQWA<9dFhSeBSl%*Lr=g{2JbvnYC9N#rQl28-?!iuA`jSS&TIl=N#-Tkcg2?d?}E6 z{CK#wFS*di6Q$=vvp6eSmS8d-dpLp5O-tbN*uyq1^ab{H1ARTtp!Aau61khC?Q}Yo z1i6u2UTrJ>VwHOQ7~t(JmW4>=V2=e>k1rGVIB`W-6Y=cPFl3lbwl#(pJr(7zgw0Nz z#F$E0Y*QmI{CdtQdYpLdniuCB=r$bIS(Kw<<0o%@#R43@s)5>Hk15>5x-{0RQQC^Dn2&V z!sRE7aHxV7Qwr*OoIz<{F_O65BxQ%M80m46~-vgvd~_rD%uN`Lwlim#9pW&u@@@I zU5%9@gS}8h*b6~rFBd6$A;Q`Yi-osu2324?k`}bMAb1vx+uEA{H^C*skH2Ejw`L!7fG+cIkPlR$7|WUQ{ zJao z6;@Qq&qGCF-J-dGD)%8=4uAh2Sew@-E1I5n9TcZIF zD+k*TSXrTVg2>qk3Z@cJ1_#@}LjsEA1Px#ii`}6`37sJ9xTghCU?&Ls>S;lg-w7Iw zAfbhoKxrXu6XPAJBZlmuzeW3=SLHW&Mr$6HlIIzAHlye@8R+I`^EaIQFL}JjeN5)OOgR9;a*C6;PP+XY&}Ni^82VEQtL7^`x|T@Am3lOX zRt@T;&N^eME;k+ZleAzKj3RFjK=s9rVbZ=x-wDEIdte(2B_lg0Quv^e$lZxl#Yi3| z6vhdvP79(*aY2-QJNFG2;rWk)wzvPFIiQE}Tom0x5DNK{K`2sB&@BY>bThlu>P~Y; z$=t#cV)G&%hbPBWS$V#?VjD+Ftx;$l91nL7L)n79f9mNG+S3}<&mrsu)IBc2l~YZ%x} z;6MZY7-NP@ooJuJ7-W+r3%Avk8Wy(G0%2#p;nn2o0oNO{`lQwy1|k+t2xj?ZU&#_V z&sFC#T^f1OZb;zXWnuLJ(}P}P(FZX-DnwNXNU5q+fu1b5-?{}So=%4{NkX@JgNuid zC|owc8K6!GaF1yYba4lCvH2trjSfcA&BI`n7I$X@n;!+zz8wivhgX(DNK{irGi+3D zyyZUvF3XYcu1~|0f3ZuDy6q9riS4A16k~IdtG3_4xB2&Qs)|Yvm@Np5jRb)S~P2YQuWdhdDV!;ISW%9jVYvwT$@=v8~^ zz3-Lp=g~unrzvnOVWozKd)2Y%B#@SBn3 zm!++MUOyFnG&JOoW(Rv~0R(%SelU9j{xp!WvB!)n%CYR)CD(6n0mf6jxjdSH?B_85 z4P>gy7vH}~E8p3KrF^rrlkxmal1M@1ayd3ll4{fo zG;)WL^=#G=h$zk693>3fr7@7@bCJcdZ9ej{!rjd*dl#ZfJC~hh|JwDVP2tjkwURU( z4u{j9#^DHJT>4*l=}WtE5c*D=)rtO5o#-F!rT?YScWk$#{G|EcjCqQBUsk3%uMAGpY0m1lhfQJwvUSPw*iWjMLX|8F^1+KIz4#IXI!l50i2 zc6fZ;nTM03B#(pTVp%61$GJSRwZoB*Z$wW{9dp`rsbg8;K{;8THa#oVrUSnTRHTl< zv{;Q`T&qdgF|HFju{}|-Mcx$Oe|z~l?fn0p@5!C`)_VBPLVmv$zD^x>_(~nl3ir)Y zb@(8;&YaV_P8{onBlAgq-+B2t`u%_62U_gcFx2Fo)tFr+p`3w?f zxe{iHga!U^7l>kSOv#1CRaY*qKTgGb{y)ew-~VpL8k_t6cNG3aD;$O9tG842II)&Z z9dzl})%t{W_G&mA^>_>+`0k*@uq%P9!tybrt03pX2y&3q_SJJ$=w^_>Lo;Sm@ zuoiVbI&s;qVj8_DE3uZ(O{c;w&eE+*Wm$6{*7dOYz#web6`SgN_gMXx$lVf53tAU| zR&kaJY*%agl9OiS#C?mKdFAF1pJ{J#3xDD3T?9>G)gma*U1RPmdplh3$G9xH)=zv7 z{4n37u4SzskK|uBlmUO9Jpg7iZT*zx{{za2=dLL`*H5W)?g3DH?mDXI2kWSkb1hC# zt)pJ1)=`O2>!_-(jRf5Tpo_1(bFkV3jpSul^#mZVfd;a|-LmXsuux&zqIg``9o_r|Bj}l!X+ejB8pwNPl6jl9Wu23kX6yn92ZBxPDbPkWDW6k z-Y1LMJlY}WEuMkuEuMfbFYuW1Hjn3&;`bP#;JE0Uc=V`2TueFjJl%PJ6&n(!=Oigs zP2IS7FIK&koUdMw&FT1F?E5LYcrVsaZ&It*V{<#c7mM9i>e0aWTOc}RZ>^-d4SD35 z;UU@KK_)+Hjj#C7ttrEcPXf_(-T{*LKF`vnH^f4S^pI+1oM-I^2j?gOs{3P{vvO@k zJU~3|BE;h^^dR5~H$Xf<{J}+t2QfFGOgZhxx{;zO9w44_5#sU0{G%Hn9>jdwMTo}} z^G|Moco6d$7a<-XcDo4i0P(Dg5RaRa0l3ZiQVI(Fa-I6uv=RL2vC){QC!RwhJ%)ij zK8Y;eF~sf>Zw0Y0)9V}u99(5q$ZA321&M&mg93@a(2GwX;}IK21l}trf>G={!P)WN z4R7oY6h;E?n1UxRR|q6t^2BA;a^ljfj-(Q2>W14sqd6gy-0QGnru6;iA zBDV#yvyshiw!y6bm6M>$jmemLd=vaJw1B3h$BEz0!Pc2>unLph+bf|a=XNC0i%U7h zl@NlUjwF^n0cE4am3vWmNeX4>nTfLMX}Tn`VKk=adM}=WKn36_h_VD@<7R-wW%MfvzK?&u$8QUMlTk+8=f>I+&bX)-k*~w^CrQVL+wUI`(Oj7mT@UhprWfG7w}Y-bWVFODv#O| z?XDFK)r@lh;&2yR0rqsxy0{Q`O1d1cSo&92sj0Vs+lOjI;LIQxWEowB{{` z@-(5$cO;)czOV}kx_?E23HJa@R=hm7;z?LIYu_&sienRusaw~vGFsQdHNrT{Ls__A zE;3Cg-%`~aNey6#*!Wo#yi_%Kl1qk2ZfB@8(*B9`43S(Est{?9N~H;FFHBtusbomC zL0z;RyHp#nKxHbN7ahS?1@|-sHZmT^4(H-&ik&zczVlF-rA2lsXR=0G*D#~0dJHpB zrO7X6GljJs5wK&VHjHKGm>b2OB>C81LT3`dSV`#z%}gMCfs-6st*kl?S12DaZw95* z#ep1Luz$u5hL#OkReYX4pN;etq0_r+)}ip(Cm=83LKnhN#^iZDUdJHmfzWc0-q`#q z#FeGxTgd1zq-`Tg@Ya=(BQ_T}EL$IrN4OGS$V8}u>?44}br1HDc=9L#Ip^y+)(((T zcR#S6VEt9g1uxDK+E9l$M>tZCpAN4oOmz<848R<1VR!+9AUQN9fhwLKVk(?WIFpY} zr@`gPgsa$m1@>W}k0CsR)Zv5zHeh}gx0|E{rBgwPS8Om4BYjKa(yZw zwx%bj2)0S&28&q$8VSiH+9J|MTSQQ`MOP!&p*!^0E$q7AKv6iO0c#PG^<8G&25I%6 zrcKqXU%|^x7H^~ZLk}8d!+WVip?^ivGIVj+_Zk2xoKFZD3C7c{dz@4lhpJ(ect8d( zviW80YYJrNzK|hoRu8LIWZweWsS$HTxVN6{W}gd+WWkXCOI;ZUkWy3iq=UEYD0I<6XsE=C16a7Wk4-kk=Ni)-5*TtCv}KQ5hYOo&;+f9p3w=EL*+#M9`5FrOJ`C z$mCvTl4D%)0I|auMS3#C+Qg5D#Mh!$pV( zh<99sc!0pluM${1K)mZB!~?{8EMd#$ITWb zCRbPwwp(P#{EZt=JStP4A__Cbr#&9M3WWZQ$t)*Rai&&~o2eHO&inQ`t-#x#_@+3x zSonH4?-<8tsHN%n&SfSZNQp_RDroTl@gEl23p}&%?q5^+uS()_%d9rTSv0~y+=Z#cYS4jAE2=7n)K+0K(ANjy1F!8Xz zK^iRP#STH969<4Pz_ee-X;&;^JIOe`8 zYvTDezL^OGZ(bx_dpJ0RJbo1{=wm{Nj8ovL$hcQ2Q)Hr#VSA^`-di5~UtZjrWH780 zogFDDoGGUQL*5w21~AxCF({rBL-i?KbI%9Ovef~9^0rJYSRnK4Ds>UoI3|Es3~Y)* zFFu%ycj}O1tjP3?bwMUKCOsSzH6khI2}N1*j-F)lXsv1(uQ@!=G&* zN3z++2236jQtHgJK0rh3>;`yqg80Xnk^(khXh(uC|2*Z451O*%Q`%~%}c_@R|JtCA%R;l`1F))g9NKFldg@0JkXGPC+|7vllkqr zU*PH7$xE-glec>o7o6};9xw?y(ts2JtID5;?a_~7q`@?}A;@56@neUA6*8@I3GP=F zdWwkHd*W;|C>MNr$c-ROR2KN@G;$M2#qORSTdu1jnN)G377Jp9yRe}6s=HE|OJ~f& zxjyrc`%sy{6L zhN`)$xbP{qxU>MND(|#mszp#aPex)9N>z6w5t00uLfPs>fE@6|evmx#oo5%uqwO8* z<|D)TO}yh?i*bd0A~L8b8PPM62qB4YK_wAF8;3cQ2w~FhDmqSC95QhxRzewZrc0>A zaVAMfIusO69jiu4JU|q>2=R>6H<2W-3*)(=O{AFwNG}PHpaL*5TwUE?C6v3*0u?yv zg95-?J@Pc{o`CQzcDNizN^DX-NbFvnW0UnkV)yPGo3b4wcAr%2r}5>6GJuvyXV^XH zmvF=GPQOq#>~i`k6T0wN5uYeumh(cVoYT*6sRGt5lD2DU$5Oz$MLG_G1*}_S;viVS zSov}hymQ{rxVcb(`l4H<2nfgVDOY67=?beFd65(Yu$ZMTl2YMi)^adK5il%vF`6f| zBTAZc0l+VUY*T)b;R59s_7~A_*MUUZYsG3UtcP~;1~m_M&op&~e48;f_4f<(h*f}N zfZvb68}^%VM%*8Zz%S<+vrT@sBapor^CSn&qm9|+>dZihe$`H@vr>hf>8?baG`dqU zA^_c09q3LY+MzpxelOjk&U70((p^o0rhQ5Wx{ZXp$JXG%tGPh;12(pr7Tl)3{?NuO zE7apr2gU3vl$PV5s4d(c?JUCjV>W0duprN|2~IWpLrdH+h4m|J6d%DvsNIa{tyuB$ z;Ttl5V?&^HwZAYIvJ@kKw8z(AQ0gQccF?1rCm}@yI~u2g40benp%O&lHS8E%y9JI_ z35vL09Pck|cB9Mov)zhNxjMthl1NZ2?Eteftpt4W?NJC6#_GMlm1}PxzrnQEB2jBQ zK)ign8n>0M1I&9kvhDQ@c?%)


1&djr7mVd`mbBrvh8OXUy`BKPWONnfqm`NC!{ zIx;dW59O90(yShnW zY(4@vjbO#o)5EPdPY=Lv}6-ah%o%JmJMT z2Hgnh)=RL*fPvj)gBwKwIgu{y3F|wSE3{JT(MZ3iWD{Z@)wxoVHGJe1?!RWMkaRO{Al zT{{i3V12SE_5#`iG$8gKNN%4Fn)c(;S}4RBMEt>n*h<7x9>keMJncc8MZ_~6#MwkV zs}OUbM*A=Hm)p#T-{jL?B^in_?-Zijtu)TAb9y4_Wr0e!+wH@3q6P@iMYsv_#+V) zdk}vj;t~&HHxZW#LUeQ)yoUW}VrdR}l_lBA9CVxErhPfE*{a0<***%F2xdFq{C0#& zaxiSt=Cv|P+9W4ghthE)c)wefT^uyuRGX9UD?~(vkbM8rgOGe*=|M=ouks*7Ds1UP zcZ!BcbB!RREPf*24F9QoD}qT5seE_f)G6N=;JzSS=Y#9;q|&OLNLGfo&+jHr^L6{>h z+sY+)b_ah(0q-={wL_!mgy)nm$E{3QCxmfJgzWNT^0NB{h8bpf zA5XO8ThFljfccx4L@Sz{OY{a!!@d;>u_+@jm0)D85cX}r8usmQ1xJs4hv2|MEaVX8 zl<|q+oCYf*_TBXV3XW=D4Ovg<13rDu$KpA9?lS9d5M#SpZoMhb?$%y;_ORZNXHTnL zp1rJn^6YKBF3&dhnCzq_rhl+ZYbcYhB*hPTUU5A4jWwW+0HO~mECFoMC3CL6_gV5NB`|4)Ce z&$jsuFI;o}>HDv_@|yBHj^BF5T@Rfey*K~Dg}=VwhwGo%dDp#94E` z;5*)^ylYZx&D)c1nmpykrH4eGzIWP~{7Ys&^y2wy7!me`q$}o-FN-D{x`4IHV(f1jWyOs=QX|f`tW9B(6pBFZQWWAyw!Vs z=-Bb`c`vQm^xcLzTbAXZVZiT!fF>{bkM-kY^{DQ4zNTSiQQr5*_)x3C?;I@J!xpvk zunV#^3-J->KH#SzzKP$EuGkaG)3lFsp;r9<4z;!*%_yuP9gj4}A?-1Ua|K`@!hen5 zC==%e0rx|^dl0@3xcfls3*fP&s67sP{KG!0b`EgoLslFR&~}0MNl5nq@IxWX7kC=L zJq13vE=T(u{-sFEkBUBxG@Fs;MZ{Z+=BsoX-aBvBB3cu+4W?s>%GQ>Xhj#KbTw<^R z=sIl%kj?PV)}rvO!LtDoBY0QH)-okO3iuYx2wR1;jZ`f-o46j7BEYmDwGFxuN<04N zF`1{;YAcc0mG9>G?Ly)S2TRP1+qfdG7FnZQ zoiq0dk{7Gwb=oOO!O^j~A`$Hhb2L=dq8*Jx=nFuz=^!+#ka+40iEuO`HKIh^lA%Cu z4v&UVuHc;oTMQx-6p2`vw@sd0yJ~cE-;o%)gM%fV0bXuVX0oqQsLvxab3GE)5Q7q@BO}v6gr(z3f zq?st3bz%WFg6k1nk2T(UZ8Y2lL|-FW$ei2DLEwueBXA`vCet4KJm zW5Pobl?qeMms?z&xfY_;8`&}O(PG(6No(w!Y$B2^>6mPR@MN`#pe2bU>mu!62|rsz z{%Jid1L?y$l3oG=s$p`qz&hH|Iy=jGE{L6&-m(#DkfbC@1+#W;K+~h7q^T)6*_NnK z8!_3wM>CY$onSG~t=5fVJzj|A)&!C(B>7_Td%FReYG=9kfoOe4+oe>kAi!>krMnI; zyQvhrX%ebhAeKNhSq5{EDwcs!1A0v>Q}02!I-1WeM4orFlx-B;S<*B~HlEbaay;3H ztHzXl8`Y7nfX-Qc8AJ;^_GfwMn5PrT)Jpe_k{9N`1s{}PLp={JTQ!;ibK9AAH;|d+ zl3^{PxKs+uq)CWSl}ACXWYU?ybP$+14@qorV85uiFrO_*umN3E6L9RP7NLD(D<6Se zO70ZHn6?yzs#!tUJk>%~G$*%}SLUV~sp%j}DP!7INHXf@B%#=~C@eSO?MOK0=OjE7 zSz4Kv^nst7^l&6)+mhn?#LrF2wltmVb3ZrfJS1f;O>uqw=O$f*q%@{f(tjf9bgGFB z2}_KwDj2pAE08<308#v7g=L{+s;ZxZ%qCVjl3*9Z;%|}YQIH`iGN}WRsF*8F^+*t= zF}VZCX&8broEX&)9js1vw$VNqz#g?w`ZyXf)$4XuG<1rTGPNT>ehq%AtyAO9&LlU1 zo;l$+@kWJJ9M_S!ZddLM+vGcN{^t zgV7;gMy_leAh4j7R+(WA3o>=X0ZcK%nMk;Os3MUXKMg^GG2R3}pI017C$ZmQ!ERWWZsr{>KEJ&KT{v|J(8Wc5Y1brsn=o=jpO809db+k=hvYgnBe}eSp4s+X)RcU zI(CQCP+?W!*CT%^yNqeKbIRQ@y0>R#2a?GqzG7B7CQJ=;+zAo~1RblE+YfTWGz;d) zMlaKNw+vI~Fo!aAC|b6QE1`Z`2q#LJWV#dy#$_J+xMk&5ug(T`I}#t3IdR8qc5FL3 z6MF^3e1U1r&5@@1>5cYs-~1VN^M;0|mBAHJdrfe5Lt`Yku*Htnu8ag*>|m`#3^HaC zT^rlbRJST>H`%SR#tp%SSg^@%3C3ERo9$>zq`umB^iPs(Ch7kj!AT-ktYKp$7$2S> z$A+f0wT%t+!4-Bi7$1?q+E{C>CAd5itc9MjpKSsP-K(qqd1Ut&hYa(FSA`yipj7qP0!26_Mx>cAes~ zZWV-RXo+)6PH-U6*FxC={)UF9a zA;PuVH{~Z4TGwc|qF`u9>3W5tmv3mnx~A_~Dh}#$GN&@Lq83T&C%9{y!KT(V%TY-6 zb|ls`qy@BE>Q+^E2%R8hA6efVscV@ag}rn!s0L#|G^}Wd)CZT-a$Bel5)w-lN+|q@ zClKXDL}Yyf%Wx$%pDas~sP;|v7Vnydm8-R>`E$!0^)27zd>Icj6+HWoygqV8Y` z*3lWWo22MkL2Yn(ZA^(#?c3vHIUPB3bZ}K|Y!%9Oo~@;uWM?wu^3z* ztgmgU&6K5N`WPxP;x#l$#voR6B-#QgR|M7a@&qxC;Jn5NMTkaVSG2KJk;Y~UUvJm7 zu7LqKWkXD)1tnD7B|sJ_=|E>hLLtG+D1N+O137l#*S{N z_8ppv#9E?qI{+3kfawN+`he;nTND^#ZA)uRNKd3b>!JV70GbD!w#mB67-7s(r(06b(%c zEocUUC=X;rsX_A7xh1Ujo#UGhQw%PYO$2G4yrx$hjYv&yM9W=UM^kNBj+*LL?pSqj zT1${N(Gs+qqzzT(B82Kwk_BU{?AAsYKAPO7;Ixg{d`NZ>F0pFgEJ{zXQCh$tT5O11 z->?GKhRmcao4lZ~)@YO0-cgm;Mxxce{?a^3Egk~B4av~wj9GX}Lo?H|-BH%FJW^NN z3fpdBYfp{Cl7h93Xw2$2sG5$ZC}$qJBa-)3&a1`FNn@lj$f_cCAA{7`7D=}I&2|h0 zu@+`f0x>*IXj5xrW3_MUto5~ZEl{kZIhYXGH-qe&2#hV3q7${(HlP;6XojQjl15Bg zuY&mS3B#)g4s=>dU%-WDO;7m`_4p6>_>c7X=Xv~#rsJe=vLZ73P&JGw+EUA+Z)jR! ztAe2Js(mLcjMPT!RzYr6Lr`F8{X3f!)TvhNK%ttfvFjtM+hB!pYz0Y@Mj-`~tc9p+ zN2<`d*7o@kzz)<-}zh zpK4B}8>sdz`2VLbag;(9)xI)^VX`-Jc$LwhBrncDD#%?w#P5V(7>S%x?JMtuUm9&_ zVFR^@<)FH3r|8f>VwA$duJ-k2x>zgvL}xHz#fAn~h;>v4eY4qCB?p78(FQibs&Y$N zxFf^=HUj(!IDj-H+2Lbb0nO+2SSd_##{iF(%L8LO}aJ66hS-x?SPg(O zro$4@!nxCZ8n$8Z#~rw}+*Ga^UNd4mF|$#77G7FtYR?ps&eWp8MFH)mqWh87C?;mCxZO$*l$ctybU~@9 z{h{<;xL=4{+l~ISyD@ZW`Msq9?Y(kxx4RE6GPOs#A1DcEZ+0iIbv=l`q&MS#(3@Q9 zg4gF4Xg3DwUq9gb{D3xUAmdaHA>T1@1KOk3^>{aY|Iooj1=^HQFl1`ODtAD(zg0e5 zX=>kze?%Au=(I7_jDOZJ(z$pzIlfv$YO_a^+KSQS`}nkbrkUF3)Aquhw}6nF#r~7Y@yt4E{_GXYR|K@7E2;llaZeF<{Yq+VPy?kJEAA|D zPhUgK{^qBfO)c-#Z{ZFQcZ#^jh}$ae1>)W+?jOY6C+^p$l0qO#$-_}fwKzIGdbY12 zN?TeVWrRw{Qd6A!mOIRb0yp+5i7x!DZrgqC^%!PhAYr(~r zQv)|%PHH>F-F-PF`S@~Do^l28UtIa>l_-&`==QvdGR(M&mT;`N_2O<4{OYTj_N}X_ z+rHP)z41C?ek<<4>#5sm;x4(Kdf0V6W&2v(i8oOG1#k)?Q!Dfz~mS&s8| zE?-fg-M_Q_u?$Q{p`4D!ZZzf`vV{e@4P8Fy-4m$a?LT#%+y|D>#BjmWu zcN=6FsGXp-A?$rXxqxZ~`Vr7L+-JUt_g!cu=xBOqI(p+!YaggpFSpf|Kzd~L|>-zDZ=eE;`MK+5L#YWMmAzGCg)ehug1_iFe1 zbcE$(@n)2F0g+017W4kD_K-jW1bR>VjX+^QcVQIuh)6vV(Bs-i+7lAC7*MYEiT1Q` zU+X~6NZ2_Jv|G~MLOjH+`%*?*c0IeXH#k$Y&Dz zkB0Y-5mq8ljt_5<0;(1$&zG$enkrD4ucuCXSpX;(XK4rMZ3sIKP}n!fH%?;401fvI z_stRLOi4G=cf8Irxz60|w184s?s2hZDa` zumhT_ZS>)IDZ(NWc82c`o%cw@By6kiZh|p#8qzqHYyx2LyWC_n6TJ zC^wgKe&E|9VZ8u7zpA0p64>j@3irwa7T z4TLOxx*_33RDIEA%A-MYb?3rXM5FV}NqC4f-;Hx}L$X zt@?6-ju7Y^yRSamMW7$`vjnO;hhh1~F9iBZpi<*pfs`ykW1B#V=3wIj zf!;iq=_-wj1UmFQLZggJJn1GHmwD1nHLeioR}yo!aiu_y3v{?~wLmWkG|#wJpdSTV zYFsanlJi94Mu94}kzbv$U7(o)tuk&F=vaZ8jGY2C3DjcTCeY;qZ8Yu>NR{pB#$5vW z&nL~Zjb91WU7+)gT>?!M=u+d?0@Vt1m2tm7N=r8x4+`{_gzYqbBT)GTq_Hf?D_&bY-fjxaWy`owyIc^=bRNF4KM5A%*Aa z^V^meGUg_@K5b9oKY)Lu@N2lUix;8QKTX_S;tnfeoOvZS@T*H=aL+GU2X}TU`T#9a zdLP_hls*jimx9?T{x?b=1*Wju6L6=9`$kzGKZ?72Fx*~vebT3$P<}Mr=5nSzyL=J+ z*Oga+*FECjUA`2U7X#-RpC>hxa0dLwbD;cTq3W`K}i^Dyh2n9-QUVM)e+wlCpa;o!#yj=v?>=D2bqi8f_cF2E-!(rX<>`+%xs znQrNO0{G?)q+2X*A92U^B4!v|SMuHE%i&k~8Z>Y<{EG67flctUeBFF)>APO2(d{#k z?zmobhry+63AptGDJNx4rMebz@&?lFJ&5i=ar+1cB`6fG6~3ubU|#08g$6NSN*+}r z#QU^~f=_AQryVvZRZ_dl?@5-$V}l+7{XOFD6L(xMVur!>X(I-+ZXP}OMfi6Nrv48I zrcVXAKT@&FSlIR)T%Y!K#R0_mu)@HFXw5??gK9l?4B2JOZ~Kk7uZsK5kdcVGk_20$)clGXEw4%cp+B8hZHDzxPD+$bRy9pYY z-)0V{+f&@p;vOdMe7HWX4lAiXEjs*RxTg>QJ>1bFh(CM;%OwW?{I*90^UR2M5Lz&D z8CvX-BM(kFo!ZoqdAK&`x{+mYQ`{LLofV`00(Z+OhF&{r5Bv{~`WjLx?R_u!{LzDPwa$>y4;%fpqeq9}Zyh}h?s=nk zLvPoQrXAih`dsufkB(+vuxrdZguXO}_yJ>2hkw{u_F`Up`)(}dEEz|>Y)gIGUE^4% zUK}?F*Q|U#?qQVj;o}*q+MH9zXPfEyItQWi+pZV)E^!|c_i4DW>Ipx9PU8gnw@%2y zYqHl)2*CZ#gsufk+Wuz(`xkv8>ru(XMgE0tRTHn$7Pd_n%+Z3W6L-D1=Lmkg_#Y7W zPZQS^ENt5+_;185oJ2Yk#a$uph2lOiiCkWsMEY;Tt(RG| zP=|pj)KZ@*bGo9PpYm_GKThd_^~I@ESvTj1yJRXcb>cRQdz!eHh`U|fU&Hlj&rU5Z ztk6E6%F_RjxOvm)?>UX*0c+Y|#F;QH1ozl!6XBi-Op&%{+ETbbOgkQ!ISbfkp15Eu z{HqqQw>@hCYtStV&H?7`1&jP>0Txm69^#G=cb2#(i@Q=lhn%;deDG!3H+FrMGj$NDu%c&Q40WRKJ($*;cVZG>Yf!~c8U;L-MC2d>bx|ma} zGGOk;JyJ{BE?7+WNz~#cZLjyFd!=A*75BGrQKN#!m=n_ zHO7lAyB-&ET)8X`%-ze{;QnFRnQ&iP#&T?5#?tw08C&?FH%E^3X?u@jDZeZ3x5ts! zZByPu{6~+cCeJ^iJE+|+uJS866-LR~<0Qr$EADaPZW8x8aaEj$Px9f_?w3zu9xpnX z_M=8qYP|HTlPN?0S_^Te)KcbmYbl8umm15L0o`1Na%1a&gHblMb@59EVh$4jCEU#1P3^Ev zpZiVi#7*6cu>-d0fkCEr{-&>i*&&$U0t1WP)LDjq4W|5G4)$qF69)_R4MC5YAynmk z&wma5>L=2gTKCN?5o@zK)YQgrUYLd5w#_fXJ$AEL#pb}!%(>n(#MJJVn7Q*Gp3UE$qdvKuRE);d%TscP5-S2yKd{aVVU_dKKYv3qeA(m z43ri3|BttGfvc+c`u@zGImbhQfFgo|9t5v=0mTc33VByl@PeYKhp@ynuXs)K96`J* zDBdp}6jRem%Sy!(lfS81X=$lxfs$Ei=|3|ot9Pw60|)c+{GaE2-j~m3|CsNrHEU+i z-m@>~%s$&Q;&Jnjy)7fj!H^eEUBX=ZR zLf4S`EyOl7S%?ujFT`_YzlCKH;QX@i9`yhH<8y-#-{%ZRJv0ub(Qc*MpufjmCbcz8KqMddRj@+Zt;e`RKFcQxD(ns%-VAU>*l- z>xxJ3e{K<%k8A5c%m-TwSL2IaTk8Hb!Z@!i9&DId(PG@AE-uD>^7bSB&vkm-mO9s| ztmThBOS*g-FL_j}&_}iW(PI;RCNIIgYv~ef`PL=a@<(sG)m{mYkJP_I1*NoF~D02K3Qo&10|)KFd)nw!ilB#vJCLEysPP({gOpfaN$A{*yN3 zQnc5WJD~Otmg5!d1t<%1i&vgE=C@oyS7JFK5J!O&#F9Z)t#Q$TD-c(u~2p`luhev zTa6JmQF;=kr%*bR(ivmm15mbVHEP8^*}l3y4&GC=;75AAfYq9pX*Jgp9T8lkUvKHgtB)v!KwQdPmdruAQ1)tHu zon~2U?;rdBw7$D882nGKtJe!Y(=H#Icw7yGoHceY_@t#`kE!?-`{A?oUX{)4@_O96 zeqN9J+u!T4h29%5-?{<&Bz(iSP)pAZ51ucuJx@J{o)z2tZz^SM#M&!wEE{Y8Jk~|@ zsaOi{FCOLjdwfMtGrPO-?|8gddeFapKkP&Jq@A679>+d@vH{z46mHWmo=3%XuXxx~D`zZl`tV`C{stz3|Uef8)gFzyfG;~JIk6^FJI z)xsXYt$hC-*=I@E1L!YCpM!KxK92O-i^}dRaj(F8=ll1Hf16HO8T@7Wk9CLnU+gYX z5lbg(5RA5?Y!;E7sEEyXj|9(insVHuVa}DM4tf@`_3p7icA^}%#k~v6UBf>+TVZ|M zy(jEbW%Qx@0Gdy&Y!}@J<19A#L(iM;HuzMdj0}&_^oAW}tKu;kz5~QRL9L#}s4}3V z-0G3RLbdHEf68M4t5;6FJyyVP#vLSQT-%E*jNK-309|H{S+5Xu&ag1g?_uWJAfl_h zisxmZ9m>WAdj7=1*(o9i8xIu0no*Ui2b;4tL@H);Hj^mBa^BO8N3u*!mpv;3WfQ3y zTCy*QR9sD_SgK9PgXs2mD2{!S5PLd%RuU{ z$n#v~=Xker`l0eTpdZQeDD_}>_7~9#_E+V}yeIRhkIpNYx7SRVE0;!;!|Hg=<-OTD zBGsRLSU!>J&pzzE23W4hg7qb^W16tO1XfCPl;IZZ%WgD8&kSlc%y(~ugi(eW{aFA} zhUI6k5yk)(tZbGiyhi~wQZ|@YG|ot5Z8SCUo?;AS-84mc&ou_KctuphU^bozd+9P8 z%npWOeOZ=U-hUX$?6{^sy#EF|L!|m8nRRMHo>bp3maECn$0UZcGn%k=8#6Ukp1plM zL@M*u6y-g_NM%k%)Rt7Xqnw6;?W7{hbRVl2!Omz};u8vVNz*Gn4aGC;8%^){GzI!m zQ<2YH<5~8HrZ0RV#j{K_Q|oubCkn_zlUJ1vVk8UD6jG%-Py&?vS> z(-NTP*eOjLfkrb+xT>K5Xbg+dbOPvkHkl~Hg8ey`&C_(T%3PpjL=MXjRfYkrQ8xB_ zl{7Jq?bGB@HBF3X=QPy1xC5baUG_y#gU3| z9i}m-ru8twr?J6>ZF|yxJdpY;^6U<_xojudR zvYGywaskVYMo$M@;vWw0{A$xq(I%n>9TXM%FOv(|SfU(u-G3#}!5C%p30Nicqz_ys>YU&fP83=y*3;rDJ8L%y3c1@0e9YEu|D%%F2rK~9(z#Z((fN-{q zb<=c+=%%KVL~-3!xvK%Ai7avqcq{@--tit0e@N@ge7CIPXI@s`_WpW#H4po#+v@2Cn2GPGYtqKZf z+gRYUWwx=VZETFD*TA-&bsnW`hl$cOeMXcyTG>j1rkJ)f`}2x^1>38vM3bc!lKLw$ zRj;*7x~OTbu_hPwtmQDh#^59be_58zwVbBc*%O-HsO2tSXH_-554PQ`rlwP1+s#5X zeN`*pw1+j;^j)pjfLbboo)3q2xVF1`IT>FwGVfM#kctX*t+hh=K| ztoBu)C7Q6E``AiN*v@@ylcuY+|1kEmmo?q0eZ#b$y{?FAKfvB8r$6KYRz%NO7BSoo z@3PX#*y-xqC$2$WtBbj%tOVqHumRPmZS;$^DMKh zAsZc0&a&P_D#}^bpAMl8X4F|GKWB^SK;>Y5L^1hT&cT}0scrt8E!7lLC!Br3Ue?ru z=xa?+*Kvw3*gYcEvM<=6tyDW5!7i}lny{T0SpV&=mR(?Mr>YN+QWsb^O}pyEvJ1@m znz9{(mVL>ty`ks~QKz>Rl@fXHS9G&Zg854}Rui`RE4G+Owd^bQ4bf2xo@Gkd4Wc3o zo@GkdU2Vf2yv!00U`*A!m)VGeMAV;`*(*etOLyC6Q@dmnfL=m>S zl$|=N2wPps{60{G?JQ*xntFw}gKdPSq>xGGZ`e{Ib*8+^HWR6qea8-J!d8FBY8=Cu znHIdJ{SK4xr>?rbW4<3EsWJ8)8%(6u;X7vi7;Wlo@jbJBq6mBbdlq_Hks}0YjHV?a z;p}_1>oa9rL$+yW73GJ_HGj{JX?iPUsrd(%{JF9nhH}^0pf40*Ph4l4G~w0Lbu_?V zk?BL|2^Znf=7utX4SUx`mqS*Xe=N7%1p29*{(`pLET_t$%j7M#pX$T=+dqJQAS$9O zq}%MSB8Ii!X14QKR2}PnVJ~aK+J9mDVE08E)_#ZiUsQy(|H>9$QiQeNWowERVeP-M zuZUFbzp-j1WTV>eu~0=+`#pB|vMPt`{wIsMq6lmMlQ~NjVeNl0|Er3y_P?3)TSZtq zVswzpRUMq zCDaO2M;$7P<#uQ&&_Zo9)h#kx_;PKlS@#6cdS!zs7tL;bm-fu5J4|};z1nkK-4Q_V zYTJ8tt-_Q4OVg>kp+FyNx?I;OD)Y}Z-K-l6?~MAI2uEr-gQ;lrchob!UXj^FA0^A*u2Z8dnd^0eS5Z8iAXa?htK z)#TfWRLcVSZcW&-K;G?dSM5Rk49xn*ed1RA?v-ls-7wb`$*aM)W-C8KqQlJ7ytnd%a%U>l=VO#7MSubwheTi%~2hdmKC+!D(GY{%DX!d7?SyEI{|WB4>0Aga}|Jez10iw+xMiRB)Cv_`BaP#4}!)6-#- zEj{^sO)rGau*C6enwA3f!a~f>R#|t3&9?L|rz>F#E$~%{w%rU{Y3av(VYXe_C!Pa% z5K$4^)z~Qp@GhG08f*Z6mI&8WInSdwndHNq1;K7!*Fef@vn*0C?3v#CBn9Zis2lFAe2*|_S$$8 zA~kZJ<}HC(NUGCnD9B=eP;Jcfs+uwMmhA4EH2*SPnHg0pw4l+VVXAQ+YznU2fxe zRd^^I%dw_bF@e`4a#-A(h606Zn;+OF^2XX$4{Q^8OKt1W^bNO3yd6=7rB~B^KwY$L z2-wnjZ*3b1wsbyF+a@(VVAvCYES6rM(&M_G?% zUxCf3DWTaP##H_)kvi5*d0m!@$~D~3I4!5U_8Zz5QC_(o+04peGXfLVklt^~53`65{HKCA=O{7JVzU zgts8duoOpJdtwQHQq!*yH-I`3sjae5{wEWOK z6le&M+75YqzA8tfV+-G=344AEf1L=&<}CLu{2URE+sp6-{F(Y#JJLA#^@;`!knp&a zV%ovOiSW2I5-3XB{J{1KkJYw%V0(r4(6(tU7P{}`eYI^-i)^4F+P101XJQvm)$~e> z)$Y6a7)@`tu!>iCx~8KoLV;#!`nttN_t*GbP1jp&0a~i*w-$dJuk%$z4vS~xEAFpz zC(%**hH*Ep4*VT81xN02e}l&~r1fJ>Bj0u3%dZis&p+ShzY?j>Ki}r}lqdDsJG_6R zvR=B(4)Ee~iu5?h)5BDsebMqsk9YY@P1jq-0?pOLTm50Y$CqddY<0u*9$!VIzL`A4 z8#l!$M;W&BFec%z$ke)3H;*Ib)TPxpqlnKTPj!d#FW$I0n&A$mRf5M+9M3# z;MX)wZRKw|&i&}3%)zo-g|ibpuB9rswN;wO3H}O^+Cx6#1w?8OImJIzp3oEXJU-wLc^9GlnqVIr(=r0F_8MWl`e zH+a4FSbG+ICjJv|N~As$|B1IDQZ?M<1s%u}qTKcPH@{O(;qb;S9;2c(XyY{9=5Cr| z+Q6p(yo#nlZ4A#}cnwXX+qeUTXnL_tHP1UdjL2bG*(LxeQrTd;*Yf<8=PH8QXSx5% zUyQ~2)ZX(u-%EsR6z_SDUm#L@&!6z12ek~M4D|e)+dCtvz2|TKIT7~DP)~0BtZZ}z zVHkIm%`zk^)zdKkB63)sjT#D6sf&t&R|&#!(}aC33_neHH6x7Ln(%5y8jXptzHva^ zh}1fmjA9~OhrdK6BM4?1mK`H4Mk7slRJ0haHJy$+rcMNgwox3ZqUE4++BL@?8$U96XvF<(*FU6bdno?o~zJu92 z)VNTgTs`A%IR$vvGjLWG>@VzWOf>w`NgGX9VrqLgFuEv$UTW#x(6DP;=h$c#W<=AC zT^8#TTiZL#*ry0QZ()2cwZ(r5UPl+07x())et z-OboH6w5i-^nPD@#~J2fik9{ZXT1!ork98Y6RC4RFJpwV!P;I1&$Gj^Tn61;_c1PM z!uz;B#x){!{St4qOhL~T?1TP6Rr(s8G+pRluS!2-3X!T|fMF+6=Z68tx~H+6n)x@- z$k&83{{|X`MCxoY$T*&go+`><;|!6CGT4Y5q1uUe`pHJLCcM*6Ho6h1b`CZ65v^bm z1Ey6OZXDATHNa8DX8f+o(QL`5jmFPlOb3e{u((R9kwb*FkC)FHdzFoPX{7Nzk-DlJ zW!zAnma_v!%TdNJ%F}Xbz<8j)h*VpiGa5dNHK@DKF-DjsywVwCWD}{+9LE@!h*nwZ zCvK}U#wb<9)`YwY^iw&#Q)R5dMq<3374^ zeNP+7<0FBtpFX_)Ut<77FF@hvvmk5(~o&m z`-5>zQ+nc7-5A>QXI8Se`GdFR@x3(W9J3Rcjy;%V~18Fp*YH zS=GYDu5wyet(DkUPFt%*iIe5@R<-uRd#tMA#l&OPI*Gt?`m9=45nfJLs>O+U<#eZ7 zU$LT`xZeP=y_|gf28+MTDb&v<+{cyG(9ADYSj(w{AIu{yr@nq;#jJ7~>Ni1Tm(%lp zQ$#6I4$Dcj`^^--<1uCq+nSi`=Ma&a3KF;a%@xU-K1zJYZ=u+y>HEZw{j$YfO>P4( z`>hmrC+aAze)roT;wLEz9cZcklE~K7X<$J0EuvUc6YoaVw~3&1<(V?@$?7{rv?f2F zr>gG~V>FE)xXa^J(O|OjoHww0_1DE%O`8YytG-9HQAZ-Sar5Q@Z-{KNWm)js$Gu{W zCj9nsugKGc-#)%2c4)$HAKwyhD1swqID1_Dg3C$4MyWne7ZCw|d{QTB^JHDMHZ>V-ZeS7(v~qOu|j-enyS zewy$TtOKI9CTwScsILjzSs=m{QCkj*Hrh69kkfQf#1LgzCJl0z2Ss;nn-8{kMS`|% z1>3t~u(rJqw)e!-+V&;b-V>v>?KapBiAmb#k>oB9iJ8hqwHJ!a`zX7d7FI75@l$cz zs=3RDg`EiISP#yrept-c~hP+<=U*e#q2}8o!F>z88&PYBcLSImx_-!Oe7!e(R4EK8eYtN2*7&=i*(3KUJ0VX-AUO`nKPnkFZ^%TL5IO$#CBDX~V= z8i;vHSnR5uFDHky(;}TH%Tjab`%jz}Gc~mwdJJf;raoZ%R4man7Hpr2Rf=d!ej=QZJY_*|4|!twCA z_+Al3`9l0#+kA#u#TVjtO?8Ha0@07HLVvaZ+d1LxP`%p&Z0CfprWCN97lE24gYCSi zt7!q)E{G_Y1sAZmxN8z_rvZ0 zjnee%FsJxROweQ*9t*#|I71Pw?bl+Cw)M3|v#-TMO{uop-d~Fqns5$eu~@GO=Rg*V zd`&n9vPA6CgmWNE#9NxuZGRY-#k-p3*lw6Ei=#wp{9O^SbHZPd2}jNqah7cO=@!h- z5|?zj8#Z76Qt^$Zzic&te$<3x`WtaalUGWx|2N`qBK0}+RndM9Z6k{Lt>~i2GAzYu z`d0MTG&aRuek%rQ!kJvx#Bfdcbiy@}rs>6$7XIIf@tU$z+5=73g!||B!l4QG&+o-T zO`B7!;s>!@(_1N_KQ8lA%-KYBB6yb_2xW#@JZHOEe++shASZ%{CeOq+bHr&#;MPF^hJ>(ZL zSle(9`9-8^oAYU>xFaShVy_a-)%5PuH%xa#t|C~Y+5W$Z{Bm04|A(lWiS0aUsgvpy zhV;|alqf*clSF|;S(dIup_-CXW0@hFXwR#)ohBg%YZ{%3G+)!SRCg)lMMW$-b%Vc@ z*11$WTM0I^tgq>%)NocwHq?~fFWEb?c^36G+f5WbPtn2D zUH+ajnMiFFPkB$-Xxmnnq4UvGeWF`gE+E4DzgOJ7M%gGUc8$R;5rY}ak;_f3q z)r3zmRgo7o;Zsai%BXi17TE0=6_F?6cP){BtTE+e~a&15Z>A#d(22T}j z3TP<9HGMU5Yd|BJtjQy7cR&+)O;b?X`vJ}5v}LMXP}+w9;nI?=C_L@6fC$NQ%IH!+ z3wc*l`?RY8EoIVm!|BLlU=rcGIEN`)?eDD zx@`UBJxy3{fP{zQ;7{!@17xx$v?WU0ESD`&7HUG2FdIU zMQBTsi?dv|Bw4BnZG+`OdX7Q0Ww7*JI{k?pc2%VYE;fwCpb5vyFb zq4Mr(SA9ceI?ei5{W(l_+UT+klN&T)TZYS-c`n;=#`F57rH{&QEk39{Q4F53hdcg|&-DC23a zyQ*)Z+^z{@PLkU%xXMkEmM>l9(xv61%a$(FG-0{Pa^@wMZL++m32js4{9>1Fiab@K z2yIj4HJS&n+A>v6yW+A%{PdDqbb>L}NM90?Ia=s=!w$7Hvv?m^0XUkJWcvW)4G+Ta8 zIP-x$Tgj^>0jhis(jYoakkB^-OgAwSTBZE?s`ny@VnnaepuDWRTl$PJ39Ee@Hl z3ESe3d$cFE#Ub|-skS&IGbjqxH%Io-g!RplgEV1%b7Y{!Ro@&Ls)*{FBO7bN`sT>- z+7s)WBc~Cm`sT>xL=HAHH=Je2ecr0}3#$U+GGv&KBCI__Mry*^Gvu^ts`gr|VeX`~ zE27#nUo*{oEg4)-FvrJi7UDbzuohiNiUA1RQe@$3>ro3K5 z)sA~zro63)YR{DSG-2(TGPuW zQpeA^GO(#?8D8_vmD@G_z3yVKEcvS@?6WM%nki3gb(Y)^q1y7?`d>Y>WWFM5b(Y+v z30s{duWL_ib(XwMq*|RND>ug|4i>#39Nv%+-=eGrr0AB4ux0b)bxk|nXYgb%DwbGr8;UXl#xj;+ag&y*i~+kJeBOSEtcEq+ecMy zv5cSKvMrIoU(*85-8Jsk)aldgAr6~CAI--d>PbWuTpw1r4RihE!ZcJBgqqf z5s0j3J+SQ8s$ARK98({HP4HR@M8cKCHNok1C~nDnm35zxIi1U6&#^1C^{bsEPFf zh2KCU9ZCAA8Y|{ce5~h#?NO0cE&p9>#kHu|Zx8MXY8&-{{Tbi5fvUw^*A`+w}O zT6hX-G1w)ltKxQ7`9DFvc!;&4r`mfj*Ta5zF#k7-|2M@~F_U1c-5;}JSryGZ23w`l zO1&WGzdEk^Q>mt)g0+5xf5jG7JmPgCf2G43VO=U6Pca9QHJKFKhHo}Ot!RBPr=ou< z#YqDdYznAk8K5S;j@e}0^a$%KkPmM?AXRDe7z6s}wK1-9alu1!u$0=$YP_iaKS8xr z+~N=RzpCXw>2uXfYI~_ZS2;h>{!p=pRnJ$wQ#YkLPjER96=&vZ}FS?J5U-3_7}&ohAR1Hax1{Dp0S%RP7bh72Bio zYf%e(lwU7#)`)V{xWKW@nMyaK{QqR6s8Lq2ZEA~D%xOt2>`pNs++P1T>)stc9WOgR ztI?$TzhdqG$(~cue-O13)nMuf6Vw4~K{c4Ny3&H#$iHHQifJ6P1{+5{s<)M@v0PE1 zXJE_V-p|=|@?T1ASWW4qSZu@Q2XfTewqmbhpBV5SH;nWum3E>1N}r?%7){W9 zlZ0Pwbse!UJ=XdiS?_=f`n4s=Dv!mo0ib4950o>s!ciR3f~;l7>W9}0?^2;rS+U0+ z+<#h7WYn@dl*ju&-Wp5MP|KpJqhdeG83HQwUC#*ee0(%@zt)qk)?8`9(x9wl>b~sZ z`DJHG{N}`f_xfS)xzhJXczAwU1Qox3g*IUN{s=Cgiuq*`RD2b|m9FSn*0z5}E{jkc zjB7EAdd!u+KZ0sQ7Wuf+kMgOQUsj7MwY)+EOjq=TH}BA$>_79%B0Rip_ggnrSPM+w zA74fIXMS0P9pGQq53cn65gwj@e+1PA<@wLLID2@0S%ke6+Tcpx--d_hmqmELLIhX( z{s<4xFN>gh3HNHjPC+zyixBN0t{h2Y#H7c_OsaWdq*0Pvi(H3#F3f@cgkDU8sKF)f7OjoPQV!Co3 z7W3iOvY2YW!ZBX9-T#?$f6T{O?~kcQwA${flq=_9F&}O%i>dZrmk+%2i~7@*bAQao zS?`ZoaotrZSI)y?KHORs({;60arBjqvWiwb*GN55D&}L4sWZ{TN?ju>o~_hKd|188 z2jf31f{KqmCK}OZ8qt+>OVqXQZ(uFE)~(n!{Jc&wwBkEh@yO}=9Phu%S66yU-C(AG z0dL8~IR2Cl1%1tz4SjztH|M0mpVFCOh;0F3@F^oP)pPuK?0@G z%Hh}JQG@dTH(T{TTNhPIwXkA@2XiV~E2i-Zv#f7bsQ_3zgN>jbP}i;%{Z(3h)}*dZ z|9M4<@0G&{$DYPMEC!Wq5=1kx>yS1xb1Gw%*o)MY6(dVJ`!B4JkCDs1Bfx82d>i9G zb5xrvUg)=b!@KRfjdU1vS|BN;QTX-QOS*m!Sm!N!vHMar2+X?0KGy2~(F4&`G`SsKe4y6gtB zDpey}H{NHWi|Nm&JPadzTRsT1= z7c|ubZ-#*P&%h}2VHQ~2U~z|~GK++z8mkIReOQ{X-K-fb5nyW$OC&qVTEfyE@;U&= zK>8_IIzqY&EL~yg21|EXdce|?mTIgw{OHb70AUB@>ppuw=n950?3`EP!PpTMEAiJ{kTmhyS^fu&jY)EiCI`Sr5wwST@4436_^&al(=Z z%Vt=%z>*KkR#;w!Wg9HpVc7x8E3oW@Wfv^3!txp{ufwt%mOZe%0n3}P?1kkmSl))^ z9a#3U&)Gg$kA3j#r~6<%_Q87WhrIoew;%HML*9PKI{7dA7Os%2;?7OHQ@g(egyK1 zApc*m9EIfrSdPJR9F`NXd>%Akx}Wqg>2cE2q~}RXNWUY!1scnKqcj(ob_0#65deC_6bu^98j?nU?s9Wum=h)N z7geGJ&gJ)^ce2Ea>XRC=SP?kM2<$FmCRsqcOsWzXE0QMpL3-$VdK-|K&PiC zSaMiKdjG%$Y(x6c!2RO2^wdBHdoMi=YB`ZU(t9nI;%mjF^zng*DgF+IF?WFf{J`Vn zzXNIv<$EZ959RNn9A8#zvQq?-9%jD`Jnwm!g-zZWc$jq}O`ME5V?nVEC6Ir1;3>$- zn*1%KUn1Qz8FP+=x9R_4cV56v=$1Gz}^d_)UL9_$A_Scux$z znuG& z0y=hzH|R9bTVlzSezkrRc~gc%dJm*MnAKxxEjNza*NyL+Vv+%{SIlAo{QW5})fz!9 z;gYNp=VZ7^oTo8{ZJYXet#tOrRHvB9-kWqU4xqCu+y?3DeHhj+N6O zjjg>@dj!QCK{0<53#NSo`71zu=$UdiQeSB8`XFEEtENE-P}eTEB+yx`A*`LS#`0}b zt=1HYZBCKrp`Dqub`u0XFEK$hpZ=9~f@nAWD(K+pKY-e%|6+BpwCR&Anb7B~7Fz$b z`mh(K`v*^#OQ&05o-Xdm4i-2mEzlvc9~=_b-60KF7YFr~L%N3)20J9KuS0g8woG>C zKTbazyg-^}V7(n@jI85BznZp~dNr4NHJAExfm}T!B4n++Gh;2wk@Y*kZ}y4z(p!gY zVD2x#I&#)@v~;khFLVxx;P{K0FvI2rtH`8nox=ybFeoIS`ecIW(QIT0oJrvKXA(I6 z4$KCsYZukEi|R_?qV2%Y1il3#B=G$&JR7=~MnM8UM(J}<<6erkmwNcH{ON^Fp||+Y zFXV%cb$6EyxtzH(v>|Pa2<|>}w2a`xgARo5fM3i%8ydkc&vc3ij?W}Ua2$^jJSJdO zU6?2|>-DHdV=%{D3&dvk$76ZHEVPI({lf;H|rPC7)hd*pQLeg zlE%>)>ZOa+OBbn^N@<@dg|XSM;dL6Dr8FL|GaSoFeDRA;QA!a?DZ*_^-zJ}XH1;LO zv0p@E^CU&P&6drE-%HZ|xwGL3E84G4QmG{9+Z(2nRHHAIJuP3I{bv1AhMuMDjoJId z4$Fesn?eIQ9$UVXy?uTR3nkAIF#u)=l?b0H)jV&>ujVui{0$<9vmFdxqSct2u+O>a zDm+iKgDuNA*0?c@kO$D@u6BG z_-7fz!jl+2J%sHK6-f-A778%I7>`I|82PX~H}^tBI`q~4uyl?`!gM|;t7*_oswI%4b^ThcFLQ5br^dt{n zaJS8L{^SB9Y6C^ir^xvfd993FuokxCo+$yXBRD>_mkIH2Mn&*b3l6~ke}#0?!qsh) zOj{Rji%v3~ZBK3qU_zcsSa@qZWM$x^PiOy9r{$qP4Kq zj@8-r)DGqdLH#S_-HtmL*0O`0T5uLd*%i=H{8*haokwv;2x`KT*G7M+{5Du z9xeAw`O`YVWU5N!Dtm)jHcR&GMi>m1MB*Et@k4(c?X3vTn@asyiLfO?+;Pp_4~SaDBz;hlKqvF^{u`GCf<0MKw23;P&69nM#+ zg(t@02nKI8Ff~|*?QgSgvZXui;XVw1YizBUUF&RI1jnnaJ*@M(6xc>5MqgcIhM4f1(PsA$T)Q64ZpYo?)7IsOj-VrIpn=DSPy>$-p#~lq8k+IyrJ?!Y zhHbqAc+mzJp|I|;EW+G$qf;zk!!~}>X8}v!_&Ml;jhFiDp}iu?jC*60`IU|D#qXgu z#F~$9e8cTFw03_O>J5{FUEF9Dr@3X5Oz>eFP~Zaf|0~$`4JU{yfb; zfErK3b~p9S;h$`(+&9Ji<)(X;Qp{Ces@``8tMgK=z7C2L!SVWY0+pITJ`=#FZQlr9 z=cU-bDPrtPgZnn7E!)_@D=|pJHJAhZceyQ~Qai-qmu~mv;PX4^^mI$V9LV?X=L0z{ zz4OfVoTn3ZkSF}E1pHP{fMNB(EATj{wO^!x$LA!5PdvgH@0SQUcr=bQ@Ms)q;1yS- zfk)#=1CPd$1|E%*Set%#`bCLF&g0%u0*`e*25vzg<0U6NUjx6wlke|ieC+(v+s8QP z{KE*AbOzzY&QLfz-*n!qRKhKJm=4UtbnCpkZAy3o=~&X`WZjg9XY<$cZh_BHN?)M# zFL}?xvD9lbYGcy)&G0le$1Cmg9Iv#`bG*_%&yzP}4qj=W=XiB}p5xW^d7i%c6y)I5 z^i5a(Di5a(7i5agIOU$^vN?_b2 z4lXg{_PQmV`3(c{crto$65S*G26t5xA&sLxiQ#jvcny{bIrzNlVbfPx3&}GUez~Lm z%ex2vCer)81)4OeU@#sn--mSg%M%Bu8&NN>4}!jhIDrri(=ji9H5l$|Am=c{bQ1MX zl7U+!$xu1CU1mc5`k*8u_2qkmQy{%)NQ!|^Vx}1Q1m*-|^2=~dYb<&huW#`;pHmEc z7Bhk6y?n^+mRYo2JLHzR_~n;|@Jc@0whjrX6u)ifkcO3Tv}RH-EvBPlE*%v&P=Dqd zc;~Xgz&oJh5}(;WF7fI7;}W04KQ8f!`{NRytv@dDDSB=~A8tY)ZbBb!LLY8IA8taQ z;}W0tKQ8gP{^Js#;6E<$S^eV@pUOWj@%j5q14l=uf%jb8g#O%w{@jHA+=Twzg#O%w z{w4gyZEw|`PW?9BSh+1!OgHe&g%0TFP(F%uI_UzrV;lS~u{;EN-c+)!YjRYjpSKN6 z-cNUt`{{mjKl^Rl#DM*@E%wuW<$k&Y-Ov2Cr-Enw?PHVO;FC~4_{7P=YJ$R@9H=*| z3!gh#;SFDv;hyp>`W)(a&}i0@S7x2y5!K4@xzaJvIQV3tGK*&(MrGEYwE(rT6`&*7 zdxnKwW0$0bU5EGWMP9idM0!9v~lzt!O=5~qvtWQ zo+RrjvYsKU)xc7r29|1IV5!CimI^npRHT9N2a!)Q`Pj&31o@j@UbwbD6mv!`JxbXH~H@qC6GQSZi5zzzd?&c zbGORyJ0jyiOT~AfH$|-{Dzn?7KImQ11@xYn1j=MKsFZ6#t@12rV|f=eT%u>BM9(%7 zJ)_BUkgVwr+fgfH5ugz zEupe^sq8)ZJmfIbQc!8i1GSi51NAT+@q{gCYE~JxAm|gUu_>}Lw9V8Gaw1LLAg7I~ z7ihF85i|zU7S_o$9MauPBS7OoJz2bIJmmK`(Y|Dw4*AKZ7eQ^Nd7vXGoo31gpE0Jj z5P!UB6KJ}rftQ8NH{o8i*o1pdwh8x~Todj&YfO2t1vi*_gO3wRSy;ZQAEdXN27&G} z4F%n8dKz@EX(Z@A(-_c$rU{^hrYWFBrWZhune3n^O>;p{nfzcJoiSnGo--}hia|?O&M%TD}0aTJC~|T6_Xv8(FZIx>+tuST9RI$Vr17 z_-@d`4L z64G1Xc+wO<($iJk0h!j&g*eHr``Ig}zzA$5@Ek#5m?#A{mLE$$zB`LV;4Q$or; zuxu=83aNv%khGYTc~X4R7*ZRl)3ZP{sO|I|B4F*j&?lJGMw;q{ZOfqa7Sck}Bc#Qo zS4f#RmKCH{(h$-Z(vGAy(p1t6(k-Ng-dKB~cY#Q-9-*8oq{0VdhLCn7wfUf@&8I+g z4o;<<3{ofMJ0ZU`cnjqmAuXo-V#t59&K1fLRj41TU>s|e0`YlB2<3DnO(k`ZW{_?n zJwkeglvTyDtZISyEmTyc7Ls-(?Oyc6$DLsnP8I*RCZXrEFdWBT@QUubDq&8n# zN8bWbyIv~gWRPwlJwkegR8*sNsYdHktw2<+A3`}DNo}O5q;}E_(k-M%NQ+6YkTO4v zCP=NMA*3;+9Z6G3?W7r`PSP!;M@X-bis~3Gm^6emmb4>j3TY~-gEWKGSsmBKSsnVe zejepqA!Yv5Hc~5T2x%;7M^c-AfyioL^T!A&l#@zoryM(2S2fI_94F;CA*XGlEtGSF zv>0-3H7X|S70M9-SZ@evN75A1RMHI6Eu_2#dRj??Nn=Q3No}NdQYUF4DXU4PNMlHC zq;^uL$`3>z8>yYtNm@u+Oj<%36I37?HI50Q{Rh&cn%F39hjd6&JEil2Fj^s{3n71B z(_+vsn-xh%PO7ZH$&eYA1D)7Lzh7TCJopq;@NowOb3s-4=P2bC|S*G&Y#p7EC_D1>&Q~ zLeMEK3n`~qYk@FYu{zX-IFI4^ zC~ebPAX203l(vJ_udNfb1Qh-ALNNYe(h^b@iaDIrN*YWWOWHkjC-WYXLTP&_MzDt# zh`c8YK^sIDQVy$IAl%xqx@fg(Ef8DU9j=R!OGsntp*5ynf#}mdr5@(nDaQ^uKel&* zPVL~NoI*(d+M$rrhsm>ql+`Z~b7NS2jKk|=1S{lJjkQuvFy+`GXKk#VavYT7Xn>x1 zq=!jMNLj-IQTHjT44|D=%ln0tiwB58^PWMiVsx)g$1yA~?XFe(*RAP#qRf+lryQcf|Xf9_UH>6pgYDjTVj zw2-uzlr^C?liEn_q)yU8(qg4e(UUbp4JLJx7Lu|E%(s%JkUB{VNsCEYbMhgLALe{BwYH^t zNo}NdQYUF4>0#1hQuZYJTS;R`Q%D`8d8CI)OGtS%)lM2qnnG$Pb&xtq^GFYqmXPvx zRF*WBG=lg5z7lG;d9NbRH!(mc{)(h^eE0prAyrjR;FtudG% zLz+iwkHs7(X$dKN3UfHAl{ALbM(XT{)us%qLCJpvINYrlE#qQ zNbRIf(n3yYtNm@+G#-opwG=|hp>Le{BEhe>2plGBvQah=Ww2-uzluabhNpO}K6f=p|dJ-Im z2iejK#Jwb2I<-F?eVnA$$>dMUreNAi8bfL$b&?j67L&56REpF_YA1D)7L&4R6pb{7 z)JAG2b&?j67L&5++DVexOE=w=cL8+cH+J|AJsE+X)&pF8Re5YNsCFX*_2P}BrPVj=1@MVleC!B zx}5S!outL2))kab>Le{DwdPVjsgtyr)Vh-LNu8v{q}ElGPwFHsCbh1nd{R59leCzW ztwC!Hsg2Z0T1d*)qSZ=jBejzjld^SGmefY-BrPN@CS~i%htx*uBrPOm8z?@hjnqzB zNLoy4-AEBg?W9i9Vp6sVtxnQH(qdBUOH_)~PU<9OPRb{>lNOS)Jjy4vlNOS)&6sZ` zjUly@I!TL3*%tKiWYIMOUmhLjT28Zt_7<(6H z%zDHB_gG+HNMP&0DSE|sEG}F|)QH#;aUfzy^NG!WZeFj&+b#ap;=>lFTYS|bJ<=YzDRO^g*Oo~wZ?>G> z%DZ*r)d&aTZI8Ac{^Z;z{h~KTe-Qn9^o(}i?d!MySNkv8 zKhxox4$s6)jrlpo6gw~0@|4e0o1SXkac{?7oj&O_wDYr_?{uEhrE=G$UAJ~^*{yxI z)7`Fg8`*t)_v78&dj$9B+@oiY_#Oj#JlA7tk1aj!_Nd&mcF*vh1A9*Fxwz+=p6~Q5 z>iKO?BQ7egOI*LWp>d<)R>rN5+aC8u+`hOYai7Hf824wKTdyj;2K4%@*R5W^_F}zP z_kO2$gFYSl?Ci6*PiddI@j3D9;@^nhAOElT6Y-zLe;I!z{$_mDgt-a12^$lN66*Gi z?AxtxO5gE)jecSMCiE-mC;C6%e@g$W{eSBJOMmNtdIK5{h#c_gfG-D>4!AMk&Hy8^ za$=3ddWjK<(TP11lMgu zK@F3llDa1iNZOZlE$QjO(+AHQ{L0`{gG&crA8Z-2V#w|xKM!$F4o+^8+$K3DxmR*> z@{Hsq$sVu|G1jGu8Pq|#8`K23W|;3?3FdHH;M){8$aw;C+#$yU$P@Ov%B%|WVgWGY zu@MVe$iy`V#mI!av z7{peyWVQw(u7il@AmT-ccnKnY#hzhbL(~$8dYPrMQZ|ZRh3MDVXm}U>81^H3p50<& z*)MDy`<0Dnzd@~kz$|0IC$UOA9p(&9hPQH0VcvWy^X1c64L%*d7h1?dV5V(dm|0sN zX3{o;EC{T>$GYs{HZ!ev>qh(zHoiTcCmPZs{|9Km%zZ zP0|ubo6@9|3K(v4ze%o5?hW_ew2g`;1r!tz-9=;-0ap}!ASylpSy({@1)t!e;Ht~A z_(DNMbk|+~pU;_@@AIZD?)v*va_)T3yw03CbLPyM`OcSDK)q+iE9i|ywJQ+5x7Gt} zn|ZYlFLADQmAbI*b!AHJsyhPkj@fSpytVFafcMP49Pq8`D!@l(Ukj+yJSF&5b3O^o z=>jizmg5$rFlOz%)xd0?w+`@^)7k)2b36Ss4;}F>guitJsrum&Paynk0`6GA^2257 z($Wi-RiH)Hs{q4gYD)GT^*-R+kG=)gY(}c^JTh6*>FDL#8fhR71 zyjrOh0&lGOKEf9*f7XXu(%!y&evQSyXT`S>)~$GN6U(`wi8SjpcM3+Ape6J1nJ>rk z&aPtl53Qt}gi8pgT(F8I&tA@cKSE%6)sxee`j^#|$)Bud>NKCK8A3Q*%lA&3gDtyfPGkAcp4NcyFHbuT zaND#+fV$o_XFN1hsfB0G!qj?mYZu_{t=j+}Y%LO={U*Ri&Yl4LzQFQx7+xiCtH7+l zeFCo+_&I^!75F=WbzRKWEO5KPO9Z}4;Kv1iL*TCjPTS1%#|c~~FeC6Av7kF0#7MU)%BedC@VbWl4{|4d=5=9S%#{eLE>dj|qHE;D2h&1y7>1ugrNG(5w6z z;Eyk)9KLuVrAS@GTy+-_^V5qscK#qxhjm>Vqw9L9kGcLwVBN(GA0x0ypia|ram{?C zIxZ%ik6z5SYu%`I-48C7x-MRdG@70_>>>?XFTHWs0PworeY>Qts!M>;V?mdoOVcGU zKa#clM?c|j1imWpF9O>dS@MiD;RijAL_McW#jASC1V-wx>DG)N_4j{|gIgH$7YGN6MU*y#wb1a#C|SUfJQ55o1ZdR%!o z$$_0Q8{xAAo{hIr99SH4f$4$;$Fbu+9fSKWrzxY${4MVe0n;x<88R=7(Ec9p9> z4Xet*+gO_r{tQ~|sLukr>T_tTgOfCy5x!gCKcRgt-UMPlJP58kI5X9Q@OQy!M|}?v zHyfe#j(S4i572s7Jt^=hSay#3p}?oX4_Ez2;4`qv99U$1!2A?;nFEU~h48mmGU|c{K_Sz+YHL%)THQgBl zoC}N1Rj+f#0UMn+BjquGt~%Da6!19bZGg+1NxQ3D*&6EcK~j5t^(|K-UWER za}D55=iPv>cisc&Ie&-J1_TZ{*8?*Mh#quqK=_RUhn*XN84;LsJ^*}H;3dvYz~=#7 zHRjxm@E$-{?R9QNcpo5o-}y&`-zsp@xeb^Jfmb>o1O6(3*E)9qe~rL*JD&jlIzYVH z>3j;|_X4{3#`>oLZ^ZdmSKZ=#4)9jz^MD_9z6kg+Sg$V5)!v8n_X@n3w#Ln ztfL+Vbk*a|KO_7tK*#{>TgZUGC!DVW^L>F&I$sC=2Y@cVN&P6oPXXdIh4W2>e+1~N zr(qYP$DMBjKI?oJ_~)GOBmD0If9*Vp@C(kr0RJ06SN+!cA;K>T{GIbOFfR#w+4(W> zzZdui=O@6wBJfq`XTbjv5E9}%3#i=Z03G*v;9WphRlC0ctZ{z@%ydB9ndH8J@C-m# z)w;h$cqSk;koywCbpmI*F9TCAaE|*5@N)rizmEGV!biD(Lbw6YQ75|ph42XiPjdeo zn1upQcK-tWB7uut$8m5T%yC?`)Gb4J86f1)tw4B%z?E(#Fin7tYH_O(K3(8CcRDcZ z0ikEy83a znforle{-(^eAaz8;J>@?0esH=JHY>NuLpeIy#es&?u~%Ia6bU}OZO(gU%58}{@T42 z@CElD0e|D(2KZa|V}LKZcL2WRegg1!?xz4>c0UdHiu)PBKe(R*eAWFt;2+&D0#3s@ zdq-6YtS!3_m>B}=%kBq$HlVAHEPDWOLD@e8(*Ov)TJ{jad&<6w@R-28WnTwoA0T9` z>`{c@4Ct!2lzkK7O95T=wz9_&o&a>!WZAb7-VX=~#L0L^T>*$&PRqWJ@H+&)v+PM= zt^$PAmHi9C?-Fd|%m50B^tGBpun%-Edofaz=z8I3;2ftA**Hojquk1A**G7LHH4Y z-zaljNUXqb;(P0kdJGV{Lgp`&|NBBuVNGZNo z?x=qOgiPXF;<$NB;J=pD0rO)(NBvvbY=nO%@Y%At!2G+w|0tUW{Br`IFFPFgp94Y; z%Z^0&mw=GNvIc~I4G7sQI~w5^1^&M57+_u&_)6Jv!2dzuAInYv{#Aj0Dmw|`|0!Dp z_?NQ9fU0~cpi{ma>0Lm~^5snkSCp?pxEv7DSiT0~dVzDwPX%T!Am;t@X25ynrvuI} zUk7-2`5A!6mbU^PSKbDAe0c}pMdh0SFD~x{e4zXsz^{~V27ClJy+bpUp9}cC@*cn^ z%eMpmsC)az&HQ+=VT4sXWaT{RQ%OI0@mb8ppbguh%h7x15|ZUyGSs(J3a@Xf2IaZ2)G z?1? z;TzTe2>dfJ|DaSgp>_-^$^fkVK2 zUJVP(0`mox7dQ&c7gbT<9$>zt-c((OdkOYce;x2G)i(q4*6K$Qo~WJ+xWD>VU@oto zhkFXHM#_8CJCX7pbuCifqpm~Bd(?Z8@*ef~NO_NXA5z|{K7=&)s#}o$UiD$5yjOh$ zDeqMuMap~C?MQjA`Z!YFr@jEped;cxyia`=DeqHvBjtVSPLyz;`Vvy!r|w0{2h<}- z`GEQgQa+#_M#=}&*Q(Dcdq6!{-3j;&qehxl-Mg0eKaW%Gv31KT$C+_U|;9WU&7Wyjdgx9+@c=OeFw`Stf-@Qn+8aKW<| z{OW>sr%rugx}(l?W~*JP~uS8#4#Kh&kAenS(vUBUK~(4acfu;Pp68 zErgGu8NQ9v08hu?PWU7)P_M_1$m?-O$~b16TFf*vF~iKn{4!Hb;BOLt`|)=f_I)nL zzRwjX_wD$52mY?a-&Oc~Cu)2bydGEM?;8AF3*XDT@pm2m-UAxmi@(3a-{0f!diX-# zhy9@&@b`ZF-H5+`0F58O-v{w`6aGGgznk%Q3+TQTe;>x*KjQBrXv1yz`zZcChQHhK zcL)AHj=xX9i}FeQeF}ef;_uV=y9;|xpTXZ}@%K6W-HpG`g9l&0-xu-sC3sctfj8w| z{N0DY`_-4RxB6v_;*3Al!r1J>sO!RL>%u78jL~&2M%5cIrrvcqyE)x(X=&f;U*oUa|z>^zO%^N($I-g#`BbL?@= z&c}~ybIv-x*?H{vHfPTXpT@HAKIeuLKkZbUbf0s@Nsl_8I_aDEYj&PEsm;kOY36PufzmCbF=xAFTte&2T5&(yW}yZ5x0)y~r& zb#|ZL?7ZdlHfL5#vvYJyoAZABzJ%Z6x@PAe)}ie6&CXHl+nfjR`z`$Tozd)M&uDXg zg5TfZx9?0mp9#A0`)B-4wl+K0wYE9#hGu8M29$^2d+@uYt=T!ftS#8cY z@%tnEraGIQRhyfg&dqJk}c#qU?oL%BPeoe!Mf<{Y>4QD^mCmYg=1R~*Wv3#xmMm*1Pu6uq|8@bIow|8CXeiW`@1e*q~CsAkehUyJXBO6uU=RXd#l5 zMa80f^QmlMz{|G{dHuUbbD3;W`Ka9RFdBtYLa1!f+gDVbL7Hqa&vg0M)bM2XLZl8| z}&ZY=2vBbi6I+SJhKY6+K11mx^U8OW|#$+q_iT%kN;P=B0{lsqCP~P+CVR zK@@sMQ&}CB!ow;ha$%xvEQ(!u6w{q$^V>l7*S<7zTMR+nd|%Wp!apd4OnASvtCN z3;JrCSI7-x%m-!l=7fM`WD?VxW93Oa>omnA5?Ee%{%AIeU`OYcRV({8c5Z3!Yj5ps zRXwQzZzJ^HS*dIq8lfYf&*e3PG;i3CI^=VSkEPq{cbFlI6h`O{KNx~oS}A6Pl~3u~ ze0kX8Ws9x(!CaT`_x)2<}dXFrZAc-&`48MvFg0k@R%op5-}rJtz1UM zs+B6NB|rRnFQ4nqZ^i^u=+1hbh0g3ASbew{$Jb$@;intc*=H{8Gb+)?b%jHZ5+cO6`r04#tewTL}Lw>>ma$yAqy_3A^e(2ghA$3Y2lWa z#_ds1C74IDG;zVkEXJ`8GJ9Jt?@2k5KxrO(oW*IxHgqqHFOy2+HhD!R*qX|xMl_}krc@FAWOFe@*$0VxF!`%aG5MgQ zpwo@fXf5^)-e4wcl67R$CdB$unXH$G;^1rt{WdHMhSqeNqgil>Q~jZYDj!XBu&$)e zQ@&>NHHg{;Je~sGNfGYM4&;mkVG^_!0Z-^A) zeF|Fmw0?JA-v;O;uxew*8%~SyBfuxl(&d}RevGn}2N+95fQeP_M?~rH(IpA;V-<#M zWMM`MVknXjLxCkR444zcXgb5{FP0$oh+!*>R}RZ;5vswAUx=Ux{pQrZ%*fbC$37@( z%4IKFQ^dfXH|nGjO4euN>?zDDp&8lz?)i6U$4e9{)I zLdl*IXpC2jRbZDN<|M0H>|;<)qMu6HW_tMhy=P0&XfqE5MHZH!{g~DA;3rKt6Kv1u z=I6&R#(D2CSep1PniY3J!B>%oj*8E)Y<*h}bDRh%9S|iFZG(xnNAsAIcnOL&dC+Z{ ze#{?wwS}4R;wCc4t~j9Qbv08|A#@C9&?M7iooU4`Xp7;xa)Vvo9&cF4^&gnhe_&Bv zn8`y1F;T2|Z^XI6TuE%FWf2;{eD+b#VtJt|j+1%XBtSL_p6x_vL6u6UMfrqrdEsdS z&8$7UGgy!Z+3a&Di$yW{#uPx1+B}958;r0x@Vp3jgU9ZyrLJd8>}nOl7=i+fDY7Nj zJqc-VvAvRvNpL=yB+pC71tm$JVm{xI!#7CDlFkC`i%bDVv=!{$Ax!^i zsQP8Sslsm9!hq=2_8jxb%nvgs+wToa8MdrYIaEX#FOoTCMz-ZfM$uh)YPSrRH=Tv^ zax?`nTV(=DhT(td&iaI9bH&U+#!G92>X+KF0NI@&*-*w3p-btg=#h1l$&scz)(j!*$f;qE&Co3{!?9G9jLDJ_>|mdE zNftaY&Q{D-Fb72VS;kAeF-jyU+zMmdSc$^~v0)r5C|eT8KNe8=qV?%oJ)-+Ej@3fe ziODh#t5^%$*1RW@wl!BMN}z`(i(NUva;#xM$uWRX5CUt&E|211V_J~Do&Xtn$Vk3lRg_aG~u7{|p2!`ft$ zzNDEzAvbR9$efM!N5MOH%%cw_k2bNSU-*y#F9CJ)#fG-E8+rNpP~gq1=&-pCX?80a-30a~`qf|1pX6(Ujx0yK}%rc4|qZ>l)ZpNI-dR5~c48)~nSN_ZH? zyuQBDB16+H)bB=vp_drpcMO;Adgc_pqtYnacZ=~s#uNiW!yv{4bQyY%emjUPhfD;) z6rth4_|PL`OZc56RYFg1;gm@k%R_hvm45W;MJqOD^61n(FrLJ3(-I~m!PJ(3j1qD2 z$`eV#Wz%H0;~yR$E`GM;xVV;0mL57nipFZ!zF8ROSZQa)#-v`6bZ~nDPj{Zi7jxFN z*9o_mjxCXk+f1F=w6{;ud5$R+H4S>Q`$U9(lu#B<6u(HxK_zNOU-!TO*sko-BkJU1 zKlx(7-tiw~2*d{x`a(C!4kNwkB{+@hF)1uP*5m?PN8yI-&G|(@vwNxh##}zYwC1Ia zx(bEqS%)@^%LKVqb|I-|ZQ`72Uxo(J&^zf&kScw(F>kJ(JHC6qluT8p1M8Kv_l z@S)=14Yib*%18pbPn=1l!G?QAhcmXVEe4q=*(T0YXoV9}s^}3NV)2$$x-%p)hGMEN zFFOcl6=^WRmT0O(?JYW80w2w$Y{6nD_&wXt&3n;;;vcg6rD`;#H*r-aJ33Z0Bx5)g zOt7EBJnav2mKA)gQ(&2rQZtUoG21RNKqzgYRqI?!H_lFrcECv&ZEO^~} zvxbUTX_#kiLGV$^X0)uV_2RgMiYCKlis0B4w*`U$}qN4$mGQOgd0k1vnCr0tC37m zhpjVRr}4tlpo<9Q#>B;pbSL-k?o9X4!-!R|Z%k{}=xEkvtOMZ!HJJq9)+y$6ZNj$r zOa=Ne18U-^m32}>g+_;RYlP;w6h~{&kSXdtGz84JY|n*x)1C`gC{ibiL>G*-AztZ} zh7|ww1xK<>+Pa^N-i6CD7|yz*xkJl1~wV^}Ej)R4vq0n!jENR2~_jO=vhef!0Z zPl!dRSjBM~L4>PNQo2@~W@BM%%BVoQ9U%ygRvIbM^A6OMNo-3vXJYV)*%T=zktCd7 zOruD0p;m;6)k~m-Fj0&|k?OG2Knr++^EWkyhXAb|VC6Y8z2ij`# zC88o3p&o7dtj)SW#cdsJ9UFCkXg|uIMtn@NC*VjY6X^LiqE0)Gs6vl7$a88UrWm~1 zwKI&^WGN)LGuuBrmiBtGsnNnv4yOW0W&*hdJAkyD=^29zbIoOhzq4So64{Z$ek@l1 zo4g`O>i1BvuPzDcFWBSTtdiHv?4$s(gl87H`RA zgYHYj22renh00C?xn>cqDA5s8tnE*EfD*85m1p}v9{Z^i<@f_A z8DmFOGKS5ubxU*n2gZaeme>eFhG(M4MC&CP$xgh5=)AaR8g6-da*dd z&iNp;cfMoaXdcU1_$dpZ14*YW1M6cecH|=jwukE%o@$eBGQ0ki7E)B;gu4ry#zg3o z6H&rcN1;D8ik(U<x zNaeXv-^(5xwUB&U(0`JRg~(hAG!AkG=U-xO`&fC{fg9oRj)L0Q+11h8xw%6-`ON;M z>_+I*NgSQ>D3h-|u_mhGvoeE2QY|04a(gMo-1AJY@I!hlNyNH!m=hWVli3A>nUhBu zv~?i@#6uY(EF9YYLyHY129u3YMlmz5HIsB#voc_1F4aB9ao2-cflUdHAc|H_jC!(2 zNaakFh?N-GqF_4Kr2HrU$Y2a5sW^B_mMGe&bWBT0bb=$I-(-!THJc8~XocNvyr2@* z9(uO(pLBvOf2E_@3&9f$!E)G-v0=gchwGRpa2XmGV1mq+Q0>V`zs_WoskB6dr63Wd zJ%=h(qxJ?$L&A-a^G()qh|SRZD`Sk;Gr@{%UD zaZfHWYYa_xl|XA(F${hG1d8}(=m?aFCt6CP$+3flLaXQ^FI_4sTAHNp=uHhu0K{Rj z)DBP8KxUuc=ulfzu|tgc=)sLxeIj9T9GMWuiBy3IkyTP7IZHP}(o7L$_|65NZi6J& zt+JRFmY-l^OX(7m=^}+CqJ{R-MNv*dgi$wG$r{k%gk-TfOc(7kX;TTb7;n*}3Htm4 z9YJzZLE>Ddvgt1(I()H(vD5fRy zm?$_BtF%FM9&9E|dQyc}6cVJekbrHYK1&-x*$o^)h8bnf-G*6YP)x;X1hco6Srhj0 z*`m)~NoSrRC%Ytq3H=AFJNy_+5r~%4r%VvX>2pfPK@r`N3QiFF9i{0`a8j1VXv7o| zn(Abvr92rEqcV}eGA+!MSRU0gw#)XGK6vDr7bi-rTRHB0yN-oMm$jT4n3IO*%+ES*+iF(zb4l!~T0@XObH#l|?q#4o;c0GoN@0_EwME|7pIZEkeu zA;oy=9x$8k;%uj8_jCIz_~CJ7ELya}tgp~pmQ-qmh`zEBzP{?<+f23zk^Pn=o?>N_ z8h<^-DTYd>LZ!P!@S-UNjjfqPMTu_pRgtdsVDT(Ck)}jF{y~1zm=fe!6x5>6GP9i^ zBTu%<6gHo*gD{e))6Dq(`4uT5`owMM&a^~GYI&hh9$^5>J1AIsk)?h%;bic{I9-TD zm>{vb0KuA|q~&Qjy@S+u>tq9fUr` z{GT4{*JhgLjOLeNiJvZN=~06RQFw^hfs8Ft7JRCn>`kzz%+XQ3i=(FrD+ax}TvsZO ztz8{S+M@}KM~Y?X1B&_}9*&YwI}i8f^pBZ%3){1WvC+|79=m73tG%ZF9?UbkaLl`* zISDUWXik~o!sNZMR&XTC+XGX`98^NH&6`6y0p@r*);-;NrIFxW+&SJ+t)iOou zgjSs*ol5UD{Fh4egkQC=-@(TT3f_z|uizQCp?T6jqBK+XER?85n$sfDY5j=f&cg*d(J;hz zEC1;%NGKC%OlKClf!%FN=V4g=;@>X)L&2f*RkE;q{0GLEv@I5yV7rY_CZ+Y#`Y(&p za^w!beHRm&(mq=kvF>mHDqHJTh+H=Cm&Z(Vkf31O$dl-4PHPlz`1Y$|CeQgmmBaTs=VT)UCG z^Q1FYkv%m-YD$wHP$3jpheQsWjhODD#f4NO>k<>+BovxL@z@pNsoE*?ZyqZYH^@B> zEJ^1!2THv3=JXmni$n{c62@Dzx#(;$MH(v!dY&nrsKj)@9<=pr(rS|pEuEhS1}HnF zW2c_=N~gEZ-w+?835|I2Unbdo;0S`$im_N^kIr zdp$2J1z?hgH15Ic2@tr>bRn887+Rhjl=0=*pQmwlV2a4X589ZS8Ihoo2L(j6#L~*V615$z zQfbfdWp~)v(le#3OsfiQw~PCtR0S-uJ?9lbwAg`DrAg>AUF!j|%DS6s%*;a+l33~S zBt4$D`yffg$}N>f8i4hg2&v{v;Jg##G?vTU#KW$GL1^v*Av+GxezVtbQ=xH~T=`=WWaXSqfg%;hmiW5tD3niZpXUVkxTtF}@U zB($bUU}%IEK8I+Al(1W@W((LDR7q;5G(WmU}Fx&Y_Mq$XfnK3bAfVkNT$MHVI~BkA2JaR**vfV2**YbW)}GKdRUtT z!wqhmgP8-#>0ZyJNxW|cB%=ZoAQ=}-|H-&u>QBZ6(|$58nDVjYI>>bYzntoO4sn_< zHF4X)9Zd11QdtFMyD&Dr>ntp)^!yyeNA!qBPmv`)SChkm)aV6RXts||<%#InG_K<@ z1aR2RPT_IiQmC?$(=eMG9z+LAKlQY2r$2C)eu(f)YNHNyQl4T$KHy{=inP_){tnty zkp94N^buS*l*@ZPIQfU20rR8=@ZuL=IXB1OJggY8!szE|aPCa<4SbwknIal*dJJ*P z%KVzGCz>qc)JIu3D>@`LmLISu$4ghpyz<)r)RngC%NZ?|q!_!CskB%N`e?Zh;xIdF z)vUp(N%T7$MsY0YNe$~LmZInZ@6P({(nT3pm5-HFD9I852M&D)@+xqo>C)^2H~ApV z?Hthl1AC4K&$+a`gO3Y5`em0u+@#!$%);G7Uqg@wHc+67ef)QgvW}|fihGLPrAbXZJT22%zOOVLD0Wl(?$rHpxqa&n5qaa+}dA&1V z>M|ROgpKzbV>yU@<8e5J{m1A@39Cj`D-O?ih=LXHlQRy4AhVzyzt9D-it1d=3c4beS7q4r-IvpJ@WOysn~ zjrBxw*@#3AGawTg48A2!ZGs0ak$OUnJxEGJ(LqvaG7^d6RH>z{;E2{>$F>5=LxYK&8V7HpipH zatJC7B9z|Zv0EMR)2DMIe1jW5W-ATaHLWk(!_dM(5~JgS2{luIypG~s&$I}q?J7$P zMZ;KG+P@#VP=;~ZS7s?NXX9|-L+h#FIjTS)(8HZs%{|Wh;{3Ijz32h%Qzeszy-0*- z_r+}DJF4WKxs!)JA_N1@$~&y_#$a00+ZuT3RxiT*ZDiaVskgm-x1X@XF4jWnI4DY> z$qav6JakYtjuWQEt74hvBto=)kw1Dxw36`Y?~zxjVvb5oYuJxz9mGVg2}q2P5_HG1 z@F)lmLf=J`y08;9mcprsP&ywMN(b{T zoP>|Km^5@L9Mj@ND)tF*lO+rD9~eVlhAjKwQIgmQq9xqsWEUh`I%OK$#3>WlwoRD; zElbAPwj^W1?MTFin?+R~?=OS0MB5~mM*B==TMFbFf1i_@>D-Gqd)AuqAp}#%_&E>;wJxvM2qX@bb$3{j@@WnVIa1u5hDq;Vu zYCjIH`BKRTzuWm>lHvX}IpJpFNC8X&kyR5GSr=(S1RYBfrlEojSHFC2LxwTTtT#oC zw)7uZM0Y-edvvj^L}@)<(J*4;@E9B$c!rMRoyo=^&;)F<$4&|gZ)%6CO7w%JAHO=Q zr8|;M`2@vHOIZfT&GGSHTB#AFu~IX|1VL^F z*DnO>S4uJEV*-*9VuGdarvolx{#wh4i;Z}kr6i6w!~kvSFqb9UM@v?VCM3}*xPU1_ ze+8tjZwwt|Lsyz2AOk8m_E6B%U2pEJu@SAO?6C-VCiDSA zZj|3q9&3@x)o6Mzr(hC+TjgauTc9G{kK+g z)HeQd-VeYmB$Zft+ixD>9I^Q_Nzt5CwhP?68pFJW*@*iZ!HQeOXAPW&NT+c#kiE(g zmkxMxCs4sZbStwB`9V>VhyFydxWEVBapA%OOtCjGl0D{n$`tpGu>!|1lr1@95#XGu z386#8Ov`(CNq~o(?aX1~@n(&W(&zW}<#TAZxpj^UZ+I^JJ9Kcs6rx6X_Ai%%2&iFw zTbJdRR9cWN7GoI{xJnM)p=Hqd@I^OlS@cDym z<0A%i>Z?wK9ri)bvuXfmP^7%jnBc&XuK}nOKW0YB!0?urMCI;A1rI%@8TL5d5P^`Q z1&9v}?Xg{cn5@wZ*9l`iZ+ptTwJ~DUP$mlv>?Z>g-4FuOlIV;pLT-U%iF&VMhlO55VXJ&tJfqqfGl4a$9;cX8DUju;wyEo8#@#$pK9nGG2>d2Lr}F68|8OblC$r#EDHKrv#l z$lDLpc7be5LE`wtq6&_P1(Ai zVn}-|9zqXmc9}U7%_+QB2KYvv9No)ngl*}{X7L8>XZT}50d9*o2HB+_UWN+ZGu2+WAVphOkGy7_!I!fFtYKt(CN-GFechS<0@fwF z#s&vzg$Btq4qd|IseE~i*TRd!z@~R*pA(X5xxZ$G%}UmlN!z7b4>hl zr?0Lf9VF)hsf4MywDn5bqEBXtgs;p&J!Xs1!`r6M$QR2hd@ux0+^z^P=ZWbFPMG$A zQyLXeAm6}{Rj1YF0S4cE_!ZCAX`$P>!EzEMQa!;QIm zag+|&BouJS>aQ(GnUD`n9(`(9gC#!RBF+ZV>E-QOnn`*6xL6$IAb4fH)!2c+P|X%N zi{v1k#FO@tMKdB=v|vgUO?;`MH}P64N>gWKQ;*4|S^NZ+Ki6Tmj}dL=TPtQv1sNlW z6+Z{d7nBs1C{oteR3?vau=r(5NVctdWfz>A;ri1m41qGuSlm3Ozd(kb;q_k}gkB!w zYB$_5q5<-Ji(rUWGnT~sG>eq1-;C3rZ-C9IHH?Q_;=NJ4FpwJ?9140CcinQ2O!n#4 zr~CR=m`_@XvA-F{JnMy@E%My5zNxQ|^PTxnD(_&>tD6mD8QQtvSIhchU*9hMh=+3r{rJq;nGEpyfFlBYPf_lTG z);z`htM7Y&zlynVL<`?m>&Dl?EE+kW%K5pjo>Bb@uLQa|0?^JtTj0SYvTbSItGuR#pGLP zFnFj_(2q8xRjJ(?4M=X0@2Ihce#Hr2J`8|9GFmA}$nl8PrCAdj84&40t-dVK{p9xs zm>=qk0i%Sq6lMzW+)9%Rbae0rk%IYhf&9pw&UPzV9w5qTZy#=F*q(*?fV=Csaxr=j zJtR{Ib|i2xN?b&P7<{tuX_@+peoAjslRh+*5XdO?O)JHN1S{M0Fv~Zl6YJv*f84qw z`mADclznVWyB1IfiwDa`N#gUWX?3g$?70;}$Nzc10Yrj!N|5K&Se~_DV(>{#9Q%{0 zFiw$7@}(jV;!)%rwhXgnF$d#Z4suEHv<5Wi3u-G?^q5*nr9XcP7Yv`UVqlMp!w>He z=QC!`1ye$JvJIR1STmwm<%C>Mahx{+Lb<_r3*((!WF=&*zCuTOFQr=gEmqXSt{8** zq4w;1_(GTNnUD!8SlM0?U%fm^2pRdo4^%A5wL5Qoo-jcmv3Q#wR!MFo`Xay9tZa_G zWb#}ZJ^TO<*G?EW2NA~s=sU3*?fOZS+zQo_ieC05Xeh(@GDGkyOBMocSgH_+VaY<) zL^-+g6yZ##f0L-l1B3(XoFc#f$VP`AtxXVjm`Xb9TGYw_y(?U?Jr(rt%C#{fnkBoR zaLSBeSXlWqDKi0gWwMvpdvxe6Z_V;!#Pr`xrP5GR^j`0RKN>l`gftu&30V=3RFDP@ zC}3qG%8Px|tXg2Q7!MW^kYJ7A1Ekk36Pbvpejg?3Kzj}tk&f1`KOd?W+Hh$PLM^jR z@ed-%sDXS)om8PLstGNDk3k=C5d_+z5mZ4zolOvmEbJ601|*KfouXROraou~-ps8JHww$PvD<}J+$Ht$8nGUAg+GT^f|w8yvBWLwS3-)Wv_likzs2RIN(=7e}$=9bt=vUhSX;y1B;t#S|~kP zQ?HE$OB1xER2!jROU%)rEKkK?8-A*MLZC#u*V0vvss!XVC!A)G83*1s>8!osZAAU0rJB(6)@VyY3 z$T3Z0qSapwWXYVL!&251lWEMxm~G%*DPmWb)66NWwIR)+)!(C~h9?~&J zVmOu<00K@w16UQEwIc z_#Lj@y(xSX6#TaA#G*JVZD3bK`oIf6tv+DdIiO!Jx96k8=V&fd6akR-V6DH09$B3h z)R;{VTzlt#e@4U-#^o+ZOmq)J$Od~$t!ijeLapF@7;k#g=UF8^WGzDaF1mJt8A+1` zl+C0OEm#@K7v*(_gg=5K^r2HqaT^^|k~nmZ-mWA`D`To)Wqbx%8K0lHYUL-(%qu~W z2CY$>#xiNO#oH^t;3-Z(Dx*t#>3a0fsdB2{-n&ue61^lYC2wGGT;3?WVNs#8!i>Ba zdqWzpUv0(aDAyB)rLjH+uS$0@m{pRAEBpdEUFt&hmy+~YC2t{^vEc|>VQa#alMF`t z=w9_P)GVewRN-U6Y|inc6PM5{`n;h?83xGIc7tBt#OP{5rI9ZUku-{ioIaFk-luP6 zZ2YZ6Gb7(2lDts4+<;Gx8LW6pa+C&esWC%4ILw5V=;X*Jl31OzIL6u7q=afqG^Sa< z7)oPCn}8+S0$o&EHo&w}vcYjzV(_Cg^_~h&ANikN(p(kmMs80jOq~eLq(H?#$wbr0 zwk`T$CNc)hGs;;SA82TBF+Q*`T+q&7d5(7X^Am%y6*yXLHz53bE?CtHbqMQ@zjpO% zYs3q7{)!g9>iqa2EL#7s);S}X`2;_#!*cq1c8YnXN8D|0Wg~4mrJ2}ld%{PX&k1JoBo*^Vl%1<3UF)1;fA4v zod|PfCkY5WGAG2!<6Voo3xG(ePU=Bu*j=)JBqN3)rq+VBi$TZ~jvb8Uvz>Sa6H7Yc zsPIPmcxoJu|8aQmlk4jL2VK}^d>3p2n*w88pG7RlB9CbMK_~MrTI()cGL1`E>2jq2 zXr^HV!xVyGqGgy%{V=T5zI+sTasbKYE=DMa@8{%7#8#m>u4UYI4aVD$)Cf_RlU>+e_N!bg zE5yV|nPOz$aa2iK_ zn9;E9(t4kbUu=SXgf}6!=0>$IT|O5@*0TwPR@`VCNQTifdKY9vE{CrMWw9rd89{;Y z&B>C)Uk(9*PgvPaJ9=2{mL1OLXZB$6gR>OF;`@}HFf)kPzj?!o4I7#}RyQqOyJ}6_ z($yQ=RxNFA-_W$QwQcR1)>As#)}Fd{<)x}muGY@e=)cG=#yIq1LgSRM`YQ) zV&5q%R;*Z^K4obW_eZ&4WWhXa`$#2Fabr8IljSW6SDE6{6}15k@Kd7Rp{pw@1=!UjoPoXL@I&txKOJ7`=K zi~r<*4@){3AAOo4<~-;|TwrX!A10~sF+EOysbOEQi8Q<>>%lr^gf)NV>>n#*Fyt?m z**k3yp=h0IH7vS}hQ<%W;M3MO(cwnZPTEpQlN^cf>es|jCUNNiFW9#|Jnp$aiP zb(O3UTF{=hwH^g%z=T>N_n91~H1uyu>+((XA2h7Ib%55XepRr!P@f^6?=I z#Go&uik`h_#vtR-kG=tc4vgz?^qVyu&|{(Afk#L7h-FKj-@l=X2_E$7FZ!7ZeI{VX zPzK*5!J%eco^J<%oOIwOG};d*NdYzW_wl|8DCY4toGC4!f#y~ER=Oa$B!N^%P_Pux zHqV?~@^}zJH&FbeYy0}J^1$b~Rx7@5Z&YRr4(s(A$5??%;*f;yuU%sNmAd4w*^67h zETVGkLW~TdG3FodB7(MnwI{K%jEV~;{%~g6ViDg6$E-0rWy>=#F2$>6qgL4g7~aeJ zzp}a4FSBEwU5o2s#USV`gpa}-HvudFtnF==i*<<+fOj}LxY!^!xY6skh~hsMa*s6Q zr7Z9&BtdYcAx##Gi`1?>hAeLP(T;bTSaJDm;sx*8NknTuuz-QJ*W*QydJ>MN^+%2I zsRqx~V_F&dM~7&=Xzj&=Pr{e8a3r?`Y3O+SP7c|i&+Kh4_HU7|GMbZ;;^u@2Vh%v- zF)v@{ffln!8<43DEt6k!;#nvNhdT?Wtlp5JhmvpbnvV1LFw8T)OCcfr>JxtYz>5Ap zh5kOeZX`J%FD&ZApQN2fc44k%@DhbSmI({Te!~uL@MZA*8geF4N@#w-25w)V@%a*5 zF`QfuDewmMNFnSrLrOTYphIQT@WWv+f2vD+?YR+tTN7uYaZXN#2!%@K9{;GiJ(q{Y z8cuj(=N-qI{m4O(Yx^K5*qmMBzSXemfFnAW-;mGkm0Nv+ys-$ZvT)K7v(6ZHjO2V4 z_$)7yuo6^#UX#4`kNe2-ZV1j55&uOI-XSpxnX(R$rd6W@1cwr@|4+7(GJ-2~byO}oi+eZ4BrhN^Q9LCJ3 z_fe^CwHFw++lbmYmhH!(?n7evTB(RTj63jZsE3UkY|)4}-%=?@gP{(ZF|EL~J1>_p zGpJpaa^)ab9yvHd66_b~HXl&OJdSNiI9BA4ZID3f!!iRy0Ixyi#&`&?dz9xJv1rm3YWVh6JK>AQ zgoZRb#^jiO1I6&7vt0@f&S=}CsH9emS&N`~gLP-XA8l0P1Sw9r<0}fdd9-KP^RyQ& z+;Lszav3@5B3%(ikfKP6gQ(WXkwNfZzf!g=Z$nD$Y*TqPu0~Z+R_ zXL)QBsU5dDj3aERR)MQ(MmqAh1X4S6NsPhmzj8tjU22!gQZN}3+U`N2s z5!Hb(>mQR=GDWY%c}gAGgP6RuJnv(3l2V=2V<^UvC!}XvOHrUs+722aRVXKgvPo~y zf22-RsuuU46ue|0C3T}sZxpI{6<_9q9^auR5j&m@$;p56m(Zelk5hFN|BJHlS=NBbKvO zy-CUmxTng_P^#=i{H;@}t^i)7Aom5(m}AYeEe)YEC$6%^HzEm#357fdvF0-y*C@h4 z0vbUyu5!R1e>sR4n?`CjEsG&h#PbL$#T5`TgeX=z=fTQerksX=yb?{D$F3a}!J*iY zf)wgfWn1vKR5=yx>J$toEn210EeA`im~9mrhm=}uTW)8r!bT)yC*cFZ z$VwfE*P-#7MPu28QJvJNjztm604WmGp(B9QWsP9fC}0}nF06qvh~p^56(@+*WmAlp zBU-lBxzrfL5WYqkzm_VF>;OwWt#!omM19Q3E*Oz|m*9!rqDv$7DWQKCLTVKmcpB=` z|CT~`Y*tHAA}Ku!|3>hSnwj2~=|7~kcOtnp^ zs%?xqx)t(6wZk6Le5LH!xm+!66P493Ll$o=9yoQwHk5P;>eiY$JbW-iRCl0-SQlUp z)Ah5|PRxm0Mb;^e`!FD_R2r)NS=&6%P9?SU?4XBjAE}va2lgIOBh{|jsq=?tbvtTl zn`oWRS%-3K$E_Y=9Cx%{MnoNOY)}emjc{&MGj+*+O*79!THJ1dc$wSh_2Nm-vs%@g z8Ei&)R#FY|RGU!>DW{#J>d2!UYNJ-rc1{oYysOkqyeM8$7jjZ(*k1MJ?9}aO0Y3AH zc8wwpZUjQ8f?AQfcpzbL3kkwd#7iK^ZL++y898+ZLAK!@6MJvpHsdb!lfB4`p!1)a&OG9BNJGkB|Ot%x`wZS)znB z@e(@F7OtKtvFsb{T!TW&T(FW?&GB5D5Kj(~cFw2T1}jk??9gb7Y2Q$XS$QjwXGc5_ zwIRm=EqYq~R?@AG=h~AzJ4o9*$ungdF;GfC`I?8Qd*xQBrYlH+~mAYZAPBp#xcm=Zq&xnORY~XMB81Wg|PObGmvT{ zhWRw7hlPH&xu`UqThSg`oSf^}!V;yfvt@9E=rv(j+mm-&z(>|lB6o+jK=+`0Y6_;% zUL)#j>TS47F}w6aQ*p$3VtJF|pf=3>%PIfVHP%CBb+nc#t#LM>MAC=!YYrv7rX`f? z)I-U&2`w1}9j`UtImky{@mljyAO1DGbt#A8)V}1ZF z;+UZQNGpo`FFDg(8uoioq5`i6%V7=lTk7=>C6RV2CC1uvffZ@>=2RoCgcNr7$gD&e zB|q)_LOJe-N|bj_52&*%9jzrwYtHzn=geYlXX+Z*>E5B1 zW%ZJ!D?SQ4WDTwLZ^DK>BV3E6iZeNTR&$c=)Si+OEnZqGzn%4T{=l+Pr-oC%hFaEz ztvzdnMD24sMoZ9m2)QYR9yDu-+~81PX_l^g2jo+)%1Y!HFM1xOQ+EX%9mO-}7&~gz zs?sZPJ2RJ@Rr-3M+e)o)w5M9HZ>$&E_U>yKAFrwWzhe9?j?Z4L7>Sx!X|#;o)RITt z9Zwsc1!*so)GvMUT!9S|p0nd)#?D+^C3K+QsKGQnv9;Dx+8O<#6{wG?@wCP$NlkNU ztHkz<9XBPUsIzp=cN3@Iu(VysLEjc_2#z&% z#%s-?d*82dCQH<-9`Ub)_Qz}wS}RuTaI^0<)5hvi8EjP8{tmpZCPgLZ5bRD?n&+}c zgx?7MVW;Z2c%PTp<(jVj1N5A#V}cnwo|94lKhZIEi=3z8*e~p&1wk3iYOWXb?MfE;-{ORR)Du_|4^+WgFb>U?X zb>H-vPhRoSU%z9&s`}!aE)jz$es_B8X=Y8swEomN^X-RaNDUs-dF1(Q({z1yHRj+*$K$YpbjA=+3WDt~nB_^54Y z_0&7fWz*_g@z;TZocfMRR8rqrw;9wL)Vbvg5v;ZB)`G$4?UG~rH09K9ub*F~TxVAO z{QB)uLTmlGD04frZf~?%ldD)=n3S`VMeanVoy;Up7fHlLtl*;hMqNQ;y*%TG$u2sD zWxn=(>V;Gohq6t5M0l-bbq_7AqB@b&Gu3Xe&1!ofJP1!bv^{DxJSELtNIoo);F4+V zlF22tjb(uKlXLKY-Q?9wun_5&kONCj*1GXf_O_2tc0hdC6;%DSx%Hkqw?53iM>nHE3pX{oexQ67dsA8Up_c#lxg)WAq zt#@fc?vjTt{m_L6$>%sV(yT?(P#(r)B^ttlX`FssaE=qg9Q;zKnrJLEyxw(i%Xt<{4f6GZf@1R`3iPa-r1n42l0daxInKzQ-|rH_CMTsx-lq zkAap^Br+279X6y3gfh{0Dy6e0CRoz_;Hn5~Lq$yuc{X8UuPmF^P|Fnm3@U0R>Pi!J zovq~wO(%cACP{N$`80GIG$kPZGdXTy$+u81*Va!w$Tm(qD0wFyWEBsJ96VTq4o3Wq z^%IXAX81Gl5%wadw(|c(aU_2}b3CGJoFtVX5zSNinDESuCGzIa{fvlsKH zI(jjaf<5tgt!;qt=W)%S$7`S%OarG=HJC7)@_6+$`zQ>2yaof^#3MIY`4N$k?>c2n z{-mfD#+O0h8p<$_V+6Bzsn#0G(BWlZbVJ!JRYBGu60G^5bO6&}kk{5IjO}07&Z?XE zIf4lPm_dwx2HD9!BX|zgO`fkAeSQ_Y1GN0PybM-~d$M%JLK5_6onql(3WQj~>$!5% z$6Bn7SQDUD+I~9pef^feO=3Ihugd(|Yo@s*Dza|k7i=niIMNr9MZdt{T!daD4r6-} z`n+!PI&_A+fY{0FU`)|BmOOocjB`XnUJ&+8yg*jIAOi40m2Kfs2R>i0B-kFM$$H?# z3uwJfbrzw@E}M?fRhK%6Kxw#~;4PrNQD}cj)Bci>{gQ9mY4ZT77LZZe97&NssrsN7 zZAT#4d|@m2HVquB)w%5mu00QA2Zsj^3;SQHtZQmP-29*~%$^mP6+bGVr)^^dNsnEv z3AkF6_X?sWUJ;c3fk8685kuov%$*oV)iiA}=TBZqg0DscR!|mRksiOAaN?Dd4_!E+ zP)Z+MAg>Q&$$z43{I~FWlGN2tXnSJfE~;=?bQ2%3ns#!DPasL9#YeJX^zo79h~Y4C z7lV)KB3HA>$<@=L6vQ+{acr&)SHmFJ4@@!fm=1$gZvD;*Xp{P#^W%$lJLG4@BgncM zYNZ-&DSgJlG)oH((`gMRT?mY0Or|qM=>e_n9>y6z}0tlj(QuLNm z=$1A{he>jGqCSZ_j1z|451A7b5FA5*BnCS`YznmrMQZ#v`NRj@jpFC6OTY`p3 zT1pQ@2zY`eY^UHwj;`dGLJquAFTGNP9GcpCTV6@Z+1BzJg6RZ@5zHW{C74Mti=d96o}dw+z5~pR9ub*Fg)bJcgTiU<;0G(^ zGWj)1zE^sw7lQ+10=CYLm_4z4-Hs7aTfe;u4}z^kpjF4xCSpgYA?MR6=hJ1volLva zrbD!+Gj5oZO%2vZ4wm{vjMm69s-Xfw##L2eeymQ6YW zD^Lvva79Ixpa?6#tK@7 z=4pE4G*`lWZY*o4;BQr9xlXRFN@RK+omEMP+KC!{Fi+Z1Og6P!Zi$UP6tCRLOnhig zxfKUX8u!Vqf2|p!F1gyMM-F{5@sbG7OPFV2o52+_`4-?pP69hNtw|ep64csA?GW*8 zTC0$aTuxqYioP5&NqfD%6?0boxzmhO29j|%MwgbKyCLJ~eTr`_296HZPd-?`qE1mP z7@;30u0gTD)Gq~Urlggi#MVpV;29Ev^@Zf$KEsr|T~fku)o5F)CIDHtYXTV3akfnJ zh`Cu408&j-gz6{1jMcNLtHajSQ9pTm{R&%`ehSgF)27=QNvEHXPPd&rk>Y_dZ3i=! znzl12v8L_*vtJKdr0YRIQfhka6VjOmZLeQy8ibIpQMcWHwCse7%@o;zB0plA2(&x} zRqwRvc1F^fC!{+J?gDfssGhjd_1nvb`pGZVub87CtTtLO$TQu~v)wgqLH_MJ$80}` zK?E7F&b!fOkgybJG6V=@sL?e*)w(k+3runKx_m~(=%EU>#Y;F`e1HgwZw-oPP?DSC z{pTQcM}3DShQa#DTk2Ps)c$ig_0Aym&RA;m9Hib^@26%kT(4LGD5>@YO^^AJ0#1;!PM`+?_0-f)J|P|i z6P8@Y8}cwb2?ou!JxoV}O-6bi=1gBx)lf0Lv0TsePgPaTYOM6baGX_D!QiQ>sheDc z#7J6ICG^uj`&8q>He!4a{Z#uf^X;mS@3e%sVO|$Rgm+=cCUMNtlEE4oFeOIKQuZ?t zfGO$nrB!y%g-vgwy8;U*X$?qk;;u>k8usbrn)=D+`pI>*jTLTHRsEt_NQOrkeJ-BL zVZP0vD4~Nz)4YV~?ImbGIH+_dnjg-jlMh3!(85DtJ0#J;Bf^+!XbMg~EV}z8=9hW* z1rUs)u?kK}rgilzM8)0+3-Mg8A89%+LJCxQ8)g$4eYD0ZS>8q1uYgrpH`(F1j-!KD zP28f6haEei)ZfFDoknjRp11Y1HgRR(;NR!}eBJZz+Xmlp)ZWwH{jXQ8eWc+D_g?Rw z#)gY`u7BUd@AZzl@`L|;#+?_JGTceGXh{MpklKXJ~wJ0E@JeV65Kc;wYhTc5k(!t}q* zzq#XIf4}?W#r2y$^^mvtm4~V-F1lmlDo4!?-mt`72AP!p1m23a)|D$(oN^joIPbv+ zpY+8x_|!4(#T~^hYq-B*3tlzd!#mgXE0>Pyt(|c;zPE_4x!}GMyoI`Shu4UUe>~iy z-N;W>HR65V^sv`B#;*f3%FPb^@J~KB&M)IlT>UpBWyQfsG50vg?E(9WvQIZ35>hvL z+k(2uJFqC=-W~Smrd1L*zoHTXPz5Wjs#=v{hQ7bHVF7SefDq-$$3+02tegBH#_Iya zKPeu%1qev|k16oyLUde67ybV*04ggX{*N~-D94CzCBP;iih2&gh6Ri~zJ7ATEKaM8 zC+|-ocjcdsudL8ZR2v!j)h=9@1;giqHPnK@>-ncTYNF_FP@_|YRTY)vFPzy9wq9ft zNMl}bW~(a1ynw;A1WlQ(=2TWFctjD2R$Mi`0xefyvn=0Y5(AAjV)ycdvjjgWIG$*4;G)l3XVO&&_IQ$Bc zRq{IvwNn`{Syfq4za&|Ru49V!i2DYbjQ<}t%PBib%{of)Uv&-UF4+y6SBXsm2}OUn z;9W3VRae@CSi@m^3#td|S9Y8#sSl}i>i1XBeX+k9`(o4T*GhPXle9o`|BX1i@-U-Yv@W{lTVH~YADbiC9l4S zyq|3^Na7%~pL9v$c=7&Xb47%I0|oph@F1Z2YS3S~!f{A(MGZ9Wi}dbbIXqiU=g@pn z(zw$Um^MrH;4z?FcY)~mTSZ@&Rn3B|LZ9QeqOuH;b(Q7XH*N+=!vf9CrH56P*Y982 z02Odu!ve6h1s;w4O&FJeRW;yFQ{Ck6kExs?JgPgB&!zs)I|^UII^Z242W6D7g7+>4 z+_PLt+}GjZy-)Jy_rj9jYnEUL%YGuIy0&ir8aO#>VLrGGwGDV|2D*x9jIG+LsyUU_ zCV4|`ZB;FjG;qK{A3X_G1kV`s6j;$}nefM1m9Qvp6H(DDc$1^X{w8gf4~z83tmEG> z6nq8+*M+GHh5l(34*ao-)c%o=Abx*`rT5PTM`iye}{{wx&z85F^q0jnW^ zU|fBx8LYK3SZnnVt+fLZ9itXhR$C6sFvP5a-Nr5*&N?ddH)#&8x=4OyPg;UwGT`lg zVKsT%$w?FY;~b3Gdxm6z>T~P%Z?}`xqgW%moGa`0?}T0VCFcumXP;b$r3?HKWoK%UKOhN~SU~^4P4GdA3#xuZW7r*$Q zhV{C-M!JAt)54hLBis&JOYO%>!bYWZOg(LiMO9&i^%h6%{hP4p5I*duxrHSGWC}#J z)>L9C3WFV-;oucbCHaZk6^0O_Y)C(RQDBsn$=mJ(fz!qqz^xt1_rG=sJ<8 zYUH~Ex*b*urx!d}o*l-LC+?V8ISoVf4xd+h9hLvza)~!pmDK2>-IC&jOMEqh4x2#+ z9cD>|IZ9cY7w3)XW1kyz6S47F-iTQE87!L&UM!q-;Ko^&3A6S%>XQF$b9sZ_YiTZ~ zd#dmKv!u1NY-?e^={0uEES#;QNh(GF7v29~d*1<1W&1vUmUWCcW-^WmB#}xeU1&SHPiB0B8VfexPC^ zy$@6Y(BlJ<1_8f*qG%j)k0DCzzCeo0j=ATgI7-}G0tw|a4k>SN1DFzln2;DFkPg{B zfv7w9pTh8C`0?*^Zd_#0BTWg%gc5;?V5DoKa3`0YGG&ECl?6cU zV>cr3mAGv5cM%X@p|u_fW5De)CJrc*kATzx?Z{kfBn%$dPzEu}ZX||757*}!YK{L- z!4Btwt&W4Oj_^w-(rs33MPLJMQCfg2W$0WP`m%jE|#56(U0jj}gx6 zW*uC%uod`4B`%%0hC+WR_V_xOh(V$XY7t3@U;Jv28gLbRjt-7H9l#wvLPdC^v3tBi zQ#lLN38{cLoU?#mtKgFa+`)|Bz#GinJKYcN8QJ(bDGo-E7-s>O#5fBKfW$ZpU^sI} zf6u7KZ{dz;VjIUiXF)8P6!lMs^iR;&cT7WZL_(loQb>Ga08Dq&RG7FgT=y6F;gN!o zn2rVaQ1|lj)Muhk9K(v5oAIAod=In9s>=DgDumn{3}!%yPD9ehMW<%37&WpJfR6FQUh5y$X9y`|Go@jox;Pl z_dp>!;jZiBsY@Y~68|yMVX@i1KFwbm0mxg03>|OespEL#e1d|!j_GT0pCfqwadyhS z##804fk^~N=c;bVwn^nR%}<&bp4<)~#%O;yy6`o!ahnF&t$%Zj`r#eo2OYwLFObiL zMF7XIOZ`4Te^jTsiJxck1mb`O@&Ov$AFTIRNF#K4;w;Y#fTTN*^#;sPbko( zILW+i;9<$?5IEvS0tkTsUQKj8{>_aqDNP}hBKyCkKP~)Av^E)UZ89PVWXhw7RXnt( zLV7kRt&rw{f_@4hih)GSYA7ofRJuZf*!;04pG35$`R2<$^J_4RSmwp39XDbSc2=fU#9Q|Ag-5(yzzI67N)qaVdn2n3N*#HlODMcatiDJP> zl>l~^KA+bq>4QK_qkc%w?AsOnp}KW5;J?XH((w)fF4ry2=Jy9@>jTDLF^~B;9Pi||A$=-#~7S);M2+i64D5R>BYjrpbfz}Yaoi)1(bGc>WZG#TCkz=APQ>6O*z<_vwW=E1qA^&tR_JOR|SmZfd zvT>-g0V+hH**q9>G=(Gx3eD+Dq5MbsgG_oHxqp*fb8w&mvTkzCl>>zxB8}QW3OHZj z_Huv7z`o%96&dH^@a6Ksx28X&Utd6aNk1NcU4y@W4d44W{GRtihSZOBvk5M^0e}An zzW3*gqc~Id;QKw$^r_iRK$DL{lg|fD5kN!O`nZ|YA2xp9zWGH_Z~~?x9Ht^Zn6~wY z2<{6-uVD|Rx(EQa;Q(v{03fpq+zDv(=kiAXu6}j>_6+J@jhpUx@-7^zT>zC7&Ld$= zcSrSjz?Jof?cMEI?E$XWSb}0?1g6Sxn9BINYTs{ypx0=Eg0Tby`)~;M0R%E!_Zl4+ z93ekO!4LI^-q{B+ID&Ax>b5PR*gOH)Asnzne5k4VO{nQb#!%>%fS?M8pb8*B1iXev zBgguK@AKS?JtXog`sH=hF&vs>01dKzKpgcDac>9css3PreIe{c#Jr9=g#&hqucPXI z&-;6kFt3~H@b}lj`w1Nl=6wBB^*P@kzxW3NxB79l}3iqZLq24dT6LRp)eX!5I0AHNL=u8LNszx&`(AAu3 zG%EuxM?u{t@K->ZmGD3i44lIf;G#HA9AKnhAkw7pq-GQ*s^*56s(B%%YFX$^Z7`nv zgi&rcejlWz(IEqvI11_C6tGe2Q92udQN@FR`|d|5_f#0ZAm0?h(h8OtOdmrD#ds!; z7${lXCn+n52+?>u&<;*5%-u$hYK1vF!Tp#x`&p+rVpVgDj+Egb?5`{J}p0O{OX;kWGzPeHf1W%2^GGH)YEr>dBAA16z4HY)>W1!f!myTD!NF93)2q|gbNv*cC=0o z{7@yJZ_y70F6Tb96TwwZmJksVLMwAnVPy&21|{eU`VHm7x5L6mFz^2sgh~+N@ts!G z`)zoyeBmAzgJ*#K-G-x4L`Z1{6%j;uSCzzfHuOC7Kk1ZIRe3Oi3gob-$n;q!G}N_WY2wpHC$jZ7Icy=gRiT= zOAN%9`Qhq~_=BY&Ck{LakP{~g`H2iREJS1hUQ!flK${{cOO@Tkoe>WUDu8hgUl}xR zxJZf1;xdT1krLq|RN}b>m83F+2Z8$)HUc6;EuZCeaui=JaGlUVZ$pC}brkkU{(pCg!A)_Bhff!;#2(e0#REI`< z`cg7UvIi`ftP&FyKh(~Kg&DF&*e5{6OS_QduxO&TT5NYEH1D*;2=LYSo(^N<5fKp{ z5zb6bU`E7GgSxKFh}5u%L^M-o8WW1gGUF4HVV(>WPmO0L#G@?;*Ci$-#Bw*M=?y@6 zZ8{8Xg2%CSfQ(V@ClB?Kh^Hg_k>|ddKqigv0spVl^M8reKBbLu#WF(@N2(+s6-a?? z#DhZyNET)ebo)?!$fU9V2^ig#hkxCzQ1O@mK?Vmw20&0m2|o%j2q0sW!Dcej4>8#4 zjP!R9MMJ|q{Ww1A)AtiU)e`DL;y~sKXksR)5QNAKjexqc5zN>Ge2&w!u!O{jzLcOrkS%jYOl&ON!3-xJ63z@wgT9Vn zLOpRP(kqI38!dx^=FcF4Q~>zog=hd7&SVM3#{EVV8v^12>{JPq2%8}#fhPL+BlJK^ z*g1I8KFnbdLQl1(C=nq>)NYuMON?%N7~rTQ?a`McaxSJnj4V~J`T%l=>KFe4@866z;uLrNYWHk;C`BKOmehiYzS0-CE>Gdo}uxDGOaQxG3kz5 z%2dcm4@3V*q!B;RD-@STRgOdA!y;6np=K=B2%G6p2X#D5;sXi`_e_eJ4iow8pmsAL z9bruam&XW`NMxY-Psph(K(xwTn9N;q3|4Bx=bl0!f`O+&(m|P|Fa(HyxJVEoLzo45 z_#v4OG%l7@hLQvm#4{1TK&w{pWP>oAf=~sT-pM5_Zjb^O4#FN}lFNTWWl;AQO(!HY z;o-eYLlayBlnRgrNc!->#}va8!%HYrXW zv(a~YJIai-LDORq#mooGkZ(RI9|6LAQXoKVgiCx(a!g1pctpD^(j$^a1yy6h9AhG4 z!>75#$3hX&zHC#J?{R3-tr8={AI0)u%3Ov&PQDSK(c*h_5(?-MClDW70&PV}L2N>! zaprBn5rhUjWk?-oxLUXn>EvyL93i$rrkFu%@#C=V4BKcz0TLEwj1bASc@0a;ZpHfGRf^fAuArMb`OaUi6YWdd52KIlA9!up@ox^7LXH6 zBH^O}zB$GJNN5iITS8M0$FM!9N%)2lY~US&P>pvB8g7jAUGN`h1z#5ce%WXV0`w~d zzr->C88IkT9iN+3pp>5eTbeY?B_0(34~v-AR~3i>B@lFhBxYi4NLYj(7>p>Xxrb|l zMy&%}lN)G<#TmFWG`T8uFqstaf78jlI^B?9@u%g$2^NBo3~(Uc1*)i|GzsY(Ms#jS z7nWlHsszpgV8ef~b(BO&Flz&ad*R#w7`hp8-MbXv`osx|ACJpR@@9GfD0~YxQPjr|CH=SyXX!evL$7dyGOhwsV85oW@3_wDQ%1S7K&PG9#QUOPFQ03724xsfQO`Zg+ z|8SZ?h;l7YNa9DV4!+Tn5shf5XBa`_=@O9jMwf(XVHEg=6>Gt+rUOai%QJ{0PPGg2 zvWdkSKu2L1Bff163<_zE#=w~f)}N8mGod^qg}8>T3sX7yMl>HA{wuYjFB8{yN$w_g zLJMI6spG}G`Def~6O$5tuxp3Wc>Z`Hq7A z0H`BWPdaRe5SvKJPJa)RhmkIbmgi9$?O#{=>a=MY8F+#IU_bFtP#D=7y zqTvj553~CW6RtHPll1=+&JZ38YvGHNNy5gUVzTs1f!|AzNg~~kAd!^FB>C=Lrp-)b z+Il4?B!RRbk%p2X7*femynbQ^=Tc*Bkwb-~g4WsarpWmw zg(P|;#P?X~$kGNg9erdT@9;stXoU`F4JomlN=jTwg{3;|y{wl@UY^nt>hg!3?uE*m zCqcN8NZ}&_qrgx|2@SM^IhRh~P<3<+$&0be%K&`5mK@ifCw$_!Q9~Qb6({d69zP z+X1Q~c|jG(F|fd25d3|FTa0xgYU`0(-wE|Ux?E9o9AVD&;n)lBL zYFPjdNJbT{Dlu?ffL(+SjvtrWMejF;N~Re6vEa`XDpI3QIu1L+Fsg`ws(YhqCOs|g+ur_# zIhv#fFr#%7QS~sQ@*7&I6=5$5Dy1X?jJ(xbdyX+l+hOn<0PHMi74s*(!sOQbN`$te z&o+|v5APu;C>-7!2k%XS<*UGl1E0R_Ws>&58&Ew7CS1vcYZ0tO9Uz1;v{*A*Srt_( z;eQ?z)^v@8Ge3JGYEcqU2m0=*;DsP1XbCMViQ12-7h#1*zi1DybMup@_HVy<0;eED zl{>VUYB(%ujA~5wP{q&j)UzBk6CZs<>rgFL63Gmw%^#oFn?ip^pJpJJ$*>qUs+@!R zDipARYE=K(y=WZ&?*}kYMkS$zbDM~v{=X>s{|o~PNYGL!B#bjkKu~1ZLg$4a#mPdH ze2&!zjAQi%R-R*tVj_Y9!zHK`MFA4#CP*JHNT!iFrW7(Q-wLz9?GL3$3AL{c-k$xP!JjOVv8WHg&aY=5u5@7>9Ne<4||zQz>Lv8VgcqNI6y+ zJ{#Xw?rFvQA_o)i28;~L9Ah(Zh^XUfg3^@nUMy)$N)UF0rRl!lq=kS$azZ>y5|cm& zg`|bXMTEyC#D}v~FeP+^F5P2xGLfagRrOhFm?}C?l~(9hshQp}aS^)UM~q8kdfM4w zD)QniV-|*)g4@vuGnoLprWmVx7h_la7RbagQ3RQ&G|hdC=Qx%ora|ng#M{LrB7cs( zmjlzm%VUJCnS-6KA!cKwYsxY*VrgJQh!!dRv_)PKNz-G(A}|hlFh7RL0wgMjJOBuS zOs8$D(RU*@@A6j`H^~1! zm2$pr#Ij=-+VjWczE9b8>Wwz@rA2D^hDSOlSSRmGuDf$^ZnppDlu>UxFU`OBP&{w! z?vK-hwFmAoYIk0yeXENC6iwd3A&US;1TbYlDb!byqsgQ;JsYhj)XvdJmy&<=W!(v* zR#91;hLnfU6fn7TnIT4mF#z*M_p8#}F;~nb-znc=pa+^b@DVpriWWw+K&xkaUlYjp!05OQ1?UxCHYP6oyfW<|mSA zZrEtdnYWKo7Fuv$Fk{AypS>U==}(@Vj7cMSHE3cOo%cwpFh9A#fCO?OlZN?MmyHcF z%{!Y@5a*XVe@^}Y>*v?m73Yi=Z;r0@-FQ8UHs{uzxo2M`-N?RiKd$g}pwI(JLz_$? zlIY#5bFIj<^`q-%>{mV=d*1IT_OhUQ&(-_Koxbfpu=d-+LrwzB!*P}h8O!76$lV$~ zthvdjY)HlF*@x_ego7i#tUkQ*b8hpMi)IVf4$X1P8B8flxo9N(_*BHQhx0xZYY(1l z|J|8pd&|sCeeyn^VTBVn-LVs_P`kUBG_PXD*n-j6GOkMjwd}U)l+1g zc3j)RY)q>Swb$~tTe7LRqp+rAcifG7!}{Bncjfn+HEmtv-Et#j&Q^M^zvsi1xlfPE zZv{5i25jtF4;v%Xb<+0SOq;cJ7bqv-Nb7|)EbX^2iy@dAG3XV020e<#F})zs04aL+Rv;lA38Rr`u6z&f-+J?u>&_93v&0)dgSiexa2}XNbwBmbxI}e z;>jONe9~IAK6+g#pBdKlJ~!`R+byTgSj)E>nH5#^T3X4{*$bSfD}^}j7j42o}75KA( zO6B8LS>Nca=R+?%i954=`QhB`LWK}hBWx@h+)^~)7e$VkJ*!v$7-B3$N&?cu3|YqJ z#=|iq%+%b_7}I5$M26@Zg_&Twp(de`y5`{qp{%fQ%-Gz_=m!RPPOA0nm3?x4&TQk%h_GjwRL;Y`@G<~ zS*L1dua9Y0-`06wqMTM#NI>=_%iyT zqMpDmPbdBC&uNV+%uazW?I{W}pOa_@MN8I&w@FPL`@&OUAAfwzSxl@Oq zPcv@yebxLz?xeyQ!HSWWLgu#|u+PffvJm44Q~|#$BKRFW#Biu0uC1|pAqxw_6*RiY zilJF6-{^#s2g*@FxUmKzy^-&rNVn``>0-kP7N*|A!p0>)CX*e=Dq<<%2&PR+a&$sc zOmZ5om0_5fABx< zM#A}Xub)r(mM16K^k77ChT=i}e1o>{_fOb*47r{}x?}81&pNw@>GG~4dY8NFlH%$# z*Qx8Bgl>P;c(5@g^U{uK_VaGC@4T&kV^UNf=y11mw`G%7be>{KandxO*YdfKz8dEy z<=>bdq%y-HV}Y66%gM+R&$Amq-q8s|!!Sd-YVbTZ3 zf=vwp*+acrXYLsN#_^J=h1sTkGXjg{H!V3Qwamxj_%4wk>Qx>Gn*WRyD5) z9=VN`u+^ffQ5PH7eUS`>CZ<9MuLLU2WJj|3ftN|_;sjg!Xy!fEkp42PneMg9|4|X< zN$@fk%n5VIx68L#IO^~7vTk}$0@4lx%Eq~vH;-!p7jwpdDf9M$i<$jBE|!!qEg>=) z4Hz_D;HiE27llmnH@BKM)UotMf_1sU{>d*S^y9a=e0&j<((X1=_om%$(QoIT>9V#A zIX~NTO}g5|U6%T8m4(}UHatu`a%f*?+J2X$k5NGnx2M%4Mi-vgB|6lPaz?oA8xu`e8Z;nTA%em?is zQylE|gWlcVbB$vV|D|Y^^rIIsPq!E99IYEJDG{-B?Vb09pBY0%BFu7M&r}_Kq@mfT z^>XTJg}{1axuAP1m0gzV9^GwZuk=zNn3 zvFM)U{qT1Q7agx%m4B9Yini}+m(By#MVoffyQDR(cR%{nynUYI5usqGh+u1vGTSzf z_KN9gjdUZCIHh!!YKw&Ty~hPzkDVlUhp+kWDW^BPMnG+5%PJeqn3F4)t*T$rxL$3K zc;JSP!aWP4GsGtA9+^Icq`Z3f8@X8@mN!XrL!BBfX4W54 z_$-mM~Kls@}$zsWwx}!Pg`SGM%~o9>*!Us@bY6VM?KA5 z3&)HfC-#V{(=|CK2aEsXtv|N$^V}PG6|HJ{b33m{zZE{{6*q35L(XPr(rBkhDNXIj zZF!Hb3bIERewtq*7***w2}eCjvyI%QAc1tdw#vHjrvA&y5*>3VN2RY|pB%{agQ z!N`o21tFCE%Hri;KCa(OzBt&``}-$>lP8#>Jnp>{xOd5)aqpiR!as0t$!;bL+#C2g z31hE8ymbhTorAHLq|5w_{T753h5UB)f+Lx>TdrVqe(`R%X@2j7r1c{H$8i0>Wx4~d zCG!@Y45Zqd+U;@4R?)*0Mu-*BFJ_aiNENDd#+x(w=MY z&9rXuJyPnoPN`X$yl~f%)HjPSw~ZvfY&p7&E>O3`xuwHP_THGCD;_;vGWmM?@h7=& z1oanCpDiDzJ~*-K!?YxTrG3biCwDR^vLI)$FJ>QI6ChA7?Iu@cWi14qfNSO zBBW^W={#%nbe84tB+(A9tXX~DwtV|`jTCg#TOGIzW7A+2VI!puXhSpoE#Hn&RM9=6Pxnx)I_*2`Q{SS+_B^w{|sGT~5F?719#klOL6CCYi zswyhV+@tC?+kQ_^Q%m0@i$%8DGA1e3Z5ph0+3wl!XGh*SpVzt8XprtUbeOYx(1hnc zueRP_yYcLZgle{CvY^z<>1s9WImb1<50p=~%qo~3vM;_sdTY%Nrw&HK*F^@gd%ryx zTbDhgKC*hF@*j+FiluI;|FT1m)E@6II~%qy)mz}2jh^SO+_K`-ofY}3QxtEl_(M8n zu)e`I;rRT3Y>k@ySM$%R-FTrgrheT^m!^;8h=eTBIdw60PvW1K zKG!o1{JTA_X;GF0#(!28DTBNlX)I6%A5;cASICHF9FC9G94qKpKHAUoB{rMy5n`-( zEH-~!y5~>hXgzT(yz4-95XKQkqJzG$qQas8i!2E z$o<5OZ*lw7QMrQDT6@Pg;dwxe#_oqYH&>d!ZPh6<4xonGKMpIap)Lu(?c?-xghT5H zLrt3}%OtYHv%@uxpH24Ka%Qr&VwcA=eaav8Cn=ljsUEf~zk4WHjhmQTXSrDIn&Fx9 z2bY{)%R6+^J9ntvOd0n1o`>!mYx67MVh$G=w#&7%~IyG z6kO@ItgfAAZ(Qf9sekrE$?ipIIi~eFLk?{pEOuO+YPm>dtjCI@8H*gYdYg3y?z!<@ zooVpiCC>G1xLdeW?pGdALo?jXaE z$fD76g9|uA6EF@%y{GR4SsaQi9FoGRb?LvR9sE2}!AGkTF@+wesVvd%9U(GMYBwzk zum<4XHidVOmZ{XX`%_Ca1!l=^H}wB}tMJS&a7J|3ruA1dOmb_(uPW-*c&J(LPZd`i7mm|4%jjYV$d9yq7234qUQe3)xv|pvo zHC<-qB%_V_qLV1!Zm`nK7aKOUeGN&fkbZSAQ9S91%UTuvfO~B@8Mjy730Q1ZIa2c5 z>$@joCltp$ezey=U`wgkK_S`VNg`n%hUBkR`DF4?k~%*jY_67ZLWQB1a{KM)M<-2M zHp{_r>ZmaHXM(;Po(yVCZu8FkByX6MQO}wv#do7ykJIOcl?n7S7+HjPMxJFSebtW8A0@`5>Kqw4e=uD2F(kL+8u)v<1A+m*BNWYA1 z;Z6>|dudG9!83NsejWA7@RKBS^3f$tyCWSuSw?e4t-L{%`Q|oMG@m2B0#t5EP`NvM zT*Rbsr}?=H@7N54%zgNT^Y^MKfHe2FxM8)hp`cqqq)WBOztY=9jB@H&ynvU1nE`0$ zM!bMm_wN4?Kk-Vv+l^1G*4!F2AUw!@o1eSP$d5DUf3c8ajd+!HVzjPJvGc@xj7_h0 zMrs*dpEGRyEI0Q>Z;rj*dv%=b;sX`JhZcK^-kaAoStS2%6z$aO2URHwOzWemI%|FI zy?n2C&&u}G1XXMgS!PigXaCszmbi#-9~J0JusHV-CADu&bYBMP?coHhvjZfv}%ZcdGvzw<%K$X?nD9Hf2D8eaQ9UlRW@ck+*~;AogR-y9-74uRd9=AsDg5&vdR?cSBISR`Ygh!p@AY)Jl6sgkmm_bH(@fL*Tv6gDy^gX zh~fK;=<`q09Y6Y(UK#u!_>4`A42Bz-N0@~fMjGlG7#f@F8kt6#=!O`EM(CP^nS~jd z8neQTLQQ_~vpC0xKlT*3%Gn`rYC3p-+_tkRlvTeDn*B7Um5?|MkDCE?cYAaZIR~LH zUCdM$GsAr?Av^?tuVp;u1uf$S(ZJWjb4vgE1-!V~pS&U&R1ls^ivmexd~s|T-Bb?f z-kB|8;daXR0{3K(T%f*xqxFsI$Xx-x#<$+JjyUG9R?_{>zMMzrrjKQdbX2T#fA^m8 zsM=XmW=DeV%_$kzPM4&8xvDY9@$7U;rokRh@6Xgv9CGdAiZF%IVUNqd$&3^`dG$^D zAq$OX!FxN#AHHimT0r+jd{kJK@zE;vPsi>(J@tw@*i%Me|M|`P>b1xp0uIy&8yS`C z9yz#chWx={^IfNm^iC>n4T-nSS(aUsR;BcG$7-d`vL-AG6~7>L5sM;`P*p?G8(%N4 zIya{Bw&CHNkJ{KWYE-Al{zA`;r()_Tp3*pi~Q zEKs*{rR`ha?OUV@G+oCYI%q!``<^^B`BYZR%u~L?MVzL@#doDOT?KsiEgJHboV3OV z8?bp7d3~vamiln!`(4;b>?3VRbd8{j2S&G~tV=Cd7A*0wEYOxW8Pu@&!=83>rBRNT zv)lz*sN-w;+{d)$Ve@5H)^EAeI{cx=^0EOg?uU2yO1%7Vj{T@*4XswZh4H;^**e(( z+LuD-O`l%78rNTEKbo@CT0DbJs-HXip!1Hnr)PH5nc9cvV}q(OQeaep=WyYIduH#% zz3y_7JXf{feIY#~WnDaj9GJdlo;35O%k7vbgRu{r0_Lqc_ElbI=b@27RT0g5qm2q5 zOf9(>vp1wf{;te(4C4sR1Xp?}&kZAya|IU#)Lz7bu`_>*EC5$IAq%v7WWld}?LATf zvK}yy3dZJy!^Q;PWkC!P95(;9)Z$S3CNx0#RZtosp#jF+&W_JXl1h5J8{>CyB;AcF z-yHB$+iW{%*pz1zJa-%tG*hIxRL(morgG18%4tTUXouN}wSr}J=GVzGEZeJD;%VW3 z%*_o}k1gHgvf)|uq$>~Bd+nv`oGiVyefXZ4BBeK1`=1R~6nGXnz13jcP=@}~ox+}% zD(nwVY&@k$P1za!_FUZC5rGAA?;ISQv;S(fP-F>tQXC^f;z4ti7`q4!UJko;|TOYs`Gb zHwF6sk8(!p?lJVMJ!tjK;A#ccvV3pp3bVOaHm2*m_wZS+W~_12JU)D$SLKEQy9W-L zf9_o+b>WhaK^>RJ)nw=XQFTl$StCe6>%e(UEi;WZ=A%t6%`RWDM`=jO_Qq8zUP8=}SaYjWaskv$wg%fn=m~2J$pljn@ zpPCm8cs9hPO5u?GY==k3PbST5N_wjPpvG}+?W+??zIQT~w7I)rB|DcsXbad}`sH3( zWXth9_N?|B?XFK6qiq z3+%H_iMZ8XE4I^5UiC4)GnMJ5BRw&A)jF#&hVyTiWy;^*}Btn0)tq*M%;BKb!!=7sf4k{2?&bE$o6Y!yp3#T-Z(G2{#aS<1kOmgSQXD z&i3yG7XIY<$ryVx0-i}@=V9zzjJ>?up{GX$H4z)ddmV)=XZUBYL&7^eA#56Cy~M!W zjI^-CX?oGgahP@Y11Ol0iUCuZFCRDv&ytOWOxQ5U`wW6C&}7JgMY+l-4;E!D>oJvk zF;raoM!i{Byr#)JO;PV^V{+8s^`fh#n!{GCwOu{uN}5>C@rWQj9jnfhNeyus-;R!I zrJo&H(Q|yG*oxU#6kV0xTG%cgce(8Al!sPAdfMxs zSPm+_wqJQhu6fI|@Opd8)R{xxO3&Gvlbo^S-MOI@$6+THNggTME+DqPJ^FLB-m3gz zqlQiKa|u%wiHV=EX7!_tcgL2!bsT>G%gD>s#;@Wv_B<}tY`=W(twiZst-Lkv5|*NG zgtKm_o-|Ns>8RDc7_e!di#h!?{lw|rdmit-bw@UHtb?DK!BkDfdFAgkJMZg^V8*Q3 z>z@@JpHOlz`J}ag;8yZ5Ei29_Y4=FcV-@c2o0rW~N|2r7P%{0o^{|L7Cnt^zU3gMC z%p`B&gWGRA-^dlL(`>#_oOk)<#4wwO0YV%8uo9dh*dSP*qAGJVBxHZb-P40;M<3Xn zkPFIy0>^6qw|T`PuFjHc(^W5%v}?=P7msq7p<;acN@3yVnKK7} zc3!2rv&(5n`uk0tHB%0{=C!;?NmXonZn`#2!S(x%iXqV{Pf9<3S^PpY{dvsD(l1y$ z&28y}2Ptu3%Pku=`gn|~N%tLGkSb-MHuIGYy?j*Hw(~_3j~8UF_nqqF;p}kCwtoHe z0D8Lfl&@)faVzgiGNkCLy1tna}QmbVoYR zlQodW0&h9_|K2OsV;zgoSc7TIDw9P4CrT7D6u*kE()qS`__rbU)twhqnqCUXPp^yK zt?^&yAscyQb#vQGL)}jOS!F_Yi^aq2$saZrQQR6O1XB;DzrFbAjMV&xV#^B>7nLvr zDj%+$)+O-X@%+xXm2d2JpRgM7^7iP?IhG&pT^|_1>Ldw_ZZnM9N^;7tX)>KQPA0Fm z%w=P(Rr8Wr)pARdmA>W#Cv6IS7*MSzG;?@n#b%}TcPn3KgpJ+5`-M|t9W92!$xjTr zR6pU7@S|O?gs)qbvN>ngCrMARNo88N-2ji0})Af=MII`60HlJ4hEa7r^e04-vsA;ad_Xh0)*Qd;yeQ&>u z%FCKZRJBy^XHw$Y1srL2j3e#RZNgEh;Q5d?hhxS+cs`_u!lA(wGPSSggG06y6y=eW zBsf1fWF7D*X@PuH2kPQJdcHrMN``EkAKfN2rn2Ma_BB#kt5#q0-88Sx5{j`>{ zHnB{_0x9=7`_@wgeM%@|`&1O9K`xnKJV%$Ap0TOn1WX8CkWL}L%V!@hVjuX|Q)ull zMP5Eh)?*t6Y!I}Hn)g2P7FPqLuXdhZ`r#3gA+W00-_Tz@VFp!?{)%QL{w@7g=t<^S@s`s~YeuoBQY|-bDNswO zc(L{Td)CoQ0xjFWefEtTh*g}ZjjW&i;QiB%)ao#$e$ z`FFvLMbpn)TidL^8z}!h@Y5uD<2C9&uF0=#CF@FS=AEAR#&phvQA%&trj1@cj#O$k zK>odc8av|F_We^How@ko>`YRED`u}g*y2(gwSM;c;@ZfZ?C+C9=iRFvExLSYi+S6?(Nn`V&QgmzxnWD8#pii*R!`1J z-5PhLdBZ2=FJ_Io?@kxfS1&B8-lVvPW}9(nfBO2tX3YH>kHgzOzN?uV=C3herk=U) z^unn-1Q!j+lB*0Ukvg}oQNn3mdhO*4C6`~#$>?YvIaTDr#N;)Dg+p$ad8#B-ziuWy zc*+tgS~=olgi~s3=Qih^AMYp44VjWKV>|m?iO4SVBWR6O z8~3J#pN6g5A{B{UJ(6tT`XFr9`?ZVo2c1zX_20keuDwN`=hT}8S8B&UjJfZ7yx~4} z?Cbd_?p@+F6URK;s4~z@zv_~ofZi+dd{5)suS7JJu2;-8RuQheZF1*o(6alYj!wu8gyI(OQlg1wc#tPN~MSsxE~J@IR`{=;X=>8E-?T=rRj(k5vnjPbyY|wl-Twu!;y+fVBT^~xOjq-N2RCxbk!;SH-i=+Xg|X@dr+Y_FVb z8gZNwp`2-^VQ!f zGsO4qja62e$0N(fbtrBOJAQ&Kf^@Q!`50|~&zbulw+B?O8*wVNO*u1V zy-~wzfxC60rn|PQY!`4E^Vzjtx@cC~JMC7@i$~Ts$!?imw0l&k?WNO}HAmfi&QCYm zEl&5B;pqampA3JPhjktB6bzVKKxr$?_Lu;`pzWu@b#}*$4lqvNOFBQj)?VnC>BHNfjn6VjnhzU*bS!0xY9= zd%U_iHdtW**ZeaxFf=qaU`^;gV9q^&%>X5fh(v;|2?2b4(EjM$2Y}xmwqdnE3Vi|v za>K!Hgl&bH#05SnhtUNle793r5a;gB0m6;fd^#qKZllUQ3@+ep3l;p3c*C2|X2J5B z)86`Rk?jjVn`mhx%_zJ21(`ccpJ1A&L)v7Hn|FQN@JH&%37oV$Tkdr(5)jgmIVUi_ z^0vdA^;O@~-b_*&Sx{Q$yW()`kKDM9x7 zv*_$DACv2kBV!+4h<~@fiZ*OhW>mP`jyy@bLebX56p>w`Ou5f@U8L*OQnoIph|N)Q zZW(xV56AnBg2ppf6XOl5$NLX0z9G1d@ysP}r}dG<)&ob(1k&_PZqIab8X+7qJatHx zXqdXl=#auUZ?7N47752RcB<`DJ~-*Y)YUbsnjc4Ny*sjcU-+9zdssBPq_5{^uKM2P zrn)w07^K;}hr#z6AABqST~m;7jQvEj;dhL2$Of2Vx5opL!^D5^X<)rQT@?8eqnnkJ zw3{^qo1WIx?$oF?3hEG#4!ty^#c#u`smn2T3*Q4MVl4I*jC~1XpU2qcG?||bU&vX- z*y%-c{~M7732zatd9ro3TjDA658AD^`XC#y$K;nt3Xy5R=a%8%9ZZ(p!))u7x-u2|=Mhq8V46XW1>f>rI>)O@jlR&Jk~ z_6}W~d-RBDNtj!El*#^u%QP~~n4MS62eLL@)zjYmY;Kx~o2|^Mj%iU&9g_|=QPLJA zcE$=?oY0@IIN+M5{7}{Lv2BkI7tLy0Z(*0~(@@~)ecMIVr|?cib0aev_u7z1{|6#D B&&vP+ literal 0 HcmV?d00001 From 1033da5a14208f97969567e53247acfc1bbc3c3c Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Fri, 29 Jan 2016 11:31:48 -0800 Subject: [PATCH 22/27] Fixed couple of test project nuget references --- .../Commands.AzureStackStorage.Tests/packages.config | 1 - .../Profile/Commands.Profile.Test/packages.config | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config index e66b0eed3c46..6a7452687e4b 100644 --- a/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config +++ b/src/ResourceManager/AzureStackStorage/Commands.AzureStackStorage.Tests/packages.config @@ -4,7 +4,6 @@ - diff --git a/src/ResourceManager/Profile/Commands.Profile.Test/packages.config b/src/ResourceManager/Profile/Commands.Profile.Test/packages.config index c17ed8d2d7e4..3aab10c17b8f 100644 --- a/src/ResourceManager/Profile/Commands.Profile.Test/packages.config +++ b/src/ResourceManager/Profile/Commands.Profile.Test/packages.config @@ -5,7 +5,7 @@ - + From ca4858ea94fa357f6d5a4ea0e475755fe466ed10 Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Fri, 29 Jan 2016 16:03:48 -0800 Subject: [PATCH 23/27] nit fix of referenced assembly names. --- .../Storage/Commands.Storage/Commands.Storage.csproj | 2 +- .../Commands.AzureStackAdmin.csproj | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Common/Storage/Commands.Storage/Commands.Storage.csproj b/src/Common/Storage/Commands.Storage/Commands.Storage.csproj index c432cf01b5f5..ae48d349f257 100644 --- a/src/Common/Storage/Commands.Storage/Commands.Storage.csproj +++ b/src/Common/Storage/Commands.Storage/Commands.Storage.csproj @@ -53,7 +53,7 @@ ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.6.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll True
- + False ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj index 686628bdf993..79e76ed58ed0 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj @@ -80,7 +80,11 @@ ..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll - +
+ + False + ..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll + ..\..\..\packages\Microsoft.Azure.Common.Authentication.1.6.1-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll True @@ -92,11 +96,7 @@ ..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.0.11.0\lib\net45\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll True - - - False - ..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll - + From ba25fb2bf36d1d725614c3110260c9465953e2ce Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Fri, 29 Jan 2016 17:07:51 -0800 Subject: [PATCH 24/27] Fixed casing for AzureRM.AzureStackAdmin --- .../Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj index 79e76ed58ed0..f5cff5d125c9 100644 --- a/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj +++ b/src/ResourceManager/AzureStackAdmin/Commands.AzureStackAdmin/Commands.AzureStackAdmin.csproj @@ -19,7 +19,7 @@ true full false - ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRm.AzureStackAdmin\ + ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.AzureStackAdmin\ TRACE;DEBUG prompt 4 @@ -28,7 +28,7 @@ false - ..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRm.AzureStackAdmin\ + ..\..\..\Package\Release\ResourceManager\AzureResourceManager\AzureRM.AzureStackAdmin\ TRACE;SIGN true pdbonly From 2e61316f9d13a7a914ec9007b2963104f3d8a9de Mon Sep 17 00:00:00 2001 From: markcowl Date: Mon, 1 Feb 2016 09:54:17 -0800 Subject: [PATCH 25/27] Remove invalid help for Set-AzureRMVMChecfExtension cmdlet --- ...rosoft.Azure.Commands.Compute.dll-Help.xml | 562 ------------------ 1 file changed, 562 deletions(-) diff --git a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml index 44897d4d51c0..d76987a88f0b 100644 --- a/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml +++ b/src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.dll-Help.xml @@ -11754,568 +11754,6 @@ PS C:\> Save-AzureRmVMImage -ResourceGroupName "ResourceGroup11" -V
- - - Set-AzureRmVMChefExtension - - Adds the Chef extension to the virtual machine. - - - - - Set - AzureRmVMChefExtension - - - - The Set-AzureVMChefExtension cmdlet adds the Chef extension to the virtual machine. - - - - Set-AzureRmVMChefExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. - - String - - - Name - - Specifies the name of the chef extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - ValidationPem - - Specifies the Chef validator .pem file path - - String - - - ClientRb - - Specifies the full path of the Chef client.rb. - - String[] - - - AutoUpdateChefClient - - Specifies if the chef extension should be updated to the latest extension version. - - String - - - BootstrapOptions - - It overrides the configuration set in client_rb option. for e.g. node_name option i.e. if you set node_name as "foo" in the client_rb and in bootstrap_option you set chef_node_name as "bar" it will take "bar" as node name instead of "foo". - - String - - - ChefServerUrl - - Chef server URL - - String - - - DeleteChefConfig - - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - - String - - - OrganizationName - - Specifies the organization name of the Chef extension. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - RunList - - Specifies the Chef node run list. - - - - - ValidationClientName - - - - String - - - Windows - - Indicates that this cmdlet creates a Windows virtual machine. - - - - - Set-AzureRmVMChefExtension - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - - VMName - - Specifies the name of a virtual machine. - - String - - - Name - - Specifies the name of the chef extension. - - String - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - - ValidationPem - - Specifies the Chef validator .pem file path - - String - - - ClientRb - - Specifies the full path of the Chef client.rb. - - String[] - - - AutoUpdateChefClient - - Specifies if the chef extension should be updated to the latest extension version. - - String - - - BootstrapOptions - - It overrides the configuration set in client_rb option. for e.g. node_name option i.e. if you set node_name as "foo" in the client_rb and in bootstrap_option you set chef_node_name as "bar" it will take "bar" as node name instead of "foo". - - String - - - ChefServerUrl - - Chef server URL - - String - - - DeleteChefConfig - - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - - String - - - OrganizationName - - Specifies the organization name of the Chef extension. - - String - - - Location - - Specifies the location of the virtual machine. - - String - - - RunList - - Specifies the Chef node run list. - - - - - ValidationClientName - - - - String - - - Linux - - Indicates that this cmdlet creates a Linux virtual machine. - - - - - - - ResourceGroupName - - Specifies the name of the resource group of the virtual machine. - - String - - String - - - none - - - VMName - - Specifies the name of a virtual machine. - - String - - String - - - none - - - Name - - Specifies the name of the chef extension. - - String - - String - - - none - - - TypeHandlerVersion - - Specifies the version of the extension to use for this virtual machine. - - String - - String - - - none - - - AutoUpdateChefClient - - - SwitchParameter - - SwitchParameter - - - none - - - BootstrapOptions - - - String - - String - - - none - - - ChefServerUrl - - - String - - String - - - none - - - ClientRb - - Specifies the full path of the Chef client.rb. - - String - - String - - - none - - - DeleteChefConfig - - Indicates that this cmdlet deletes the Chef configuration on the virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - Linux - - Indicates that this cmdlet creates a Linux based virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - OrganizationName - - Specifies the organization name of the Chef extension. - - String - - String - - - none - - - RunList - - Specifies the Chef node run list. - - String - - String - - - none - - - ValidationClientName - - - - - String - - String - - - none - - - ValidationPem - - Specifies the Chef validator .pem file path - - String - - String - - - none - - - Windows - - Indicates that this cmdlet creates a Windows virtual machine. - - SwitchParameter - - SwitchParameter - - - none - - - Location - - Specifies the location of the VM. - - String - - String - - - none - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keywords: azure, azurerm, arm, resource, management, manager, compute, vm, iaas - - - - - -----Example 1: Add a Chef extension to a Windows virtual machine----- - - - - - PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -RunList "Apache" -Windows; - - - This command adds a Chef extension to a Windows virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. - - - - - - - - - - - - - - -----Example 2: Add a Chef extension to a Linux virtual machine----- - - - - - PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -RunList "Apache" -Linux; - - - This command adds a Chef extension to a Linux virtual machine. When the virtual machine comes up, it is bootstrapped with Chef and runs Apache on it. - - - - - - - - - - - - - - Example 3: Add a Chef extension to a Windows virtual machine with bootstrap options - - - - - PS C:\>Set-AzureRmVMChefExtension -ResourceGroupName $ResourceGrpName -VMName $VMName -ValidationPem C:\my-org-validator.pem -ClientRb C:\client.rb -TypeHandlerVersion "1210.12" -BootstrapOptions '{"chef_node_name":"your_node_name","chef_server_url":"https://api.opscode.com/organizations/some-org", "validation_client_name":"some-org-validator"}' -RunList "Apache" -Windows; - - - This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and runs Apache on it. After bootstrapping, the virtual machine refers to the BootstrapOptions specified in JSON format. - - - - - - - - - - - Example 3: Add a Chef extension to a Windows virtual machine and install Apache and GIT - - - - - PS C:\>Set-AzureVMChefExtension -VM $VM -ValidationPem "C:\\myorg-validator.pem" -ChefServerUrl "http://ipaddress:port" -ValidationClientName "MyOrg-Validator" -RunList "apache, git" -Windows; - - - This command adds the Chef extension to a Windows virtual machine. When the virtual machine launches, it is bootstrapped with Chef and have Apache and GIT installed. If you do not provide the client.rb, you need to provide the Chef server URL and validation client name. - - - - - - - - - - - - - Get-AzureRmVMChefExtension - - - - Remove-AzureRmVMChefExtension - - - - - Set-AzureRmVMCustomScriptExtension From 991e6f14a022e8a796ea15c604f31009466f1f07 Mon Sep 17 00:00:00 2001 From: Hovsep Mkrtchyan Date: Mon, 1 Feb 2016 13:26:04 -0800 Subject: [PATCH 26/27] Fixed AzureRM module script. --- tools/AzureRM/AzureRM.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/AzureRM/AzureRM.psm1 b/tools/AzureRM/AzureRM.psm1 index f47ddcd92d52..fa72792b0b69 100644 --- a/tools/AzureRM/AzureRM.psm1 +++ b/tools/AzureRM/AzureRM.psm1 @@ -179,7 +179,7 @@ function Import-AzureRM $AzureRMModules.Keys | ForEach { $moduleName = $_ $_MinVer = $MajorVersion - if(!MajorVersion ) { + if(!$MajorVersion) { $_MinVer = $AzureRMModules[$_] } $_MaxVer = "$($_MinVer.Split(".")[0]).9999.9999.9999" From 8411c237eb6f2627ed85005993c8758606fae17c Mon Sep 17 00:00:00 2001 From: Hovsep Date: Tue, 2 Feb 2016 18:50:06 -0800 Subject: [PATCH 27/27] Update ChangeLog.md --- ChangeLog.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 689275dbbf63..210d9da70c5f 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,4 +1,4 @@ -## 2016.02.02 version 1.2.0 +## 2016.02.03 version 1.2.0 * Azure RemoteApp: * Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters. * Azure Stack Admin: @@ -6,6 +6,20 @@ gallery items. * Azure Stack Storage Admin: * New module for the management of azure stack storage administrative resources such as configuration, infrastructure and health. +* Azure Operational Insights new cmdlets: + * Get-AzureRmOperationalInsightsSavedSearch + * Get-AzureRmOperationalInsightsSavedSeearchResults + * Get-AzureRmOperationalInsightsSavedSearches + * Get-AzureRmOperationalInsightsSchema + * Get-AzureRmOperationalInsightsSearchResult + * Get-AzureRmOperationalInsightsSearchResultUpdate + * Remove-AzureRmOperationalInsightsSavedSearch + * Remove-AzureRmOperationalInsightsSavedSearch + * Set-AzureRmOperationalInsightsSavedSearch +* Add-AzureRmAccount fixed issue with wrong credential message +* Get-AzureRmSubscription cmdlet now returns paginated results +* Update-AzureRM now only updates when need unless -Force is used +* Added telemetry to ARM and ASM cmdlets ## 2016.01.12 version 1.1.0 * Azure SQL Database: Threat Detection policies: