Skip to main content Explore View all products (200+) Microsoft Foundry Azure Copilot GitHub Copilot Azure Kubernetes Service (AKS) Azure Cosmos DB Azure Database for PostgreSQL Azure Arc Microsoft Fabric Linux virtual machines in Azure Foundry Models Foundry Agent Service Foundry IQ Foundry Tools Foundry Control Plane Observability in Foundry Control Plane Azure OpenAI in Foundry Models Azure Speech in Foundry Tools Azure Machine Learning View all databases Azure Cosmos DB Azure DocumentDB Azure SQL Azure Database for PostgreSQL Azure Managed Redis Microsoft Fabric Azure Databricks Linux virtual machines in Azure Windows Server on Azure Azure Functions Azure Virtual Machine Scale Sets Azure API Management Azure Container Apps Azure Kubernetes Service (AKS) Azure Kubernetes Fleet Manager Azure Container Registry Azure Red Hat OpenShift Azure Container Instances Azure Container Storage Azure Arc Azure Local Microsoft Defender for Cloud Azure Monitor Microsoft Sentinel Azure Migrate View all solutions (40+) Cloud solutions for small and medium businesses Cloud migration and modernization center Data analytics for AI Azure Databases AI apps and agents Microsoft Marketplace Microsoft Sovereign Cloud AI apps and agents Responsible AI with Azure AI Infrastructure Data analytics for AI Machine learning operations (MLOps) Low-code application development on Azure Integration Services Serverless computing DevOps Migration and modernization center .NET apps migration Databases on Azure Linux on Azure Oracle on Azure SAP on the Microsoft Cloud Adaptive cloud High-performance computing (HPC) Infrastructure as a service (IaaS) Resiliency Azure Essentials Azure Accelerate FinOps on Azure Microsoft Marketplace Azure pricing overview Create an Azure account Free Azure services Flexible purchase options Pricing calculator FinOps on Azure Maximize ROI from AI Azure savings plans Azure reservations Azure Hybrid Benefit Virtual Machines Azure SQL Microsoft Foundry Microsoft Fabric Azure Kubernetes Service (AKS) Microsoft Defender for Cloud Software Development Companies Microsoft Marketplace Find a partner Get started with Azure Customer stories Analyst reports, white papers, and e-books Videos Learn more about cloud computing Documentation Explore Azure portal Developer resources Quickstart templates Resources for startups Developer community Students Azure for partners Blog Events and Webinars Learn Support Contact Sales Get started with Azure Sign in
  • 2 min read

Azure PowerShell – Cross-platform “Az” module replacing “AzureRM”

There is a new Azure PowerShell module, built to harness the power of PowerShell Core and Cloud Shell, and maintain compatibility with PowerShell 5.1. Its name is Az.

There is a new Azure PowerShell module, built to harness the power of PowerShell Core and Cloud Shell, and maintain compatibility with PowerShell 5.1. Its name is Az. Az ensures that PowerShell and PowerShell Core users can get the latest Azure tooling in every PowerShell, on every platform. Az also simplifies and normalizes Azure PowerShell cmdlet and module names. Az ships in Azure Cloud Shell and is available from the PowerShell Gallery. 

For complete details on the release, timeline, and compatibility features, please see GitHub announcement page.

Az module features

  • Az is a replacement for AzureRM and AzureRM.Netcore.
  • Az runs on PowerShell 5.1 and PowerShell Core.
  • Az is always up to date with the latest tooling for Azure services.
  • Az ships in Cloud Shell.
  • Az shortens and normalizes cmdlet names. All cmdlets use “Az” as their noun prefix.
  • Az will simplify and normalize module names. Data plane and management plane cmdlets for each service will use the same Az module.
  • Az ships with new cmdlets to enable script compatibility with AzureRM (Enable/Disable-AzureRmAlias).

Supported platforms

  • PowerShell 5.1 – Windows 7 or greater with .Net Framework 4.7.2 or greater installed
  • PowerShell Core 6.0 – Windows, Mac OS, Linux
  • PowerShell Core 6.1 – Windows, Mac OS, Linux

Installing Az

You can install Az from the PowerShell gallery.

     PS C:> Install-Module Az

You should not install Az side-by-side with AzureRM. Remove all AzureRM modules before installing Az.

Compatibility with AzureRM

If you would like to run scripts developed for AzureRM using Az, use the Enable/Disable-AzureRmAlias cmdlets to add or remove aliases from AzureRM cmdlets to Az cmdlets.

Enable-AzureRmAlias [-Module ] [-Scope Process | CurrentUser | LocalMachine]

Adds AzureRM cmdlet aliases for the given modules (or all modules if no modules are specified) to the current session (default), all sessions for the current user, or all session on the machine.

Disable-AzureRmAlias [-Module ] [-Scope Process | CurrentUser | LocalMachine]

Removes AzureRM cmdlet aliases for the given modules (or all modules if no modules are specified) from the current session (default), all sessions for the current user, or all session on the machine.

Learn more about the compatibility features in Az

More information

  • Az is currently in preview, and will replace AzureRM as the recommended module for all Azure PowerShell tooling later this year. Learn more about the product roadmap.
  • Az is Open Source and uses the Azure PowerShell source code repository on GitHub.
  • If you have questions, comments, or issues with the new module, please tell us about them on GitHub.
English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Microsoft Privacy Manage cookies Terms of use Trademarks Safety & eco Recycling About our ads