We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to access information about an existing MariaDB Server.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var dbServer = Output.Create(Azure.MariaDB.GetMariaDbServer.InvokeAsync(new Azure.MariaDB.GetMariaDbServerArgs
{
Name = "mariadb-server",
ResourceGroupName = azurerm_mariadb_server.Example.Resource_group_name,
}));
this.MariadbServerId = data.Azurerm_mariadb_server.Example.Id;
}
[Output("mariadbServerId")]
public Output<string> MariadbServerId { get; set; }
}
package main
import (
"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 {
_, err := mariadb.GetMariaDbServer(ctx, &mariadb.GetMariaDbServerArgs{
Name: "mariadb-server",
ResourceGroupName: azurerm_mariadb_server.Example.Resource_group_name,
}, nil)
if err != nil {
return err
}
ctx.Export("mariadbServerId", data.Azurerm_mariadb_server.Example.Id)
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const dbServer = azure.mariadb.getMariaDbServer({
name: "mariadb-server",
resourceGroupName: azurerm_mariadb_server.example.resource_group_name,
});
export const mariadbServerId = data.azurerm_mariadb_server.example.id;
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"])
Example coming soon!
Using getMariaDbServer
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMariaDbServer(args: GetMariaDbServerArgs, opts?: InvokeOptions): Promise<GetMariaDbServerResult>
function getMariaDbServerOutput(args: GetMariaDbServerOutputArgs, opts?: InvokeOptions): Output<GetMariaDbServerResult>def get_maria_db_server(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMariaDbServerResult
def get_maria_db_server_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMariaDbServerResult]func GetMariaDbServer(ctx *Context, args *GetMariaDbServerArgs, opts ...InvokeOption) (*GetMariaDbServerResult, error)
func GetMariaDbServerOutput(ctx *Context, args *GetMariaDbServerOutputArgs, opts ...InvokeOption) GetMariaDbServerResultOutput> Note: This function is named GetMariaDbServer in the Go SDK.
public static class GetMariaDbServer
{
public static Task<GetMariaDbServerResult> InvokeAsync(GetMariaDbServerArgs args, InvokeOptions? opts = null)
public static Output<GetMariaDbServerResult> Invoke(GetMariaDbServerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMariaDbServerResult> getMariaDbServer(GetMariaDbServerArgs args, InvokeOptions options)
public static Output<GetMariaDbServerResult> getMariaDbServer(GetMariaDbServerArgs args, InvokeOptions options)
fn::invoke:
function: azure:mariadb/getMariaDbServer:getMariaDbServer
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the MariaDB Server to retrieve information about.
- Resource
Group stringName - The name of the resource group where the MariaDB Server exists.
- Name string
- The name of the MariaDB Server to retrieve information about.
- Resource
Group stringName - The name of the resource group where the MariaDB Server exists.
- name String
- The name of the MariaDB Server to retrieve information about.
- resource
Group StringName - The name of the resource group where the MariaDB Server exists.
- name string
- The name of the MariaDB Server to retrieve information about.
- resource
Group stringName - The name of the resource group where the MariaDB Server exists.
- name str
- The name of the MariaDB Server to retrieve information about.
- resource_
group_ strname - The name of the resource group where the MariaDB Server exists.
- name String
- The name of the MariaDB Server to retrieve information about.
- resource
Group StringName - The name of the resource group where the MariaDB Server exists.
getMariaDbServer Result
The following output properties are available:
- Administrator
Login string - The Administrator Login for the MariaDB Server.
- Fqdn string
- The FQDN of the MariaDB Server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure location where the resource exists.
- Name string
- Resource
Group stringName - Sku
Name string - The SKU Name for this MariaDB Server.
- Ssl
Enforcement string - The SSL being enforced on connections.
- Storage
Profiles List<GetMaria Db Server Storage Profile> - A
storage_profileblock as defined below. - Dictionary<string, string>
A mapping of tags assigned to the resource.
- Version string
- The version of MariaDB being used.
- Administrator
Login string - The Administrator Login for the MariaDB Server.
- Fqdn string
- The FQDN of the MariaDB Server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure location where the resource exists.
- Name string
- Resource
Group stringName - Sku
Name string - The SKU Name for this MariaDB Server.
- Ssl
Enforcement string - The SSL being enforced on connections.
- Storage
Profiles []GetMaria Db Server Storage Profile - A
storage_profileblock as defined below. - map[string]string
A mapping of tags assigned to the resource.
- Version string
- The version of MariaDB being used.
- administrator
Login String - The Administrator Login for the MariaDB Server.
- fqdn String
- The FQDN of the MariaDB Server.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure location where the resource exists.
- name String
- resource
Group StringName - sku
Name String - The SKU Name for this MariaDB Server.
- ssl
Enforcement String - The SSL being enforced on connections.
- storage
Profiles List<GetMaria Db Server Storage Profile> - A
storage_profileblock as defined below. - Map<String,String>
A mapping of tags assigned to the resource.
- version String
- The version of MariaDB being used.
- administrator
Login string - The Administrator Login for the MariaDB Server.
- fqdn string
- The FQDN of the MariaDB Server.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure location where the resource exists.
- name string
- resource
Group stringName - sku
Name string - The SKU Name for this MariaDB Server.
- ssl
Enforcement string - The SSL being enforced on connections.
- storage
Profiles GetMaria Db Server Storage Profile[] - A
storage_profileblock as defined below. - {[key: string]: string}
A mapping of tags assigned to the resource.
- version string
- The version of MariaDB being used.
- administrator_
login str - The Administrator Login for the MariaDB Server.
- fqdn str
- The FQDN of the MariaDB Server.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure location where the resource exists.
- name str
- resource_
group_ strname - sku_
name str - The SKU Name for this MariaDB Server.
- ssl_
enforcement str - The SSL being enforced on connections.
- storage_
profiles Sequence[GetMaria Db Server Storage Profile] - A
storage_profileblock as defined below. - Mapping[str, str]
A mapping of tags assigned to the resource.
- version str
- The version of MariaDB being used.
- administrator
Login String - The Administrator Login for the MariaDB Server.
- fqdn String
- The FQDN of the MariaDB Server.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure location where the resource exists.
- name String
- resource
Group StringName - sku
Name String - The SKU Name for this MariaDB Server.
- ssl
Enforcement String - The SSL being enforced on connections.
- storage
Profiles List<Property Map> - A
storage_profileblock as defined below. - Map<String>
A mapping of tags assigned to the resource.
- version String
- The version of MariaDB being used.
Supporting Types
GetMariaDbServerStorageProfile
- Auto
Grow string - Whether autogrow is enabled or disabled for the storage.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - Whether Geo-redundant is enabled or not for server backup.
- Storage
Mb int - The max storage allowed for a server.
- Auto
Grow string - Whether autogrow is enabled or disabled for the storage.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - Whether Geo-redundant is enabled or not for server backup.
- Storage
Mb int - The max storage allowed for a server.
- auto
Grow String - Whether autogrow is enabled or disabled for the storage.
- backup
Retention IntegerDays - Backup retention days for the server.
- geo
Redundant StringBackup - Whether Geo-redundant is enabled or not for server backup.
- storage
Mb Integer - The max storage allowed for a server.
- auto
Grow string - Whether autogrow is enabled or disabled for the storage.
- backup
Retention numberDays - Backup retention days for the server.
- geo
Redundant stringBackup - Whether Geo-redundant is enabled or not for server backup.
- storage
Mb number - The max storage allowed for a server.
- auto_
grow str - Whether autogrow is enabled or disabled for the storage.
- backup_
retention_ intdays - Backup retention days for the server.
- geo_
redundant_ strbackup - Whether Geo-redundant is enabled or not for server backup.
- storage_
mb int - The max storage allowed for a server.
- auto
Grow String - Whether autogrow is enabled or disabled for the storage.
- backup
Retention NumberDays - Backup retention days for the server.
- geo
Redundant StringBackup - Whether Geo-redundant is enabled or not for server backup.
- storage
Mb Number - The max storage allowed for a server.
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.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
