Microsoft.Storage storageAccounts/tableServices 2021-01-01

Template format

To create a Microsoft.Storage/storageAccounts/tableServices resource, add the following JSON to the resources section of your template.

{
  "name": "default",
  "type": "Microsoft.Storage/storageAccounts/tableServices",
  "apiVersion": "2021-01-01",
  "properties": {
    "cors": {
      "corsRules": [
        {
          "allowedOrigins": [
            "string"
          ],
          "allowedMethods": [
            "string"
          ],
          "maxAgeInSeconds": "integer",
          "exposedHeaders": [
            "string"
          ],
          "allowedHeaders": [
            "string"
          ]
        }
      ]
    }
  },
  "resources": []
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Storage/storageAccounts/tableServices object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name enum Yes The name of the Table Service within the specified storage account. Table Service Name must be 'default' - default
type enum Yes For JSON -tableServices
-or-
Microsoft.Storage/storageAccounts/tableServices

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2021-01-01
properties object Yes The properties of a storage account’s Table service. - TableServicePropertiesProperties object
resources array No tables

TableServicePropertiesProperties object

Name Type Required Value
cors object No Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Table service. - CorsRules object

CorsRules object

Name Type Required Value
corsRules array No The List of CORS rules. You can include up to five CorsRule elements in the request. - CorsRule object

CorsRule object

Name Type Required Value
allowedOrigins array Yes Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains - string
allowedMethods array Yes Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. - DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT
maxAgeInSeconds integer Yes Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
exposedHeaders array Yes Required if CorsRule element is present. A list of response headers to expose to CORS clients. - string
allowedHeaders array Yes Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. - string