Microsoft.DBforMariaDB servers 2018-06-01-preview

The servers resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.DBforMariaDB/servers resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.DBforMariaDB/servers@2018-06-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  properties: {
    minimalTlsVersion: 'string'
    sslEnforcement: 'string'
    storageProfile: {
      backupRetentionDays: int
      geoRedundantBackup: 'string'
      storageAutogrow: 'string'
      storageMB: int
    }
    version: 'string'
    createMode: 'string'
    // For remaining properties, see ServerPropertiesForCreate objects
  }
}

ServerPropertiesForCreate objects

Set the createMode property to specify the type of object.

For Default, use:

  createMode: 'Default'
  administratorLogin: 'string'
  administratorLoginPassword: 'string'

For GeoRestore, use:

  createMode: 'GeoRestore'
  sourceServerId: 'string'

For PointInTimeRestore, use:

  createMode: 'PointInTimeRestore'
  restorePointInTime: 'string'
  sourceServerId: 'string'

For Replica, use:

  createMode: 'Replica'
  sourceServerId: 'string'

Property values

servers

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.DBforMariaDB/servers'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2018-06-01-preview'
name The resource name string (required)
location The geo-location where the resource lives string (required)
tags Resource tags. Dictionary of tag names and values. See Tags in templates
sku Billing information related properties of a server. Sku
properties The properties of a server. ServerPropertiesForCreate (required)

ServerPropertiesForCreate

Name Description Value
minimalTlsVersion Enforce a minimal Tls version for the server. 'TLS1_0'
'TLS1_1'
'TLS1_2'
'TLSEnforcementDisabled'
sslEnforcement Enable ssl enforcement or not when connect to server. 'Disabled'
'Enabled'
storageProfile Storage Profile properties of a server StorageProfile
version The version of a server. '10.2'
'10.3'
createMode Set the object type Default
GeoRestore
PointInTimeRestore
Replica

StorageProfile

Name Description Value
backupRetentionDays Backup retention days for the server. int
geoRedundantBackup Enable Geo-redundant or not for server backup. 'Disabled'
'Enabled'
storageAutogrow Enable Storage Auto Grow. 'Disabled'
'Enabled'
storageMB Max storage allowed for a server. int

ServerPropertiesForDefaultCreate

Name Description Value
createMode The mode to create a new server. 'Default'
administratorLogin string (required)
administratorLoginPassword string (required)

ServerPropertiesForGeoRestore

Name Description Value
createMode The mode to create a new server. 'GeoRestore'
sourceServerId string (required)

ServerPropertiesForRestore

Name Description Value
createMode The mode to create a new server. 'PointInTimeRestore'
restorePointInTime string (required)
sourceServerId string (required)

ServerPropertiesForReplica

Name Description Value
createMode The mode to create a new server. 'Replica'
sourceServerId string (required)

Sku

Name Description Value
capacity The scale up/out capacity, representing server's compute units. int
family The family of hardware. string
name The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. string (required)
size The size code, to be interpreted by resource as appropriate. string
tier The tier of the particular SKU, e.g. Basic. 'Basic'
'GeneralPurpose'
'MemoryOptimized'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Deploy Azure Database for MariaDB with VNet

Deploy to Azure
This template provides a way to deploy an Azure database for MariaDB with VNet integration.