Partilhar via


Azure Stack Hub Module 2.2.0

Requirements:

Minimum supported Azure Stack Hub version is 2108.

Note: For earlier versions of Azure Stack check Install Azure Stack Powershell

Install

For detailed install instructions please refer to Install Azure Stack Powershell Run the following cmdlets from an elevated PowerShell session prompt:

# Remove previous versions of AzureStack and AzureRM modules
Get-Module -Name Azure* -ListAvailable | Uninstall-Module -Force -Verbose -ErrorAction Continue
Get-Module -Name Azs.* -ListAvailable | Uninstall-Module -Force -Verbose -ErrorAction Continue
Get-Module -Name Az.* -ListAvailable | Uninstall-Module -Force -Verbose -ErrorAction Continue

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Install-Module PowerShellGet -MinimumVersion 2.2.3 -Force

Close your PowerShell session, then open a new PowerShell session so that update can take effect. Run the following command from a PowerShell session:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module -Name Az.BootStrapper -Force

# Install and import the API Version Modules required by Azure Stack into the current PowerShell session.
Use-AzProfile -Profile 2020-09-01-hybrid -Force

# Install Azure Stack Admin Module
Install-Module -Name AzureStack -RequiredVersion 2.2.0 -AllowPrerelease

Release Notes

  • Supported with 2108 update.
  • This release 2.2.0 updates the capabilities in the Azs.Compute.Admin module. This also adds new modules for working with Azure Container Registry on Azure Stack Hub: Azs.ContainerRegistry.Admin and Azs.ContainerService.Admin. The Admin modules now have a dependency on the Az.Resources module version 0.12.0. For details on the changes in this update, see the AzureStack module change log