We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Sets a MariaDB Configuration value on a MariaDB Server.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleServer = new Azure.MariaDB.Server("exampleServer", new Azure.MariaDB.ServerArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
SkuName = "B_Gen5_2",
StorageProfile = new Azure.MariaDB.Inputs.ServerStorageProfileArgs
{
StorageMb = 5120,
BackupRetentionDays = 7,
GeoRedundantBackup = "Disabled",
},
AdministratorLogin = "mariadbadmin",
AdministratorLoginPassword = "H@Sh1CoR3!",
Version = "10.2",
SslEnforcement = "Enabled",
});
var exampleConfiguration = new Azure.MariaDB.Configuration("exampleConfiguration", new Azure.MariaDB.ConfigurationArgs
{
Name = "interactive_timeout",
ResourceGroupName = exampleResourceGroup.Name,
ServerName = exampleServer.Name,
Value = "600",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/mariadb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleServer, err := mariadb.NewServer(ctx, "exampleServer", &mariadb.ServerArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
SkuName: pulumi.String("B_Gen5_2"),
StorageProfile: &mariadb.ServerStorageProfileArgs{
StorageMb: pulumi.Int(5120),
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String("Disabled"),
},
AdministratorLogin: pulumi.String("mariadbadmin"),
AdministratorLoginPassword: pulumi.String("H@Sh1CoR3!"),
Version: pulumi.String("10.2"),
SslEnforcement: pulumi.String("Enabled"),
})
if err != nil {
return err
}
_, err = mariadb.NewConfiguration(ctx, "exampleConfiguration", &mariadb.ConfigurationArgs{
Name: pulumi.String("interactive_timeout"),
ResourceGroupName: exampleResourceGroup.Name,
ServerName: exampleServer.Name,
Value: pulumi.String("600"),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleServer = new azure.mariadb.Server("exampleServer", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
skuName: "B_Gen5_2",
storageProfile: {
storageMb: 5120,
backupRetentionDays: 7,
geoRedundantBackup: "Disabled",
},
administratorLogin: "mariadbadmin",
administratorLoginPassword: "H@Sh1CoR3!",
version: "10.2",
sslEnforcement: "Enabled",
});
const exampleConfiguration = new azure.mariadb.Configuration("exampleConfiguration", {
name: "interactive_timeout",
resourceGroupName: exampleResourceGroup.name,
serverName: exampleServer.name,
value: "600",
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_server = azure.mariadb.Server("exampleServer",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku_name="B_Gen5_2",
storage_profile=azure.mariadb.ServerStorageProfileArgs(
storage_mb=5120,
backup_retention_days=7,
geo_redundant_backup="Disabled",
),
administrator_login="mariadbadmin",
administrator_login_password="H@Sh1CoR3!",
version="10.2",
ssl_enforcement="Enabled")
example_configuration = azure.mariadb.Configuration("exampleConfiguration",
name="interactive_timeout",
resource_group_name=example_resource_group.name,
server_name=example_server.name,
value="600")
Example coming soon!
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
value: Optional[str] = None)func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: azure:mariadb:Configuration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationArgs
- 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 azureConfigurationResource = new Azure.MariaDB.Configuration("azureConfigurationResource", new()
{
Name = "string",
ResourceGroupName = "string",
ServerName = "string",
Value = "string",
});
example, err := mariadb.NewConfiguration(ctx, "azureConfigurationResource", &mariadb.ConfigurationArgs{
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ServerName: pulumi.String("string"),
Value: pulumi.String("string"),
})
var azureConfigurationResource = new com.pulumi.azure.mariadb.Configuration("azureConfigurationResource", com.pulumi.azure.mariadb.ConfigurationArgs.builder()
.name("string")
.resourceGroupName("string")
.serverName("string")
.value("string")
.build());
azure_configuration_resource = azure.mariadb.Configuration("azureConfigurationResource",
name="string",
resource_group_name="string",
server_name="string",
value="string")
const azureConfigurationResource = new azure.mariadb.Configuration("azureConfigurationResource", {
name: "string",
resourceGroupName: "string",
serverName: "string",
value: "string",
});
type: azure:mariadb:Configuration
properties:
name: string
resourceGroupName: string
serverName: string
value: string
Configuration 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 Configuration resource accepts the following input properties:
- Name string
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- Server
Name string - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- Value string
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- Name string
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- Server
Name string - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- Value string
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name String
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server
Name String - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value String
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name string
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server
Name string - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value string
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name str
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server_
name str - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value str
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name String
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server
Name String - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value String
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Configuration Resource
Get an existing Configuration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConfigurationState, opts?: CustomResourceOptions): Configuration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
value: Optional[str] = None) -> Configurationfunc GetConfiguration(ctx *Context, name string, id IDInput, state *ConfigurationState, opts ...ResourceOption) (*Configuration, error)public static Configuration Get(string name, Input<string> id, ConfigurationState? state, CustomResourceOptions? opts = null)public static Configuration get(String name, Output<String> id, ConfigurationState state, CustomResourceOptions options)resources: _: type: azure:mariadb:Configuration get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Name string
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- Server
Name string - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- Value string
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- Name string
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- Server
Name string - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- Value string
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name String
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server
Name String - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value String
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name string
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server
Name string - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value string
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name str
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server_
name str - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value str
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
- name String
- Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
- server
Name String - Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
- value String
- Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.
Import
MariaDB Configurations can be imported using the resource id, e.g.
$ pulumi import azure:mariadb/configuration:Configuration interactive_timeout /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforMariaDB/servers/server1/configurations/interactive_timeout
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
