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 storageAccounts/tableServices/tables 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.
Usage Examples
Bicep Samples
A basic example of deploying Table within Azure Storage.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource tableService 'Microsoft.Storage/storageAccounts/tableServices@2022-09-01' existing = {
name: 'default'
parent: storageAccount
}
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-09-01' = {
name: resourceName
location: location
sku: {
name: 'Standard_LRS'
}
properties: {}
}
resource table 'Microsoft.Storage/storageAccounts/tableServices/tables@2022-09-01' = {
name: resourceName
parent: tableService
properties: {
signedIdentifiers: []
}
}
Resource format
To create a Microsoft.Storage/storageAccounts/tableServices/tables resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Storage/storageAccounts/tableServices/tables@2021-04-01' = {
parent: resourceSymbolicName
name: 'string'
}
Property Values
Microsoft.Storage/storageAccounts/tableServices/tables
| Name | Description | Value |
|---|---|---|
| name | The resource name | string Constraints: Min length = 3 Max length = 63 Pattern = ^[A-Za-z][A-Za-z0-9]{2,62}$ (required) |
| parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: storageAccounts/tableServices |
ARM template resource definition
The storageAccounts/tableServices/tables 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.
Usage Examples
Resource format
To create a Microsoft.Storage/storageAccounts/tableServices/tables resource, add the following JSON to your template.
{
"type": "Microsoft.Storage/storageAccounts/tableServices/tables",
"apiVersion": "2021-04-01",
"name": "string"
}
Property Values
Microsoft.Storage/storageAccounts/tableServices/tables
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2021-04-01' |
| name | The resource name | string Constraints: Min length = 3 Max length = 63 Pattern = ^[A-Za-z][A-Za-z0-9]{2,62}$ (required) |
| type | The resource type | 'Microsoft.Storage/storageAccounts/tableServices/tables' |
Terraform (AzAPI provider) resource definition
The storageAccounts/tableServices/tables resource type can be deployed with operations that target:
- Resource groups For a list of changed properties in each API version, see change log.
Usage Examples
Terraform Samples
A basic example of deploying Table within Azure Storage.
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" "storageAccount" {
type = "Microsoft.Storage/storageAccounts@2021-09-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
}
sku = {
name = "Standard_LRS"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
data "azapi_resource_action" "listKeys" {
type = "Microsoft.Storage/storageAccounts@2022-09-01"
resource_id = azapi_resource.storageAccount.id
action = "listKeys"
response_export_values = ["*"]
}
data "azapi_resource" "tableService" {
type = "Microsoft.Storage/storageAccounts/tableServices@2022-09-01"
parent_id = azapi_resource.storageAccount.id
name = "default"
}
resource "azapi_resource" "table" {
type = "Microsoft.Storage/storageAccounts/tableServices/tables@2022-09-01"
parent_id = data.azapi_resource.tableService.id
name = var.resource_name
body = {
properties = {
signedIdentifiers = []
}
}
response_export_values = ["*"]
}
Resource format
To create a Microsoft.Storage/storageAccounts/tableServices/tables resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Storage/storageAccounts/tableServices/tables@2021-04-01"
name = "string"
parent_id = "string"
}
Property Values
Microsoft.Storage/storageAccounts/tableServices/tables
| Name | Description | Value |
|---|---|---|
| name | The resource name | string Constraints: Min length = 3 Max length = 63 Pattern = ^[A-Za-z][A-Za-z0-9]{2,62}$ (required) |
| parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: storageAccounts/tableServices |
| type | The resource type | "Microsoft.Storage/storageAccounts/tableServices/tables@2021-04-01" |