This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.

mariadb

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.mariadb.AwaitableGetMariaDbServerResult(administrator_login=None, fqdn=None, id=None, location=None, name=None, resource_group_name=None, sku_name=None, ssl_enforcement=None, storage_profiles=None, tags=None, version=None)
class pulumi_azure.mariadb.Configuration(resource_name, opts=None, name=None, resource_group_name=None, server_name=None, value=None, __props__=None, __name__=None, __opts__=None)

Sets a MariaDB Configuration value on a MariaDB Server.

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={
        "storage_mb": 5120,
        "backup_retention_days": 7,
        "geoRedundantBackup": "Disabled",
    },
    administrator_login="mariadbadmin",
    administrator_login_password="H@Sh1CoR3!",
    version="10.2",
    ssl_enforcement="Enabled")
example_configuration = azure.mariadb.Configuration("exampleConfiguration",
    resource_group_name=example_resource_group.name,
    server_name=example_server.name,
    value="600")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[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_name (pulumi.Input[str]) – The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

  • value (pulumi.Input[str]) – Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.

name: pulumi.Output[str] = None

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_name: pulumi.Output[str] = None

The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

server_name: pulumi.Output[str] = None

Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

value: pulumi.Output[str] = None

Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.

static get(resource_name, id, opts=None, name=None, resource_group_name=None, server_name=None, value=None)

Get an existing Configuration resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[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_name (pulumi.Input[str]) – The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

  • value (pulumi.Input[str]) – Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.mariadb.Database(resource_name, opts=None, charset=None, collation=None, name=None, resource_group_name=None, server_name=None, __props__=None, __name__=None, __opts__=None)

Manages a MariaDB Database within a MariaDB Server

import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="westeurope")
example_server = azure.mariadb.Server("exampleServer",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    sku_name="B_Gen5_2",
    storage_mb=51200,
    backup_retention_days=7,
    geo_redundant_backup_enabled=False,
    administrator_login="acctestun",
    administrator_login_password="H@Sh1CoR3!",
    version="10.2",
    ssl_enforcement_enabled=True)
example_database = azure.mariadb.Database("exampleDatabase",
    resource_group_name=example_resource_group.name,
    server_name=example_server.name,
    charset="utf8",
    collation="utf8_general_ci")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • charset (pulumi.Input[str]) – Specifies the Charset for the MariaDB Database, which needs to be a valid MariaDB Charset. Changing this forces a new resource to be created.

  • collation (pulumi.Input[str]) – Specifies the Collation for the MariaDB Database, which needs to be a valid MariaDB Collation. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the MariaDB Database, which needs to be a valid MariaDB identifier. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

charset: pulumi.Output[str] = None

Specifies the Charset for the MariaDB Database, which needs to be a valid MariaDB Charset. Changing this forces a new resource to be created.

collation: pulumi.Output[str] = None

Specifies the Collation for the MariaDB Database, which needs to be a valid MariaDB Collation. Changing this forces a new resource to be created.

name: pulumi.Output[str] = None

Specifies the name of the MariaDB Database, which needs to be a valid MariaDB identifier. Changing this forces a new resource to be created.

resource_group_name: pulumi.Output[str] = None

The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

server_name: pulumi.Output[str] = None

Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, charset=None, collation=None, name=None, resource_group_name=None, server_name=None)

Get an existing Database resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • charset (pulumi.Input[str]) –

    Specifies the Charset for the MariaDB Database, which needs to be a valid MariaDB Charset. Changing this forces a new resource to be created.

  • collation (pulumi.Input[str]) –

    Specifies the Collation for the MariaDB Database, which needs to be a valid MariaDB Collation. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) –

    Specifies the name of the MariaDB Database, which needs to be a valid MariaDB identifier. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.mariadb.FirewallRule(resource_name, opts=None, end_ip_address=None, name=None, resource_group_name=None, server_name=None, start_ip_address=None, __props__=None, __name__=None, __opts__=None)

Manages a Firewall Rule for a MariaDB Server

import pulumi
import pulumi_azure as azure

example = azure.mariadb.FirewallRule("example",
    end_ip_address="40.112.8.12",
    resource_group_name="test-rg",
    server_name="test-server",
    start_ip_address="40.112.8.12")
import pulumi
import pulumi_azure as azure

example = azure.mariadb.FirewallRule("example",
    end_ip_address="40.112.255.255",
    resource_group_name="test-rg",
    server_name="test-server",
    start_ip_address="40.112.0.0")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • end_ip_address (pulumi.Input[str]) – Specifies the End IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the MariaDB Firewall Rule. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

  • start_ip_address (pulumi.Input[str]) – Specifies the Start IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

end_ip_address: pulumi.Output[str] = None

Specifies the End IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

name: pulumi.Output[str] = None

Specifies the name of the MariaDB Firewall Rule. Changing this forces a new resource to be created.

resource_group_name: pulumi.Output[str] = None

The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

server_name: pulumi.Output[str] = None

Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

start_ip_address: pulumi.Output[str] = None

Specifies the Start IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, end_ip_address=None, name=None, resource_group_name=None, server_name=None, start_ip_address=None)

Get an existing FirewallRule resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • end_ip_address (pulumi.Input[str]) – Specifies the End IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the MariaDB Firewall Rule. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

  • start_ip_address (pulumi.Input[str]) – Specifies the Start IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.mariadb.GetMariaDbServerResult(administrator_login=None, fqdn=None, id=None, location=None, name=None, resource_group_name=None, sku_name=None, ssl_enforcement=None, storage_profiles=None, tags=None, version=None)

A collection of values returned by getMariaDbServer.

administrator_login = None

The Administrator Login for the MariaDB Server.

fqdn = None

The FQDN of the MariaDB Server.

id = None

The provider-assigned unique ID for this managed resource.

location = None

The Azure location where the resource exists.

sku_name = None

The SKU Name for this MariaDB Server.

ssl_enforcement = None

The SSL being enforced on connections.

storage_profiles = None

A storage_profile block as defined below.

tags = None
version = None

The version of MariaDB being used.

class pulumi_azure.mariadb.Server(resource_name, opts=None, administrator_login=None, administrator_login_password=None, auto_grow_enabled=None, backup_retention_days=None, create_mode=None, creation_source_server_id=None, geo_redundant_backup_enabled=None, location=None, name=None, public_network_access_enabled=None, resource_group_name=None, restore_point_in_time=None, sku_name=None, ssl_enforcement=None, ssl_enforcement_enabled=None, storage_mb=None, storage_profile=None, tags=None, version=None, __props__=None, __name__=None, __opts__=None)

Manages a MariaDB Server.

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,
    administrator_login="mariadbadmin",
    administrator_login_password="H@Sh1CoR3!",
    sku_name="B_Gen5_2",
    storage_mb=5120,
    version="10.2",
    auto_grow_enabled=True,
    backup_retention_days=7,
    geo_redundant_backup_enabled=False,
    public_network_access_enabled=False,
    ssl_enforcement_enabled=True)
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • administrator_login (pulumi.Input[str]) – The Administrator Login for the MariaDB Server. Changing this forces a new resource to be created.

  • administrator_login_password (pulumi.Input[str]) – The Password associated with the administrator_login for the MariaDB Server.

  • auto_grow_enabled (pulumi.Input[bool]) – Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is true.

  • backup_retention_days (pulumi.Input[float]) – Backup retention days for the server, supported values are between 7 and 35 days.

  • create_mode (pulumi.Input[str]) – The creation mode. Can be used to restore or replicate existing servers. Possible values are Default, Replica, GeoRestore, and PointInTimeRestore. Defaults to Default.

  • creation_source_server_id (pulumi.Input[str]) – For creation modes other than Default, the source server ID to use.

  • geo_redundant_backup_enabled (pulumi.Input[bool]) – Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not supported for the Basic tier.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

  • public_network_access_enabled (pulumi.Input[bool]) – Whether or not public network access is allowed for this server. Defaults to true.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the MariaDB Server. Changing this forces a new resource to be created.

  • restore_point_in_time (pulumi.Input[str]) – When create_mode is PointInTimeRestore, specifies the point in time to restore from creation_source_server_id.

  • sku_name (pulumi.Input[str]) – Specifies the SKU Name for this MariaDB Server. The name of the SKU, follows the tier + family + cores pattern (e.g. B_Gen4_1, GP_Gen5_8). For more information see the product documentation.

  • ssl_enforcement_enabled (pulumi.Input[bool]) – Specifies if SSL should be enforced on connections. Possible values are true and false.

  • storage_mb (pulumi.Input[float]) –

    Max storage allowed for a server. Possible values are between 5120 MB (5GB) and 1024000MB (1TB) for the Basic SKU and between 5120 MB (5GB) and 4096000 MB (4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • version (pulumi.Input[str]) – Specifies the version of MariaDB to use. Possible values are 10.2 and 10.3. Changing this forces a new resource to be created.

The storage_profile object supports the following:

  • autoGrow (pulumi.Input[str])

  • backup_retention_days (pulumi.Input[float]) - Backup retention days for the server, supported values are between 7 and 35 days.

  • geoRedundantBackup (pulumi.Input[str])

  • storage_mb (pulumi.Input[float]) - Max storage allowed for a server. Possible values are between 5120 MB (5GB) and 1024000MB (1TB) for the Basic SKU and between 5120 MB (5GB) and 4096000 MB (4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.

administrator_login: pulumi.Output[str] = None

The Administrator Login for the MariaDB Server. Changing this forces a new resource to be created.

administrator_login_password: pulumi.Output[str] = None

The Password associated with the administrator_login for the MariaDB Server.

auto_grow_enabled: pulumi.Output[bool] = None

Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is true.

backup_retention_days: pulumi.Output[float] = None

Backup retention days for the server, supported values are between 7 and 35 days.

create_mode: pulumi.Output[str] = None

The creation mode. Can be used to restore or replicate existing servers. Possible values are Default, Replica, GeoRestore, and PointInTimeRestore. Defaults to Default.

creation_source_server_id: pulumi.Output[str] = None

For creation modes other than Default, the source server ID to use.

fqdn: pulumi.Output[str] = None

The FQDN of the MariaDB Server.

geo_redundant_backup_enabled: pulumi.Output[bool] = None

Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not supported for the Basic tier.

location: pulumi.Output[str] = None

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name: pulumi.Output[str] = None

Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

public_network_access_enabled: pulumi.Output[bool] = None

Whether or not public network access is allowed for this server. Defaults to true.

resource_group_name: pulumi.Output[str] = None

The name of the resource group in which to create the MariaDB Server. Changing this forces a new resource to be created.

restore_point_in_time: pulumi.Output[str] = None

When create_mode is PointInTimeRestore, specifies the point in time to restore from creation_source_server_id.

sku_name: pulumi.Output[str] = None

Specifies the SKU Name for this MariaDB Server. The name of the SKU, follows the tier + family + cores pattern (e.g. B_Gen4_1, GP_Gen5_8). For more information see the product documentation.

ssl_enforcement_enabled: pulumi.Output[bool] = None

Specifies if SSL should be enforced on connections. Possible values are true and false.

storage_mb: pulumi.Output[float] = None

Max storage allowed for a server. Possible values are between 5120 MB (5GB) and 1024000MB (1TB) for the Basic SKU and between 5120 MB (5GB) and 4096000 MB (4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.

tags: pulumi.Output[dict] = None

A mapping of tags to assign to the resource.

version: pulumi.Output[str] = None

Specifies the version of MariaDB to use. Possible values are 10.2 and 10.3. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, administrator_login=None, administrator_login_password=None, auto_grow_enabled=None, backup_retention_days=None, create_mode=None, creation_source_server_id=None, fqdn=None, geo_redundant_backup_enabled=None, location=None, name=None, public_network_access_enabled=None, resource_group_name=None, restore_point_in_time=None, sku_name=None, ssl_enforcement=None, ssl_enforcement_enabled=None, storage_mb=None, storage_profile=None, tags=None, version=None)

Get an existing Server resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • administrator_login (pulumi.Input[str]) – The Administrator Login for the MariaDB Server. Changing this forces a new resource to be created.

  • administrator_login_password (pulumi.Input[str]) – The Password associated with the administrator_login for the MariaDB Server.

  • auto_grow_enabled (pulumi.Input[bool]) – Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is true.

  • backup_retention_days (pulumi.Input[float]) – Backup retention days for the server, supported values are between 7 and 35 days.

  • create_mode (pulumi.Input[str]) – The creation mode. Can be used to restore or replicate existing servers. Possible values are Default, Replica, GeoRestore, and PointInTimeRestore. Defaults to Default.

  • creation_source_server_id (pulumi.Input[str]) – For creation modes other than Default, the source server ID to use.

  • fqdn (pulumi.Input[str]) – The FQDN of the MariaDB Server.

  • geo_redundant_backup_enabled (pulumi.Input[bool]) – Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not supported for the Basic tier.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

  • public_network_access_enabled (pulumi.Input[bool]) – Whether or not public network access is allowed for this server. Defaults to true.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the MariaDB Server. Changing this forces a new resource to be created.

  • restore_point_in_time (pulumi.Input[str]) – When create_mode is PointInTimeRestore, specifies the point in time to restore from creation_source_server_id.

  • sku_name (pulumi.Input[str]) –

    Specifies the SKU Name for this MariaDB Server. The name of the SKU, follows the tier + family + cores pattern (e.g. B_Gen4_1, GP_Gen5_8). For more information see the product documentation.

  • ssl_enforcement_enabled (pulumi.Input[bool]) – Specifies if SSL should be enforced on connections. Possible values are true and false.

  • storage_mb (pulumi.Input[float]) –

    Max storage allowed for a server. Possible values are between 5120 MB (5GB) and 1024000MB (1TB) for the Basic SKU and between 5120 MB (5GB) and 4096000 MB (4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

  • version (pulumi.Input[str]) – Specifies the version of MariaDB to use. Possible values are 10.2 and 10.3. Changing this forces a new resource to be created.

The storage_profile object supports the following:

  • autoGrow (pulumi.Input[str])

  • backup_retention_days (pulumi.Input[float]) - Backup retention days for the server, supported values are between 7 and 35 days.

  • geoRedundantBackup (pulumi.Input[str])

  • storage_mb (pulumi.Input[float]) - Max storage allowed for a server. Possible values are between 5120 MB (5GB) and 1024000MB (1TB) for the Basic SKU and between 5120 MB (5GB) and 4096000 MB (4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_azure.mariadb.VirtualNetworkRule(resource_name, opts=None, name=None, resource_group_name=None, server_name=None, subnet_id=None, __props__=None, __name__=None, __opts__=None)

Manages a MariaDB Virtual Network Rule.

NOTE: MariaDB Virtual Network Rules can only be used with SKU Tiers of ``GeneralPurpose` or MemoryOptimized <https://docs.microsoft.com/en-us/azure/mariadb/concepts-data-access-security-vnet>`_

import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    address_spaces=["10.7.29.0/29"],
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
internal = azure.network.Subnet("internal",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefix="10.7.29.0/29",
    service_endpoints=["Microsoft.Sql"])
example_server = azure.mariadb.Server("exampleServer",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    administrator_login="mariadbadminun",
    administrator_login_password="H@Sh1CoR3!",
    version="5.7",
    ssl_enforcement="Enabled",
    sku_name="GP_Gen5_2",
    storage_profile={
        "storage_mb": 5120,
        "backup_retention_days": 7,
        "geoRedundantBackup": "Disabled",
    })
example_virtual_network_rule = azure.mariadb.VirtualNetworkRule("exampleVirtualNetworkRule",
    resource_group_name=example_resource_group.name,
    server_name=example_server.name,
    subnet_id=internal.id)
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the MariaDB Virtual Network Rule. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.

  • subnet_id (pulumi.Input[str]) – The ID of the subnet that the MariaDB server will be connected to.

name: pulumi.Output[str] = None

The name of the MariaDB Virtual Network Rule. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Changing this forces a new resource to be created.

resource_group_name: pulumi.Output[str] = None

The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.

server_name: pulumi.Output[str] = None

The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.

subnet_id: pulumi.Output[str] = None

The ID of the subnet that the MariaDB server will be connected to.

static get(resource_name, id, opts=None, name=None, resource_group_name=None, server_name=None, subnet_id=None)

Get an existing VirtualNetworkRule resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The name of the MariaDB Virtual Network Rule. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group where the MariaDB server resides. Changing this forces a new resource to be created.

  • server_name (pulumi.Input[str]) – The name of the SQL Server to which this MariaDB virtual network rule will be applied to. Changing this forces a new resource to be created.

  • subnet_id (pulumi.Input[str]) – The ID of the subnet that the MariaDB server will be connected to.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_azure.mariadb.get_maria_db_server(name=None, resource_group_name=None, opts=None)

Use this data source to access information about an existing MariaDB Server.

import pulumi
import pulumi_azure as azure

db_server = azure.mariadb.get_maria_db_server(name="mariadb-server",
    resource_group_name=azurerm_mariadb_server["example"]["resource_group_name"])
pulumi.export("mariadbServerId", data["azurerm_mariadb_server"]["example"]["id"])
Parameters
  • name (str) – The name of the MariaDB Server to retrieve information about.

  • resource_group_name (str) – The name of the resource group where the MariaDB Server exists.