Share via


Microsoft.Contoso employees 2021-10-01-preview

Bicep resource definition

The employees 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.Contoso/employees resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Contoso/employees@2021-10-01-preview' = {
  location: 'string'
  name: 'string'
  properties: {
    age: int
    city: 'string'
    profile: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.Contoso/employees

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9-]{3,24}$ (required)
properties The resource-specific properties for this resource. EmployeeProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

EmployeeProperties

Name Description Value
age Age of employee int
city City of employee string
profile Profile of employee string

TrackedResourceTags

Name Description Value

ARM template resource definition

The employees 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.Contoso/employees resource, add the following JSON to your template.

{
  "type": "Microsoft.Contoso/employees",
  "apiVersion": "2021-10-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "age": "int",
    "city": "string",
    "profile": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.Contoso/employees

Name Description Value
apiVersion The api version '2021-10-01-preview'
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9-]{3,24}$ (required)
properties The resource-specific properties for this resource. EmployeeProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Contoso/employees'

EmployeeProperties

Name Description Value
age Age of employee int
city City of employee string
profile Profile of employee string

TrackedResourceTags

Name Description Value

Usage Examples

Terraform (AzAPI provider) resource definition

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

  • Resource groups

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

Resource format

To create a Microsoft.Contoso/employees resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Contoso/employees@2021-10-01-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      age = int
      city = "string"
      profile = "string"
    }
  }
}

Property Values

Microsoft.Contoso/employees

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9-]{3,24}$ (required)
properties The resource-specific properties for this resource. EmployeeProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Contoso/employees@2021-10-01-preview"

EmployeeProperties

Name Description Value
age Age of employee int
city City of employee string
profile Profile of employee string

TrackedResourceTags

Name Description Value