1. Packages
  2. Azure Native v2
  3. API Docs
  4. dbformariadb
  5. Server
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.dbformariadb.Server

Explore with Pulumi AI

Represents a server. Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.

Other available API versions: 2018-06-01-preview.

Example Usage

Create a database as a point in time restore

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var server = new AzureNative.DBforMariaDB.Server("server", new()
    {
        Location = "brazilsouth",
        Properties = new AzureNative.DBforMariaDB.Inputs.ServerPropertiesForRestoreArgs
        {
            CreateMode = "PointInTimeRestore",
            RestorePointInTime = "2017-12-14T00:00:37.467Z",
            SourceServerId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver",
        },
        ResourceGroupName = "TargetResourceGroup",
        ServerName = "targetserver",
        Sku = new AzureNative.DBforMariaDB.Inputs.SkuArgs
        {
            Capacity = 2,
            Family = "Gen5",
            Name = "GP_Gen5_2",
            Tier = AzureNative.DBforMariaDB.SkuTier.GeneralPurpose,
        },
        Tags = 
        {
            { "ElasticServer", "1" },
        },
    });

});
Copy
package main

import (
	dbformariadb "github.com/pulumi/pulumi-azure-native-sdk/dbformariadb/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dbformariadb.NewServer(ctx, "server", &dbformariadb.ServerArgs{
			Location: pulumi.String("brazilsouth"),
			Properties: &dbformariadb.ServerPropertiesForRestoreArgs{
				CreateMode:         pulumi.String("PointInTimeRestore"),
				RestorePointInTime: pulumi.String("2017-12-14T00:00:37.467Z"),
				SourceServerId:     pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver"),
			},
			ResourceGroupName: pulumi.String("TargetResourceGroup"),
			ServerName:        pulumi.String("targetserver"),
			Sku: &dbformariadb.SkuArgs{
				Capacity: pulumi.Int(2),
				Family:   pulumi.String("Gen5"),
				Name:     pulumi.String("GP_Gen5_2"),
				Tier:     pulumi.String(dbformariadb.SkuTierGeneralPurpose),
			},
			Tags: pulumi.StringMap{
				"ElasticServer": pulumi.String("1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformariadb.Server;
import com.pulumi.azurenative.dbformariadb.ServerArgs;
import com.pulumi.azurenative.dbformariadb.inputs.SkuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var server = new Server("server", ServerArgs.builder()
            .location("brazilsouth")
            .properties(ServerPropertiesForDefaultCreateArgs.builder()
                .createMode("PointInTimeRestore")
                .restorePointInTime("2017-12-14T00:00:37.467Z")
                .sourceServerId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver")
                .build())
            .resourceGroupName("TargetResourceGroup")
            .serverName("targetserver")
            .sku(SkuArgs.builder()
                .capacity(2)
                .family("Gen5")
                .name("GP_Gen5_2")
                .tier("GeneralPurpose")
                .build())
            .tags(Map.of("ElasticServer", "1"))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const server = new azure_native.dbformariadb.Server("server", {
    location: "brazilsouth",
    properties: {
        createMode: "PointInTimeRestore",
        restorePointInTime: "2017-12-14T00:00:37.467Z",
        sourceServerId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver",
    },
    resourceGroupName: "TargetResourceGroup",
    serverName: "targetserver",
    sku: {
        capacity: 2,
        family: "Gen5",
        name: "GP_Gen5_2",
        tier: azure_native.dbformariadb.SkuTier.GeneralPurpose,
    },
    tags: {
        ElasticServer: "1",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbformariadb.Server("server",
    location="brazilsouth",
    properties={
        "create_mode": "PointInTimeRestore",
        "restore_point_in_time": "2017-12-14T00:00:37.467Z",
        "source_server_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver",
    },
    resource_group_name="TargetResourceGroup",
    server_name="targetserver",
    sku={
        "capacity": 2,
        "family": "Gen5",
        "name": "GP_Gen5_2",
        "tier": azure_native.dbformariadb.SkuTier.GENERAL_PURPOSE,
    },
    tags={
        "ElasticServer": "1",
    })
Copy
resources:
  server:
    type: azure-native:dbformariadb:Server
    properties:
      location: brazilsouth
      properties:
        createMode: PointInTimeRestore
        restorePointInTime: 2017-12-14T00:00:37.467Z
        sourceServerId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver
      resourceGroupName: TargetResourceGroup
      serverName: targetserver
      sku:
        capacity: 2
        family: Gen5
        name: GP_Gen5_2
        tier: GeneralPurpose
      tags:
        ElasticServer: '1'
Copy

Create a new server

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var server = new AzureNative.DBforMariaDB.Server("server", new()
    {
        Location = "westus",
        Properties = new AzureNative.DBforMariaDB.Inputs.ServerPropertiesForDefaultCreateArgs
        {
            AdministratorLogin = "cloudsa",
            AdministratorLoginPassword = "<administratorLoginPassword>",
            CreateMode = "Default",
            MinimalTlsVersion = AzureNative.DBforMariaDB.MinimalTlsVersionEnum.TLS1_2,
            SslEnforcement = AzureNative.DBforMariaDB.SslEnforcementEnum.Enabled,
            StorageProfile = new AzureNative.DBforMariaDB.Inputs.StorageProfileArgs
            {
                BackupRetentionDays = 7,
                GeoRedundantBackup = AzureNative.DBforMariaDB.GeoRedundantBackup.Enabled,
                StorageMB = 128000,
            },
        },
        ResourceGroupName = "testrg",
        ServerName = "mariadbtestsvc4",
        Sku = new AzureNative.DBforMariaDB.Inputs.SkuArgs
        {
            Capacity = 2,
            Family = "Gen5",
            Name = "GP_Gen5_2",
            Tier = AzureNative.DBforMariaDB.SkuTier.GeneralPurpose,
        },
        Tags = 
        {
            { "ElasticServer", "1" },
        },
    });

});
Copy
package main

import (
	dbformariadb "github.com/pulumi/pulumi-azure-native-sdk/dbformariadb/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dbformariadb.NewServer(ctx, "server", &dbformariadb.ServerArgs{
			Location: pulumi.String("westus"),
			Properties: &dbformariadb.ServerPropertiesForDefaultCreateArgs{
				AdministratorLogin:         pulumi.String("cloudsa"),
				AdministratorLoginPassword: pulumi.String("<administratorLoginPassword>"),
				CreateMode:                 pulumi.String("Default"),
				MinimalTlsVersion:          pulumi.String(dbformariadb.MinimalTlsVersionEnum_TLS1_2),
				SslEnforcement:             dbformariadb.SslEnforcementEnumEnabled,
				StorageProfile: &dbformariadb.StorageProfileArgs{
					BackupRetentionDays: pulumi.Int(7),
					GeoRedundantBackup:  pulumi.String(dbformariadb.GeoRedundantBackupEnabled),
					StorageMB:           pulumi.Int(128000),
				},
			},
			ResourceGroupName: pulumi.String("testrg"),
			ServerName:        pulumi.String("mariadbtestsvc4"),
			Sku: &dbformariadb.SkuArgs{
				Capacity: pulumi.Int(2),
				Family:   pulumi.String("Gen5"),
				Name:     pulumi.String("GP_Gen5_2"),
				Tier:     pulumi.String(dbformariadb.SkuTierGeneralPurpose),
			},
			Tags: pulumi.StringMap{
				"ElasticServer": pulumi.String("1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformariadb.Server;
import com.pulumi.azurenative.dbformariadb.ServerArgs;
import com.pulumi.azurenative.dbformariadb.inputs.SkuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var server = new Server("server", ServerArgs.builder()
            .location("westus")
            .properties(ServerPropertiesForDefaultCreateArgs.builder()
                .administratorLogin("cloudsa")
                .administratorLoginPassword("<administratorLoginPassword>")
                .createMode("Default")
                .minimalTlsVersion("TLS1_2")
                .sslEnforcement("Enabled")
                .storageProfile(StorageProfileArgs.builder()
                    .backupRetentionDays(7)
                    .geoRedundantBackup("Enabled")
                    .storageMB(128000)
                    .build())
                .build())
            .resourceGroupName("testrg")
            .serverName("mariadbtestsvc4")
            .sku(SkuArgs.builder()
                .capacity(2)
                .family("Gen5")
                .name("GP_Gen5_2")
                .tier("GeneralPurpose")
                .build())
            .tags(Map.of("ElasticServer", "1"))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const server = new azure_native.dbformariadb.Server("server", {
    location: "westus",
    properties: {
        administratorLogin: "cloudsa",
        administratorLoginPassword: "<administratorLoginPassword>",
        createMode: "Default",
        minimalTlsVersion: azure_native.dbformariadb.MinimalTlsVersionEnum.TLS1_2,
        sslEnforcement: azure_native.dbformariadb.SslEnforcementEnum.Enabled,
        storageProfile: {
            backupRetentionDays: 7,
            geoRedundantBackup: azure_native.dbformariadb.GeoRedundantBackup.Enabled,
            storageMB: 128000,
        },
    },
    resourceGroupName: "testrg",
    serverName: "mariadbtestsvc4",
    sku: {
        capacity: 2,
        family: "Gen5",
        name: "GP_Gen5_2",
        tier: azure_native.dbformariadb.SkuTier.GeneralPurpose,
    },
    tags: {
        ElasticServer: "1",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbformariadb.Server("server",
    location="westus",
    properties={
        "administrator_login": "cloudsa",
        "administrator_login_password": "<administratorLoginPassword>",
        "create_mode": "Default",
        "minimal_tls_version": azure_native.dbformariadb.MinimalTlsVersionEnum.TLS1_2,
        "ssl_enforcement": azure_native.dbformariadb.SslEnforcementEnum.ENABLED,
        "storage_profile": {
            "backup_retention_days": 7,
            "geo_redundant_backup": azure_native.dbformariadb.GeoRedundantBackup.ENABLED,
            "storage_mb": 128000,
        },
    },
    resource_group_name="testrg",
    server_name="mariadbtestsvc4",
    sku={
        "capacity": 2,
        "family": "Gen5",
        "name": "GP_Gen5_2",
        "tier": azure_native.dbformariadb.SkuTier.GENERAL_PURPOSE,
    },
    tags={
        "ElasticServer": "1",
    })
Copy
resources:
  server:
    type: azure-native:dbformariadb:Server
    properties:
      location: westus
      properties:
        administratorLogin: cloudsa
        administratorLoginPassword: <administratorLoginPassword>
        createMode: Default
        minimalTlsVersion: TLS1_2
        sslEnforcement: Enabled
        storageProfile:
          backupRetentionDays: 7
          geoRedundantBackup: Enabled
          storageMB: 128000
      resourceGroupName: testrg
      serverName: mariadbtestsvc4
      sku:
        capacity: 2
        family: Gen5
        name: GP_Gen5_2
        tier: GeneralPurpose
      tags:
        ElasticServer: '1'
Copy

Create a replica server

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var server = new AzureNative.DBforMariaDB.Server("server", new()
    {
        Location = "westus",
        Properties = new AzureNative.DBforMariaDB.Inputs.ServerPropertiesForReplicaArgs
        {
            CreateMode = "Replica",
            SourceServerId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver",
        },
        ResourceGroupName = "TargetResourceGroup",
        ServerName = "targetserver",
    });

});
Copy
package main

import (
	dbformariadb "github.com/pulumi/pulumi-azure-native-sdk/dbformariadb/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dbformariadb.NewServer(ctx, "server", &dbformariadb.ServerArgs{
			Location: pulumi.String("westus"),
			Properties: &dbformariadb.ServerPropertiesForReplicaArgs{
				CreateMode:     pulumi.String("Replica"),
				SourceServerId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver"),
			},
			ResourceGroupName: pulumi.String("TargetResourceGroup"),
			ServerName:        pulumi.String("targetserver"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformariadb.Server;
import com.pulumi.azurenative.dbformariadb.ServerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var server = new Server("server", ServerArgs.builder()
            .location("westus")
            .properties(ServerPropertiesForReplicaArgs.builder()
                .createMode("Replica")
                .sourceServerId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver")
                .build())
            .resourceGroupName("TargetResourceGroup")
            .serverName("targetserver")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const server = new azure_native.dbformariadb.Server("server", {
    location: "westus",
    properties: {
        createMode: "Replica",
        sourceServerId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver",
    },
    resourceGroupName: "TargetResourceGroup",
    serverName: "targetserver",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbformariadb.Server("server",
    location="westus",
    properties={
        "create_mode": "Replica",
        "source_server_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver",
    },
    resource_group_name="TargetResourceGroup",
    server_name="targetserver")
Copy
resources:
  server:
    type: azure-native:dbformariadb:Server
    properties:
      location: westus
      properties:
        createMode: Replica
        sourceServerId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/MasterResourceGroup/providers/Microsoft.DBforMariaDB/servers/masterserver
      resourceGroupName: TargetResourceGroup
      serverName: targetserver
Copy

Create a server as a geo restore

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var server = new AzureNative.DBforMariaDB.Server("server", new()
    {
        Location = "westus",
        Properties = new AzureNative.DBforMariaDB.Inputs.ServerPropertiesForGeoRestoreArgs
        {
            CreateMode = "GeoRestore",
            SourceServerId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver",
        },
        ResourceGroupName = "TargetResourceGroup",
        ServerName = "targetserver",
        Sku = new AzureNative.DBforMariaDB.Inputs.SkuArgs
        {
            Capacity = 2,
            Family = "Gen5",
            Name = "GP_Gen5_2",
            Tier = AzureNative.DBforMariaDB.SkuTier.GeneralPurpose,
        },
        Tags = 
        {
            { "ElasticServer", "1" },
        },
    });

});
Copy
package main

import (
	dbformariadb "github.com/pulumi/pulumi-azure-native-sdk/dbformariadb/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dbformariadb.NewServer(ctx, "server", &dbformariadb.ServerArgs{
			Location: pulumi.String("westus"),
			Properties: &dbformariadb.ServerPropertiesForGeoRestoreArgs{
				CreateMode:     pulumi.String("GeoRestore"),
				SourceServerId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver"),
			},
			ResourceGroupName: pulumi.String("TargetResourceGroup"),
			ServerName:        pulumi.String("targetserver"),
			Sku: &dbformariadb.SkuArgs{
				Capacity: pulumi.Int(2),
				Family:   pulumi.String("Gen5"),
				Name:     pulumi.String("GP_Gen5_2"),
				Tier:     pulumi.String(dbformariadb.SkuTierGeneralPurpose),
			},
			Tags: pulumi.StringMap{
				"ElasticServer": pulumi.String("1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformariadb.Server;
import com.pulumi.azurenative.dbformariadb.ServerArgs;
import com.pulumi.azurenative.dbformariadb.inputs.SkuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var server = new Server("server", ServerArgs.builder()
            .location("westus")
            .properties(ServerPropertiesForGeoRestoreArgs.builder()
                .createMode("GeoRestore")
                .sourceServerId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver")
                .build())
            .resourceGroupName("TargetResourceGroup")
            .serverName("targetserver")
            .sku(SkuArgs.builder()
                .capacity(2)
                .family("Gen5")
                .name("GP_Gen5_2")
                .tier("GeneralPurpose")
                .build())
            .tags(Map.of("ElasticServer", "1"))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const server = new azure_native.dbformariadb.Server("server", {
    location: "westus",
    properties: {
        createMode: "GeoRestore",
        sourceServerId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver",
    },
    resourceGroupName: "TargetResourceGroup",
    serverName: "targetserver",
    sku: {
        capacity: 2,
        family: "Gen5",
        name: "GP_Gen5_2",
        tier: azure_native.dbformariadb.SkuTier.GeneralPurpose,
    },
    tags: {
        ElasticServer: "1",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbformariadb.Server("server",
    location="westus",
    properties={
        "create_mode": "GeoRestore",
        "source_server_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver",
    },
    resource_group_name="TargetResourceGroup",
    server_name="targetserver",
    sku={
        "capacity": 2,
        "family": "Gen5",
        "name": "GP_Gen5_2",
        "tier": azure_native.dbformariadb.SkuTier.GENERAL_PURPOSE,
    },
    tags={
        "ElasticServer": "1",
    })
Copy
resources:
  server:
    type: azure-native:dbformariadb:Server
    properties:
      location: westus
      properties:
        createMode: GeoRestore
        sourceServerId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMariaDB/servers/sourceserver
      resourceGroupName: TargetResourceGroup
      serverName: targetserver
      sku:
        capacity: 2
        family: Gen5
        name: GP_Gen5_2
        tier: GeneralPurpose
      tags:
        ElasticServer: '1'
Copy

Create Server Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);
@overload
def Server(resource_name: str,
           args: ServerArgs,
           opts: Optional[ResourceOptions] = None)

@overload
def Server(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           properties: Optional[Union[ServerPropertiesForDefaultCreateArgs, ServerPropertiesForGeoRestoreArgs, ServerPropertiesForReplicaArgs, ServerPropertiesForRestoreArgs]] = None,
           resource_group_name: Optional[str] = None,
           location: Optional[str] = None,
           server_name: Optional[str] = None,
           sku: Optional[SkuArgs] = None,
           tags: Optional[Mapping[str, str]] = None)
func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)
public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)
public Server(String name, ServerArgs args)
public Server(String name, ServerArgs args, CustomResourceOptions options)
type: azure-native:dbformariadb:Server
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var serverResource = new AzureNative.Dbformariadb.Server("serverResource", new()
{
    Properties = 
    {
        { "administratorLogin", "string" },
        { "administratorLoginPassword", "string" },
        { "createMode", "Default" },
        { "minimalTlsVersion", "string" },
        { "publicNetworkAccess", "string" },
        { "sslEnforcement", "Enabled" },
        { "storageProfile", 
        {
            { "backupRetentionDays", 0 },
            { "geoRedundantBackup", "string" },
            { "storageAutogrow", "string" },
            { "storageMB", 0 },
        } },
        { "version", "string" },
    },
    ResourceGroupName = "string",
    Location = "string",
    ServerName = "string",
    Sku = 
    {
        { "name", "string" },
        { "capacity", 0 },
        { "family", "string" },
        { "size", "string" },
        { "tier", "string" },
    },
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := dbformariadb.NewServer(ctx, "serverResource", &dbformariadb.ServerArgs{
	Properties: map[string]interface{}{
		"administratorLogin":         "string",
		"administratorLoginPassword": "string",
		"createMode":                 "Default",
		"minimalTlsVersion":          "string",
		"publicNetworkAccess":        "string",
		"sslEnforcement":             "Enabled",
		"storageProfile": map[string]interface{}{
			"backupRetentionDays": 0,
			"geoRedundantBackup":  "string",
			"storageAutogrow":     "string",
			"storageMB":           0,
		},
		"version": "string",
	},
	ResourceGroupName: "string",
	Location:          "string",
	ServerName:        "string",
	Sku: map[string]interface{}{
		"name":     "string",
		"capacity": 0,
		"family":   "string",
		"size":     "string",
		"tier":     "string",
	},
	Tags: map[string]interface{}{
		"string": "string",
	},
})
Copy
var serverResource = new Server("serverResource", ServerArgs.builder()
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .resourceGroupName("string")
    .location("string")
    .serverName("string")
    .sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
server_resource = azure_native.dbformariadb.Server("serverResource",
    properties={
        administratorLogin: string,
        administratorLoginPassword: string,
        createMode: Default,
        minimalTlsVersion: string,
        publicNetworkAccess: string,
        sslEnforcement: Enabled,
        storageProfile: {
            backupRetentionDays: 0,
            geoRedundantBackup: string,
            storageAutogrow: string,
            storageMB: 0,
        },
        version: string,
    },
    resource_group_name=string,
    location=string,
    server_name=string,
    sku={
        name: string,
        capacity: 0,
        family: string,
        size: string,
        tier: string,
    },
    tags={
        string: string,
    })
Copy
const serverResource = new azure_native.dbformariadb.Server("serverResource", {
    properties: {
        administratorLogin: "string",
        administratorLoginPassword: "string",
        createMode: "Default",
        minimalTlsVersion: "string",
        publicNetworkAccess: "string",
        sslEnforcement: "Enabled",
        storageProfile: {
            backupRetentionDays: 0,
            geoRedundantBackup: "string",
            storageAutogrow: "string",
            storageMB: 0,
        },
        version: "string",
    },
    resourceGroupName: "string",
    location: "string",
    serverName: "string",
    sku: {
        name: "string",
        capacity: 0,
        family: "string",
        size: "string",
        tier: "string",
    },
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:dbformariadb:Server
properties:
    location: string
    properties:
        administratorLogin: string
        administratorLoginPassword: string
        createMode: Default
        minimalTlsVersion: string
        publicNetworkAccess: string
        sslEnforcement: Enabled
        storageProfile:
            backupRetentionDays: 0
            geoRedundantBackup: string
            storageAutogrow: string
            storageMB: 0
        version: string
    resourceGroupName: string
    serverName: string
    sku:
        capacity: 0
        family: string
        name: string
        size: string
        tier: string
    tags:
        string: string
Copy

Server Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Server resource accepts the following input properties:

Properties This property is required. Pulumi.AzureNative.DBforMariaDB.Inputs.ServerPropertiesForDefaultCreate | Pulumi.AzureNative.DBforMariaDB.Inputs.ServerPropertiesForGeoRestore | Pulumi.AzureNative.DBforMariaDB.Inputs.ServerPropertiesForReplica | Pulumi.AzureNative.DBforMariaDB.Inputs.ServerPropertiesForRestore
Properties of the server.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location string
The location the resource resides in.
ServerName Changes to this property will trigger replacement. string
The name of the server.
Sku Pulumi.AzureNative.DBforMariaDB.Inputs.Sku
The SKU (pricing tier) of the server.
Tags Dictionary<string, string>
Application-specific metadata in the form of key-value pairs.
Properties This property is required. ServerPropertiesForDefaultCreateArgs | ServerPropertiesForGeoRestoreArgs | ServerPropertiesForReplicaArgs | ServerPropertiesForRestoreArgs
Properties of the server.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location string
The location the resource resides in.
ServerName Changes to this property will trigger replacement. string
The name of the server.
Sku SkuArgs
The SKU (pricing tier) of the server.
Tags map[string]string
Application-specific metadata in the form of key-value pairs.
properties This property is required. ServerPropertiesForDefaultCreate | ServerPropertiesForGeoRestore | ServerPropertiesForReplica | ServerPropertiesForRestore
Properties of the server.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location String
The location the resource resides in.
serverName Changes to this property will trigger replacement. String
The name of the server.
sku Sku
The SKU (pricing tier) of the server.
tags Map<String,String>
Application-specific metadata in the form of key-value pairs.
properties This property is required. ServerPropertiesForDefaultCreate | ServerPropertiesForGeoRestore | ServerPropertiesForReplica | ServerPropertiesForRestore
Properties of the server.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
location string
The location the resource resides in.
serverName Changes to this property will trigger replacement. string
The name of the server.
sku Sku
The SKU (pricing tier) of the server.
tags {[key: string]: string}
Application-specific metadata in the form of key-value pairs.
properties This property is required. ServerPropertiesForDefaultCreateArgs | ServerPropertiesForGeoRestoreArgs | ServerPropertiesForReplicaArgs | ServerPropertiesForRestoreArgs
Properties of the server.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
location str
The location the resource resides in.
server_name Changes to this property will trigger replacement. str
The name of the server.
sku SkuArgs
The SKU (pricing tier) of the server.
tags Mapping[str, str]
Application-specific metadata in the form of key-value pairs.
properties This property is required. Property Map | Property Map | Property Map | Property Map
Properties of the server.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location String
The location the resource resides in.
serverName Changes to this property will trigger replacement. String
The name of the server.
sku Property Map
The SKU (pricing tier) of the server.
tags Map<String>
Application-specific metadata in the form of key-value pairs.

Outputs

All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
PrivateEndpointConnections List<Pulumi.AzureNative.DBforMariaDB.Outputs.ServerPrivateEndpointConnectionResponse>
List of private endpoint connections on a server
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AdministratorLogin string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
EarliestRestoreDate string
Earliest restore point creation time (ISO8601 format)
FullyQualifiedDomainName string
The fully qualified domain name of a server.
MasterServerId string
The master server id of a replica server.
MinimalTlsVersion string
Enforce a minimal Tls version for the server.
PublicNetworkAccess string
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
ReplicaCapacity int
The maximum number of replicas that a master server can have.
ReplicationRole string
The replication role of the server.
SslEnforcement string
Enable ssl enforcement or not when connect to server.
StorageProfile Pulumi.AzureNative.DBforMariaDB.Outputs.StorageProfileResponse
Storage profile of a server.
UserVisibleState string
A state of a server that is visible to user.
Version string
Server version.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
PrivateEndpointConnections []ServerPrivateEndpointConnectionResponse
List of private endpoint connections on a server
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AdministratorLogin string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
EarliestRestoreDate string
Earliest restore point creation time (ISO8601 format)
FullyQualifiedDomainName string
The fully qualified domain name of a server.
MasterServerId string
The master server id of a replica server.
MinimalTlsVersion string
Enforce a minimal Tls version for the server.
PublicNetworkAccess string
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
ReplicaCapacity int
The maximum number of replicas that a master server can have.
ReplicationRole string
The replication role of the server.
SslEnforcement string
Enable ssl enforcement or not when connect to server.
StorageProfile StorageProfileResponse
Storage profile of a server.
UserVisibleState string
A state of a server that is visible to user.
Version string
Server version.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
privateEndpointConnections List<ServerPrivateEndpointConnectionResponse>
List of private endpoint connections on a server
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
administratorLogin String
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
earliestRestoreDate String
Earliest restore point creation time (ISO8601 format)
fullyQualifiedDomainName String
The fully qualified domain name of a server.
masterServerId String
The master server id of a replica server.
minimalTlsVersion String
Enforce a minimal Tls version for the server.
publicNetworkAccess String
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
replicaCapacity Integer
The maximum number of replicas that a master server can have.
replicationRole String
The replication role of the server.
sslEnforcement String
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfileResponse
Storage profile of a server.
userVisibleState String
A state of a server that is visible to user.
version String
Server version.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
privateEndpointConnections ServerPrivateEndpointConnectionResponse[]
List of private endpoint connections on a server
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
administratorLogin string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
earliestRestoreDate string
Earliest restore point creation time (ISO8601 format)
fullyQualifiedDomainName string
The fully qualified domain name of a server.
masterServerId string
The master server id of a replica server.
minimalTlsVersion string
Enforce a minimal Tls version for the server.
publicNetworkAccess string
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
replicaCapacity number
The maximum number of replicas that a master server can have.
replicationRole string
The replication role of the server.
sslEnforcement string
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfileResponse
Storage profile of a server.
userVisibleState string
A state of a server that is visible to user.
version string
Server version.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
private_endpoint_connections Sequence[ServerPrivateEndpointConnectionResponse]
List of private endpoint connections on a server
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
administrator_login str
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
earliest_restore_date str
Earliest restore point creation time (ISO8601 format)
fully_qualified_domain_name str
The fully qualified domain name of a server.
master_server_id str
The master server id of a replica server.
minimal_tls_version str
Enforce a minimal Tls version for the server.
public_network_access str
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
replica_capacity int
The maximum number of replicas that a master server can have.
replication_role str
The replication role of the server.
ssl_enforcement str
Enable ssl enforcement or not when connect to server.
storage_profile StorageProfileResponse
Storage profile of a server.
user_visible_state str
A state of a server that is visible to user.
version str
Server version.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
privateEndpointConnections List<Property Map>
List of private endpoint connections on a server
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
administratorLogin String
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
earliestRestoreDate String
Earliest restore point creation time (ISO8601 format)
fullyQualifiedDomainName String
The fully qualified domain name of a server.
masterServerId String
The master server id of a replica server.
minimalTlsVersion String
Enforce a minimal Tls version for the server.
publicNetworkAccess String
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
replicaCapacity Number
The maximum number of replicas that a master server can have.
replicationRole String
The replication role of the server.
sslEnforcement String
Enable ssl enforcement or not when connect to server.
storageProfile Property Map
Storage profile of a server.
userVisibleState String
A state of a server that is visible to user.
version String
Server version.

Supporting Types

GeoRedundantBackup
, GeoRedundantBackupArgs

Enabled
Enabled
Disabled
Disabled
GeoRedundantBackupEnabled
Enabled
GeoRedundantBackupDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

MinimalTlsVersionEnum
, MinimalTlsVersionEnumArgs

TLS1_0
TLS1_0
TLS1_1
TLS1_1
TLS1_2
TLS1_2
TLSEnforcementDisabled
TLSEnforcementDisabled
MinimalTlsVersionEnum_TLS1_0
TLS1_0
MinimalTlsVersionEnum_TLS1_1
TLS1_1
MinimalTlsVersionEnum_TLS1_2
TLS1_2
MinimalTlsVersionEnumTLSEnforcementDisabled
TLSEnforcementDisabled
TLS1_0
TLS1_0
TLS1_1
TLS1_1
TLS1_2
TLS1_2
TLSEnforcementDisabled
TLSEnforcementDisabled
TLS1_0
TLS1_0
TLS1_1
TLS1_1
TLS1_2
TLS1_2
TLSEnforcementDisabled
TLSEnforcementDisabled
TLS1_0
TLS1_0
TLS1_1
TLS1_1
TLS1_2
TLS1_2
TLS_ENFORCEMENT_DISABLED
TLSEnforcementDisabled
"TLS1_0"
TLS1_0
"TLS1_1"
TLS1_1
"TLS1_2"
TLS1_2
"TLSEnforcementDisabled"
TLSEnforcementDisabled

PrivateEndpointPropertyResponse
, PrivateEndpointPropertyResponseArgs

Id string
Resource id of the private endpoint.
Id string
Resource id of the private endpoint.
id String
Resource id of the private endpoint.
id string
Resource id of the private endpoint.
id str
Resource id of the private endpoint.
id String
Resource id of the private endpoint.

PublicNetworkAccessEnum
, PublicNetworkAccessEnumArgs

Enabled
Enabled
Disabled
Disabled
PublicNetworkAccessEnumEnabled
Enabled
PublicNetworkAccessEnumDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

ServerPrivateEndpointConnectionPropertiesResponse
, ServerPrivateEndpointConnectionPropertiesResponseArgs

ProvisioningState This property is required. string
State of the private endpoint connection.
PrivateEndpoint Pulumi.AzureNative.DBforMariaDB.Inputs.PrivateEndpointPropertyResponse
Private endpoint which the connection belongs to.
PrivateLinkServiceConnectionState Pulumi.AzureNative.DBforMariaDB.Inputs.ServerPrivateLinkServiceConnectionStatePropertyResponse
Connection state of the private endpoint connection.
ProvisioningState This property is required. string
State of the private endpoint connection.
PrivateEndpoint PrivateEndpointPropertyResponse
Private endpoint which the connection belongs to.
PrivateLinkServiceConnectionState ServerPrivateLinkServiceConnectionStatePropertyResponse
Connection state of the private endpoint connection.
provisioningState This property is required. String
State of the private endpoint connection.
privateEndpoint PrivateEndpointPropertyResponse
Private endpoint which the connection belongs to.
privateLinkServiceConnectionState ServerPrivateLinkServiceConnectionStatePropertyResponse
Connection state of the private endpoint connection.
provisioningState This property is required. string
State of the private endpoint connection.
privateEndpoint PrivateEndpointPropertyResponse
Private endpoint which the connection belongs to.
privateLinkServiceConnectionState ServerPrivateLinkServiceConnectionStatePropertyResponse
Connection state of the private endpoint connection.
provisioning_state This property is required. str
State of the private endpoint connection.
private_endpoint PrivateEndpointPropertyResponse
Private endpoint which the connection belongs to.
private_link_service_connection_state ServerPrivateLinkServiceConnectionStatePropertyResponse
Connection state of the private endpoint connection.
provisioningState This property is required. String
State of the private endpoint connection.
privateEndpoint Property Map
Private endpoint which the connection belongs to.
privateLinkServiceConnectionState Property Map
Connection state of the private endpoint connection.

ServerPrivateEndpointConnectionResponse
, ServerPrivateEndpointConnectionResponseArgs

Id This property is required. string
Resource Id of the private endpoint connection.
Properties This property is required. Pulumi.AzureNative.DBforMariaDB.Inputs.ServerPrivateEndpointConnectionPropertiesResponse
Private endpoint connection properties
Id This property is required. string
Resource Id of the private endpoint connection.
Properties This property is required. ServerPrivateEndpointConnectionPropertiesResponse
Private endpoint connection properties
id This property is required. String
Resource Id of the private endpoint connection.
properties This property is required. ServerPrivateEndpointConnectionPropertiesResponse
Private endpoint connection properties
id This property is required. string
Resource Id of the private endpoint connection.
properties This property is required. ServerPrivateEndpointConnectionPropertiesResponse
Private endpoint connection properties
id This property is required. str
Resource Id of the private endpoint connection.
properties This property is required. ServerPrivateEndpointConnectionPropertiesResponse
Private endpoint connection properties
id This property is required. String
Resource Id of the private endpoint connection.
properties This property is required. Property Map
Private endpoint connection properties

ServerPrivateLinkServiceConnectionStatePropertyResponse
, ServerPrivateLinkServiceConnectionStatePropertyResponseArgs

ActionsRequired This property is required. string
The actions required for private link service connection.
Description This property is required. string
The private link service connection description.
Status This property is required. string
The private link service connection status.
ActionsRequired This property is required. string
The actions required for private link service connection.
Description This property is required. string
The private link service connection description.
Status This property is required. string
The private link service connection status.
actionsRequired This property is required. String
The actions required for private link service connection.
description This property is required. String
The private link service connection description.
status This property is required. String
The private link service connection status.
actionsRequired This property is required. string
The actions required for private link service connection.
description This property is required. string
The private link service connection description.
status This property is required. string
The private link service connection status.
actions_required This property is required. str
The actions required for private link service connection.
description This property is required. str
The private link service connection description.
status This property is required. str
The private link service connection status.
actionsRequired This property is required. String
The actions required for private link service connection.
description This property is required. String
The private link service connection description.
status This property is required. String
The private link service connection status.

ServerPropertiesForDefaultCreate
, ServerPropertiesForDefaultCreateArgs

AdministratorLogin This property is required. string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
AdministratorLoginPassword This property is required. string
The password of the administrator login.
MinimalTlsVersion string | Pulumi.AzureNative.DBforMariaDB.MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | Pulumi.AzureNative.DBforMariaDB.PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement Pulumi.AzureNative.DBforMariaDB.SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile Pulumi.AzureNative.DBforMariaDB.Inputs.StorageProfile
Storage profile of a server.
Version string | Pulumi.AzureNative.DBforMariaDB.ServerVersion
Server version.
AdministratorLogin This property is required. string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
AdministratorLoginPassword This property is required. string
The password of the administrator login.
MinimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile StorageProfile
Storage profile of a server.
Version string | ServerVersion
Server version.
administratorLogin This property is required. String
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administratorLoginPassword This property is required. String
The password of the administrator login.
minimalTlsVersion String | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess String | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version String | ServerVersion
Server version.
administratorLogin This property is required. string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administratorLoginPassword This property is required. string
The password of the administrator login.
minimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version string | ServerVersion
Server version.
administrator_login This property is required. str
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administrator_login_password This property is required. str
The password of the administrator login.
minimal_tls_version str | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
public_network_access str | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
ssl_enforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storage_profile StorageProfile
Storage profile of a server.
version str | ServerVersion
Server version.
administratorLogin This property is required. String
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administratorLoginPassword This property is required. String
The password of the administrator login.
minimalTlsVersion String | "TLS1_0" | "TLS1_1" | "TLS1_2" | "TLSEnforcementDisabled"
Enforce a minimal Tls version for the server.
publicNetworkAccess String | "Enabled" | "Disabled"
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement "Enabled" | "Disabled"
Enable ssl enforcement or not when connect to server.
storageProfile Property Map
Storage profile of a server.
version String | "10.2" | "10.3"
Server version.

ServerPropertiesForGeoRestore
, ServerPropertiesForGeoRestoreArgs

SourceServerId This property is required. string
The source server id to restore from.
MinimalTlsVersion string | Pulumi.AzureNative.DBforMariaDB.MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | Pulumi.AzureNative.DBforMariaDB.PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement Pulumi.AzureNative.DBforMariaDB.SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile Pulumi.AzureNative.DBforMariaDB.Inputs.StorageProfile
Storage profile of a server.
Version string | Pulumi.AzureNative.DBforMariaDB.ServerVersion
Server version.
SourceServerId This property is required. string
The source server id to restore from.
MinimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile StorageProfile
Storage profile of a server.
Version string | ServerVersion
Server version.
sourceServerId This property is required. String
The source server id to restore from.
minimalTlsVersion String | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess String | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version String | ServerVersion
Server version.
sourceServerId This property is required. string
The source server id to restore from.
minimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version string | ServerVersion
Server version.
source_server_id This property is required. str
The source server id to restore from.
minimal_tls_version str | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
public_network_access str | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
ssl_enforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storage_profile StorageProfile
Storage profile of a server.
version str | ServerVersion
Server version.
sourceServerId This property is required. String
The source server id to restore from.
minimalTlsVersion String | "TLS1_0" | "TLS1_1" | "TLS1_2" | "TLSEnforcementDisabled"
Enforce a minimal Tls version for the server.
publicNetworkAccess String | "Enabled" | "Disabled"
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement "Enabled" | "Disabled"
Enable ssl enforcement or not when connect to server.
storageProfile Property Map
Storage profile of a server.
version String | "10.2" | "10.3"
Server version.

ServerPropertiesForReplica
, ServerPropertiesForReplicaArgs

SourceServerId This property is required. string
The master server id to create replica from.
MinimalTlsVersion string | Pulumi.AzureNative.DBforMariaDB.MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | Pulumi.AzureNative.DBforMariaDB.PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement Pulumi.AzureNative.DBforMariaDB.SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile Pulumi.AzureNative.DBforMariaDB.Inputs.StorageProfile
Storage profile of a server.
Version string | Pulumi.AzureNative.DBforMariaDB.ServerVersion
Server version.
SourceServerId This property is required. string
The master server id to create replica from.
MinimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile StorageProfile
Storage profile of a server.
Version string | ServerVersion
Server version.
sourceServerId This property is required. String
The master server id to create replica from.
minimalTlsVersion String | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess String | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version String | ServerVersion
Server version.
sourceServerId This property is required. string
The master server id to create replica from.
minimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version string | ServerVersion
Server version.
source_server_id This property is required. str
The master server id to create replica from.
minimal_tls_version str | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
public_network_access str | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
ssl_enforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storage_profile StorageProfile
Storage profile of a server.
version str | ServerVersion
Server version.
sourceServerId This property is required. String
The master server id to create replica from.
minimalTlsVersion String | "TLS1_0" | "TLS1_1" | "TLS1_2" | "TLSEnforcementDisabled"
Enforce a minimal Tls version for the server.
publicNetworkAccess String | "Enabled" | "Disabled"
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement "Enabled" | "Disabled"
Enable ssl enforcement or not when connect to server.
storageProfile Property Map
Storage profile of a server.
version String | "10.2" | "10.3"
Server version.

ServerPropertiesForRestore
, ServerPropertiesForRestoreArgs

RestorePointInTime This property is required. string
Restore point creation time (ISO8601 format), specifying the time to restore from.
SourceServerId This property is required. string
The source server id to restore from.
MinimalTlsVersion string | Pulumi.AzureNative.DBforMariaDB.MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | Pulumi.AzureNative.DBforMariaDB.PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement Pulumi.AzureNative.DBforMariaDB.SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile Pulumi.AzureNative.DBforMariaDB.Inputs.StorageProfile
Storage profile of a server.
Version string | Pulumi.AzureNative.DBforMariaDB.ServerVersion
Server version.
RestorePointInTime This property is required. string
Restore point creation time (ISO8601 format), specifying the time to restore from.
SourceServerId This property is required. string
The source server id to restore from.
MinimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
PublicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
SslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
StorageProfile StorageProfile
Storage profile of a server.
Version string | ServerVersion
Server version.
restorePointInTime This property is required. String
Restore point creation time (ISO8601 format), specifying the time to restore from.
sourceServerId This property is required. String
The source server id to restore from.
minimalTlsVersion String | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess String | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version String | ServerVersion
Server version.
restorePointInTime This property is required. string
Restore point creation time (ISO8601 format), specifying the time to restore from.
sourceServerId This property is required. string
The source server id to restore from.
minimalTlsVersion string | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
publicNetworkAccess string | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storageProfile StorageProfile
Storage profile of a server.
version string | ServerVersion
Server version.
restore_point_in_time This property is required. str
Restore point creation time (ISO8601 format), specifying the time to restore from.
source_server_id This property is required. str
The source server id to restore from.
minimal_tls_version str | MinimalTlsVersionEnum
Enforce a minimal Tls version for the server.
public_network_access str | PublicNetworkAccessEnum
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
ssl_enforcement SslEnforcementEnum
Enable ssl enforcement or not when connect to server.
storage_profile StorageProfile
Storage profile of a server.
version str | ServerVersion
Server version.
restorePointInTime This property is required. String
Restore point creation time (ISO8601 format), specifying the time to restore from.
sourceServerId This property is required. String
The source server id to restore from.
minimalTlsVersion String | "TLS1_0" | "TLS1_1" | "TLS1_2" | "TLSEnforcementDisabled"
Enforce a minimal Tls version for the server.
publicNetworkAccess String | "Enabled" | "Disabled"
Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
sslEnforcement "Enabled" | "Disabled"
Enable ssl enforcement or not when connect to server.
storageProfile Property Map
Storage profile of a server.
version String | "10.2" | "10.3"
Server version.

ServerVersion
, ServerVersionArgs

ServerVersion_10_2
10.2
ServerVersion_10_3
10.3
ServerVersion_10_2
10.2
ServerVersion_10_3
10.3
_10_2
10.2
_10_3
10.3
ServerVersion_10_2
10.2
ServerVersion_10_3
10.3
SERVER_VERSION_10_2
10.2
SERVER_VERSION_10_3
10.3
"10.2"
10.2
"10.3"
10.3

Sku
, SkuArgs

Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
Capacity int
The scale up/out capacity, representing server's compute units.
Family string
The family of hardware.
Size string
The size code, to be interpreted by resource as appropriate.
Tier string | Pulumi.AzureNative.DBforMariaDB.SkuTier
The tier of the particular SKU, e.g. Basic.
Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
Capacity int
The scale up/out capacity, representing server's compute units.
Family string
The family of hardware.
Size string
The size code, to be interpreted by resource as appropriate.
Tier string | SkuTier
The tier of the particular SKU, e.g. Basic.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity Integer
The scale up/out capacity, representing server's compute units.
family String
The family of hardware.
size String
The size code, to be interpreted by resource as appropriate.
tier String | SkuTier
The tier of the particular SKU, e.g. Basic.
name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity number
The scale up/out capacity, representing server's compute units.
family string
The family of hardware.
size string
The size code, to be interpreted by resource as appropriate.
tier string | SkuTier
The tier of the particular SKU, e.g. Basic.
name This property is required. str
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity int
The scale up/out capacity, representing server's compute units.
family str
The family of hardware.
size str
The size code, to be interpreted by resource as appropriate.
tier str | SkuTier
The tier of the particular SKU, e.g. Basic.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity Number
The scale up/out capacity, representing server's compute units.
family String
The family of hardware.
size String
The size code, to be interpreted by resource as appropriate.
tier String | "Basic" | "GeneralPurpose" | "MemoryOptimized"
The tier of the particular SKU, e.g. Basic.

SkuResponse
, SkuResponseArgs

Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
Capacity int
The scale up/out capacity, representing server's compute units.
Family string
The family of hardware.
Size string
The size code, to be interpreted by resource as appropriate.
Tier string
The tier of the particular SKU, e.g. Basic.
Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
Capacity int
The scale up/out capacity, representing server's compute units.
Family string
The family of hardware.
Size string
The size code, to be interpreted by resource as appropriate.
Tier string
The tier of the particular SKU, e.g. Basic.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity Integer
The scale up/out capacity, representing server's compute units.
family String
The family of hardware.
size String
The size code, to be interpreted by resource as appropriate.
tier String
The tier of the particular SKU, e.g. Basic.
name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity number
The scale up/out capacity, representing server's compute units.
family string
The family of hardware.
size string
The size code, to be interpreted by resource as appropriate.
tier string
The tier of the particular SKU, e.g. Basic.
name This property is required. str
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity int
The scale up/out capacity, representing server's compute units.
family str
The family of hardware.
size str
The size code, to be interpreted by resource as appropriate.
tier str
The tier of the particular SKU, e.g. Basic.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
capacity Number
The scale up/out capacity, representing server's compute units.
family String
The family of hardware.
size String
The size code, to be interpreted by resource as appropriate.
tier String
The tier of the particular SKU, e.g. Basic.

SkuTier
, SkuTierArgs

Basic
Basic
GeneralPurpose
GeneralPurpose
MemoryOptimized
MemoryOptimized
SkuTierBasic
Basic
SkuTierGeneralPurpose
GeneralPurpose
SkuTierMemoryOptimized
MemoryOptimized
Basic
Basic
GeneralPurpose
GeneralPurpose
MemoryOptimized
MemoryOptimized
Basic
Basic
GeneralPurpose
GeneralPurpose
MemoryOptimized
MemoryOptimized
BASIC
Basic
GENERAL_PURPOSE
GeneralPurpose
MEMORY_OPTIMIZED
MemoryOptimized
"Basic"
Basic
"GeneralPurpose"
GeneralPurpose
"MemoryOptimized"
MemoryOptimized

SslEnforcementEnum
, SslEnforcementEnumArgs

Enabled
Enabled
Disabled
Disabled
SslEnforcementEnumEnabled
Enabled
SslEnforcementEnumDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

StorageAutogrow
, StorageAutogrowArgs

Enabled
Enabled
Disabled
Disabled
StorageAutogrowEnabled
Enabled
StorageAutogrowDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

StorageProfile
, StorageProfileArgs

BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string | Pulumi.AzureNative.DBforMariaDB.GeoRedundantBackup
Enable Geo-redundant or not for server backup.
StorageAutogrow string | Pulumi.AzureNative.DBforMariaDB.StorageAutogrow
Enable Storage Auto Grow.
StorageMB int
Max storage allowed for a server.
BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string | GeoRedundantBackup
Enable Geo-redundant or not for server backup.
StorageAutogrow string | StorageAutogrow
Enable Storage Auto Grow.
StorageMB int
Max storage allowed for a server.
backupRetentionDays Integer
Backup retention days for the server.
geoRedundantBackup String | GeoRedundantBackup
Enable Geo-redundant or not for server backup.
storageAutogrow String | StorageAutogrow
Enable Storage Auto Grow.
storageMB Integer
Max storage allowed for a server.
backupRetentionDays number
Backup retention days for the server.
geoRedundantBackup string | GeoRedundantBackup
Enable Geo-redundant or not for server backup.
storageAutogrow string | StorageAutogrow
Enable Storage Auto Grow.
storageMB number
Max storage allowed for a server.
backup_retention_days int
Backup retention days for the server.
geo_redundant_backup str | GeoRedundantBackup
Enable Geo-redundant or not for server backup.
storage_autogrow str | StorageAutogrow
Enable Storage Auto Grow.
storage_mb int
Max storage allowed for a server.
backupRetentionDays Number
Backup retention days for the server.
geoRedundantBackup String | "Enabled" | "Disabled"
Enable Geo-redundant or not for server backup.
storageAutogrow String | "Enabled" | "Disabled"
Enable Storage Auto Grow.
storageMB Number
Max storage allowed for a server.

StorageProfileResponse
, StorageProfileResponseArgs

BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string
Enable Geo-redundant or not for server backup.
StorageAutogrow string
Enable Storage Auto Grow.
StorageMB int
Max storage allowed for a server.
BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string
Enable Geo-redundant or not for server backup.
StorageAutogrow string
Enable Storage Auto Grow.
StorageMB int
Max storage allowed for a server.
backupRetentionDays Integer
Backup retention days for the server.
geoRedundantBackup String
Enable Geo-redundant or not for server backup.
storageAutogrow String
Enable Storage Auto Grow.
storageMB Integer
Max storage allowed for a server.
backupRetentionDays number
Backup retention days for the server.
geoRedundantBackup string
Enable Geo-redundant or not for server backup.
storageAutogrow string
Enable Storage Auto Grow.
storageMB number
Max storage allowed for a server.
backup_retention_days int
Backup retention days for the server.
geo_redundant_backup str
Enable Geo-redundant or not for server backup.
storage_autogrow str
Enable Storage Auto Grow.
storage_mb int
Max storage allowed for a server.
backupRetentionDays Number
Backup retention days for the server.
geoRedundantBackup String
Enable Geo-redundant or not for server backup.
storageAutogrow String
Enable Storage Auto Grow.
storageMB Number
Max storage allowed for a server.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:dbformariadb:Server targetserver /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0