Convert-REAzureRmToAz

1.1.1

Script to convert *-AzureRm*-cmdlets to *-Az*-cmdlets. Dot source the script: . <path-to-script>\Convert-REAzureRmToAz.ps1 to get access to the function 'Convert-REAzureRmToAz'.


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Convert-REAzureRmToAz

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Karl Wallenius Tobias Keitsch

Copyright

(c) 2018 Redeploy AB. All rights reserved.

Owners

Tags

Azure AzureRm Az Convert Update

Functions

Convert-REAzureRmToAz FindReplaceLine

Dependencies

This script has no dependencies.

Release Notes

* 1.0.0
* Initial version.
* 1.0.1
* Fixed matching so that *-Azure, as in *-AzureStorage is matched and replaced.
* 1.1.0
* Handles Import-Module AzureRm to Az, and using module AzureRm to Az.
* Renamed internal function to FindReplaceLine.
* Checks if object is a directory or a file, skips if it's a directory.
* Handles multiple calls in same line.
* 1.1.1
* Added additional Verbs from AzureRM module that
* Added Case Insensitive matching
* Adjusted *-Azure* match to only match *-AzureStorage* to avoid breaking old code.
* Added *-Azure* matching to include *-AzureKeyVault*
* Added Get-Module, Find-Module, Get-InstalledModule to matches.

Version History

Version Downloads Last updated
1.1.1 (current version) 100 10/11/2018