Share via


Microsoft.Management managementGroups/subscriptions

Bicep リソース定義

managementGroups/subscriptions リソースの種類は、次を対象とする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

注釈

リソースを Microsoft.Management/managementGroups/subscriptions 使用して、既存のサブスクリプションを新しい管理グループに移動します。 詳細については、「 ARM テンプレートまたは Bicep ファイルでサブスクリプションを移動する」を参照してください。

リソース形式

Microsoft.Management/managementGroups/subscriptions リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.Management/managementGroups/subscriptions@2021-04-01' = {
  name: 'string'
  parent: resourceSymbolicName
}

プロパティ値

managementGroups/subscriptions

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
string (必須)
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部にある子リソース」を参照してください。
種類のリソースのシンボル名: managementGroups

ARM テンプレート リソース定義

managementGroups/subscriptions リソースの種類は、次を対象とする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

注釈

リソースを Microsoft.Management/managementGroups/subscriptions 使用して、既存のサブスクリプションを新しい管理グループに移動します。 詳細については、「 ARM テンプレートまたは Bicep ファイルでサブスクリプションを移動する」を参照してください。

リソース形式

Microsoft.Management/managementGroups/subscriptions リソースを作成するには、次の JSON をテンプレートに追加します。

{
  "type": "Microsoft.Management/managementGroups/subscriptions",
  "apiVersion": "2021-04-01",
  "name": "string"
}

プロパティ値

managementGroups/subscriptions

名前 説明
type リソースの種類 'Microsoft.Management/managementGroups/subscriptions'
apiVersion リソース API のバージョン '2021-04-01'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
string (必須)

Terraform (AzAPI プロバイダー) リソース定義

managementGroups/subscriptions リソースの種類は、次を対象とする操作でデプロイできます。

  • テナント

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Management/managementGroups/subscriptions リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Management/managementGroups/subscriptions@2021-04-01"
  name = "string"
  parent_id = "string"
}

プロパティ値

managementGroups/subscriptions

名前 説明
type リソースの種類 "Microsoft.Management/managementGroups/subscriptions@2021-04-01"
name リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: managementGroups