> ## Content Index
> Fetch the complete content index at: https://codeisahighway.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Switch-AzureMode is now deprecated in release v.0.9.2
- URL: https://codeisahighway.com/switch-azuremode-is-now-deprecated-in-release-v-0-9-2/
- Published: 2015-06-01T14:20:22.000Z
- Updated: 2026-08-10T07:12:27.000Z
- Author: Stephane Lapointe
- Tags: PowerShell, DevOps, Microsoft Azure, #Import 2023-07-11 16:44, #Import 2026-09-04 10:31, #Import 2026-09-04 13:56

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.  
![The Switch-AzureMode cmdlet is deprecated and will be removed in a future release](https://codeisahighway.com/content/images/2015/06/SwitchAzureModeWarning.png)

> 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](https://codeisahighway.com/switch-azuremode-deprecation-how-to-prepare-yourself-for-the-migration-ahead/)