azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

VM Extensions?

Open ronbok opened this issue 10 years ago • 2 comments

https://blogs.msdn.microsoft.com/azuresecurity/2016/02/24/update-on-microsoft-antimalware-and-azure-resource-manager-arm-vms/

There appears to be a large gap here for VM ARM extensions. First we need the ability to query a region and get a list of available extensions to be applied to a VM. Then we need a much simpler method to apply them. Right now the Portal UI doesn't even have the ability to add VM extensions and the PowerShell cmdlets don't exist or aren't even documented.

ronbok avatar Apr 02 '16 20:04 ronbok

@ronbok Completely understand the frustration! Unfortunately, there is currently not an API available that allows us to do this. There are folks working on improving the image/extension APIs at which point we'll be able to deliver a better experience.

Extensions are documented here https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-extensions-features/

You can add extension to a VM from VM settings as shown below image

All extension cmdlets in PowerShell can be found like below

PS C:\Users\kasing> gcm *rmvm*extension*

CommandType     Name                                               Version    Source                                                                                                                     
-----------     ----                                               -------    ------                                                                                                                     
Cmdlet          Add-AzureRmVmssExtension                           1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMAccessExtension                       1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMAEMExtension                          1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMCustomScriptExtension                 1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMDiagnosticsExtension                  1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMDscExtension                          1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMDscExtensionStatus                    1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMExtension                             1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMExtensionImage                        1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMExtensionImageType                    1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Get-AzureRmVMSqlServerExtension                    1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMAccessExtension                    1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMAEMExtension                       1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMCustomScriptExtension              1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMDiagnosticsExtension               1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMDiskEncryptionExtension            1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMDscExtension                       1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMExtension                          1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVMSqlServerExtension                 1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Remove-AzureRmVmssExtension                        1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMAccessExtension                       1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMAEMExtension                          1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMBackupExtension                       1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMBginfoExtension                       1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMCustomScriptExtension                 1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMDiagnosticsExtension                  1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMDiskEncryptionExtension               1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMDscExtension                          1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMExtension                             1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Set-AzureRmVMSqlServerExtension                    1.2.7      AzureRM.Compute                                                                                                            
Cmdlet          Test-AzureRmVMAEMExtension                         1.2.7      AzureRM.Compute 

singhkays avatar Apr 26 '16 21:04 singhkays

Can the BGinfoExtension be deleted once installed on a VM? I did it from the ARM portal/VM config blade, however, after a reboot the extension is still present.

LeonidasRR avatar Feb 20 '17 14:02 LeonidasRR