Share via


Microsoft.Blueprint blueprintAssignments 2017-11-11-preview

Choose a deployment language

Bicep resource definition

The blueprintAssignments resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in Bicep.

The blueprintAssignments resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Blueprint/blueprintAssignments resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Blueprint/blueprintAssignments@2017-11-11-preview' = {
  name: 'string'
  location: 'string'
  scope: resourceSymbolicName
  identity: {
    principalId: 'string'
    tenantId: 'string'
    type: 'string'
  }
  properties: {
    blueprintId: 'string'
    description: 'string'
    displayName: 'string'
    locks: {
      mode: 'string'
    }
    parameters: {}
    resourceGroups: {}
  }
}

Property values

blueprintAssignments

Name Description Value
name The resource name string (required)

Character limit: 90

Valid characters:
Alphanumerics, underscores, and hyphens.
location The location of this Blueprint assignment. string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For Bicep, set this property to the symbolic name of the resource to apply the extension resource.
identity Managed Service Identity for this Blueprint assignment ManagedServiceIdentity (required)
properties Properties for Assignment object. AssignmentProperties (required)

ManagedServiceIdentity

Name Description Value
principalId Azure Active Directory principal ID associated with this Identity. string
tenantId ID of the Azure Active Directory. string
type Type of the Managed Service Identity. 'None'
'SystemAssigned'
'UserAssigned' (required)

AssignmentProperties

Name Description Value
blueprintId ID of the Blueprint definition resource. string
description Multi-line explain this resource. string
displayName One-liner string explain this resource. string
locks Defines how Blueprint-managed resources will be locked. AssignmentLockSettings
parameters Blueprint parameter values. object (required)
resourceGroups Names and locations of resource group placeholders. object (required)

AssignmentLockSettings

Name Description Value
mode Lock mode. 'AllResources'
'None'

ARM template resource definition

The blueprintAssignments resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.

The blueprintAssignments resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Blueprint/blueprintAssignments resource, add the following JSON to your template.

{
  "type": "Microsoft.Blueprint/blueprintAssignments",
  "apiVersion": "2017-11-11-preview",
  "name": "string",
  "location": "string",
  "scope": "string",
  "identity": {
    "principalId": "string",
    "tenantId": "string",
    "type": "string"
  },
  "properties": {
    "blueprintId": "string",
    "description": "string",
    "displayName": "string",
    "locks": {
      "mode": "string"
    },
    "parameters": {},
    "resourceGroups": {}
  }
}

Property values

blueprintAssignments

Name Description Value
type The resource type 'Microsoft.Blueprint/blueprintAssignments'
apiVersion The resource api version '2017-11-11-preview'
name The resource name string (required)

Character limit: 90

Valid characters:
Alphanumerics, underscores, and hyphens.
location The location of this Blueprint assignment. string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For JSON, set the value to the full name of the resource to apply the extension resource to.
identity Managed Service Identity for this Blueprint assignment ManagedServiceIdentity (required)
properties Properties for Assignment object. AssignmentProperties (required)

ManagedServiceIdentity

Name Description Value
principalId Azure Active Directory principal ID associated with this Identity. string
tenantId ID of the Azure Active Directory. string
type Type of the Managed Service Identity. 'None'
'SystemAssigned'
'UserAssigned' (required)

AssignmentProperties

Name Description Value
blueprintId ID of the Blueprint definition resource. string
description Multi-line explain this resource. string
displayName One-liner string explain this resource. string
locks Defines how Blueprint-managed resources will be locked. AssignmentLockSettings
parameters Blueprint parameter values. object (required)
resourceGroups Names and locations of resource group placeholders. object (required)

AssignmentLockSettings

Name Description Value
mode Lock mode. 'AllResources'
'None'

Terraform (AzAPI provider) resource definition

The blueprintAssignments resource type is an extension resource, which means you can apply it to another resource.

Use the parent_id property on this resource to set the scope for this resource.

The blueprintAssignments resource type can be deployed with operations that target:

  • Subscriptions

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Blueprint/blueprintAssignments resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Blueprint/blueprintAssignments@2017-11-11-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  identity {
    type = "string"
  }
  body = jsonencode({
    properties = {
      blueprintId = "string"
      description = "string"
      displayName = "string"
      locks = {
        mode = "string"
      }
      parameters = {}
      resourceGroups = {}
    }
  })
}

Property values

blueprintAssignments

Name Description Value
type The resource type "Microsoft.Blueprint/blueprintAssignments@2017-11-11-preview"
name The resource name string (required)

Character limit: 90

Valid characters:
Alphanumerics, underscores, and hyphens.
location The location of this Blueprint assignment. string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
identity Managed Service Identity for this Blueprint assignment ManagedServiceIdentity (required)
properties Properties for Assignment object. AssignmentProperties (required)

ManagedServiceIdentity

Name Description Value
type Type of the Managed Service Identity. "SystemAssigned"
"UserAssigned" (required)

AssignmentProperties

Name Description Value
blueprintId ID of the Blueprint definition resource. string
description Multi-line explain this resource. string
displayName One-liner string explain this resource. string
locks Defines how Blueprint-managed resources will be locked. AssignmentLockSettings
parameters Blueprint parameter values. object (required)
resourceGroups Names and locations of resource group placeholders. object (required)

AssignmentLockSettings

Name Description Value
mode Lock mode. "AllResources"
"None"