This file contains hidden or 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
| $servicename = Read-Host -Prompt 'Azure Cloud Service:' | |
| $name = Read-Host -Prompt 'Azure VM:' | |
| # Get the VM | |
| $vm = Get-AzureVM 鈥揝erviceName $servicename 鈥揘ame $name | |
| # Get Microsoft Antimalware Agent on Virtual Machine | |
| Get-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm.VM | |
This file contains hidden or 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
| #Azure Cloud Service and Azure VM Name | |
| $service= Read-Host -Prompt 'Azure Cloud Service:' | |
| $name = Read-Host -Prompt 'Azure VM:' | |
| # Get the Cloud Service and Azure VM | |
| $vm = Get-AzureVM 鈥揝erviceName $service 鈥揘ame $name | |
| # Add Microsoft Antimalware Agent to the Azure VM | |
| Set-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm.VM |
This file contains hidden or 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
| $svc="techedadfs" | |
| $prot="tcp" | |
| $locport=443 | |
| $pubport=443 | |
| $ilb="adfsilb" | |
| $vmname="azadfs01" | |
| $epname="SSL" | |
| Get-AzureVM 鈥揝erviceName $svc 鈥揘ame $vmname | Add-AzureEndpoint -Name $epname -Protocol $prot -LocalPort $locport -PublicPort $pubport 鈥揇efaultProbe -InternalLoadBalancerName $ilb | Update-AzureVM |
This file contains hidden or 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
| $svc="techedadfs" | |
| $ilb="adfsilb" | |
| $subnet="App Subnet" | |
| $IP="10.0.1.55" | |
| Add-AzureInternalLoadBalancer -ServiceName $svc -InternalLoadBalancerName $ilb 鈥揝ubnetName $subnet 鈥揝taticVNetIPAddress $IP |
This file contains hidden or 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
| cls | |
| Import-module Azure | |
| $subscription = Read-Host -Prompt 'Microsoft Azure Subscription:' | |
| $storage = Read-Host -Prompt 'Storage Account Name:' | |
| Set-azuresubscription -SubscriptionName $subscription -CurrentStorageAccountName $storage | |
| #Get the latest Windows Server 2012 Datacenter image |
This file contains hidden or 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
| cls | |
| Import-module Azure | |
| $subscription = Read-Host -Prompt 'Microsoft Azure Subscription:' | |
| $storage = Read-Host -Prompt 'Storage Account Name:' | |
| Set-azuresubscription -SubscriptionName $subscription -CurrentStorageAccountName $storage | |
| #Get the latest Windows Server 2012 Datacenter image |
This file contains hidden or 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
| cls | |
| Import-module Azure | |
| $subscription = Read-Host -Prompt 'Microsoft Azure Subscription:' | |
| $storage = Read-Host -Prompt 'Storage Account Name:' | |
| Set-azuresubscription -SubscriptionName $subscription -CurrentStorageAccountName $storage | |
| #Get the latest Windows Server 2012 Datacenter image |
This file contains hidden or 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
| #Azure Cloud Service and Azure VM Name | |
| $service= Read-Host -Prompt 'Azure Cloud Service:' | |
| $name = Read-Host -Prompt 'Azure VM:' | |
| # Get the Cloud Service and Azure VM | |
| $vm = Get-AzureVM 鈥揝erviceName $service 鈥揘ame $name | |
| # Add Microsoft Antimalware Agent to the Azure VM | |
| Set-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm.VM |
This file contains hidden or 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
| $servicename = "MyAzureVMAntiMalware" | |
| $name = "MyAzureVM01" | |
| Get-AzureVM -ServiceName $servicename -Name $name | Set-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -Uninstall | Update-AzureVM |
This file contains hidden or 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
| $servicename = "AzureVMAntiMalware" | |
| $name = "MyAzureVM01" | |
| # Get Azure VM | |
| $vm = Get-AzureVM 鈥揝erviceName $servicename 鈥揘ame $name | |
| # Get Microsoft Antimalware Agent Azure Virtual Machine Status | |
| Get-AzureVMExtension -Publisher Microsoft.Azure.Security -ExtensionName IaaSAntimalware -Version 1.* -VM $vm.VM | |