Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. Get-AzureVMAvailableExtension | ft ExtensionName, Publisher
  2.  
  3. Get-AzureVMAvailableExtension | ?{$_.ExtensionName -eq "VMAccessAgent"}
  4.  
  5. Publisher : Microsoft.Compute
  6. ExtensionName : VMAccessAgent
  7. Version : 2.4
  8. Label : Windows Azure Json VMAccess Extension for IaaS
  9. Description : Windows Azure Json VMAccess Extension for IaaS
  10. PublicConfigurationSchema :
  11. PrivateConfigurationSchema :
  12. IsInternalExtension : False
  13. SampleConfig :
  14. ReplicationCompleted : True
  15. Eula :
  16. PrivacyUri :
  17. HomepageUri :
  18. IsJsonExtension : True
  19. DisallowMajorVersionUpgrade : False
  20. SupportedOS :
  21. PublishedDate : 5/10/2018 2:28:29 PM
  22. CompanyName : Microsoft
  23. Regions : All regions
  24.  
  25. $settingsString = '{"AntimalwareEnabled":true}'
  26. Set-AzureRmVMExtension `
  27. -ResourceGroupName "[rgName]" -VMName "[vmName]" `
  28. -Name "IaasAntimalware" -Publisher "Microsoft.Azure.Security" `
  29. -TypeHandlerVersion 1.3 -ExtensionType IaasAntimalware `
  30. -Location "North Central US" -settingstring $settingsString
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement