Share via


Microsoft.DataShare accounts

Choose a deployment language

Bicep resource definition

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

resource symbolicname 'Microsoft.DataShare/accounts@2021-08-01' = {
  identity: {
    type: 'string'
  }
  location: 'string'
  name: 'string'
  properties: {}
  tags: {
    {customized property}: 'string'
  }
}

Property values

AccountProperties

Name Description Value

DefaultDtoTags

Name Description Value

Identity

Name Description Value
type Identity Type 'SystemAssigned'

Microsoft.DataShare/accounts

Name Description Value
identity Identity Info on the Account Identity (required)
location Location of the azure resource. string
name The resource name string (required)
properties Properties on the account AccountProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

Quickstart samples

The following quickstart samples deploy this resource type.

Bicep File Description
Create a data share This template creates a data share
Create a data share account This template creates a data share account
Create a data share from a storage account This template creates a data share from a storage account

ARM template resource definition

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

{
  "type": "Microsoft.DataShare/accounts",
  "apiVersion": "2021-08-01",
  "name": "string",
  "identity": {
    "type": "string"
  },
  "location": "string",
  "properties": {
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

AccountProperties

Name Description Value

DefaultDtoTags

Name Description Value

Identity

Name Description Value
type Identity Type 'SystemAssigned'

Microsoft.DataShare/accounts

Name Description Value
apiVersion The api version '2021-08-01'
identity Identity Info on the Account Identity (required)
location Location of the azure resource. string
name The resource name string (required)
properties Properties on the account AccountProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.DataShare/accounts'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a data share

Deploy to Azure
This template creates a data share
Create a data share account

Deploy to Azure
This template creates a data share account
Create a data share from a storage account

Deploy to Azure
This template creates a data share from a storage account

Terraform (AzAPI provider) resource definition

The accounts 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.DataShare/accounts resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DataShare/accounts@2021-08-01"
  name = "string"
  identity = {
    type = "string"
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
    }
  })
}

Property values

AccountProperties

Name Description Value

DefaultDtoTags

Name Description Value

Identity

Name Description Value
type Identity Type 'SystemAssigned'

Microsoft.DataShare/accounts

Name Description Value
identity Identity Info on the Account Identity (required)
location Location of the azure resource. string
name The resource name string (required)
properties Properties on the account AccountProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.DataShare/accounts@2021-08-01"