Last active
February 9, 2025 21:15
-
-
Save kkamegawa/f2c57b75e88e5950e4f525ebbaa2963f to your computer and use it in GitHub Desktop.
Sync az module from folder path
This file contains hidden or 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
$mydocuments = [System.Environment]::GetFolderPath("mydocuments") | |
$azpath = join-path $mydocuments -childpath PowerShell Modules Az | |
$versions = get-childItem $azpath | select name | |
foreach($ver in $versions) { | |
write-host "version:" + $ver.name | |
install-module -Name az -RequiredVersion $ver.name -AllowClobber -Force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment