Azure Stack Hub 模組 2.2.0
需求:
最低支援的 Azure Stack Hub 版本為 2108 版。
注意:如需較舊版的 Azure Stack 請查看安裝 Azure Stack Powershell
安裝
如需詳細的安裝指示,請參閱 安裝 Azure Stack Powershell,並透過提高許可權的 Powershell 工作階段提示執行下列 Cmdlet:
# 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
關閉您的 PowerShell 工作階段,然後開啟新的 PowerShell 工作階段,更新便會生效。 從 PowerShell 工作階段執行下列命令︰
[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
版本資訊
- 由 2108 更新所支援。
- 此 2.2.0 版本會更新 Azs.Compute.Admin 模組中的功能。 這也會新增模組,以便在 Azure Stack Hub 上使用 Azure Container Registry:Azs.ContainerRegistry.Admin 和 Azs.ContainerService.Admin。管理員模組現在具有 Az.Resources 模組 0.12.0 版本的相依性。 如需此更新中變更的詳細資訊,請參閱 AzureStack 模組變更記錄