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 30b7f8f0cbe0..24042b99ea64 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 @@ -50,6 +50,20 @@ AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -104,6 +118,30 @@ + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -259,6 +297,20 @@ $vm = Add-AzureVMAdditionalUnattendContentConfig -VM $vm -Content $aucContent -S AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -375,6 +427,30 @@ $vm = Add-AzureVMAdditionalUnattendContentConfig -VM $vm -Content $aucContent -S + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -527,6 +603,20 @@ Update-AzureVM -ResourceGroupName "myRG" -Name "crpVM" –VM AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -578,6 +668,30 @@ Update-AzureVM -ResourceGroupName "myRG" -Name "crpVM" –VM + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -730,6 +844,20 @@ Update-AzureVM -ResourceGroupName "myRG" -Name "crpVM" –VM AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -799,6 +927,30 @@ Update-AzureVM -ResourceGroupName "myRG" -Name "crpVM" –VM + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -923,6 +1075,20 @@ Example: AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -976,6 +1142,30 @@ Example: + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -1080,6 +1270,20 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -1119,6 +1323,30 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -1247,6 +1475,20 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -1298,6 +1540,30 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -1341,30 +1607,36 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; - Get-AzureVM + Get-AzureStorageAccount - Get the properties of a VM or Get all VMs in a subscription + Get the properties of a Storage Account Get - AzureVM + AzureStorageAccount - This cmdlet allows you to get the model or instance view of the VM. By default the returned VM object contains the model view. If you'd like to see the instance view of a VM use the -Status switch. - This cmdlet also allows you to get information about all VMs in your subscription if no parameters are used. + This cmdlet allows you to get the properties of a specified Storage Account or all Storage Accounts within a Resource Group or the subscription. - Get-AzureVM + Get-AzureStorageAccount + + ResourceGroupName + + Name of the Resource Group + + String + - All + Name - + Name of the Storage Account - SwitchParameter + String Profile @@ -1373,102 +1645,39 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; AzureProfile - - - Get-AzureVM - - ResourceGroupName - - Name of the Resource Group - - String - - Profile + InformationAction - AzureProfile + ActionPreference - - - Get-AzureVM - - ResourceGroupName + + InformationVariable - Name of the Resource Group + String - - Name - - Name of the VM - - String - - - Status - - Allows you to only return the Instance View - - SwitchParameter - - - Profile - - - - AzureProfile - - - - Get-AzureVM - - NextLink - - - - Uri - - - Profile - - - - AzureProfile - - - All - - - - SwitchParameter - - SwitchParameter - - - - - - Profile + + ResourceGroupName - + Name of the Resource Group - AzureProfile + String - AzureProfile + String - - ResourceGroupName + + Name - Name of the Resource Group + Name of the Storage Account String @@ -1477,38 +1686,38 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; - - Name + + Profile - Name of the VM + - String + AzureProfile - String + AzureProfile - - Status + + InformationAction - Allows you to only return the Instance View + - SwitchParameter + ActionPreference - SwitchParameter + ActionPreference - - NextLink + + InformationVariable - Uri + String - Uri + String @@ -1550,33 +1759,12 @@ $vm = Add-AzureVMSshPublicKey -VM $vm -KeyData $sshPublicKey -Path $sshPath; - -------------------------- Get the properties of a VM -------------------------- - - PS C:\> - - # Get the VM -$vm = Get-AzureVM -ResourceGroupName "myRG" -Name "crpVM" - - - - - - - - - - - - - - - - -------------------------- Get only the status of VM -------------------------- + -------------------------- Get a specified storage account -------------------------- PS C:\> - Get the VM instance view -$vm = Get-AzureVM -ResourceGroupName "myRG" -Name "crpVM" -Status + PS C:\> #Get one storage account + Get-AzureStorageAccount -ResourceGroupName "RG1" -AccountName "myStorageAccount" @@ -1592,12 +1780,12 @@ $vm = Get-AzureVM -ResourceGroupName "myRG" -Name "crpVM" -S - -------------------------- Get all VMs in a Resource Group -------------------------- + -------------------------- Get all Storage Accounts in a Resource Group -------------------------- PS C:\> - # Get all VMs in a Resource Group -$vm = Get-AzureVM -ResourceGroupName "myRG" + PS C:\> # Get all Storage Accounts in a Resource Group + Get-AzureStorageAccount -ResourceGroupName "RG1" @@ -1613,12 +1801,12 @@ $vm = Get-AzureVM -ResourceGroupName "myRG" - -------------------------- Get all VMs in your subscription -------------------------- + -------------------------- Get all Storage Accounts in the subscription -------------------------- PS C:\> - # Get all VMs in your subscription -Get-AzureVM + PS C:\> # Get all Storage Accounts in the subscription + Get-AzureStorageAccount @@ -1640,48 +1828,34 @@ Get-AzureVM - Get-AzureVMAccessExtension + Get-AzureStorageAccountKey - Get the information about VMAccess extension + Get the access keys for an Azure storage account Get - AzureVMAccessExtension + AzureStorageAccountKey - Get the information about VMAccess extension + This cmdlet allows you to get the access keys for an Azure storage account. - Get-AzureVMAccessExtension - - Status - - Get the instance view of the extension - - SwitchParameter - + Get-AzureStorageAccountKey ResourceGroupName - Name of the Resource Group of the VM + Name of the Resource Group String - VMName - - Name of the VM - - String - - Name - Name of the extension + Name of the Storage Account String @@ -1692,25 +1866,39 @@ Get-AzureVM AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - - Status + + ResourceGroupName - Get the instance view of the extension + Name of the Resource Group - SwitchParameter + String - SwitchParameter + String - - ResourceGroupName + + Name - Name of the Resource Group of the VM + Name of the Storage Account String @@ -1719,38 +1907,38 @@ Get-AzureVM - - VMName + + Profile - Name of the VM + - String + AzureProfile - String + AzureProfile - - Name + + InformationAction - Name of the extension + - String + ActionPreference - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -1792,33 +1980,12 @@ Get-AzureVM - -------------------------- Example 1 -------------------------- - - PS C:\> - - # Get VM Extension -$ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname; - - - - - - - - - - - - - - - - -------------------------- Example 2 -------------------------- + -------------------------- Get the access keys for a Storage Account -------------------------- PS C:\> - # Get VM Extension Status -$ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status; + #Get keys + Get-AzureStorageAccountKey -ResourceGroupName "RG1" -AccountName "myStorageAccount" @@ -1840,51 +2007,138 @@ $ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Na - Get-AzureVMCustomScriptExtension + Get-AzureVM - Get the information about Custom Script extension + Get the properties of a VM or Get all VMs in a subscription Get - AzureVMCustomScriptExtension + AzureVM - Get the information about Custom Script extension + This cmdlet allows you to get the model or instance view of the VM. By default the returned VM object contains the model view. If you'd like to see the instance view of a VM use the -Status switch. + This cmdlet also allows you to get information about all VMs in your subscription if no parameters are used. - Get-AzureVMCustomScriptExtension - - Status + Get-AzureVM + + All - Get the instance view of the extension + SwitchParameter + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureVM ResourceGroupName - Name of the Resource Group of the VM + Name of the Resource Group String - VMName + Name Name of the VM String - - Name + + Status - Name of the extension + Allows you to only return the Instance View + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureVM + + ResourceGroupName + + Name of the Resource Group + + String + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + String + + + Get-AzureVM + + NextLink + + + + Uri + Profile @@ -1892,13 +2146,27 @@ $ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Na AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - - Status + + All - Get the instance view of the extension + SwitchParameter @@ -1907,10 +2175,46 @@ $ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Na + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + ResourceGroupName - Name of the Resource Group of the VM + Name of the Resource Group String @@ -1920,7 +2224,7 @@ $ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Na - VMName + Name Name of the VM @@ -1931,26 +2235,26 @@ $ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Na - - Name + + Status - Name of the extension + Allows you to only return the Instance View - String + SwitchParameter - String + SwitchParameter - - Profile + + NextLink - AzureProfile + Uri - AzureProfile + Uri @@ -1992,12 +2296,12 @@ $ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Na - -------------------------- Example 1 -------------------------- + -------------------------- Get the properties of a VM -------------------------- PS C:\> - # Get VM Extension -$ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname; + # Get the VM +$vm = Get-AzureVM -ResourceGroupName "myRG" -Name "crpVM" @@ -2013,12 +2317,54 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - -------------------------- Example 2 -------------------------- + -------------------------- Get only the status of VM -------------------------- PS C:\> - # Get VM Extension Status -$ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status; + Get the VM instance view +$vm = Get-AzureVM -ResourceGroupName "myRG" -Name "crpVM" -Status + + + + + + + + + + + + + + + + -------------------------- Get all VMs in a Resource Group -------------------------- + + PS C:\> + + # Get all VMs in a Resource Group +$vm = Get-AzureVM -ResourceGroupName "myRG" + + + + + + + + + + + + + + + + -------------------------- Get all VMs in your subscription -------------------------- + + PS C:\> + + # Get all VMs in your subscription +Get-AzureVM @@ -2040,27 +2386,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMExtension + Get-AzureVMAccessExtension - Get the extensions installed on the VM + Get the information about VMAccess extension Get - AzureVMExtension + AzureVMAccessExtension - Get properties about the extensions installed on a VM. To get only the instance view of the extensions use the -Status switch. + Get the information about VMAccess extension - Get-AzureVMExtension + Get-AzureVMAccessExtension ResourceGroupName - Name of the Resource Group + Name of the Resource Group of the VM String @@ -2074,14 +2420,14 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna Name - Name of the Extension + Name of the extension String Status - Return only the status view of the Extension + Get the instance view of the extension SwitchParameter @@ -2092,13 +2438,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + ResourceGroupName - Name of the Resource Group + Name of the Resource Group of the VM String @@ -2122,7 +2482,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna Name - Name of the Extension + Name of the extension String @@ -2134,7 +2494,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna Status - Return only the status view of the Extension + Get the instance view of the extension SwitchParameter @@ -2155,6 +2515,30 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -2192,11 +2576,12 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - -------------------------- Get the properties of an extension -------------------------- + -------------------------- Example 1 -------------------------- PS C:\> - Get-AzureVMExtension -ResourceGroupName "RG1" -VMName "crpVM" -Name "testext" + # Get VM Extension +$ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname; @@ -2212,11 +2597,12 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - -------------------------- Get the status view of an extension -------------------------- + -------------------------- Example 2 -------------------------- PS C:\> - Get-AzureVMExtension -ResourceGroupName "RG1" -VMName "crpVM" -Name "testext" -Status + # Get VM Extension Status +$ext = Get-AzureVMAccessExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status; @@ -2238,50 +2624,50 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMExtensionImage + Get-AzureVMCustomScriptExtension - Get all versions for a particular extension + Get the information about Custom Script extension Get - AzureVMExtensionImage + AzureVMCustomScriptExtension - Get all versions for a particular extension + Get the information about Custom Script extension - Get-AzureVMExtensionImage - - Location + Get-AzureVMCustomScriptExtension + + ResourceGroupName - Location of the extension + Name of the Resource Group of the VM String - - PublisherName + + VMName - Name of extension publisher + Name of the VM String - - Type + + Name - Type of the extension + Name of the extension String - - FilterExpression + + Status - + Get the instance view of the extension - String + SwitchParameter Profile @@ -2290,13 +2676,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - - Location + + ResourceGroupName - Location of the extension + Name of the Resource Group of the VM String @@ -2305,10 +2705,10 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - PublisherName + + VMName - Name of extension publisher + Name of the VM String @@ -2317,10 +2717,10 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Type + + Name - Type of the extension + Name of the extension String @@ -2329,14 +2729,14 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - FilterExpression + + Status - + Get the instance view of the extension - String + SwitchParameter - String + SwitchParameter @@ -2353,14 +2753,26 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Version + + InformationAction - Version of the extension + - string + ActionPreference - string + ActionPreference + + + + + + InformationVariable + + + + String + + String @@ -2406,7 +2818,29 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMExtensionImage -Location eastus -PublisherName Symantec -Type SymantecEndpointProtection + # Get VM Extension +$ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname; + + + + + + + + + + + + + + + + -------------------------- Example 2 -------------------------- + + PS C:\> + + # Get VM Extension Status +$ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmname -Name $extname -Status; @@ -2428,72 +2862,79 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMExtensionImageDetail + Get-AzureVMExtension - Get the details on a specific extension + Get the extensions installed on the VM Get - AzureVMExtensionImageDetail + AzureVMExtension - Get the details on a specific extension + Get properties about the extensions installed on a VM. To get only the instance view of the extensions use the -Status switch. - Get-AzureVMExtensionImageDetail - - Location + Get-AzureVMExtension + + ResourceGroupName - Location of the extension + Name of the Resource Group String - - PublisherName + + VMName - Name of the extension publisher + Name of the VM String - - Type + + Name - Type of the extension + Name of the Extension String - - Version + + Status - Version of the extension + Return only the status view of the Extension - String + SwitchParameter - FilterExpression + Profile - String + AzureProfile - Profile + InformationAction - AzureProfile + ActionPreference + + + InformationVariable + + + + String - - Location + + ResourceGroupName - Location of the extension + Name of the Resource Group String @@ -2502,10 +2943,10 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - PublisherName + + VMName - Name of the extension publisher + Name of the VM String @@ -2514,10 +2955,10 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Type + + Name - Type of the extension + Name of the Extension String @@ -2526,38 +2967,50 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Version + + Status - Version of the extension + Return only the status view of the Extension - String + SwitchParameter - String + SwitchParameter - FilterExpression + Profile - String + AzureProfile - String + AzureProfile - Profile + InformationAction - AzureProfile + ActionPreference - AzureProfile + ActionPreference + + + + + + InformationVariable + + + + String + + String @@ -2599,11 +3052,31 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - -------------------------- Example 1 -------------------------- + -------------------------- Get the properties of an extension -------------------------- PS C:\> - Get-AzureVMExtensionImageDetail -Location eastus -PublisherName Symantec -Type SymantecEndpointProtection -Version 12.1.4100.2 + Get-AzureVMExtension -ResourceGroupName "RG1" -VMName "crpVM" -Name "testext" + + + + + + + + + + + + + + + + -------------------------- Get the status view of an extension -------------------------- + + PS C:\> + + Get-AzureVMExtension -ResourceGroupName "RG1" -VMName "crpVM" -Name "testext" -Status @@ -2625,34 +3098,48 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMExtensionImageType + Get-AzureVMExtensionImage - Get the type of the Azure extension + Get all versions for a particular extension Get - AzureVMExtensionImageType + AzureVMExtensionImage - Get the type of the Azure extension + Get all versions for a particular extension - Get-AzureVMExtensionImageType + Get-AzureVMExtensionImage Location - Location of the Extension + Location of the extension String PublisherName - Name of the extension publisher + Name of extension publisher + + String + + + Type + + Type of the extension + + String + + + FilterExpression + + String @@ -2663,13 +3150,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile - + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + Location - Location of the Extension + Location of the extension String @@ -2681,7 +3182,31 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PublisherName - Name of the extension publisher + Name of extension publisher + + String + + String + + + + + + Type + + Type of the extension + + String + + String + + + + + + FilterExpression + + String @@ -2702,6 +3227,42 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Version + + Version of the extension + + string + + string + + + + @@ -2743,7 +3304,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMExtensionImageType -Location eastus -PublisherName Symantec + Get-AzureVMExtensionImage -Location eastus -PublisherName Symantec -Type SymantecEndpointProtection @@ -2765,48 +3326,48 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMImage + Get-AzureVMExtensionImageDetail - Get all the versions of a VMImage + Get the details on a specific extension Get - AzureVMImage + AzureVMExtensionImageDetail - Get all the versions of a VMImage + Get the details on a specific extension - Get-AzureVMImage + Get-AzureVMExtensionImageDetail Location - Location of the VMImage + Location of the extension String PublisherName - Publisher of the VMImage + Name of the extension publisher String - Offer + Type - Type of VMImage offer + Type of the extension String - - Skus + + Version - VMImage SKU + Version of the extension String @@ -2824,13 +3385,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + Location - Location of the VMImage + Location of the extension String @@ -2842,7 +3417,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PublisherName - Publisher of the VMImage + Name of the extension publisher String @@ -2852,9 +3427,9 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Offer + Type - Type of VMImage offer + Type of the extension String @@ -2863,10 +3438,10 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Skus + + Version - VMImage SKU + Version of the extension String @@ -2899,14 +3474,26 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Version + + InformationAction - string + ActionPreference - string + ActionPreference + + + + + + InformationVariable + + + + String + + String @@ -2952,7 +3539,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMImage -Location eastus -PublisherName Canonical -Offer UbuntuServer -Skus 15.04-DAILY + Get-AzureVMExtensionImageDetail -Location eastus -PublisherName Symantec -Type SymantecEndpointProtection -Version 12.1.4100.2 @@ -2974,64 +3561,57 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMImageDetail + Get-AzureVMExtensionImageType - Returns information about a VMImage + Get the type of the Azure extension Get - AzureVMImageDetail + AzureVMExtensionImageType - Returns information about a VMImage + Get the type of the Azure extension - Get-AzureVMImageDetail + Get-AzureVMExtensionImageType Location - Location of the VMImage + Location of the Extension String PublisherName - Name of the VMImage publisher - - String - - - Offer - - Type of VMImage offer + Name of the extension publisher String - - Skus + + Profile - Type of VMImage SKU + - String + AzureProfile - - Version + + InformationAction - Version of VMImage + - String + ActionPreference - Profile + InformationVariable - AzureProfile + String @@ -3039,7 +3619,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna Location - Location of the VMImage + Location of the Extension String @@ -3051,19 +3631,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PublisherName - Name of the VMImage publisher - - String - - String - - - - - - Offer - - Type of VMImage offer + Name of the extension publisher String @@ -3072,38 +3640,38 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Skus + + Profile - Type of VMImage SKU + - String + AzureProfile - String + AzureProfile - - Version + + InformationAction - Version of VMImage + - String + ActionPreference - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -3149,7 +3717,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMImageDetail -Location eastus -PublisherName Canonical -Offer UbuntuServer -Skus 15.04-DAILY -Version 15.04.20150422 + Get-AzureVMExtensionImageType -Location eastus -PublisherName Symantec @@ -3171,34 +3739,55 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMImageOffer + Get-AzureVMImage - Returns the VMImage Offer types + Get all the versions of a VMImage Get - AzureVMImageOffer + AzureVMImage - Returns the VMImage Offer types + Get all the versions of a VMImage - Get-AzureVMImageOffer + Get-AzureVMImage Location - Location for the images + Location of the VMImage String PublisherName - Name of the Publisher + Publisher of the VMImage. Use the Get-AzureVMImagePublisher cmdlet to get the values for this parameter. + + String + + + Offer + + Type of VMImage offer. Use the Get-AzureVMImageOffer cmdlet to get the values for this parameter. + + String + + + Skus + + VMImage SKU. Use the Get-AzureVMImageSku cmdlet to get the value of this parameter. + + String + + + FilterExpression + + String @@ -3209,15 +3798,29 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile - - - - - Location - - Location for the images - - String + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + Location + + Location of the VMImage + + String String @@ -3227,7 +3830,43 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PublisherName - Name of the Publisher + Publisher of the VMImage. Use the Get-AzureVMImagePublisher cmdlet to get the values for this parameter. + + String + + String + + + + + + Offer + + Type of VMImage offer. Use the Get-AzureVMImageOffer cmdlet to get the values for this parameter. + + String + + String + + + + + + Skus + + VMImage SKU. Use the Get-AzureVMImageSku cmdlet to get the value of this parameter. + + String + + String + + + + + + FilterExpression + + String @@ -3248,6 +3887,42 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + Version + + + + string + + string + + + + @@ -3289,7 +3964,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMImageOffer -Location eastus -PublisherName Canonical + Get-AzureVMImage -Location eastus -PublisherName Canonical -Offer UbuntuServer -Skus 15.04-DAILY @@ -3311,23 +3986,23 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMImagePublisher + Get-AzureVMImageDetail - Return the VMImage publishers + Returns information about a VMImage Get - AzureVMImagePublisher + AzureVMImageDetail - Return the VMImage publishers + Returns information about a VMImage - Get-AzureVMImagePublisher + Get-AzureVMImageDetail Location @@ -3335,6 +4010,34 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna String + + PublisherName + + Name of the VMImage publisher + + String + + + Offer + + Type of VMImage offer + + String + + + Skus + + Type of VMImage SKU + + String + + + Version + + Version of VMImage + + String + Profile @@ -3342,6 +4045,20 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -3357,6 +4074,54 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + PublisherName + + Name of the VMImage publisher + + String + + String + + + + + + Offer + + Type of VMImage offer + + String + + String + + + + + + Skus + + Type of VMImage SKU + + String + + String + + + + + + Version + + Version of VMImage + + String + + String + + + + Profile @@ -3369,6 +4134,30 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -3410,7 +4199,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMImagePublisher -Location eastus + Get-AzureVMImageDetail -Location eastus -PublisherName Canonical -Offer UbuntuServer -Skus 15.04-DAILY -Version 15.04.20150422 @@ -3432,27 +4221,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMImageSku + Get-AzureVMImageOffer - Returns VMImage SKUs + Returns the VMImage Offer types Get - AzureVMImageSku + AzureVMImageOffer - Returns VMImage SKUs + Returns the VMImage Offer types - Get-AzureVMImageSku + Get-AzureVMImageOffer Location - Location of the VMImage + Location for the images String @@ -3463,19 +4252,26 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna String - - Offer + + Profile - Type of VMImage offer + - String + AzureProfile - Profile + InformationAction - AzureProfile + ActionPreference + + + InformationVariable + + + + String @@ -3483,7 +4279,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna Location - Location of the VMImage + Location for the images String @@ -3504,35 +4300,47 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Offer + + Profile - Type of VMImage offer + - String + AzureProfile - String + AzureProfile - Profile + InformationAction - AzureProfile + ActionPreference - AzureProfile + ActionPreference - - - - - + + InformationVariable + + + + String + + String + + + + + + + + + @@ -3569,7 +4377,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMImageSku -Location eastus -PublisherName Canonical -Offer UbuntuServer + Get-AzureVMImageOffer -Location eastus -PublisherName Canonical @@ -3591,27 +4399,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMSize + Get-AzureVMImagePublisher - Get the available VM sizes by location, Availability Set or resize an existing VM to + Return the VMImage publishers Get - AzureVMSize + AzureVMImagePublisher - Get the available VM sizes by location, Availability Set or resize an existing VM to + Return the VMImage publishers - Get-AzureVMSize - + Get-AzureVMImagePublisher + Location - Location of the VM + Location of the VMImage String @@ -3622,61 +4430,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile - - - Get-AzureVMSize - - ResourceGroupName - - Resource Group of the VM - - String - - - AvailabilitySetName - - Name of the Availability Set - - String - - Profile + InformationAction - AzureProfile - - - - Get-AzureVMSize - - ResourceGroupName - - Resource Group of the VM - - String - - - VMName - - Name of the VM - - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - + Location - Location of the VM + Location of the VMImage String @@ -3697,34 +4471,22 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - ResourceGroupName - - Resource Group of the VM - - String - - String - - - - - - AvailabilitySetName + + InformationAction - Name of the Availability Set + - String + ActionPreference - String + ActionPreference - - VMName + + InformationVariable - Name of the VM + String @@ -3774,50 +4536,10 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMSize -Location westeurope - - Get the available VM sizes in a location - - - - - - - - - - - - - - -------------------------- Example 2 -------------------------- - - PS C:\> - - Get-AzureVMSize -ResourceGroupName rg3-AvailabilitySetName av3 + Get-AzureVMImagePublisher -Location eastus - Get available VM sizes you can deploy in an existing availability set - - - - - - - - - - - - -------------------------- Example 3 -------------------------- - - PS C:\> - - Get-AzureVMSize -ResourceGroupName rg3 -VMName vm3 - - Available VM sizes that an existing VM can be resized to - @@ -3836,27 +4558,41 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - Get-AzureVMUsage + Get-AzureVMImageSku - Get the VM core count usage in a location + Returns VMImage SKUs Get - AzureVMUsage + AzureVMImageSku - Get the VM core count usage in a location + Returns VMImage SKUs - Get-AzureVMUsage - + Get-AzureVMImageSku + Location - Location to get VM core count usage in + Location of the VMImage + + String + + + PublisherName + + Name of the Publisher + + String + + + Offer + + Type of VMImage offer String @@ -3867,13 +4603,51 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - + Location - Location to get VM core count usage in + Location of the VMImage + + String + + String + + + + + + PublisherName + + Name of the Publisher + + String + + String + + + + + + Offer + + Type of VMImage offer String @@ -3894,6 +4668,30 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -3935,7 +4733,7 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna PS C:\> - Get-AzureVMUsage -Location eastus + Get-AzureVMImageSku -Location eastus -PublisherName Canonical -Offer UbuntuServer @@ -3957,57 +4755,105 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - New-AzureAvailabilitySet + Get-AzureVMSize - Create an Availability Set + Get the available VM sizes by location, Availability Set or resize an existing VM to - New - AzureAvailabilitySet + Get + AzureVMSize - This cmdlet allows you to create an Availability Set + Get the available VM sizes by location, Availability Set or resize an existing VM to - New-AzureAvailabilitySet + Get-AzureVMSize - ResourceGroupName + Location - Name of Resource Group + Location of the VM String - - Name + + Profile - Name of Availability Set + - String + AzureProfile - - Location + + InformationAction - Location of the Availability Set + + + ActionPreference + + + InformationVariable + + String - - PlatformUpdateDomainCount + + + Get-AzureVMSize + + ResourceGroupName + + Resource Group of the VM + + String + + + AvailabilitySetName + + Name of the Availability Set + + String + + + Profile - Nullable`1[Int32] + AzureProfile - - PlatformFaultDomainCount + + InformationAction - Nullable`1[Int32] + ActionPreference + + + InformationVariable + + + + String + + + + Get-AzureVMSize + + ResourceGroupName + + Resource Group of the VM + + String + + + VMName + + Name of the VM + + String Profile @@ -4016,13 +4862,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - ResourceGroupName + Location - Name of Resource Group + Location of the VM String @@ -4031,22 +4891,34 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - Name + + Profile - Name of Availability Set + - String + AzureProfile - String + AzureProfile - - Location + + InformationAction - Location of the Availability Set + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + String @@ -4055,38 +4927,38 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - PlatformUpdateDomainCount + + ResourceGroupName - + Resource Group of the VM - Nullable`1[Int32] + String - Nullable`1[Int32] + String - - PlatformFaultDomainCount + + AvailabilitySetName - + Name of the Availability Set - Nullable`1[Int32] + String - Nullable`1[Int32] + String - - Profile + + VMName - + Name of the VM - AzureProfile + String - AzureProfile + String @@ -4128,14 +5000,54 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - -------------------------- Create an Availability Set -------------------------- + -------------------------- Example 1 -------------------------- PS C:\> - New-AzureAvailabilitySet -ResourceGroupName "RG1" -Name "myASet" -Location "West US" + Get-AzureVMSize -Location westeurope + + Get the available VM sizes in a location + + + + + + + + + + + + + + -------------------------- Example 2 -------------------------- + + PS C:\> + + Get-AzureVMSize -ResourceGroupName rg3-AvailabilitySetName av3 + Get available VM sizes you can deploy in an existing availability set + + + + + + + + + + + + -------------------------- Example 3 -------------------------- + + PS C:\> + + Get-AzureVMSize -ResourceGroupName rg3 -VMName vm3 + + Available VM sizes that an existing VM can be resized to + @@ -4154,77 +5066,58 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - New-AzureVM + Get-AzureVMUsage - Create a new VM + Get the VM core count usage in a location - New - AzureVM + Get + AzureVMUsage - This cmdlet allows you to create a new VM in Azure. This cmdlet takes a VM object as input which can be created using the New-AzureVMConfig cmdlet. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. + Get the VM core count usage in a location - New-AzureVM + Get-AzureVMUsage - ResourceGroupName - - Name of the Resource Group - - String - - Location - Location of the VM + Location to get VM core count usage in String - - VM + + Profile - VM object that is configured and represents the state of the VM to be created. The VM object can be created using the New-AzureVMConfig cmdlet. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. + - PSVirtualMachine + AzureProfile - - Name + + InformationAction - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - ResourceGroupName - - Name of the Resource Group - - String - - String - - - - - Location - Location of the VM + Location to get VM core count usage in String @@ -4233,38 +5126,38 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - VM + + Profile - VM object that is configured and represents the state of the VM to be created. The VM object can be created using the New-AzureVMConfig cmdlet. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. + - PSVirtualMachine + AzureProfile - PSVirtualMachine + AzureProfile - - Name + + InformationAction - String + ActionPreference - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -4306,69 +5199,11 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - -------------------------- Create a VM with two Data Disks -------------------------- + -------------------------- Example 1 -------------------------- PS C:\> - PS C:\> # Common - $rgname = "myrg" - $loc = 'West US'; - $vmsize = 'Standard_A2'; - $vmname = 'vm' + $rgname; - - # Create Resource Group - New-AzureResourceGroup -Name $rgname -Location $loc; - - # Create VM Object - $vm = New-AzureVMConfig -VMName $vmname -VMSize $vmsize; - - # Setup Networking - $subnet = New-AzureVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24" -DnsServer "10.1.1.1"; - $vnet = New-AzureVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet; - $vnet = Get-AzureVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname; - $subnetId = $vnet.Properties.Subnets[0].Id; - $pubip = New-AzurePublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname); - $pubip = Get-AzurePublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname; - $pubipId = $pubip.Id; - $nic = New-AzureNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -SubnetId $subnetId -PublicIpAddressId $pubip.Id; - $nic = Get-AzureNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname; - $nicId = $nic.Id; - - # Add NIC to VM - $vm = Add-AzureVMNetworkInterface -VM $vm -Id $nicId; - - # Setup Storage - $stoname = 'sto' + $rgname; - $stotype = 'Standard_GRS'; - - New-AzureStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype; - $stoaccount = Get-AzureStorageAccount -ResourceGroupName $rgname -Name $stoname; - - $osDiskName = 'osDisk'; - $osDiskCaching = 'ReadWrite'; - $osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd"; - $dataDiskVhdUri1 = "https://$stoname.blob.core.windows.net/test/data1.vhd"; - $dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd"; - - # Add Data Disks - $vm = Add-AzureVMDataDisk -VM $vm -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1; - $vm = Add-AzureVMDataDisk -VM $vm -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2; - - # Setup OS & Image - $user = "Foo12"; - $password = 'BaR@123' + $rgname; - $securePassword = ConvertTo-SecureString $password -AsPlainText -Force; - $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword); - - $computerName = 'test'; - $vhdContainer = "https://$stoname.blob.core.windows.net/test"; - $img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201410.01-en.us-127GB.vhd'; - - $vm = Set-AzureVMOperatingSystem -VM $vm -Windows -ComputerName $computerName -Credential $cred; - $vm = Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContainer; - - # Create Virtual Machine - New-AzureVM -ResourceGroupName $rgname -Location $loc -Name $vmname -VM $vm; + Get-AzureVMUsage -Location eastus @@ -4390,44 +5225,58 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - New-AzureVMConfig + New-AzureAvailabilitySet - Create the configurable local VM Object + Create an Availability Set New - AzureVMConfig + AzureAvailabilitySet - This cmdlet allows you to create the configurable local VM Object. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. + This cmdlet allows you to create an Availability Set - New-AzureVMConfig + New-AzureAvailabilitySet - VMName + ResourceGroupName - Name of the VM + Name of Resource Group String - VMSize + Name - Size of the VM + Name of Availability Set String - - AvailabilitySetId + + Location - Id of the Availability Set. This can be gotten through Get-AzureAvailabilitySet cmdlet. + Location of the Availability Set String + + PlatformUpdateDomainCount + + + + Nullable`1[Int32] + + + PlatformFaultDomainCount + + + + Nullable`1[Int32] + Profile @@ -4435,13 +5284,27 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - VMName + ResourceGroupName - Name of the VM + Name of Resource Group String @@ -4451,9 +5314,9 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - VMSize + Name - Size of the VM + Name of Availability Set String @@ -4462,10 +5325,10 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - - AvailabilitySetId + + Location - Id of the Availability Set. This can be gotten through Get-AzureAvailabilitySet cmdlet. + Location of the Availability Set String @@ -4474,6 +5337,30 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + PlatformUpdateDomainCount + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + + + PlatformFaultDomainCount + + + + Nullable`1[Int32] + + Nullable`1[Int32] + + + + Profile @@ -4486,6 +5373,30 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -4523,15 +5434,11 @@ $ext = Get-AzureVMCustomScriptExtension -ResourceGroupName $rgname -VMName $vmna - -------------------------- Create a new VM Object -------------------------- + -------------------------- Create an Availability Set -------------------------- PS C:\> - # Get the Availability Set -$as = Get-AzureAvailabilitySet –ResourceGroupName “RG1” –Name “MyASet” - -# Create the VM object -$vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -AvailabilitySetID $as.Id + New-AzureAvailabilitySet -ResourceGroupName "RG1" -Name "myASet" -Location "West US" @@ -4553,23 +5460,23 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Remove-AzureAvailabilitySet + New-AzureStorageAccount - Remove an Availability Set from Azure + Allows you to create a new Storage Account - Remove - AzureAvailabilitySet + New + AzureStorageAccount - Remove an Availability Set from Azure + This cmdlet allows you to create a new Storage Account. - Remove-AzureAvailabilitySet + New-AzureStorageAccount ResourceGroupName @@ -4580,7 +5487,25 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av Name - Name of the Availability Set + Name of the Storage Account + + String + + + Type + + Type of Storage Account. Valid values are +• Standard_LRS (Locally-redundant storage) +• Standard_ZRS (Zone-redundant storage) +• Standard_GRS (Geo-redundant storage) +• Standard_RAGRS (Read access geo-redundant storage) + + String + + + Location + + Location of the Storage Account String @@ -4591,6 +5516,20 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -4609,7 +5548,35 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av Name - Name of the Availability Set + Name of the Storage Account + + String + + String + + + + + + Type + + Type of Storage Account. Valid values are +• Standard_LRS (Locally-redundant storage) +• Standard_ZRS (Zone-redundant storage) +• Standard_GRS (Geo-redundant storage) +• Standard_RAGRS (Read access geo-redundant storage) + + String + + String + + + + + + Location + + Location of the Storage Account String @@ -4630,6 +5597,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -4667,11 +5658,11 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - -------------------------- Remove Availability Set -------------------------- + -------------------------- Example 1 -------------------------- PS C:\> - PS C:\> Remove-AzureAvailabilitySet –Name “MyASet” –ResouceGroupName “RG1” + New-AzureStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -Location "US West" -AccountType "Standard_GRS" @@ -4693,43 +5684,45 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Remove-AzureVM + New-AzureStorageAccountKey - Remove VM from Azure + Regenerates a storage key for an Azure storage account. - Remove - AzureVM + New + AzureStorageAccountKey - Remove VM from Azure + Regenerates a storage key for an Azure storage account. - Remove-AzureVM + New-AzureStorageAccountKey ResourceGroupName - Name of the Resource Group + Name of the Resource Group the storage account is in String Name - Name of the VM + Name of the Storage Account String - - Force + + KeyName - + Specifies which key to regenerate. Supported value set: +- “key1” +- “key2” - SwitchParameter + String Profile @@ -4738,13 +5731,27 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile - - - - + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + ResourceGroupName - Name of the Resource Group + Name of the Resource Group the storage account is in String @@ -4756,7 +5763,7 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av Name - Name of the VM + Name of the Storage Account String @@ -4765,14 +5772,16 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - - Force + + KeyName - + Specifies which key to regenerate. Supported value set: +- “key1” +- “key2” - SwitchParameter + String - SwitchParameter + String @@ -4789,6 +5798,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -4826,11 +5859,12 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - -------------------------- Remove a VM -------------------------- + -------------------------- Example 1 -------------------------- PS C:\> - PS C:\> Remove-AzureVM -ResourceGroupName "myRG" -Name "crpVM" + #Regenerate a key +New-AzureStorageKey -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -keyName "key1" @@ -4852,51 +5886,58 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Remove-AzureVMAccessExtension + New-AzureVM - Remove the VMAccess extension from the VM + Create a new VM - Remove - AzureVMAccessExtension + New + AzureVM - Remove the VMAccess extension from the VM + This cmdlet allows you to create a new VM in Azure. This cmdlet takes a VM object as input which can be created using the New-AzureVMConfig cmdlet. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. - Remove-AzureVMAccessExtension - - Force + New-AzureVM + + ResourceGroupName - + Name of the Resource Group - SwitchParameter + String - - ResourceGroupName + + Location - Resource Group of the VM + Location of the VM String - - VMName + + VM - Name of the VM + VM object that is configured and represents the state of the VM to be created. The VM object can be created using the New-AzureVMConfig cmdlet. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. - String + PSVirtualMachine - + Name - Name of extension + String + + Tags + + + + Hashtable[] + Profile @@ -4904,25 +5945,39 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - - Force + + ResourceGroupName - + Name of the Resource Group - SwitchParameter + String - SwitchParameter + String - - ResourceGroupName + + Location - Resource Group of the VM + Location of the VM String @@ -4931,22 +5986,22 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - - VMName + + VM - Name of the VM + VM object that is configured and represents the state of the VM to be created. The VM object can be created using the New-AzureVMConfig cmdlet. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. - String + PSVirtualMachine - String + PSVirtualMachine - + Name - Name of extension + String @@ -4955,6 +6010,18 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + Tags + + + + Hashtable[] + + Hashtable[] + + + + Profile @@ -4967,6 +6034,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -5003,6 +6094,84 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + -------------------------- Create a VM with two Data Disks -------------------------- + + PS C:\> + + PS C:\> # Common + $rgname = "myrg" + $loc = 'West US'; + $vmsize = 'Standard_A2'; + $vmname = 'vm' + $rgname; + + # Create Resource Group + New-AzureResourceGroup -Name $rgname -Location $loc; + + # Create VM Object + $vm = New-AzureVMConfig -VMName $vmname -VMSize $vmsize; + + # Setup Networking + $subnet = New-AzureVirtualNetworkSubnetConfig -Name ('subnet' + $rgname) -AddressPrefix "10.0.0.0/24" -DnsServer "10.1.1.1"; + $vnet = New-AzureVirtualNetwork -Force -Name ('vnet' + $rgname) -ResourceGroupName $rgname -Location $loc -AddressPrefix "10.0.0.0/16" -DnsServer "10.1.1.1" -Subnet $subnet; + $vnet = Get-AzureVirtualNetwork -Name ('vnet' + $rgname) -ResourceGroupName $rgname; + $subnetId = $vnet.Properties.Subnets[0].Id; + $pubip = New-AzurePublicIpAddress -Force -Name ('pubip' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -DomainNameLabel ('pubip' + $rgname); + $pubip = Get-AzurePublicIpAddress -Name ('pubip' + $rgname) -ResourceGroupName $rgname; + $pubipId = $pubip.Id; + $nic = New-AzureNetworkInterface -Force -Name ('nic' + $rgname) -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic -SubnetId $subnetId -PublicIpAddressId $pubip.Id; + $nic = Get-AzureNetworkInterface -Name ('nic' + $rgname) -ResourceGroupName $rgname; + $nicId = $nic.Id; + + # Add NIC to VM + $vm = Add-AzureVMNetworkInterface -VM $vm -Id $nicId; + + # Setup Storage + $stoname = 'sto' + $rgname; + $stotype = 'Standard_GRS'; + + New-AzureStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype; + $stoaccount = Get-AzureStorageAccount -ResourceGroupName $rgname -Name $stoname; + + $osDiskName = 'osDisk'; + $osDiskCaching = 'ReadWrite'; + $osDiskVhdUri = "https://$stoname.blob.core.windows.net/test/os.vhd"; + $dataDiskVhdUri1 = "https://$stoname.blob.core.windows.net/test/data1.vhd"; + $dataDiskVhdUri2 = "https://$stoname.blob.core.windows.net/test/data2.vhd"; + + # Add Data Disks + $vm = Add-AzureVMDataDisk -VM $vm -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $dataDiskVhdUri1; + $vm = Add-AzureVMDataDisk -VM $vm -Name 'testDataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $dataDiskVhdUri2; + + # Setup OS & Image + $user = "Foo12"; + $password = 'BaR@123' + $rgname; + $securePassword = ConvertTo-SecureString $password -AsPlainText -Force; + $cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword); + + $computerName = 'test'; + $vhdContainer = "https://$stoname.blob.core.windows.net/test"; + $img = 'a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-Datacenter-201410.01-en.us-127GB.vhd'; + + $vm = Set-AzureVMOperatingSystem -VM $vm -Windows -ComputerName $computerName -Credential $cred; + $vm = Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContainer; + + # Create Virtual Machine + New-AzureVM -ResourceGroupName $rgname -Location $loc -Name $vmname -VM $vm; + + + + + + + + + + + + + + @@ -5010,48 +6179,41 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Remove-AzureVMCustomScriptExtension + New-AzureVMConfig - Remove the Custom Script extension from the VM + Create the configurable local VM Object - Remove - AzureVMCustomScriptExtension + New + AzureVMConfig - Remove the Custom Script extension from the VM + This cmdlet allows you to create the configurable local VM Object. The VM object must then be configured correctly using appropriate cmdlets such as Set-AzureVMOperatingSystem, Set-AzureVMSourceImage, Set-AzureVMNetworkInterface etc. before the VM can be created in Azure succesfully. - Remove-AzureVMCustomScriptExtension - - Force + New-AzureVMConfig + + VMName - + Name of the VM - SwitchParameter - - - ResourceGroupName - - Resource Group of the VM - - String + String - VMName + VMSize - Name of the VM + Size of the VM String - - Name + + AvailabilitySetId - Name of the extension to remove + Id of the Availability Set. This can be gotten through Get-AzureAvailabilitySet cmdlet. String @@ -5062,25 +6224,27 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - - Force - - - - SwitchParameter - - SwitchParameter - - - - - ResourceGroupName + VMName - Resource Group of the VM + Name of the VM String @@ -5090,9 +6254,9 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - VMName + VMSize - Name of the VM + Size of the VM String @@ -5101,10 +6265,10 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - - Name + + AvailabilitySetId - Name of the extension to remove + Id of the Availability Set. This can be gotten through Get-AzureAvailabilitySet cmdlet. String @@ -5125,6 +6289,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -5161,6 +6349,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + -------------------------- Create a new VM Object -------------------------- + + PS C:\> + + # Get the Availability Set +$as = Get-AzureAvailabilitySet –ResourceGroupName “RG1” –Name “MyASet” + +# Create the VM object +$vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -AvailabilitySetID $as.Id + + + + + + + + + + + + + + @@ -5168,34 +6380,34 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Remove-AzureVMDataDisk + Remove-AzureAvailabilitySet - Remove a Data Disk from the VM + Remove an Availability Set from Azure Remove - AzureVMDataDisk + AzureAvailabilitySet - This cmdlet allows you to remove a Data Disk from the VM + Remove an Availability Set from Azure - Remove-AzureVMDataDisk - - VM + Remove-AzureAvailabilitySet + + ResourceGroupName - Local VM object to remove the Data Disk from. This object can be gotten from the Get-AzureVM cmdlet. + Name of the Resource Group - PSVirtualMachine + String - + Name - Name of the Data Disk to be removed + Name of the Availability Set String @@ -5206,25 +6418,39 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - - VM + + ResourceGroupName - Local VM object to remove the Data Disk from. This object can be gotten from the Get-AzureVM cmdlet. + Name of the Resource Group - PSVirtualMachine + String - PSVirtualMachine + String - + Name - Name of the Data Disk to be removed + Name of the Availability Set String @@ -5245,6 +6471,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -5282,18 +6532,11 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - -------------------------- Remove a Data Disk -------------------------- + -------------------------- Remove Availability Set -------------------------- PS C:\> - PS C:\> # Get the VM - $vm = Get-AzureVM -ResourceGroupName "myRG" -Name "crpVM" - - # Remove "disk3" Data Disk from the local object - Remove-AzureVMDataDisk -VM $vm -Name 'disk3' - - # Update the state of the Azure VM - Update-AzureVM -ResourceGroupName "myRG" -Name "crpVM" –VM $vm + PS C:\> Remove-AzureAvailabilitySet –Name “MyASet” –ResouceGroupName “RG1” @@ -5315,77 +6558,77 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Remove-AzureVMExtension + Remove-AzureStorageAccount - Remove an Extension from a VM + Remove Storage Account from Azure Remove - AzureVMExtension + AzureStorageAccount - Remove an extension from a VM + Remove Storage Account from Azure - Remove-AzureVMExtension - - Force - - - - SwitchParameter - + Remove-AzureStorageAccount ResourceGroupName - Name of Resource Group + Name of the Resource Group String - VMName + Name Name of the VM String - - Name + + Profile - Name of the Extension + - String + AzureProfile - Profile + InformationAction - AzureProfile + ActionPreference + + + InformationVariable + + + + String - - Force + + ResourceGroupName - + Name of the Resource Group - SwitchParameter + String - SwitchParameter + String - - ResourceGroupName + + Name - Name of Resource Group + Name of the VM String @@ -5394,38 +6637,38 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - - VMName + + Profile - Name of the VM + - String + AzureProfile - String + AzureProfile - - Name + + InformationAction - Name of the Extension + - String + ActionPreference - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -5467,11 +6710,11 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - -------------------------- Remove an Extension -------------------------- + -------------------------- Remove Storage Account -------------------------- PS C:\> - PS C:\> Remove-AzureVMExtension –ResouceGroupName "RG" –Name "myext" -VMName "vm1" + PS C:\> Remove-AzureStorageAccount -ResourceGroupName "RG1" -AccountName "myStorageAccount" @@ -5493,19 +6736,1009 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Remove-AzureVMNetworkInterface + Remove-AzureVM - Remove the network interface from the VM + Remove VM from Azure Remove - AzureVMNetworkInterface + AzureVM - Remove the network interface from the VM + Remove VM from Azure + + + + Remove-AzureVM + + ResourceGroupName + + Name of the Resource Group + + String + + + Name + + Name of the VM + + String + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Name of the Resource Group + + String + + String + + + + + + Name + + Name of the VM + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Remove a VM -------------------------- + + PS C:\> + + PS C:\> Remove-AzureVM -ResourceGroupName "myRG" -Name "crpVM" + + + + + + + + + + + + + + + + + + + + + + Remove-AzureVMAccessExtension + + Remove the VMAccess extension from the VM + + + + + Remove + AzureVMAccessExtension + + + + Remove the VMAccess extension from the VM + + + + Remove-AzureVMAccessExtension + + ResourceGroupName + + Resource Group of the VM + + String + + + VMName + + Name of the VM + + String + + + Name + + Name of extension + + String + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Resource Group of the VM + + String + + String + + + + + + VMName + + Name of the VM + + String + + String + + + + + + Name + + Name of extension + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureVMCustomScriptExtension + + Remove the Custom Script extension from the VM + + + + + Remove + AzureVMCustomScriptExtension + + + + Remove the Custom Script extension from the VM + + + + Remove-AzureVMCustomScriptExtension + + ResourceGroupName + + Resource Group of the VM + + String + + + VMName + + Name of the VM + + String + + + Name + + Name of the extension to remove + + String + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Resource Group of the VM + + String + + String + + + + + + VMName + + Name of the VM + + String + + String + + + + + + Name + + Name of the extension to remove + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remove-AzureVMDataDisk + + Remove a Data Disk from the VM + + + + + Remove + AzureVMDataDisk + + + + This cmdlet allows you to remove a Data Disk from the VM + + + + Remove-AzureVMDataDisk + + VM + + Local VM object to remove the Data Disk from. This object can be gotten from the Get-AzureVM cmdlet. + + PSVirtualMachine + + + Name + + Name of the Data Disk to be removed + + String + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + Local VM object to remove the Data Disk from. This object can be gotten from the Get-AzureVM cmdlet. + + PSVirtualMachine + + PSVirtualMachine + + + + + + Name + + Name of the Data Disk to be removed + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Remove a Data Disk -------------------------- + + PS C:\> + + PS C:\> # Get the VM + $vm = Get-AzureVM -ResourceGroupName "myRG" -Name "crpVM" + + # Remove "disk3" Data Disk from the local object + Remove-AzureVMDataDisk -VM $vm -Name 'disk3' + + # Update the state of the Azure VM + Update-AzureVM -ResourceGroupName "myRG" -Name "crpVM" –VM $vm + + + + + + + + + + + + + + + + + + + + + + Remove-AzureVMExtension + + Remove an Extension from a VM + + + + + Remove + AzureVMExtension + + + + Remove an extension from a VM + + + + Remove-AzureVMExtension + + ResourceGroupName + + Name of Resource Group + + String + + + VMName + + Name of the VM + + String + + + Name + + Name of the Extension + + String + + + Force + + + + SwitchParameter + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + ResourceGroupName + + Name of Resource Group + + String + + String + + + + + + VMName + + Name of the VM + + String + + String + + + + + + Name + + Name of the Extension + + String + + String + + + + + + Force + + + + SwitchParameter + + SwitchParameter + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -------------------------- Remove an Extension -------------------------- + + PS C:\> + + PS C:\> Remove-AzureVMExtension –ResouceGroupName "RG" –Name "myext" -VMName "vm1" + + + + + + + + + + + + + + + + + + + + + + Remove-AzureVMNetworkInterface + + Remove the network interface from the VM + + + + + Remove + AzureVMNetworkInterface + + + + Remove the network interface from the VM @@ -5515,12 +7748,170 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av The VM object - PSVirtualMachine + PSVirtualMachine + + + Id + + + + String + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + + + VM + + The VM object + + PSVirtualMachine + + PSVirtualMachine + + + + + + Id + + + + String + + String + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Restart-AzureVM + + Restart a VM + + + + + Restart + AzureVM + + + + Restart a VM + + + + Restart-AzureVM + + ResourceGroupName + + Name of Resource Group + + String - Id + Name - + Name of the VM String @@ -5531,25 +7922,39 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - - VM + + ResourceGroupName - The VM object + Name of Resource Group - PSVirtualMachine + String - PSVirtualMachine + String - Id + Name - + Name of the VM String @@ -5570,6 +7975,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -5606,6 +8035,26 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + -------------------------- Example 1 -------------------------- + + PS C:\> + + PS C:\> Restart-AzureVM -ResourceGroupName "myRG" -Name "crpVM" + + + + + + + + + + + + + + @@ -5613,37 +8062,59 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Restart-AzureVM + Save-AzureVMImage - Restart a VM + Allows you to capture your VM as a VMImage - Restart - AzureVM + Save + AzureVMImage - Restart a VM + Allows you to capture your VM as a VMImage. Required step before this is to sysprep the VM and mark it generalized using the Set-AzureVM -Generalize cmdlet. + The output is a JSON template that can be used to deploy from your captured image. - Restart-AzureVM + Save-AzureVMImage ResourceGroupName - Name of Resource Group + Resource Group of the VM String - Name + VMName Name of the VM String + + DestinationContainerName + + This is the name of the container inside which the vhds constituting the VMImage will reside. If they are spread across multiple storage accounts, one container with this name will be created in each storage account. + + String + + + VHDNamePrefix + + This is the prefix in the name of the blobs that will constitute the storage profile of the VMImage. For e.g. the OSDisk can be named vhdPrefix-osdisk + + String + + + Overwrite + + Indicates if any vhds with same Prefix inside the destination Container are encountered, should they be overwritten or not. + + SwitchParameter + Profile @@ -5651,13 +8122,27 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + ResourceGroupName - Name of Resource Group + Resource Group of the VM String @@ -5667,7 +8152,7 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Name + VMName Name of the VM @@ -5678,6 +8163,42 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + DestinationContainerName + + This is the name of the container inside which the vhds constituting the VMImage will reside. If they are spread across multiple storage accounts, one container with this name will be created in each storage account. + + String + + String + + + + + + VHDNamePrefix + + This is the prefix in the name of the blobs that will constitute the storage profile of the VMImage. For e.g. the OSDisk can be named vhdPrefix-osdisk + + String + + String + + + + + + Overwrite + + Indicates if any vhds with same Prefix inside the destination Container are encountered, should they be overwritten or not. + + SwitchParameter + + SwitchParameter + + + + Profile @@ -5690,6 +8211,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -5731,9 +8276,9 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av PS C:\> - PS C:\> Restart-AzureVM -ResourceGroupName "myRG" -Name "crpVM" + Save-AzureVMImage -ResourceGroupName "RG1" -VMName "VM1" -DestinationContainerName "VM1" -VHDNamePrefix "VM1" - + Captures the VMImage. The Output property returns a JSON template that can be used to deploy from the captured VMImage. @@ -5753,65 +8298,167 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - Save-AzureVMImage + Set-AzureStorageAccount - Allows you to capture your VM as a VMImage + Update the Storage Account properties - Save - AzureVMImage + Set + AzureStorageAccount - Allows you to capture your VM as a VMImage. Required step before this is to sysprep the VM and mark it generalized using the Set-AzureVM -Generalize cmdlet. - The output is a JSON template that can be used to deploy from your captured image. + This cmdlet allows you to update the Storage Account properties. - Save-AzureVMImage + Set-AzureStorageAccount + + ResourceGroupName + + Name of the Resource Group + + String + + + Name + + Name of the Storage Account + + String + + + Type + + Specifies the account type of the storage account. One of four options: + • Standard_LRS (Locally-redundant storage) + • Standard_GRS (Geo-redundant storage) + • Standard_RAGRS (Read access geo-redundant storage) + • Standard_ZRS + + Note that Standard_ZRS accounts cannot be changed to other account types, and other account types cannot be changed to Standard_ZRS. + + String + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureStorageAccount + + ResourceGroupName + + Name of the Resource Group + + String + + + Name + + Name of the Storage Account + + String + + + CustomDomainName + + The name of the custom domain. + + String + + + UseSubDomain + + + + Nullable`1[Boolean] + + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureStorageAccount ResourceGroupName - Resource Group of the VM + Name of the Resource Group String - VMName + Name - Name of the VM + Name of the Storage Account String - - DestinationContainerName + + Tags - This is the name of the container inside which the vhds constituting the VMImage will reside. If they are spread across multiple storage accounts, one container with this name will be created in each storage account. + - String + Hashtable[] - - VHDNamePrefix + + Profile - This is the prefix in the name of the blobs that will constitute the storage profile of the VMImage. For e.g. the OSDisk can be named vhdPrefix-osdisk + - String + AzureProfile - - Overwrite + + InformationAction - Indicates if any vhds with same Prefix inside the destination Container are encountered, should they be overwritten or not. + - SwitchParameter + ActionPreference - Profile + InformationVariable - AzureProfile + String @@ -5819,7 +8466,7 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av ResourceGroupName - Resource Group of the VM + Name of the Resource Group String @@ -5829,9 +8476,9 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - VMName + Name - Name of the VM + Name of the Storage Account String @@ -5841,9 +8488,15 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - DestinationContainerName + Type - This is the name of the container inside which the vhds constituting the VMImage will reside. If they are spread across multiple storage accounts, one container with this name will be created in each storage account. + Specifies the account type of the storage account. One of four options: + • Standard_LRS (Locally-redundant storage) + • Standard_GRS (Geo-redundant storage) + • Standard_RAGRS (Read access geo-redundant storage) + • Standard_ZRS + + Note that Standard_ZRS accounts cannot be changed to other account types, and other account types cannot be changed to Standard_ZRS. String @@ -5852,10 +8505,34 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - - VHDNamePrefix + + Profile - This is the prefix in the name of the blobs that will constitute the storage profile of the VMImage. For e.g. the OSDisk can be named vhdPrefix-osdisk + + + AzureProfile + + AzureProfile + + + + + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + String @@ -5864,26 +8541,50 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - - Overwrite + + CustomDomainName - Indicates if any vhds with same Prefix inside the destination Container are encountered, should they be overwritten or not. + The name of the custom domain. - SwitchParameter + String - SwitchParameter + String - - Profile + + UseSubDomain - AzureProfile + Nullable`1[Boolean] - AzureProfile + Nullable`1[Boolean] + + + + + + Tags + + + + Hashtable[] + + Hashtable[] + + + + + + UseSubDomainName + + + + nullable`1[boolean] + + nullable`1[boolean] @@ -5925,13 +8626,35 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - -------------------------- Example 1 -------------------------- + -------------------------- Set Storage Account type -------------------------- PS C:\> - Save-AzureVMImage -ResourceGroupName "RG1" -VMName "VM1" -DestinationContainerName "VM1" -VHDNamePrefix "VM1" + PS C:\> # Set account type + Set-AzureStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -AccountType "Standard_RAGRS" - Captures the VMImage. The Output property returns a JSON template that can be used to deploy from the captured VMImage. + + + + + + + + + + + + + + + -------------------------- Set Custom Domain -------------------------- + + PS C:\> + + PS C:\> #Set custom domain + Set-AzureStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -CustomDomainName "domain name" –UseSubDomain “true” + + @@ -5996,6 +8719,20 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -6047,6 +8784,30 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -6127,6 +8888,27 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av Set-AzureVMAccessExtension + + ResourceGroupName + + Resource Group of the VM + + String + + + VMName + + Name of the VM + + String + + + Name + + Name of the extension + + String + TypeHandlerVersion @@ -6155,37 +8937,66 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av String - - ResourceGroupName - - Resource Group of the VM - - String - - - VMName + + Profile - Name of the VM + - String + AzureProfile - - Name + + InformationAction - Name of the extension + - String + ActionPreference - Profile + InformationVariable - AzureProfile + String + + ResourceGroupName + + Resource Group of the VM + + String + + String + + + + + + VMName + + Name of the VM + + String + + String + + + + + + Name + + Name of the extension + + String + + String + + + + TypeHandlerVersion @@ -6234,50 +9045,38 @@ $vm = New-AzureVMConfig –VMName “myVM” –VMSize “Standard_A1" -Av - - ResourceGroupName - - Resource Group of the VM - - String - - String - - - - - - VMName + + Profile - Name of the VM + - String + AzureProfile - String + AzureProfile - - Name + + InformationAction - Name of the extension + - String + ActionPreference - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -6368,6 +9167,27 @@ Set-AzureVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vm Set-AzureVMCustomScriptExtension + + ResourceGroupName + + Resource Group of the VM + + String + + + VMName + + Name of the VM + + String + + + Name + + Name of the extension + + String + TypeHandlerVersion @@ -6431,6 +9251,30 @@ Set-AzureVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vm String + + Profile + + + + AzureProfile + + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + + + + Set-AzureVMCustomScriptExtension ResourceGroupName @@ -6452,16 +9296,6 @@ Set-AzureVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vm String - - Profile - - - - AzureProfile - - - - Set-AzureVMCustomScriptExtension TypeHandlerVersion @@ -6497,37 +9331,66 @@ Set-AzureVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vm String - - ResourceGroupName - - Resource Group of the VM - - String - - - VMName + + Profile - Name of the VM + - String + AzureProfile - - Name + + InformationAction - Name of the extension + - String + ActionPreference - Profile + InformationVariable - AzureProfile + String + + ResourceGroupName + + Resource Group of the VM + + String + + String + + + + + + VMName + + Name of the VM + + String + + String + + + + + + Name + + Name of the extension + + String + + String + + + + TypeHandlerVersion @@ -6636,50 +9499,38 @@ Set-AzureVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vm - - ResourceGroupName - - Resource Group of the VM - - String - - String - - - - - - VMName + + Profile - Name of the VM + - String + AzureProfile - String + AzureProfile - - Name + + InformationAction - Name of the extension + - String + ActionPreference - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -6854,6 +9705,20 @@ Set-AzureVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMNa AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + Set-AzureVMExtension @@ -6927,6 +9792,20 @@ Set-AzureVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMNa AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -7050,6 +9929,30 @@ Set-AzureVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMNa + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + SettingString @@ -7298,6 +10201,20 @@ Set-AzureVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMNa AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + Set-AzureVMOperatingSystem @@ -7352,6 +10269,20 @@ Set-AzureVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMNa AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -7477,26 +10408,50 @@ Set-AzureVMCustomScriptExtension -ResourceGroupName $rgname -Location $loc -VMNa - - WinRMCertificateUrl + + WinRMCertificateUrl + + URL of certificate in KeyVault to be used for WinRM HTTPS + + Uri + + Uri + + + + + + Profile + + + + AzureProfile + + AzureProfile + + + + + + InformationAction - URL of certificate in KeyVault to be used for WinRM HTTPS + - Uri + ActionPreference - Uri + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -7720,6 +10675,20 @@ $vm = Set-AzureVMOperatingSystem -VM $vm -Windows -ComputerName $computerName -C AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + Set-AzureVMOSDisk @@ -7788,6 +10757,20 @@ $vm = Set-AzureVMOperatingSystem -VM $vm -Windows -ComputerName $computerName -C AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -7896,6 +10879,30 @@ $vm = Set-AzureVMOperatingSystem -VM $vm -Windows -ComputerName $computerName -C + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + Linux @@ -8036,6 +11043,20 @@ $vm = Set-AzureVMOSDisk -VM $vm -Name $osDiskName -VhdUri $osDiskVhdUri -Caching AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + Set-AzureVMSourceImage @@ -8060,6 +11081,20 @@ $vm = Set-AzureVMOSDisk -VM $vm -Name $osDiskName -VhdUri $osDiskVhdUri -Caching AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -8135,6 +11170,30 @@ $vm = Set-AzureVMOSDisk -VM $vm -Name $osDiskName -VhdUri $osDiskVhdUri -Caching + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + Name @@ -8332,6 +11391,20 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + @@ -8371,6 +11444,30 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + + @@ -8451,6 +11548,20 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine Stop-AzureVM + + ResourceGroupName + + Name of the Resource Group + + String + + + Name + + Name of the VM + + String + Force @@ -8465,30 +11576,54 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine SwitchParameter - - ResourceGroupName + + Profile - Name of the Resource Group + - String + AzureProfile - - Name + + InformationAction - Name of the VM + - String + ActionPreference - Profile + InformationVariable - AzureProfile + String + + ResourceGroupName + + Name of the Resource Group + + String + + String + + + + + + Name + + Name of the VM + + String + + String + + + + Force @@ -8513,38 +11648,38 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine - - ResourceGroupName + + Profile - Name of the Resource Group + - String + AzureProfile - String + AzureProfile - - Name + + InformationAction - Name of the VM + - String + ActionPreference - String + ActionPreference - Profile + InformationVariable - AzureProfile + String - AzureProfile + String @@ -8629,27 +11764,34 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine Update-AzureVM - + ResourceGroupName Name of the Resource Group String - + VM The local VM object that contains the updating VM state PSVirtualMachine - + Name Name of the VM String + + Tags + + + + Hashtable[] + Profile @@ -8657,10 +11799,24 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine AzureProfile + + InformationAction + + + + ActionPreference + + + InformationVariable + + + + String + - + ResourceGroupName Name of the Resource Group @@ -8672,7 +11828,7 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine - + VM The local VM object that contains the updating VM state @@ -8684,7 +11840,7 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine - + Name Name of the VM @@ -8696,6 +11852,18 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine + + Tags + + + + Hashtable[] + + Hashtable[] + + + + Profile @@ -8708,6 +11876,30 @@ Set-AzureVMSourceImage -VM $vm -Name $img -DestinationVhdsContainer $vhdContaine + + InformationAction + + + + ActionPreference + + ActionPreference + + + + + + InformationVariable + + + + String + + String + + + +