

• AWS Systems Manager CloudWatch 控制面板在 2026 年 4 月 30 日之后将不再可用。客户可以像现在一样继续使用 Amazon CloudWatch 控制台来查看、创建和管理其 Amazon CloudWatch 控制面板。有关更多信息，请参阅 [Amazon CloudWatch 控制面板文档](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html)。

# 第 2 步：创建 Systems Manager 云连接器
<a name="cloud-connector-create-ssm-connector"></a>

设置该云连接器后，创建 Systems Manager 云连接器。Systems Manager 云连接器存储 Azure 租户和订阅配置，并将其链接至连接器。

**创建 Systems Manager 云连接器**

1. 运行如下命令。将占位符值替换为您的 Azure 租户 ID、Systems Manager 应用程序（客户端）ID、订阅 ID、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` 字段。

   响应会返回 `CloudConnectorId` 和 `CloudConnectorArn`。请记下这些值以供未来操作使用。

1. 验证云连接器是否创建成功：

   ```
   aws ssm get-cloud-connector \
       --cloud-connector-id {{CLOUD_CONNECTOR_ID}}
   ```