你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep 资源定义
serviceGroupMember 资源类型可以使用以下目标的作进行部署:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.Relationships/serviceGroupMember 资源,请将以下 Bicep 添加到模板中。
resource symbolicname 'Microsoft.Relationships/serviceGroupMember@2026-08-01' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
sourceId: 'string'
sourceTenant: 'string'
}
}
属性值
Microsoft.Relationships/serviceGroupMember
| 名称 | Description | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| 属性 | 此资源的资源特定属性。 | ServiceGroupMemberRelationshipPropertiesV2 |
| 作用域 | 在与部署范围不同的范围内创建资源时使用。 | 将此属性设置为资源的符号名称,以应用 扩展资源。 |
ServiceGroupMemberRelationshipPropertiesV2
| 名称 | Description | 价值 |
|---|---|---|
| 源 Id | 关系源资源ID。必须是一个服务组。 | string (必需) |
| 来源租户 | 关系来源租户编号。 | 字符串 |
ARM 模板资源定义
serviceGroupMember 资源类型可以使用以下目标的作进行部署:
用法示例
资源格式
要创建 Microsoft.Relationships/serviceGroupMember 资源,请将以下 JSON 添加到您的模板中。
{
"type": "Microsoft.Relationships/serviceGroupMember",
"apiVersion": "2026-08-01",
"name": "string",
"properties": {
"sourceId": "string",
"sourceTenant": "string"
}
}
属性值
Microsoft.Relationships/serviceGroupMember
| 名称 | Description | 价值 |
|---|---|---|
| apiVersion | API 版本 | '2026-08-01' |
| 名字 | 资源名称 | string (必需) |
| 属性 | 此资源的资源特定属性。 | ServiceGroupMemberRelationshipPropertiesV2 |
| 类型 | 资源类型 | “Microsoft.Relationships/serviceGroupMember” |
ServiceGroupMemberRelationshipPropertiesV2
| 名称 | Description | 价值 |
|---|---|---|
| 源 Id | 关系源资源ID。必须是一个服务组。 | string (必需) |
| 来源租户 | 关系来源租户编号。 | 字符串 |
Terraform (AzAPI 提供程序)资源定义
serviceGroupMember 资源类型可以使用以下目标的作进行部署:
- 租户* 管理组* 订阅* 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
资源格式
要创建 Microsoft.Relationships/serviceGroupMember 资源,请将以下 Terraform 添加到您的模板中。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Relationships/serviceGroupMember@2026-08-01"
name = "string"
parent_id = "string"
body = {
properties = {
sourceId = "string"
sourceTenant = "string"
}
}
}
属性值
Microsoft.Relationships/serviceGroupMember
| 名称 | Description | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| parent_id | 要向其应用此扩展资源的资源的 ID。 | string (必需) |
| 属性 | 此资源的资源特定属性。 | ServiceGroupMemberRelationshipPropertiesV2 |
| 类型 | 资源类型 | “Microsoft。关系/serviceGroupMember@2026-08-01” |
ServiceGroupMemberRelationshipPropertiesV2
| 名称 | Description | 价值 |
|---|---|---|
| 源 Id | 关系源资源ID。必须是一个服务组。 | string (必需) |
| 来源租户 | 关系来源租户编号。 | 字符串 |