Switch-AzureMode is now deprecated in release v.0.9.2
Version 0.8.0 introduced an aberration in the world of PowerShell modules in my opinion when they added the Switch-AzureMode
cmdlet. The purpose of this cmdlet is to enable a switch between the Azure module and the AzureResourceManager module.
In release 0.9.2 when you call Switch-AzureMode
you get the a warning saying
WARNING: The Switch-AzureMode cmdlet is deprecated and will be removed in a future release.
This demonstrate that Microsoft is starting the transition between the AzureServiceManagement cmdlets and the AzureResourceManager cmdlets.
This change will not happen overnight and you will have plenty of time to prepare and perform this migration. One thing is sure though, they are heading this way.
This is the good decision because they will enable the two modules to evolve separately and also because it caused a lot of little problems here and there. For example if you use Azure Automation today, the Azure module is loaded by default but you cannot call the Switch-AzureMode as you would normally do in a standard PowerShell session window. If you want to use the AzureResourceManager module, you have to manually zip the module folder from your machine and upload the archive as an asset in the Azure Automation.
You can also manually load the module on a 64bits OS by calling Import-Module "C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureResourceManager.psd1"
. If you are on a 32bits OS, replace "Program Files (x86)" by "Program Files".
Happy automation!
Read Also
Switch-AzureMode deprecation - Prepare yourself for the migration ahead