Skip to main content

2026 年 7 月 20 日

準備用戶端

為 PowerShell 部署準備 Windows 或 Ubuntu 用戶端。

程序

  1. 使用管理權限開啟 PowerShell 命令視窗。

  2. 執行命令。

    版本命令
    PowerShell 5
    Install-Module -Name AzureRM -Force
    PowerShell 7
    Install-Module -Name Az -Force
  3. 若要登入 Azure 環境,請執行命令。

    版本命令
    PowerShell 5
    connect-AzurermAccount
    PowerShell 7
    connect-AzAccount

下一步

在訂閱中登錄 UseStandardSecurityType 功能

目前,Unified Access Gateway 支援標準啟動方法。Microsoft 建議在訂閱中明確登錄 UseStandardSecurityType 功能以啟用標準啟動。如需詳細資訊,請參閱 Microsoft 常見問題集〈我可以在部署新的虛擬機器時停用受信任啟動功能嗎?〉一節中的附註。

  1. 檢查 UseStandardSecurityType 功能是否已登錄。

    Get-AzProviderFeature -FeatureName UseStandardSecurityType -ProviderNamespace Microsoft.Compute

  2. 如果該功能處於 Unregistered 狀態,請執行此命令。

    Register-AzProviderFeature -FeatureName UseStandardSecurityType -ProviderNamespace Microsoft.Compute

  3. 等待登錄完成。執行此命令以檢查狀態。

    Get-AzProviderFeature -FeatureName UseStandardSecurityType -ProviderNamespace Microsoft.Compute
    狀態應顯示 Registered

  4. 登錄完成後,重新整理資源提供者。

    Register-AzResourceProvider -ProviderNamespace Microsoft.Compute

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

請勿填寫任何個人或機密資訊。

正在產生連結…