為 PowerShell 部署準備 Windows 或 Ubuntu 用戶端。
程序
-
使用管理權限開啟 PowerShell 命令視窗。
-
執行命令。
版本 命令 PowerShell 5 Install-Module -Name AzureRM -ForcePowerShell 7 Install-Module -Name Az -Force -
若要登入 Azure 環境,請執行命令。
版本 命令 PowerShell 5 connect-AzurermAccountPowerShell 7 connect-AzAccount
下一步
在訂閱中登錄 UseStandardSecurityType 功能
目前,Unified Access Gateway 支援標準啟動方法。Microsoft 建議在訂閱中明確登錄 UseStandardSecurityType 功能以啟用標準啟動。如需詳細資訊,請參閱 Microsoft 常見問題集〈我可以在部署新的虛擬機器時停用受信任啟動功能嗎?〉一節中的附註。
- 檢查
UseStandardSecurityType功能是否已登錄。
Get-AzProviderFeature -FeatureName UseStandardSecurityType -ProviderNamespace Microsoft.Compute - 如果該功能處於
Unregistered狀態,請執行此命令。
Register-AzProviderFeature -FeatureName UseStandardSecurityType -ProviderNamespace Microsoft.Compute - 等待登錄完成。執行此命令以檢查狀態。
Get-AzProviderFeature -FeatureName UseStandardSecurityType -ProviderNamespace Microsoft.Compute
狀態應顯示Registered。 - 登錄完成後,重新整理資源提供者。
Register-AzResourceProvider -ProviderNamespace Microsoft.Compute
此頁面對您有幫助嗎?