Azure PowerShell Module AZ 15.3.0 released
Hi All,
A day ago, a new Version of the AZ (Azure) PowerShell Module has been released to PowerShell Gallery.
Note: There seems to be issues installing the AZ Modules using Install-PSResource see the GitHubIssue
- PowerShell Gallery Az 15.3.0
- GitHub Release Notes Az
I am using the new PSResourceGet here instead of the PowerShellGet commands.
Show installed Versions and what’s available in PowerShell Gallery
Get-InstalledPSResource -Name AZ -Scope CurrentUser
Find-PSResource -Name AZ
Uninstall the old Modules
Uninstall-PSResource -Name AZ -Scope CurrentUser -SkipDependencyCheck
Uninstall-PSResource -Name AZ.* -Scope CurrentUser -SkipDependencyCheck
In the last few weeks i’ve noticed that uninstalling some Modules seems to have Problems. Might be it’s related to the CurrentUser Scope that is redirected to OneDrive. Anyone else seeing this?
I’ve updated the M365PSProfile PowerShell Module and the Uninstall-M365Module Function with the Parameter -FileMode. It will delete the Module Folder of that Module.
Install-PSResource -Name M365PSProfile
Import-Module -Name M365PSProfile
Uninstall-M365Module -Modules AZ -Scope CurrentUser -FileMode
Now i can install the newest AZ Modules - that is failing
Install-PSResource -Name AZ -Scope CurrentUser
It works with the old Install-Module Command - but that takes ages 😣
$Start = Get-Date
Install-Module -Name AZ -Scope CurrentUser
$End = Get-Date
New-Timespan -Start $start -End $End
List all the Modules from the AZ Modules
Get-InstalledPSResource -Name AZ.* -Scope CurrentUser
It seems when the Microsoft.PowerShell.PSResourceGet Module is loaded you end up with the following Error:
Connect-AzAccount : Method ‘GetTokenAsync’ in type ‘Azure.Identity.InteractiveBrowserCredential’ from assembly ‘Azure.Identity, Version=1.13.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8’ does not have an implementation. Could not find tenant id for provided tenant domain ‘icewolfch.onmicrosoft.com’. Please ensure that the provided user is found in the provided tenant domain.
Get-Module
Connect-AzAccount -Tenant icewolfch.onmicrosoft.com
If the Microsoft.PowerShell.PSResourceGet Module is not loaded, the command works
Get-Module
Connect-AzAccount -Tenant icewolfch.onmicrosoft.com
Get-AzStaticWebApp
Disconnect-AzAccount
Installation fails when using Install-PSResource
Install-PSResource -Name AZ -Scope CurrentUser
Get-InstalledPSResource -Name AZ.* -Scope CurrentUser
Or you can simply use my M365PSProfile Module - find the Documentation here: GitHub Documentation
Install-PSResource -Name M365PSProfile
Add-M365PSProfile
Install-M365Module -Scope CurrentUser -Modules AZ
Get-InstalledPSResource -Name AZ.* -Scope CurrentUser
Regards
Andres Bohren













