Created
October 2, 2018 09:21
-
-
Save RichieBzzzt/7b475b4f6ef126bd82c20a8d9e41f9f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Find-Module -Name "AzureRM" | |
} | |
catch { | |
Write-Host "No AzureRM, Installing from PSGallery." | |
Install-PackageProvider -Name NuGet -Force -Scope CurrentUser | |
Install-Module AzureRM -Force -Scope CurrentUser | |
} | |
finally { | |
Write-Host "Importing AzureRM" | |
Import-Module AzureRM -Force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment