將 Windows Azure Pack 元件重新設定為指向負載平衡器

 

適用于:Windows Azure Pack

重新設定所有Windows Azure Pack 元件,以指向使用 Windows PowerShell Cmdlet 的負載平衡器。

針對以下每個步驟,請在 Cmdlet 檔案前面加上下列環境設定。

# Environment settings
$server="sqlservercluster.contoso.com"
$userid="sqladminuser"
$password="yourpassword"
$PortalconnectionString="Data Source=$server;Initial Catalog=Microsoft.MgmtSvc.PortalConfigStore;User Id=$userid;Password=$password"

重新設定Windows Azure Pack 元件以指向負載平衡器

  1. 從 WAPAdmin01.contoso.com 或 WAPAdmin02.contoso.com 虛擬機器中,執行下列指令碼。 請務必在此指令碼前面加上前面說過的環境設定。 您也必須就您特有的資料更新參數。

    $AdminSiteLB = "WAPAdmin.contoso.com"
    $AdminSitePort = "30091"
    Set-MgmtSvcFqdn -Namespace AdminSite -FQDN $AdminSiteLB -ConnectionString $PortalconnectionString -Port $AdminSitePort
    
  2. 從 WAPAdminAuth01.contoso.com 或 WAPAdminAuth02.contoso.com 虛擬機器中,執行下列指令碼。 請務必在此指令碼前面加上前面說過的環境設定。 您也必須就您特有的資料更新參數。

    $AuthSiteLB = "WAPAdminAuth.contoso.com"
    $AuthSitePort = "30071"
    Set-MgmtSvcFqdn -Namespace AuthSite -FQDN $AuthSiteLB -ConnectionString $PortalconnectionString -Port $AuthSitePort
    
  3. 從 WAPTenant01.contoso.com 或 WAPTenant02.contoso.com 虛擬機器中,執行下列指令碼。 請務必在此指令碼前面加上前面說過的環境設定。 您也必須就您特有的資料更新參數。

    $TenantSiteLB ="WAPTenant.contoso.com"
    $TenantSitePort = "30081"
    Set-MgmtSvcFqdn -Namespace TenantSite -FQDN $TenantSiteLB -ConnectionString $PortalconnectionString -Port $TenantSitePort
    
  4. 從 WAPTenantAuth01.contoso.com 或 WAPTenantAuth02.contoso.com 虛擬機器中,執行下列指令碼。 請務必在此指令碼前面加上前面說過的環境設定。 您也必須就您特有的資料更新參數。

    $WinAuthSiteLB ="WAPTenantAuth.contoso.com"
    $WinAuthSitePort = "30072"
    Set-MgmtSvcFqdn -Namespace WindowsAuthSite -FQDN $WinAuthSiteLB -ConnectionString $PortalconnectionString -Port $WinAuthSitePort
    
  5. 從 WAPAdminAPI01.contoso.com 或 WAPAdminAPI02.contoso.com 虛擬機器中,執行下列指令碼。 請務必在此指令碼前面加上前面說過的環境設定。 您也必須就您特有的資料更新參數。

    $AdminApiLB ="WAPAdminAPI.contoso.com"
    $AdminApiPort = "30004"
    Set-MgmtSvcFqdn -Namespace AdminAPI -FQDN $AdminApiLB -ConnectionString $PortalconnectionString -Port $AdminApiPort
    
  6. 從 WAPTenantAPI01.contoso.com 或 WAPTenantAPI02.contoso.com 虛擬機器中,執行下列指令碼。 請務必在此指令碼前面加上前面說過的環境設定。 您也必須就您特有的資料更新參數。

    $TenantApiLB = "WAPTenantAPI.contoso.com"
    $TenantApiPort = "30005"
    Set-MgmtSvcFqdn -Namespace TenantApi -FQDN $TenantApiLB -ConnectionString $PortalconnectionString -Port $TenantApiPort
    
  7. 從 WAPTenPubAPI01.contoso.com 或 WAPTenPubAPI02.contoso.com 虛擬機器中,執行下列指令碼。 請務必在此指令碼前面加上前面說過的環境設定。 您也必須就您特有的資料更新參數。

    $TenantPublicApiLB = "WAPTenPubAPI.contoso.com"
    $TenantPublicApiPort = "30006"
    Set-MgmtSvcFqdn -Namespace TenantPublicApi -FQDN $TenantPublicApiLB -ConnectionString $PortalconnectionString -Port $TenantPublicApiPort