Server
Manages a MariaDB Server.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mariadb.Server;
import com.pulumi.azure.mariadb.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleServer = new Server("exampleServer", ServerArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.administratorLogin("mariadbadmin")
.administratorLoginPassword("H@Sh1CoR3!")
.skuName("B_Gen5_2")
.storageMb(5120)
.version("10.2")
.autoGrowEnabled(true)
.backupRetentionDays(7)
.geoRedundantBackupEnabled(false)
.publicNetworkAccessEnabled(false)
.sslEnforcementEnabled(true)
.sslMinimalTlsVersionEnforced("TLS1_2")
.build());
}
}
Import
MariaDB Server's can be imported using the resource id
, e.g.
$ pulumi import azure:mariadb/server:Server server1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforMariaDB/servers/server1
Properties
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.
When create_mode
is PointInTimeRestore
, specifies the point in time to restore from creation_source_server_id
. It should be provided in RFC3339 format, e.g. 2013-11-08T22:00:40Z
.
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. Possible values are B_Gen5_1
, B_Gen5_2
, GP_Gen5_2
, GP_Gen5_4
, GP_Gen5_8
, GP_Gen5_16
, GP_Gen5_32
, MO_Gen5_2
, MO_Gen5_4
, MO_Gen5_8
and MO_Gen5_16
.
Max storage allowed for a server. Possible values are between 5120
MB (5GB) and 1024000
MB (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.