New-AzMariaDbServer

Creates a new MariaDB.

Syntax

New-AzMariaDbServer
   -Name <String>
   -ResourceGroupName <String>
   -AdministratorLoginPassword <SecureString>
   -AdministratorUsername <String>
   -Location <String>
   -Sku <String>
   [-SubscriptionId <String>]
   [-BackupRetentionDay <Int32>]
   [-GeoRedundantBackup <GeoRedundantBackup>]
   [-SslEnforcement <SslEnforcementEnum>]
   [-StorageAutogrow <StorageAutogrow>]
   [-StorageInMb <Int32>]
   [-Tag <Hashtable>]
   [-Version <ServerVersion>]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Creates a new MariaDB.

Examples

Example 1: Create a new MariaDB

New-AzMariaDbServer -Name mariadb-aassd-01 -ResourceGroupName lucas-manual-test -Sku 'B_Gen5_1' -Location eastus

cmdlet New-AzMariaDbServer at command pipeline position 1
Supply values for the following parameters:
AdministratorUsername: adminuser
AdministratorLoginPassword: ************

Name             Location AdministratorLogin Version StorageProfileStorageMb SkuName  SkuTier SslEnforcement
----             -------- ------------------ ------- ----------------------- -------  ------- --------------
mariadb-aassd-01 eastus   adminuser          10.2    5120                    B_Gen5_1 Basic   Enabled

This command creates a new MariaDB.

Parameters

-AdministratorLoginPassword

Password of administrator, should be SecureString.

Type:SecureString
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-AdministratorUsername

Username of administrator.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-AsJob

Run the command as a job

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-BackupRetentionDay

Backup retention days for the server.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

region DefaultParameters The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-GeoRedundantBackup

Enable Geo-redundant or not for server backup.

Type:GeoRedundantBackup
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Location

The location the resource resides in.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

MariaDB server name.

Type:String
Aliases:ServerName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-NoWait

Run the command asynchronously

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group that contains the resource.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Sku

The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SslEnforcement

Enable ssl enforcement or not when connect to server.

Type:SslEnforcementEnum
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-StorageAutogrow

Enable Storage Auto Grow.

Type:StorageAutogrow
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-StorageInMb

Max storage allowed for a server.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The subscription ID is part of the URI for every service call

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Accept pipeline input:False
Accept wildcard characters:False

-Tag

Application-specific metadata in the form of key-value pairs.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Version

Server version.

Type:ServerVersion
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IServer

Notes

ALIASES