Frequently asked questions about Azure PowerShell
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.
Azure PowerShell is a set of cmdlets that allows you to manage Azure resources directly with PowerShell. In December 2018, the Az PowerShell module became generally available. It's now the recommended PowerShell module for interacting with Azure. To learn more about the Az PowerShell module, see Introducing the Az PowerShell module.
To suppress the breaking change warning messages in Azure PowerShell, you'll need to set the
environment variable SuppressAzurePowerShellBreakingChangeWarnings
to true
.
Set-Item -Path Env:\SuppressAzurePowerShellBreakingChangeWarnings -Value $true
To suppress the AzureRM retirement warning message in Azure PowerShell, you'll need to set the
environment variable SuppressAzureRmModulesRetiringWarning
to true
.
Set-Item -Path Env:\SuppressAzureRmModulesRetiringWarning -Value $true
One disadvantage of the previous example is you'll need to run the command for each new PowerShell session unless you add it to your PowerShell profile.
To set the environment variable permanently, you can also use the following example.
[System.Environment]::SetEnvironmentVariable('SuppressAzureRmModulesRetiringWarning', 'true', [System.EnvironmentVariableTarget]::User)