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

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

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

Owners

Copyright

(c) 2018 Redeploy AB. All rights reserved.

Package Details

Author(s)

  • Karl Wallenius Tobias Keitsch

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.

FileList

Version History

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