{"id":1835,"date":"2018-12-20T00:00:00","date_gmt":"2018-12-20T00:00:00","guid":{"rendered":"https:\/\/azure.microsoft.com\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell"},"modified":"2023-05-11T15:35:14","modified_gmt":"2023-05-11T22:35:14","slug":"how-to-migrate-from-azurerm-to-az-in-azure-powershell","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/","title":{"rendered":"How to migrate from AzureRM to Az in Azure PowerShell"},"content":{"rendered":"<p>On December 18, 2018, the Azure PowerShell team released the first stable version of \u201c<a href=\"https:\/\/www.powershellgallery.com\/packages\/Az\/\" target=\"_blank\" rel=\"noopener\">Az<\/a>,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Screenshot of PowerShell session where Az was installed from the Gallery \" height=\"152\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp\" title=\"Screenshot of PowerShell session where Az was installed from the Gallery \" width=\"851\"><\/p>\n<p>Since January 2018, PowerShell has been <a href=\"https:\/\/blogs.msdn.microsoft.com\/powershell\/2018\/01\/10\/powershell-core-6-0-generally-available-ga-and-supported\/\" target=\"_blank\" rel=\"noopener\">a cross-platform product<\/a> with the introduction of PowerShell Core. Therefore, it has also become a priority for Azure PowerShell to have cross-platform support. Because of the changes required to support running Azure PowerShell cross-platform, we decided to <a href=\"https:\/\/github.com\/Azure\/azure-powershell\/blob\/master\/documentation\/announcing-az-module.md\" target=\"_blank\" rel=\"noopener\">create a new module<\/a> rather than make modifications to the existing AzureRM module. Moving forward, all new functionality will be added to the Az module, while AzureRM will only be updated with bug fixes.<\/p>\n<h2>Configure Az in your environment<\/h2>\n<p>Because both Az and AzureRM use the same dependencies with different versions, it is not possible to run Az and AzureRM side by side in the same PowerShell session. Thus, Az and AzureRM cmdlets cannot be used together in scripts and in interactive sessions. To ensure that a script does not try to import both Az and AzureRM modules in the same session, if you do not have many existing scripts that use AzureRM, we recommend that you remove all AzureRM modules from your machine after installing Az. For your convenience, we have created the \u201c<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/az.accounts\/uninstall-azurerm\" target=\"_blank\" rel=\"noopener\">Uninstall-AzureRm<\/a>\u201d cmdlet, located in in the new Az module. To use this cmdlet, please ensure that all PowerShell sessions in which AzureRM modules are imported have been closed, then run \u201cUninstall-AzureRm\u201d in an elevated PowerShell session.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Screenshot of PowerShell session where Uninstall-AzureRm cmdlet was run. \" height=\"309\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/37103964-c79d-4bac-84a4-23af9e6d6721.webp\" title=\"Screenshot of PowerShell session where Uninstall-AzureRm cmdlet was run. \" width=\"1584\"><\/p>\n<h2>What about your existing Azure PowerShell scripts?<\/h2>\n<p>If you would like to continue using AzureRM for your existing scripts while also writing new scripts using Az then you have two possible options.<\/p>\n<h3>Option 1 \u2013 Install PowerShell Core 6<\/h3>\n<p>One option is to install Az on <a href=\"https:\/\/github.com\/PowerShell\/PowerShell\" target=\"_blank\" rel=\"noopener\">PowerShell Core 6<\/a> while continuing to use AzureRM on Windows PowerShell 5.1. This will allow you to run your existing AzureRM scripts on Windows PowerShell 5.1 without the possibility of running into issues where AzureRM and Az are imported in the same session.<\/p>\n<h3>Option 2 \u2013 Explicit module loading<\/h3>\n<p>Alternatively, if you cannot install PowerShell 6 on your machine, please ensure that you explicitly require either the Az or the AzureRM modules you intend to use at the beginning of each script, making certain that the modules required are not from both AzureRM and Az. To turn off warnings about the side by side installation of AzureRM and Az, please add \u201c$env:SkipAzInstallationChecks=true\u201d to <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.powershell.core\/about\/about_profiles?view=powershell-6\" target=\"_blank\" rel=\"noopener\">your PowerShell profile<\/a>.<\/p>\n<h2>Using the AzureRM aliases with Az<\/h2>\n<p>To simplify and normalize our cmdlet names, we have changed the prefix from AzureRM and Azure to Az for every cmdlet in the new Az modules. To enable preexisting scripts that were written for AzureRM to successfully execute in Az, we have written a cmdlet, \u201c<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/az.accounts\/enable-azurermalias\" target=\"_blank\" rel=\"noopener\">Enable-AzureRmAlias<\/a>,\u201d to create aliases to the old cmdlet names. This cmdlet includes a Scope parameter, which allows you to select whether the aliases should be created for only the current session or for all future sessions. Additionally, you can import aliases for specific modules using the \u201cModule\u201d parameter. Once your scripts have been converted to use \u201cAz\u201d prefixes, aliases can be turned off using the \u201c<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/az.accounts\/disable-azurermalias\" target=\"_blank\" rel=\"noopener\">Disable-AzureRmAlias<\/a>\u201d cmdlet. All new cmdlets added to the Az modules will not have these AzureRM aliases, so all new scripts should use the \u201cAz\u201d prefix syntax.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Screenshot of PowerShell session where Enable-AzureRm cmdlet was run. \" height=\"445\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/4fc94614-a1a3-4f0f-961b-75e8b0ddc662.webp\" title=\"Screenshot of PowerShell session where Enable-AzureRm cmdlet was run. \" width=\"1570\"><\/p>\n<h2>Az on CloudShell<\/h2>\n<p>If you are looking for a quick way to test out the new Az modules interactively, <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cloud-shell\/overview\" target=\"_blank\" rel=\"noopener\">CloudShell<\/a> will now be shipping with the new Az modules. CloudShell is a great option as it runs everywhere and doesn\u2019t require an install so you can keep your environment untouched while trying out all the new Az features. Simply navigate to the PowerShell tab within a CloudShell session, and all Az modules will be automatically installed into your session.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Az on CloudShell\" height=\"448\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/49a320d2-8593-4442-9ab3-baff550062a8.webp\" title=\"Az on CloudShell\" width=\"1016\"><\/p>\n<h2>Try it out<\/h2>\n<p>We want the new Az module to enable you to be more productive and efficient in managing Azure from any platform or operating system. Therefore, we would like to invite you to try out the new cross-platform module and we look forward to getting your feedback, suggestions or issues via the built-in \u201cSend-Feedback\u201d cmdlet, which is available in both AzureRM and the new Az module. Alternatively, you can always open an issue in our <a href=\"https:\/\/github.com\/Azure\/azure-powershell\/issues\" target=\"_blank\" rel=\"noopener\">GitHub repository<\/a>.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On December 18, 2018, the Azure PowerShell team released the first stable version of \u201cAz,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1482],"tags":[],"audience":[3054,3053],"content-type":[1511],"product":[1646],"tech-community":[],"topic":[],"coauthors":[97],"class_list":["post-1835","post","type-post","status-publish","format-standard","hentry","category-management-and-governance","audience-business-decision-makers","audience-it-decision-makers","content-type-best-practices","product-cloud-shell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to migrate from AzureRM to Az in Azure PowerShell | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"On December 18, 2018, the Azure PowerShell team released the first stable version of \u201cAz,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to migrate from AzureRM to Az in Azure PowerShell | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"On December 18, 2018, the Azure PowerShell team released the first stable version of \u201cAz,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-20T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-11T22:35:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp\" \/>\n<meta name=\"author\" content=\"Microsoft Azure\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Microsoft Azure\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/microsoft-azure\/\",\"@type\":\"Person\",\"@name\":\"Microsoft Azure\"}],\"headline\":\"How to migrate from AzureRM to Az in Azure PowerShell\",\"datePublished\":\"2018-12-20T00:00:00+00:00\",\"dateModified\":\"2023-05-11T22:35:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/\"},\"wordCount\":714,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp\",\"articleSection\":[\"Management and governance\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/\",\"name\":\"How to migrate from AzureRM to Az in Azure PowerShell | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp\",\"datePublished\":\"2018-12-20T00:00:00+00:00\",\"dateModified\":\"2023-05-11T22:35:14+00:00\",\"description\":\"On December 18, 2018, the Azure PowerShell team released the first stable version of \u201cAz,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Management and governance\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/management-and-governance\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to migrate from AzureRM to Az in Azure PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117\",\"name\":\"shakir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"caption\":\"shakir\"},\"sameAs\":[\"https:\/\/azure.microsoft.com\"],\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to migrate from AzureRM to Az in Azure PowerShell | Microsoft Azure Blog","description":"On December 18, 2018, the Azure PowerShell team released the first stable version of \u201cAz,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/","og_locale":"en_US","og_type":"article","og_title":"How to migrate from AzureRM to Az in Azure PowerShell | Microsoft Azure Blog","og_description":"On December 18, 2018, the Azure PowerShell team released the first stable version of \u201cAz,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2018-12-20T00:00:00+00:00","article_modified_time":"2023-05-11T22:35:14+00:00","og_image":[{"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp","type":"","width":"","height":""}],"author":"Microsoft Azure","twitter_card":"summary_large_image","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Microsoft Azure","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/microsoft-azure\/","@type":"Person","@name":"Microsoft Azure"}],"headline":"How to migrate from AzureRM to Az in Azure PowerShell","datePublished":"2018-12-20T00:00:00+00:00","dateModified":"2023-05-11T22:35:14+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/"},"wordCount":714,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp","articleSection":["Management and governance"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/","name":"How to migrate from AzureRM to Az in Azure PowerShell | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp","datePublished":"2018-12-20T00:00:00+00:00","dateModified":"2023-05-11T22:35:14+00:00","description":"On December 18, 2018, the Azure PowerShell team released the first stable version of \u201cAz,\u201d a new cross-platform PowerShell module that will replace AzureRM. You can install this module by running \u201cInstall-Module Az\u201d in an elevated PowerShell prompt.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#primaryimage","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/12\/c129b75b-6534-40c2-8d39-5251e5784b99.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/how-to-migrate-from-azurerm-to-az-in-azure-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"Management and governance","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/management-and-governance\/"},{"@type":"ListItem","position":3,"name":"How to migrate from AzureRM to Az in Azure PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117","name":"shakir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4","url":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","caption":"shakir"},"sameAs":["https:\/\/azure.microsoft.com"],"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/1835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=1835"}],"version-history":[{"count":0,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/1835\/revisions"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=1835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=1835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=1835"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=1835"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=1835"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=1835"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=1835"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=1835"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=1835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}