Update README.md
swapped order of 2.2.1 and 2.2.2 so that ARM comes first
@@ -92,19 +92,22 @@ azure vm extension list
### 2.2. Using [**Azure Powershell**][azure-powershell]
-#### 2.2.1 Classic
+#### 2.2.1 Resource Manager
-You can login to your Azure account (Azure Service Management mode) by running:
+You can login to your Azure account (Azure Resource Manager mode) by running:
```powershell
-Add-AzureAccount
+Login-AzureRmAccount
```
+Click [**HERE**](https://azure.microsoft.com/en-us/documentation/articles/powershell-azure-resource-manager/) to learn more about how to use Azure Powershell with Azure Resource Manager.
+
You can deploy the OmsAgent Extension by running:
```powershell
+$RGName = '<resource-group-name>'
$VmName = '<vm-name>'
-$vm = Get-AzureVM -ServiceName $VmName -Name $VmName
+$Location = '<location>'
$ExtensionName = 'OmsAgentForLinux'
$Publisher = 'Microsoft.EnterpriseCloud.Monitoring'
@@ -120,28 +123,25 @@ $PrivateConf = '{
"vmResourceId": "<vm resource id>"
}'
-Set-AzureVMExtension -ExtensionName $ExtensionName -VM $vm `
- -Publisher $Publisher -Version $Version `
- -PrivateConfiguration $PrivateConf -PublicConfiguration $PublicConf |
- Update-AzureVM
+Set-AzureRmVMExtension -ResourceGroupName $RGName -VMName $VmName -Location $Location `
+ -Name $ExtensionName -Publisher $Publisher `
+ -ExtensionType $ExtensionName -TypeHandlerVersion $Version `
+ -Settingstring $PublicConf -ProtectedSettingString $PrivateConf
```
-#### 2.2.2 Resource Manager
+#### 2.2.2 Classic
-You can login to your Azure account (Azure Resource Manager mode) by running:
+You can login to your Azure account (Azure Service Management mode) by running:
```powershell
-Login-AzureRmAccount
+Add-AzureAccount
```
-Click [**HERE**](https://azure.microsoft.com/en-us/documentation/articles/powershell-azure-resource-manager/) to learn more about how to use Azure Powershell with Azure Resource Manager.
-
You can deploy the OmsAgent Extension by running:
```powershell
-$RGName = '<resource-group-name>'
$VmName = '<vm-name>'
-$Location = '<location>'
+$vm = Get-AzureVM -ServiceName $VmName -Name $VmName
$ExtensionName = 'OmsAgentForLinux'
$Publisher = 'Microsoft.EnterpriseCloud.Monitoring'
@@ -157,12 +157,13 @@ $PrivateConf = '{
"vmResourceId": "<vm resource id>"
}'
-Set-AzureRmVMExtension -ResourceGroupName $RGName -VMName $VmName -Location $Location `
- -Name $ExtensionName -Publisher $Publisher `
- -ExtensionType $ExtensionName -TypeHandlerVersion $Version `
- -Settingstring $PublicConf -ProtectedSettingString $PrivateConf
+Set-AzureVMExtension -ExtensionName $ExtensionName -VM $vm `
+ -Publisher $Publisher -Version $Version `
+ -PrivateConfiguration $PrivateConf -PublicConfiguration $PublicConf |
+ Update-AzureVM
```
+
### 2.3. Using [**ARM Template**][arm-template]
```json
{
