View a markdown version of this page

步驟 2:建立 Systems Manager Cloud Connector - AWS Systems Manager

• 2026 年 4 月 30 日之後將不再提供 AWS Systems Manager CloudWatch Dashboard。客戶可以繼續使用 Amazon CloudWatch 主控台來檢視、建立和管理其 Amazon CloudWatch 儀表板,就像現在一樣。如需詳細資訊,請參閱 Amazon CloudWatch Dashboard 文件

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

步驟 2:建立 Systems Manager Cloud Connector

設定 Cloud Connector 後,建立 Systems Manager Cloud Connector。Systems Manager Cloud Connector 會存放 Azure 租用戶和訂閱組態,並將其連結至連接器。

建立 Systems Manager Cloud Connector
  1. 執行下列命令。將預留位置值取代為您的 Azure 租用戶 ID、Systems Manager 應用程式 (用戶端) ID、訂閱 IDs、Systems Manager Azure 聯合角色 ARN,以及步驟 1 的連接器 ARN。

    aws ssm create-cloud-connector \ --display-name "MyAzureConnector" \ --configuration '{ "AzureConfiguration": { "TenantId": "TENANT_ID", "ApplicationId": "SSM_APP_CLIENT_ID", "Targets": { "Subscriptions": [ {"Id": "SUBSCRIPTION_ID"} ] } } }' \ --role-arn "arn:aws:iam::ACCOUNT_ID:role/service-role/SSM-AzureRole-CONNECTOR_NAME-ID8" \ --config-connector-arn CONFIG_CONNECTOR_ARN

    若要將租戶中的所有訂閱設為目標 (租戶層級設定),請省略組態中的 Targets 欄位。

    回應會傳回 CloudConnectorIdCloudConnectorArn。請記下這些值以供未來操作使用。

  2. 確認已成功建立 Cloud Connector:

    aws ssm get-cloud-connector \ --cloud-connector-id CLOUD_CONNECTOR_ID