Microsoft.DBforMySQL servers/keys template reference

Template format

To create a Microsoft.DBforMySQL/servers/keys resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.DBforMySQL/servers/keys",
  "apiVersion": "2020-01-01",
  "properties": {
    "serverKeyType": "AzureKeyVault",
    "uri": "string"
  }
}

Property values

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

Microsoft.DBforMySQL/servers/keys 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 string Yes The name of the MySQL Server key to be operated on (updated or created).
type enum Yes For JSON -keys
-or-
Microsoft.DBforMySQL/servers/keys

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-01-01
properties object Yes Properties of the ServerKey Resource. - ServerKeyProperties object

ServerKeyProperties object

Name Type Required Value
serverKeyType enum Yes The key type like 'AzureKeyVault'. - AzureKeyVault
uri string No The URI of the key.