Share via


如何針對 Windows Azure Pack 設定 System Center 資源提供者

 

發佈時間: 2016年6月

適用於: System Center 2012 R2 Orchestrator

System_CAPS_important重要事項

若無法在 Windows Server 適用的 Windows Azure Pack 中變更 Service Provider Foundation 時,本主題應僅適用於舊版的 系統管理員的管理入口網站。 不過,此情況以已不再適用。 如需詳細資訊,請參閱為虛擬機器雲端註冊 Service Provider Foundation 端點

如果要變更已向 Service Provider Foundation 登錄之 適用於 Windows Server 和 API 的 Windows Azure Pack 伺服器的位置或帳戶的使用者名稱和密碼,您必須使用 Management Service Configuration Windows PowerShell Cmdlet 來變更 System Center 資源提供者設定。

本主題說明如何更新 Service Provider Foundation 已設定為端點的 適用於 Windows Server 和 API 的 Windows Azure Pack URL。

當入口網站系統管理員在管理入口網站中登錄 Service Provider Foundation 時,適用於 Windows Server 和 API 的 Windows Azure Pack 會使用基底 URL (例如:https://spfserver.constoso.skyspace.com:8090/) 來建立以下端點:

  • AdminEndpoint

  • TenantEndpoint

  • NotificationEndPoint (用於 Service Provider Foundation 中的提供者服務)

  • UsageEndPoint

    使用量端點在 適用於 Windows Server 和 API 的 Windows Azure Pack 中需分開登錄,但會採用相同的基底 URL。 如需設定使用計量的詳細資訊,請參閱 設定 Service Provider Foundation 中的 Usage Metering

如果您變更 Service Provider Foundation 伺服器的位置,便需要變更上述各個端點的 URL、使用者名稱及密碼。 HealthCheckNotificationEndpoint 將保留供日後使用,因此並未設定。

系統管理員、租用戶和通知端點的使用者名稱和密碼,必須為 Service Provider Foundation 伺服器上所指定的帳戶所有,且分別對應至 [本機使用者和群組] 中的本機 SPF_Admin、SPF_VMM 和 SPF_Provider 群組。 如需詳細資訊,請參閱4c766289-4f3c-4990-be7e-4181f99438ee#LocalCreds的<驗證存取入口網站的本機使用者認證>一節。

如需在 Service Provider Foundation 中登錄 適用於 Windows Server 和 API 的 Windows Azure Pack 的詳細資訊,請參閱佈建服務的<佈建虛擬機器雲端>一節。

變更 Service Provider Foundation 端點

  1. 在安裝 Service Management 管理 API 的伺服器上執行 Management Service Configuration PowerShell 主控台。

  2. 視需要匯入模組:

      PS C:\> Import-Module -name MgmtSvcConfig
    
  3. 確認您擁有管理 API:

      PS C:\> Get-MgmtSvcNamespace
    

    結果應包含 'AdminAPI'。

  4. 取得目前 System Center 資源提供者的 XML,以便檢閱及儲存記錄:

      PS C:\> Get-ResourceProvider -name systemcenter -As XmlString | out-file 'c:\temp\resourceproviderSC2012.xml' 
    
  5. 以名為 $rp 之物件變數的形式取得 System Center 資源提供者。

      PS C:\> $rp = Get-ResourceProvider -name systemcenter
    
  6. 針對 Service Provider Foundation 伺服器的使用者名稱和密碼建立變數。

      PS C:\> $username = 'Administrator' PS C:\> $pwd = '00cc7urPWD'
    
  7. 顯示管理端點的設定:

      PS C:\> $rp.AdminEndpoint
    
  8. 將以下內容設定為新的值。 另外,將 AuthenticationMode 指定為 'Basic',以確保認證變更時不會遭到清除。

      PS C:\> $rp.AdminEndpoint.ForwardingAddress = 'https://spfserver2.contoso.skyspace.com:8090/' PS C:\> $rp.AdminEndpoint.AuthenticationMode = 'Basic' PS C:\> $rp.AdminEndpoint.AuthenticationUserame = $username PS C:\> $rp.AdminEndpoint.AuthenticationPassword = $pwd
    
  9. 顯示租用戶端點的設定:

      PS C:\> $rp.TenantEndpoint
    
  10. 設定內容:

     PS C:\> $rp.TenantEndpoint.ForwardingAddress = 'https://spfserver2.contoso.skyspace.com:8090/SC2012/VMM/' PS C:\> $rp.TenantEndpoint.AuthenticationMode = 'Basic' PS C:\> $rp.TenantEndpoint.AuthenticationUserame = $username PS C:\> $rp.TenantEndpoint.AuthenticationPassword = $pwd
    
  11. 顯示通知端點的設定:

     PS C:\> $rp.NotificationEndpoint
    
  12. 設定內容:

     PS C:\> $rp.NotificationEndpoint.ForwardingAddress = 'https://spfserver2.contoso.skyspace.com:8090/provider/' PS C:\> $rp.NotificationEndpoint.AuthenticationMode = 'Basic' PS C:\> $rp.NotificationEndpoint.AuthenticationUserame = $username PS C:\> $rp.NotificationEndpoint.AuthenticationPassword = $pwd
    
  13. 如果您已登錄使用量端點,也需要變更該端點。 顯示使用量端點的設定:

     PS C:\> $rp.UsageEndpoint
    

    如果未傳回任何項目或 XML 呈現以下內容,請略過下一個設定內容的步驟,待準備就緒後,再於管理入口網站中使用新的 URL 登錄使用量端點。

     <UsageEndpoint i:nil="true" />
    
  14. 設定內容:

     PS C:\> $rp.UsageEndpoint.ForwardingAddress = 'https://spfserver2.contoso.skyspace.com:8090/' PS C:\> $rp.UsageEndpoint.AuthenticationMode = 'Basic' PS C:\> $rp.UsageEndpoint.AuthenticationUserame = $username PS C:\> $rp.UsageEndpoint.AuthenticationPassword = $pwd
    
  15. 您現在可以利用 -Force 參數新增資源提供者物件來更新端點,將 System Center 資源提供者的值覆寫為新的值。 類型:

     PS C:\>Add-ResourceProvider –ResourceProvider $rp –Force