cyberark / pas-on-cloud

CyberArk Privileged Access Security on Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate from AzureRM to AZ Modules

ixtlanian opened this issue · comments

Is your feature request related to a problem? Please describe.

https://github.com/cyberark/pas-on-cloud/blob/master/azure/import-pas-images.ps1 is currently using AzureRM modules commands. According to Microsoft (https://learn.microsoft.com/en-us/powershell/azure/migrate-from-azurerm-to-az) AzureRM modules will be retired on 29 Feb 2024.
Moreover, currently people who use the new AZ modules cannot have them easily co-exist with AzureRM due to overlapping namespacess (requires allowing clobber as described in https://blog.blksthl.com/2020/10/22/install-the-powershell-az-module-even-if-azurerm-is-installed/).

Describe the solution you would like

Migrate from AzureRM cmdlets to AZ cmdlets - we were able to complete the entire script rewrite in under 30 minutes including full testing. In most cases it is as simple as replacing "AzureRM" or "Azure" text in the name of the cmdlet with "AZ"

Describe alternatives you have considered

N/A

Additional context

N/A