Created
September 15, 2014 12:53
-
-
Save astaykov/c68bc86f43ba28163312 to your computer and use it in GitHub Desktop.
Azure Cloud Service Antimalware Protection extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-AzureAccount | |
# use Select-AzureSubscription in case your account has more than one | |
Select-AzureSubscription -SubscriptionName 'PUT HERE YOUR SUBSCRIPTION' | |
[System.Xml.XmlDocument] $XmlConfig = New-Object System.Xml.XmlDocument | |
# load the Antimalware extension configuration from external XML file | |
# The content of the XML needs to be: | |
# <AntimalwareConfig><AntimalwareEnabled>true</AntimalwareEnabled></AntimalwareConfig> | |
# ref.: http://msdn.microsoft.com/en-US/library/azure/dn771718 | |
$XmlConfig.load('D:\tmp\AntiMalware.config') | |
Set-AzureServiceAntimalwareExtension -ServiceName "PUT HERE THE CLOUD SERVICE NAME" -AntimalwareConfiguration $XmlConfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment