Wednesday, October 7, 2015

Changes to Windows Azure PowerShell coming soon!

If you have worked with a recent version of Azure PowerShell, you may have noticed that they have changed the underlying commands to require Resource Management arguments so that many Azure PowerShell scripts no longer work!

If you are currently experiencing this problem with a recent version of Windows Azure PowerShell, you have 2 options:

  1. Use Switch-AzureMode to switch to the Service Management version of Azure PowerShell.
  2. Prefix your commands in the following manner: Azure\Get-AzureVM 
Well, with the upcoming release of Azure PowerShell, you will not even need to do that any longer since Switch-AzureMode is being deprecated!  https://github.com/Azure/azure-powershell/wiki/Deprecation-of-Switch-AzureMode-in-Azure-PowerShell

Therefore, if you have existing older scripts which use Get-AzureVM, you can now use it directly instead of prefixing it with Azure\ or using Switch-AzureMode.

So, your new Azure PowerShell scripts will look something like this:


Get-AzureVM - Azure Service Management
Get-AzureRmVM - Azure Resource Manager


This new version of Azure PowerShell is expected to be released tomorrow on Oct. 8th!

No comments:

Post a Comment