Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The accounts resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
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
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 |
AccountProperties
| Name | Description | Value |
|---|
DefaultDtoTags
| Name | Description | Value |
|---|
Identity
| Name | Description | Value |
|---|---|---|
| type | Identity Type | 'SystemAssigned' |
Usage Examples
Bicep Samples
A basic example of deploying Data Share Account.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource account 'Microsoft.DataShare/accounts@2019-11-01' = {
name: resourceName
location: location
tags: {
env: 'Test'
}
}
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying 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:
- Resource groups - See resource group deployment commands
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
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' |
AccountProperties
| Name | Description | Value |
|---|
DefaultDtoTags
| Name | Description | Value |
|---|
Identity
| Name | Description | Value |
|---|---|---|
| type | Identity Type | 'SystemAssigned' |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
| Template | 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 |
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"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
}
}
}
Property Values
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" |
AccountProperties
| Name | Description | Value |
|---|
DefaultDtoTags
| Name | Description | Value |
|---|
Identity
| Name | Description | Value |
|---|---|---|
| type | Identity Type | 'SystemAssigned' |
Usage Examples
Terraform Samples
A basic example of deploying Data Share Account.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "account" {
type = "Microsoft.DataShare/accounts@2019-11-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
tags = {
env = "Test"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}