azure-native.dbformysql.Server
Explore with Pulumi AI
Represents a server. Azure REST API version: 2022-01-01. Prior API version in Azure Native 1.x: 2017-12-01.
Other available API versions: 2017-12-01, 2018-06-01-privatepreview, 2020-07-01-preview, 2020-07-01-privatepreview, 2022-09-30-preview, 2023-06-01-preview, 2023-06-30, 2023-10-01-preview, 2023-12-01-preview, 2023-12-30, 2024-02-01-preview.
Example Usage
Create a new server
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforMySQL.Server("server", new()
{
AdministratorLogin = "cloudsa",
AdministratorLoginPassword = "your_password",
AvailabilityZone = "1",
Backup = new AzureNative.DBforMySQL.Inputs.BackupArgs
{
BackupRetentionDays = 7,
GeoRedundantBackup = AzureNative.DBforMySQL.EnableStatusEnum.Disabled,
},
CreateMode = AzureNative.DBforMySQL.CreateMode.Default,
HighAvailability = new AzureNative.DBforMySQL.Inputs.HighAvailabilityArgs
{
Mode = AzureNative.DBforMySQL.HighAvailabilityMode.ZoneRedundant,
StandbyAvailabilityZone = "3",
},
Location = "southeastasia",
ResourceGroupName = "testrg",
ServerName = "mysqltestserver",
Sku = new AzureNative.DBforMySQL.Inputs.SkuArgs
{
Name = "Standard_D2ds_v4",
Tier = AzureNative.DBforMySQL.SkuTier.GeneralPurpose,
},
Storage = new AzureNative.DBforMySQL.Inputs.StorageArgs
{
AutoGrow = AzureNative.DBforMySQL.EnableStatusEnum.Disabled,
Iops = 600,
StorageSizeGB = 100,
},
Tags =
{
{ "num", "1" },
},
Version = AzureNative.DBforMySQL.ServerVersion.ServerVersion_5_7,
});
});
package main
import (
dbformysql "github.com/pulumi/pulumi-azure-native-sdk/dbformysql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbformysql.NewServer(ctx, "server", &dbformysql.ServerArgs{
AdministratorLogin: pulumi.String("cloudsa"),
AdministratorLoginPassword: pulumi.String("your_password"),
AvailabilityZone: pulumi.String("1"),
Backup: &dbformysql.BackupArgs{
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String(dbformysql.EnableStatusEnumDisabled),
},
CreateMode: pulumi.String(dbformysql.CreateModeDefault),
HighAvailability: &dbformysql.HighAvailabilityArgs{
Mode: pulumi.String(dbformysql.HighAvailabilityModeZoneRedundant),
StandbyAvailabilityZone: pulumi.String("3"),
},
Location: pulumi.String("southeastasia"),
ResourceGroupName: pulumi.String("testrg"),
ServerName: pulumi.String("mysqltestserver"),
Sku: &dbformysql.SkuArgs{
Name: pulumi.String("Standard_D2ds_v4"),
Tier: pulumi.String(dbformysql.SkuTierGeneralPurpose),
},
Storage: &dbformysql.StorageArgs{
AutoGrow: pulumi.String(dbformysql.EnableStatusEnumDisabled),
Iops: pulumi.Int(600),
StorageSizeGB: pulumi.Int(100),
},
Tags: pulumi.StringMap{
"num": pulumi.String("1"),
},
Version: pulumi.String(dbformysql.ServerVersion_5_7),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformysql.Server;
import com.pulumi.azurenative.dbformysql.ServerArgs;
import com.pulumi.azurenative.dbformysql.inputs.BackupArgs;
import com.pulumi.azurenative.dbformysql.inputs.HighAvailabilityArgs;
import com.pulumi.azurenative.dbformysql.inputs.SkuArgs;
import com.pulumi.azurenative.dbformysql.inputs.StorageArgs;
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 server = new Server("server", ServerArgs.builder()
.administratorLogin("cloudsa")
.administratorLoginPassword("your_password")
.availabilityZone("1")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Disabled")
.build())
.createMode("Default")
.highAvailability(HighAvailabilityArgs.builder()
.mode("ZoneRedundant")
.standbyAvailabilityZone("3")
.build())
.location("southeastasia")
.resourceGroupName("testrg")
.serverName("mysqltestserver")
.sku(SkuArgs.builder()
.name("Standard_D2ds_v4")
.tier("GeneralPurpose")
.build())
.storage(StorageArgs.builder()
.autoGrow("Disabled")
.iops(600)
.storageSizeGB(100)
.build())
.tags(Map.of("num", "1"))
.version("5.7")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbformysql.Server("server",
administrator_login="cloudsa",
administrator_login_password="your_password",
availability_zone="1",
backup=azure_native.dbformysql.BackupArgs(
backup_retention_days=7,
geo_redundant_backup=azure_native.dbformysql.EnableStatusEnum.DISABLED,
),
create_mode=azure_native.dbformysql.CreateMode.DEFAULT,
high_availability=azure_native.dbformysql.HighAvailabilityArgs(
mode=azure_native.dbformysql.HighAvailabilityMode.ZONE_REDUNDANT,
standby_availability_zone="3",
),
location="southeastasia",
resource_group_name="testrg",
server_name="mysqltestserver",
sku=azure_native.dbformysql.SkuArgs(
name="Standard_D2ds_v4",
tier=azure_native.dbformysql.SkuTier.GENERAL_PURPOSE,
),
storage=azure_native.dbformysql.StorageArgs(
auto_grow=azure_native.dbformysql.EnableStatusEnum.DISABLED,
iops=600,
storage_size_gb=100,
),
tags={
"num": "1",
},
version=azure_native.dbformysql.ServerVersion.SERVER_VERSION_5_7)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbformysql.Server("server", {
administratorLogin: "cloudsa",
administratorLoginPassword: "your_password",
availabilityZone: "1",
backup: {
backupRetentionDays: 7,
geoRedundantBackup: azure_native.dbformysql.EnableStatusEnum.Disabled,
},
createMode: azure_native.dbformysql.CreateMode.Default,
highAvailability: {
mode: azure_native.dbformysql.HighAvailabilityMode.ZoneRedundant,
standbyAvailabilityZone: "3",
},
location: "southeastasia",
resourceGroupName: "testrg",
serverName: "mysqltestserver",
sku: {
name: "Standard_D2ds_v4",
tier: azure_native.dbformysql.SkuTier.GeneralPurpose,
},
storage: {
autoGrow: azure_native.dbformysql.EnableStatusEnum.Disabled,
iops: 600,
storageSizeGB: 100,
},
tags: {
num: "1",
},
version: azure_native.dbformysql.ServerVersion.ServerVersion_5_7,
});
resources:
server:
type: azure-native:dbformysql:Server
properties:
administratorLogin: cloudsa
administratorLoginPassword: your_password
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Disabled
createMode: Default
highAvailability:
mode: ZoneRedundant
standbyAvailabilityZone: '3'
location: southeastasia
resourceGroupName: testrg
serverName: mysqltestserver
sku:
name: Standard_D2ds_v4
tier: GeneralPurpose
storage:
autoGrow: Disabled
iops: 600
storageSizeGB: 100
tags:
num: '1'
version: '5.7'
Create a replica server
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforMySQL.Server("server", new()
{
CreateMode = AzureNative.DBforMySQL.CreateMode.Replica,
Location = "SoutheastAsia",
ResourceGroupName = "testgr",
ServerName = "replica-server",
SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server",
});
});
package main
import (
dbformysql "github.com/pulumi/pulumi-azure-native-sdk/dbformysql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbformysql.NewServer(ctx, "server", &dbformysql.ServerArgs{
CreateMode: pulumi.String(dbformysql.CreateModeReplica),
Location: pulumi.String("SoutheastAsia"),
ResourceGroupName: pulumi.String("testgr"),
ServerName: pulumi.String("replica-server"),
SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformysql.Server;
import com.pulumi.azurenative.dbformysql.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 server = new Server("server", ServerArgs.builder()
.createMode("Replica")
.location("SoutheastAsia")
.resourceGroupName("testgr")
.serverName("replica-server")
.sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbformysql.Server("server",
create_mode=azure_native.dbformysql.CreateMode.REPLICA,
location="SoutheastAsia",
resource_group_name="testgr",
server_name="replica-server",
source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbformysql.Server("server", {
createMode: azure_native.dbformysql.CreateMode.Replica,
location: "SoutheastAsia",
resourceGroupName: "testgr",
serverName: "replica-server",
sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server",
});
resources:
server:
type: azure-native:dbformysql:Server
properties:
createMode: Replica
location: SoutheastAsia
resourceGroupName: testgr
serverName: replica-server
sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server
Create a server as a point in time restore
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforMySQL.Server("server", new()
{
CreateMode = AzureNative.DBforMySQL.CreateMode.PointInTimeRestore,
Location = "SoutheastAsia",
ResourceGroupName = "TargetResourceGroup",
RestorePointInTime = "2021-06-24T00:00:37.467Z",
ServerName = "targetserver",
Sku = new AzureNative.DBforMySQL.Inputs.SkuArgs
{
Name = "Standard_D14_v2",
Tier = AzureNative.DBforMySQL.SkuTier.GeneralPurpose,
},
SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver",
Tags =
{
{ "num", "1" },
},
});
});
package main
import (
dbformysql "github.com/pulumi/pulumi-azure-native-sdk/dbformysql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbformysql.NewServer(ctx, "server", &dbformysql.ServerArgs{
CreateMode: pulumi.String(dbformysql.CreateModePointInTimeRestore),
Location: pulumi.String("SoutheastAsia"),
ResourceGroupName: pulumi.String("TargetResourceGroup"),
RestorePointInTime: pulumi.String("2021-06-24T00:00:37.467Z"),
ServerName: pulumi.String("targetserver"),
Sku: &dbformysql.SkuArgs{
Name: pulumi.String("Standard_D14_v2"),
Tier: pulumi.String(dbformysql.SkuTierGeneralPurpose),
},
SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver"),
Tags: pulumi.StringMap{
"num": pulumi.String("1"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformysql.Server;
import com.pulumi.azurenative.dbformysql.ServerArgs;
import com.pulumi.azurenative.dbformysql.inputs.SkuArgs;
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 server = new Server("server", ServerArgs.builder()
.createMode("PointInTimeRestore")
.location("SoutheastAsia")
.resourceGroupName("TargetResourceGroup")
.restorePointInTime("2021-06-24T00:00:37.467Z")
.serverName("targetserver")
.sku(SkuArgs.builder()
.name("Standard_D14_v2")
.tier("GeneralPurpose")
.build())
.sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver")
.tags(Map.of("num", "1"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbformysql.Server("server",
create_mode=azure_native.dbformysql.CreateMode.POINT_IN_TIME_RESTORE,
location="SoutheastAsia",
resource_group_name="TargetResourceGroup",
restore_point_in_time="2021-06-24T00:00:37.467Z",
server_name="targetserver",
sku=azure_native.dbformysql.SkuArgs(
name="Standard_D14_v2",
tier=azure_native.dbformysql.SkuTier.GENERAL_PURPOSE,
),
source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver",
tags={
"num": "1",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbformysql.Server("server", {
createMode: azure_native.dbformysql.CreateMode.PointInTimeRestore,
location: "SoutheastAsia",
resourceGroupName: "TargetResourceGroup",
restorePointInTime: "2021-06-24T00:00:37.467Z",
serverName: "targetserver",
sku: {
name: "Standard_D14_v2",
tier: azure_native.dbformysql.SkuTier.GeneralPurpose,
},
sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver",
tags: {
num: "1",
},
});
resources:
server:
type: azure-native:dbformysql:Server
properties:
createMode: PointInTimeRestore
location: SoutheastAsia
resourceGroupName: TargetResourceGroup
restorePointInTime: 2021-06-24T00:00:37.467Z
serverName: targetserver
sku:
name: Standard_D14_v2
tier: GeneralPurpose
sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver
tags:
num: '1'
Create Server Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);
@overload
def Server(resource_name: str,
args: ServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Server(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
network: Optional[NetworkArgs] = None,
version: Optional[Union[str, ServerVersion]] = None,
maintenance_window: Optional[MaintenanceWindowArgs] = None,
create_mode: Optional[Union[str, CreateMode]] = None,
data_encryption: Optional[DataEncryptionArgs] = None,
high_availability: Optional[HighAvailabilityArgs] = None,
identity: Optional[IdentityArgs] = None,
location: Optional[str] = None,
backup: Optional[BackupArgs] = None,
availability_zone: Optional[str] = None,
administrator_login_password: Optional[str] = None,
replication_role: Optional[Union[str, ReplicationRole]] = None,
restore_point_in_time: Optional[str] = None,
server_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
source_server_resource_id: Optional[str] = None,
storage: Optional[StorageArgs] = None,
tags: Optional[Mapping[str, str]] = None,
administrator_login: Optional[str] = None)
func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)
public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)
public Server(String name, ServerArgs args)
public Server(String name, ServerArgs args, CustomResourceOptions options)
type: azure-native:dbformysql:Server
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 ServerArgs
- 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 ServerArgs
- 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 ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerArgs
- 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 azure_nativeServerResource = new AzureNative.DBforMySQL.Server("azure-nativeServerResource", new()
{
ResourceGroupName = "string",
Network = new AzureNative.DBforMySQL.Inputs.NetworkArgs
{
DelegatedSubnetResourceId = "string",
PrivateDnsZoneResourceId = "string",
},
Version = "string",
MaintenanceWindow = new AzureNative.DBforMySQL.Inputs.MaintenanceWindowArgs
{
CustomWindow = "string",
DayOfWeek = 0,
StartHour = 0,
StartMinute = 0,
},
CreateMode = "string",
DataEncryption = new AzureNative.DBforMySQL.Inputs.DataEncryptionArgs
{
GeoBackupKeyURI = "string",
GeoBackupUserAssignedIdentityId = "string",
PrimaryKeyURI = "string",
PrimaryUserAssignedIdentityId = "string",
Type = AzureNative.DBforMySQL.DataEncryptionType.AzureKeyVault,
},
HighAvailability = new AzureNative.DBforMySQL.Inputs.HighAvailabilityArgs
{
Mode = "string",
StandbyAvailabilityZone = "string",
},
Identity = new AzureNative.DBforMySQL.Inputs.IdentityArgs
{
Type = AzureNative.DBforMySQL.ManagedServiceIdentityType.UserAssigned,
UserAssignedIdentities = new[]
{
"string",
},
},
Location = "string",
Backup = new AzureNative.DBforMySQL.Inputs.BackupArgs
{
BackupRetentionDays = 0,
GeoRedundantBackup = "string",
},
AvailabilityZone = "string",
AdministratorLoginPassword = "string",
ReplicationRole = "string",
RestorePointInTime = "string",
ServerName = "string",
Sku = new AzureNative.DBforMySQL.Inputs.SkuArgs
{
Name = "string",
Tier = "string",
},
SourceServerResourceId = "string",
Storage = new AzureNative.DBforMySQL.Inputs.StorageArgs
{
AutoGrow = "string",
AutoIoScaling = "string",
Iops = 0,
LogOnDisk = "string",
StorageSizeGB = 0,
},
Tags =
{
{ "string", "string" },
},
AdministratorLogin = "string",
});
example, err := dbformysql.NewServer(ctx, "azure-nativeServerResource", &dbformysql.ServerArgs{
ResourceGroupName: pulumi.String("string"),
Network: &dbformysql.NetworkArgs{
DelegatedSubnetResourceId: pulumi.String("string"),
PrivateDnsZoneResourceId: pulumi.String("string"),
},
Version: pulumi.String("string"),
MaintenanceWindow: &dbformysql.MaintenanceWindowArgs{
CustomWindow: pulumi.String("string"),
DayOfWeek: pulumi.Int(0),
StartHour: pulumi.Int(0),
StartMinute: pulumi.Int(0),
},
CreateMode: pulumi.String("string"),
DataEncryption: &dbformysql.DataEncryptionArgs{
GeoBackupKeyURI: pulumi.String("string"),
GeoBackupUserAssignedIdentityId: pulumi.String("string"),
PrimaryKeyURI: pulumi.String("string"),
PrimaryUserAssignedIdentityId: pulumi.String("string"),
Type: dbformysql.DataEncryptionTypeAzureKeyVault,
},
HighAvailability: &dbformysql.HighAvailabilityArgs{
Mode: pulumi.String("string"),
StandbyAvailabilityZone: pulumi.String("string"),
},
Identity: &dbformysql.IdentityArgs{
Type: dbformysql.ManagedServiceIdentityTypeUserAssigned,
UserAssignedIdentities: pulumi.StringArray{
pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Backup: &dbformysql.BackupArgs{
BackupRetentionDays: pulumi.Int(0),
GeoRedundantBackup: pulumi.String("string"),
},
AvailabilityZone: pulumi.String("string"),
AdministratorLoginPassword: pulumi.String("string"),
ReplicationRole: pulumi.String("string"),
RestorePointInTime: pulumi.String("string"),
ServerName: pulumi.String("string"),
Sku: &dbformysql.SkuArgs{
Name: pulumi.String("string"),
Tier: pulumi.String("string"),
},
SourceServerResourceId: pulumi.String("string"),
Storage: &dbformysql.StorageArgs{
AutoGrow: pulumi.String("string"),
AutoIoScaling: pulumi.String("string"),
Iops: pulumi.Int(0),
LogOnDisk: pulumi.String("string"),
StorageSizeGB: pulumi.Int(0),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AdministratorLogin: pulumi.String("string"),
})
var azure_nativeServerResource = new Server("azure-nativeServerResource", ServerArgs.builder()
.resourceGroupName("string")
.network(NetworkArgs.builder()
.delegatedSubnetResourceId("string")
.privateDnsZoneResourceId("string")
.build())
.version("string")
.maintenanceWindow(MaintenanceWindowArgs.builder()
.customWindow("string")
.dayOfWeek(0)
.startHour(0)
.startMinute(0)
.build())
.createMode("string")
.dataEncryption(DataEncryptionArgs.builder()
.geoBackupKeyURI("string")
.geoBackupUserAssignedIdentityId("string")
.primaryKeyURI("string")
.primaryUserAssignedIdentityId("string")
.type("AzureKeyVault")
.build())
.highAvailability(HighAvailabilityArgs.builder()
.mode("string")
.standbyAvailabilityZone("string")
.build())
.identity(IdentityArgs.builder()
.type("UserAssigned")
.userAssignedIdentities("string")
.build())
.location("string")
.backup(BackupArgs.builder()
.backupRetentionDays(0)
.geoRedundantBackup("string")
.build())
.availabilityZone("string")
.administratorLoginPassword("string")
.replicationRole("string")
.restorePointInTime("string")
.serverName("string")
.sku(SkuArgs.builder()
.name("string")
.tier("string")
.build())
.sourceServerResourceId("string")
.storage(StorageArgs.builder()
.autoGrow("string")
.autoIoScaling("string")
.iops(0)
.logOnDisk("string")
.storageSizeGB(0)
.build())
.tags(Map.of("string", "string"))
.administratorLogin("string")
.build());
azure_native_server_resource = azure_native.dbformysql.Server("azure-nativeServerResource",
resource_group_name="string",
network=azure_native.dbformysql.NetworkArgs(
delegated_subnet_resource_id="string",
private_dns_zone_resource_id="string",
),
version="string",
maintenance_window=azure_native.dbformysql.MaintenanceWindowArgs(
custom_window="string",
day_of_week=0,
start_hour=0,
start_minute=0,
),
create_mode="string",
data_encryption=azure_native.dbformysql.DataEncryptionArgs(
geo_backup_key_uri="string",
geo_backup_user_assigned_identity_id="string",
primary_key_uri="string",
primary_user_assigned_identity_id="string",
type=azure_native.dbformysql.DataEncryptionType.AZURE_KEY_VAULT,
),
high_availability=azure_native.dbformysql.HighAvailabilityArgs(
mode="string",
standby_availability_zone="string",
),
identity=azure_native.dbformysql.IdentityArgs(
type=azure_native.dbformysql.ManagedServiceIdentityType.USER_ASSIGNED,
user_assigned_identities=["string"],
),
location="string",
backup=azure_native.dbformysql.BackupArgs(
backup_retention_days=0,
geo_redundant_backup="string",
),
availability_zone="string",
administrator_login_password="string",
replication_role="string",
restore_point_in_time="string",
server_name="string",
sku=azure_native.dbformysql.SkuArgs(
name="string",
tier="string",
),
source_server_resource_id="string",
storage=azure_native.dbformysql.StorageArgs(
auto_grow="string",
auto_io_scaling="string",
iops=0,
log_on_disk="string",
storage_size_gb=0,
),
tags={
"string": "string",
},
administrator_login="string")
const azure_nativeServerResource = new azure_native.dbformysql.Server("azure-nativeServerResource", {
resourceGroupName: "string",
network: {
delegatedSubnetResourceId: "string",
privateDnsZoneResourceId: "string",
},
version: "string",
maintenanceWindow: {
customWindow: "string",
dayOfWeek: 0,
startHour: 0,
startMinute: 0,
},
createMode: "string",
dataEncryption: {
geoBackupKeyURI: "string",
geoBackupUserAssignedIdentityId: "string",
primaryKeyURI: "string",
primaryUserAssignedIdentityId: "string",
type: azure_native.dbformysql.DataEncryptionType.AzureKeyVault,
},
highAvailability: {
mode: "string",
standbyAvailabilityZone: "string",
},
identity: {
type: azure_native.dbformysql.ManagedServiceIdentityType.UserAssigned,
userAssignedIdentities: ["string"],
},
location: "string",
backup: {
backupRetentionDays: 0,
geoRedundantBackup: "string",
},
availabilityZone: "string",
administratorLoginPassword: "string",
replicationRole: "string",
restorePointInTime: "string",
serverName: "string",
sku: {
name: "string",
tier: "string",
},
sourceServerResourceId: "string",
storage: {
autoGrow: "string",
autoIoScaling: "string",
iops: 0,
logOnDisk: "string",
storageSizeGB: 0,
},
tags: {
string: "string",
},
administratorLogin: "string",
});
type: azure-native:dbformysql:Server
properties:
administratorLogin: string
administratorLoginPassword: string
availabilityZone: string
backup:
backupRetentionDays: 0
geoRedundantBackup: string
createMode: string
dataEncryption:
geoBackupKeyURI: string
geoBackupUserAssignedIdentityId: string
primaryKeyURI: string
primaryUserAssignedIdentityId: string
type: AzureKeyVault
highAvailability:
mode: string
standbyAvailabilityZone: string
identity:
type: UserAssigned
userAssignedIdentities:
- string
location: string
maintenanceWindow:
customWindow: string
dayOfWeek: 0
startHour: 0
startMinute: 0
network:
delegatedSubnetResourceId: string
privateDnsZoneResourceId: string
replicationRole: string
resourceGroupName: string
restorePointInTime: string
serverName: string
sku:
name: string
tier: string
sourceServerResourceId: string
storage:
autoGrow: string
autoIoScaling: string
iops: 0
logOnDisk: string
storageSizeGB: 0
tags:
string: string
version: string
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Server resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Administrator
Login string - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- Administrator
Login stringPassword - The password of the administrator login (required for server creation).
- Availability
Zone string - availability Zone information of the server.
- Backup
Pulumi.
Azure Native. DBfor My SQL. Inputs. Backup - Backup related properties of a server.
- Create
Mode string | Pulumi.Azure Native. DBfor My SQL. Create Mode - The mode to create a new MySQL server.
- Data
Encryption Pulumi.Azure Native. DBfor My SQL. Inputs. Data Encryption - The Data Encryption for CMK.
- High
Availability Pulumi.Azure Native. DBfor My SQL. Inputs. High Availability - High availability related properties of a server.
- Identity
Pulumi.
Azure Native. DBfor My SQL. Inputs. Identity - The cmk identity for the server.
- Location string
- The geo-location where the resource lives
- Maintenance
Window Pulumi.Azure Native. DBfor My SQL. Inputs. Maintenance Window - Maintenance window of a server.
- Network
Pulumi.
Azure Native. DBfor My SQL. Inputs. Network - Network related properties of a server.
- Replication
Role string | Pulumi.Azure Native. DBfor My SQL. Replication Role - The replication role.
- Restore
Point stringIn Time - Restore point creation time (ISO8601 format), specifying the time to restore from.
- Server
Name string - The name of the server.
- Sku
Pulumi.
Azure Native. DBfor My SQL. Inputs. Sku - The SKU (pricing tier) of the server.
- Source
Server stringResource Id - The source MySQL server id.
- Storage
Pulumi.
Azure Native. DBfor My SQL. Inputs. Storage - Storage related properties of a server.
- Dictionary<string, string>
- Resource tags.
- Version
string | Pulumi.
Azure Native. DBfor My SQL. Server Version - Server version.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Administrator
Login string - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- Administrator
Login stringPassword - The password of the administrator login (required for server creation).
- Availability
Zone string - availability Zone information of the server.
- Backup
Backup
Args - Backup related properties of a server.
- Create
Mode string | CreateMode - The mode to create a new MySQL server.
- Data
Encryption DataEncryption Args - The Data Encryption for CMK.
- High
Availability HighAvailability Args - High availability related properties of a server.
- Identity
Identity
Args - The cmk identity for the server.
- Location string
- The geo-location where the resource lives
- Maintenance
Window MaintenanceWindow Args - Maintenance window of a server.
- Network
Network
Args - Network related properties of a server.
- Replication
Role string | ReplicationRole - The replication role.
- Restore
Point stringIn Time - Restore point creation time (ISO8601 format), specifying the time to restore from.
- Server
Name string - The name of the server.
- Sku
Sku
Args - The SKU (pricing tier) of the server.
- Source
Server stringResource Id - The source MySQL server id.
- Storage
Storage
Args - Storage related properties of a server.
- map[string]string
- Resource tags.
- Version
string | Server
Version - Server version.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- administrator
Login String - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- administrator
Login StringPassword - The password of the administrator login (required for server creation).
- availability
Zone String - availability Zone information of the server.
- backup Backup
- Backup related properties of a server.
- create
Mode String | CreateMode - The mode to create a new MySQL server.
- data
Encryption DataEncryption - The Data Encryption for CMK.
- high
Availability HighAvailability - High availability related properties of a server.
- identity Identity
- The cmk identity for the server.
- location String
- The geo-location where the resource lives
- maintenance
Window MaintenanceWindow - Maintenance window of a server.
- network Network
- Network related properties of a server.
- replication
Role String | ReplicationRole - The replication role.
- restore
Point StringIn Time - Restore point creation time (ISO8601 format), specifying the time to restore from.
- server
Name String - The name of the server.
- sku Sku
- The SKU (pricing tier) of the server.
- source
Server StringResource Id - The source MySQL server id.
- storage Storage
- Storage related properties of a server.
- Map<String,String>
- Resource tags.
- version
String | Server
Version - Server version.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- administrator
Login string - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- administrator
Login stringPassword - The password of the administrator login (required for server creation).
- availability
Zone string - availability Zone information of the server.
- backup Backup
- Backup related properties of a server.
- create
Mode string | CreateMode - The mode to create a new MySQL server.
- data
Encryption DataEncryption - The Data Encryption for CMK.
- high
Availability HighAvailability - High availability related properties of a server.
- identity Identity
- The cmk identity for the server.
- location string
- The geo-location where the resource lives
- maintenance
Window MaintenanceWindow - Maintenance window of a server.
- network Network
- Network related properties of a server.
- replication
Role string | ReplicationRole - The replication role.
- restore
Point stringIn Time - Restore point creation time (ISO8601 format), specifying the time to restore from.
- server
Name string - The name of the server.
- sku Sku
- The SKU (pricing tier) of the server.
- source
Server stringResource Id - The source MySQL server id.
- storage Storage
- Storage related properties of a server.
- {[key: string]: string}
- Resource tags.
- version
string | Server
Version - Server version.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- administrator_
login str - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- administrator_
login_ strpassword - The password of the administrator login (required for server creation).
- availability_
zone str - availability Zone information of the server.
- backup
Backup
Args - Backup related properties of a server.
- create_
mode str | CreateMode - The mode to create a new MySQL server.
- data_
encryption DataEncryption Args - The Data Encryption for CMK.
- high_
availability HighAvailability Args - High availability related properties of a server.
- identity
Identity
Args - The cmk identity for the server.
- location str
- The geo-location where the resource lives
- maintenance_
window MaintenanceWindow Args - Maintenance window of a server.
- network
Network
Args - Network related properties of a server.
- replication_
role str | ReplicationRole - The replication role.
- restore_
point_ strin_ time - Restore point creation time (ISO8601 format), specifying the time to restore from.
- server_
name str - The name of the server.
- sku
Sku
Args - The SKU (pricing tier) of the server.
- source_
server_ strresource_ id - The source MySQL server id.
- storage
Storage
Args - Storage related properties of a server.
- Mapping[str, str]
- Resource tags.
- version
str | Server
Version - Server version.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- administrator
Login String - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- administrator
Login StringPassword - The password of the administrator login (required for server creation).
- availability
Zone String - availability Zone information of the server.
- backup Property Map
- Backup related properties of a server.
- create
Mode String | "Default" | "PointIn Time Restore" | "Replica" | "Geo Restore" - The mode to create a new MySQL server.
- data
Encryption Property Map - The Data Encryption for CMK.
- high
Availability Property Map - High availability related properties of a server.
- identity Property Map
- The cmk identity for the server.
- location String
- The geo-location where the resource lives
- maintenance
Window Property Map - Maintenance window of a server.
- network Property Map
- Network related properties of a server.
- replication
Role String | "None" | "Source" | "Replica" - The replication role.
- restore
Point StringIn Time - Restore point creation time (ISO8601 format), specifying the time to restore from.
- server
Name String - The name of the server.
- sku Property Map
- The SKU (pricing tier) of the server.
- source
Server StringResource Id - The source MySQL server id.
- storage Property Map
- Storage related properties of a server.
- Map<String>
- Resource tags.
- version String | "5.7" | "8.0.21"
- Server version.
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
- Fully
Qualified stringDomain Name - The fully qualified domain name of a server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Replica
Capacity int - The maximum number of replicas that a primary server can have.
- State string
- The state of a server.
- System
Data Pulumi.Azure Native. DBfor My SQL. Outputs. System Data Response - The system metadata relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Fully
Qualified stringDomain Name - The fully qualified domain name of a server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Replica
Capacity int - The maximum number of replicas that a primary server can have.
- State string
- The state of a server.
- System
Data SystemData Response - The system metadata relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully
Qualified StringDomain Name - The fully qualified domain name of a server.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- replica
Capacity Integer - The maximum number of replicas that a primary server can have.
- state String
- The state of a server.
- system
Data SystemData Response - The system metadata relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully
Qualified stringDomain Name - The fully qualified domain name of a server.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- replica
Capacity number - The maximum number of replicas that a primary server can have.
- state string
- The state of a server.
- system
Data SystemData Response - The system metadata relating to this resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully_
qualified_ strdomain_ name - The fully qualified domain name of a server.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- replica_
capacity int - The maximum number of replicas that a primary server can have.
- state str
- The state of a server.
- system_
data SystemData Response - The system metadata relating to this resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully
Qualified StringDomain Name - The fully qualified domain name of a server.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- replica
Capacity Number - The maximum number of replicas that a primary server can have.
- state String
- The state of a server.
- system
Data Property Map - The system metadata relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
Backup, BackupArgs
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant string | Pulumi.Backup Azure Native. DBfor My SQL. Enable Status Enum - Whether or not geo redundant backup is enabled.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant string | EnableBackup Status Enum - Whether or not geo redundant backup is enabled.
- backup
Retention IntegerDays - Backup retention days for the server.
- geo
Redundant String | EnableBackup Status Enum - Whether or not geo redundant backup is enabled.
- backup
Retention numberDays - Backup retention days for the server.
- geo
Redundant string | EnableBackup Status Enum - Whether or not geo redundant backup is enabled.
- backup_
retention_ intdays - Backup retention days for the server.
- geo_
redundant_ str | Enablebackup Status Enum - Whether or not geo redundant backup is enabled.
- backup
Retention NumberDays - Backup retention days for the server.
- geo
Redundant String | "Enabled" | "Disabled"Backup - Whether or not geo redundant backup is enabled.
BackupResponse, BackupResponseArgs
- Earliest
Restore stringDate - Earliest restore point creation time (ISO8601 format)
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - Whether or not geo redundant backup is enabled.
- Earliest
Restore stringDate - Earliest restore point creation time (ISO8601 format)
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - Whether or not geo redundant backup is enabled.
- earliest
Restore StringDate - Earliest restore point creation time (ISO8601 format)
- backup
Retention IntegerDays - Backup retention days for the server.
- geo
Redundant StringBackup - Whether or not geo redundant backup is enabled.
- earliest
Restore stringDate - Earliest restore point creation time (ISO8601 format)
- backup
Retention numberDays - Backup retention days for the server.
- geo
Redundant stringBackup - Whether or not geo redundant backup is enabled.
- earliest_
restore_ strdate - Earliest restore point creation time (ISO8601 format)
- backup_
retention_ intdays - Backup retention days for the server.
- geo_
redundant_ strbackup - Whether or not geo redundant backup is enabled.
- earliest
Restore StringDate - Earliest restore point creation time (ISO8601 format)
- backup
Retention NumberDays - Backup retention days for the server.
- geo
Redundant StringBackup - Whether or not geo redundant backup is enabled.
CreateMode, CreateModeArgs
- Default
- Default
- Point
In Time Restore - PointInTimeRestore
- Replica
- Replica
- Geo
Restore - GeoRestore
- Create
Mode Default - Default
- Create
Mode Point In Time Restore - PointInTimeRestore
- Create
Mode Replica - Replica
- Create
Mode Geo Restore - GeoRestore
- Default
- Default
- Point
In Time Restore - PointInTimeRestore
- Replica
- Replica
- Geo
Restore - GeoRestore
- Default
- Default
- Point
In Time Restore - PointInTimeRestore
- Replica
- Replica
- Geo
Restore - GeoRestore
- DEFAULT
- Default
- POINT_IN_TIME_RESTORE
- PointInTimeRestore
- REPLICA
- Replica
- GEO_RESTORE
- GeoRestore
- "Default"
- Default
- "Point
In Time Restore" - PointInTimeRestore
- "Replica"
- Replica
- "Geo
Restore" - GeoRestore
DataEncryption, DataEncryptionArgs
- Geo
Backup stringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- Geo
Backup stringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- Primary
Key stringURI - Primary key uri
- Primary
User stringAssigned Identity Id - Primary user identity resource id
- Type
Pulumi.
Azure Native. DBfor My SQL. Data Encryption Type - The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- Geo
Backup stringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- Geo
Backup stringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- Primary
Key stringURI - Primary key uri
- Primary
User stringAssigned Identity Id - Primary user identity resource id
- Type
Data
Encryption Type - The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo
Backup StringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo
Backup StringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary
Key StringURI - Primary key uri
- primary
User StringAssigned Identity Id - Primary user identity resource id
- type
Data
Encryption Type - The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo
Backup stringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo
Backup stringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary
Key stringURI - Primary key uri
- primary
User stringAssigned Identity Id - Primary user identity resource id
- type
Data
Encryption Type - The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo_
backup_ strkey_ uri - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo_
backup_ struser_ assigned_ identity_ id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary_
key_ struri - Primary key uri
- primary_
user_ strassigned_ identity_ id - Primary user identity resource id
- type
Data
Encryption Type - The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo
Backup StringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo
Backup StringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary
Key StringURI - Primary key uri
- primary
User StringAssigned Identity Id - Primary user identity resource id
- type
"Azure
Key Vault" | "System Managed" - The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
DataEncryptionResponse, DataEncryptionResponseArgs
- Geo
Backup stringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- Geo
Backup stringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- Primary
Key stringURI - Primary key uri
- Primary
User stringAssigned Identity Id - Primary user identity resource id
- Type string
- The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- Geo
Backup stringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- Geo
Backup stringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- Primary
Key stringURI - Primary key uri
- Primary
User stringAssigned Identity Id - Primary user identity resource id
- Type string
- The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo
Backup StringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo
Backup StringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary
Key StringURI - Primary key uri
- primary
User StringAssigned Identity Id - Primary user identity resource id
- type String
- The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo
Backup stringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo
Backup stringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary
Key stringURI - Primary key uri
- primary
User stringAssigned Identity Id - Primary user identity resource id
- type string
- The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo_
backup_ strkey_ uri - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo_
backup_ struser_ assigned_ identity_ id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary_
key_ struri - Primary key uri
- primary_
user_ strassigned_ identity_ id - Primary user identity resource id
- type str
- The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
- geo
Backup StringKey URI - Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
- geo
Backup StringUser Assigned Identity Id - Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
- primary
Key StringURI - Primary key uri
- primary
User StringAssigned Identity Id - Primary user identity resource id
- type String
- The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
DataEncryptionType, DataEncryptionTypeArgs
- Azure
Key Vault - AzureKeyVault
- System
Managed - SystemManaged
- Data
Encryption Type Azure Key Vault - AzureKeyVault
- Data
Encryption Type System Managed - SystemManaged
- Azure
Key Vault - AzureKeyVault
- System
Managed - SystemManaged
- Azure
Key Vault - AzureKeyVault
- System
Managed - SystemManaged
- AZURE_KEY_VAULT
- AzureKeyVault
- SYSTEM_MANAGED
- SystemManaged
- "Azure
Key Vault" - AzureKeyVault
- "System
Managed" - SystemManaged
EnableStatusEnum, EnableStatusEnumArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Enable
Status Enum Enabled - Enabled
- Enable
Status Enum Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
HighAvailability, HighAvailabilityArgs
- Mode
string | Pulumi.
Azure Native. DBfor My SQL. High Availability Mode - High availability mode for a server.
- Standby
Availability stringZone - Availability zone of the standby server.
- Mode
string | High
Availability Mode - High availability mode for a server.
- Standby
Availability stringZone - Availability zone of the standby server.
- mode
String | High
Availability Mode - High availability mode for a server.
- standby
Availability StringZone - Availability zone of the standby server.
- mode
string | High
Availability Mode - High availability mode for a server.
- standby
Availability stringZone - Availability zone of the standby server.
- mode
str | High
Availability Mode - High availability mode for a server.
- standby_
availability_ strzone - Availability zone of the standby server.
- mode
String | "Disabled" | "Zone
Redundant" | "Same Zone" - High availability mode for a server.
- standby
Availability StringZone - Availability zone of the standby server.
HighAvailabilityMode, HighAvailabilityModeArgs
- Disabled
- Disabled
- Zone
Redundant - ZoneRedundant
- Same
Zone - SameZone
- High
Availability Mode Disabled - Disabled
- High
Availability Mode Zone Redundant - ZoneRedundant
- High
Availability Mode Same Zone - SameZone
- Disabled
- Disabled
- Zone
Redundant - ZoneRedundant
- Same
Zone - SameZone
- Disabled
- Disabled
- Zone
Redundant - ZoneRedundant
- Same
Zone - SameZone
- DISABLED
- Disabled
- ZONE_REDUNDANT
- ZoneRedundant
- SAME_ZONE
- SameZone
- "Disabled"
- Disabled
- "Zone
Redundant" - ZoneRedundant
- "Same
Zone" - SameZone
HighAvailabilityResponse, HighAvailabilityResponseArgs
- State string
- The state of server high availability.
- Mode string
- High availability mode for a server.
- Standby
Availability stringZone - Availability zone of the standby server.
- State string
- The state of server high availability.
- Mode string
- High availability mode for a server.
- Standby
Availability stringZone - Availability zone of the standby server.
- state String
- The state of server high availability.
- mode String
- High availability mode for a server.
- standby
Availability StringZone - Availability zone of the standby server.
- state string
- The state of server high availability.
- mode string
- High availability mode for a server.
- standby
Availability stringZone - Availability zone of the standby server.
- state str
- The state of server high availability.
- mode str
- High availability mode for a server.
- standby_
availability_ strzone - Availability zone of the standby server.
- state String
- The state of server high availability.
- mode String
- High availability mode for a server.
- standby
Availability StringZone - Availability zone of the standby server.
Identity, IdentityArgs
- Type
Pulumi.
Azure Native. DBfor My SQL. Managed Service Identity Type - Type of managed service identity.
- User
Assigned List<string>Identities - Metadata of user assigned identity.
- Type
Managed
Service Identity Type - Type of managed service identity.
- User
Assigned []stringIdentities - Metadata of user assigned identity.
- type
Managed
Service Identity Type - Type of managed service identity.
- user
Assigned List<String>Identities - Metadata of user assigned identity.
- type
Managed
Service Identity Type - Type of managed service identity.
- user
Assigned string[]Identities - Metadata of user assigned identity.
- type
Managed
Service Identity Type - Type of managed service identity.
- user_
assigned_ Sequence[str]identities - Metadata of user assigned identity.
- type
"User
Assigned" - Type of managed service identity.
- user
Assigned List<String>Identities - Metadata of user assigned identity.
IdentityResponse, IdentityResponseArgs
- Principal
Id string - ObjectId from the KeyVault
- Tenant
Id string - TenantId from the KeyVault
- Type string
- Type of managed service identity.
- User
Assigned Dictionary<string, ImmutableIdentities Array<Pulumi. Azure Native. DBfor My SQL. Inputs. User Assigned Identity Response>> - Metadata of user assigned identity.
- Principal
Id string - ObjectId from the KeyVault
- Tenant
Id string - TenantId from the KeyVault
- Type string
- Type of managed service identity.
- User
Assigned map[string][]UserIdentities Assigned Identity Response - Metadata of user assigned identity.
- principal
Id String - ObjectId from the KeyVault
- tenant
Id String - TenantId from the KeyVault
- type String
- Type of managed service identity.
- user
Assigned Map<String,List<UserIdentities Assigned Identity Response>> - Metadata of user assigned identity.
- principal
Id string - ObjectId from the KeyVault
- tenant
Id string - TenantId from the KeyVault
- type string
- Type of managed service identity.
- user
Assigned {[key: string]: UserIdentities Assigned Identity Response[]} - Metadata of user assigned identity.
- principal_
id str - ObjectId from the KeyVault
- tenant_
id str - TenantId from the KeyVault
- type str
- Type of managed service identity.
- user_
assigned_ Mapping[str, Sequence[Useridentities Assigned Identity Response]] - Metadata of user assigned identity.
- principal
Id String - ObjectId from the KeyVault
- tenant
Id String - TenantId from the KeyVault
- type String
- Type of managed service identity.
- user
Assigned Map<List<Property Map>>Identities - Metadata of user assigned identity.
MaintenanceWindow, MaintenanceWindowArgs
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of IntegerWeek - day of week for maintenance window
- start
Hour Integer - start hour for maintenance window
- start
Minute Integer - start minute for maintenance window
- custom
Window string - indicates whether custom window is enabled or disabled
- day
Of numberWeek - day of week for maintenance window
- start
Hour number - start hour for maintenance window
- start
Minute number - start minute for maintenance window
- custom_
window str - indicates whether custom window is enabled or disabled
- day_
of_ intweek - day of week for maintenance window
- start_
hour int - start hour for maintenance window
- start_
minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of NumberWeek - day of week for maintenance window
- start
Hour Number - start hour for maintenance window
- start
Minute Number - start minute for maintenance window
MaintenanceWindowResponse, MaintenanceWindowResponseArgs
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of IntegerWeek - day of week for maintenance window
- start
Hour Integer - start hour for maintenance window
- start
Minute Integer - start minute for maintenance window
- custom
Window string - indicates whether custom window is enabled or disabled
- day
Of numberWeek - day of week for maintenance window
- start
Hour number - start hour for maintenance window
- start
Minute number - start minute for maintenance window
- custom_
window str - indicates whether custom window is enabled or disabled
- day_
of_ intweek - day of week for maintenance window
- start_
hour int - start hour for maintenance window
- start_
minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of NumberWeek - day of week for maintenance window
- start
Hour Number - start hour for maintenance window
- start
Minute Number - start minute for maintenance window
ManagedServiceIdentityType, ManagedServiceIdentityTypeArgs
- User
Assigned - UserAssigned
- Managed
Service Identity Type User Assigned - UserAssigned
- User
Assigned - UserAssigned
- User
Assigned - UserAssigned
- USER_ASSIGNED
- UserAssigned
- "User
Assigned" - UserAssigned
Network, NetworkArgs
- Delegated
Subnet stringResource Id - Delegated subnet resource id used to setup vnet for a server.
- Private
Dns stringZone Resource Id - Private DNS zone resource id.
- Delegated
Subnet stringResource Id - Delegated subnet resource id used to setup vnet for a server.
- Private
Dns stringZone Resource Id - Private DNS zone resource id.
- delegated
Subnet StringResource Id - Delegated subnet resource id used to setup vnet for a server.
- private
Dns StringZone Resource Id - Private DNS zone resource id.
- delegated
Subnet stringResource Id - Delegated subnet resource id used to setup vnet for a server.
- private
Dns stringZone Resource Id - Private DNS zone resource id.
- delegated_
subnet_ strresource_ id - Delegated subnet resource id used to setup vnet for a server.
- private_
dns_ strzone_ resource_ id - Private DNS zone resource id.
- delegated
Subnet StringResource Id - Delegated subnet resource id used to setup vnet for a server.
- private
Dns StringZone Resource Id - Private DNS zone resource id.
NetworkResponse, NetworkResponseArgs
- Public
Network stringAccess - Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
- Delegated
Subnet stringResource Id - Delegated subnet resource id used to setup vnet for a server.
- Private
Dns stringZone Resource Id - Private DNS zone resource id.
- Public
Network stringAccess - Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
- Delegated
Subnet stringResource Id - Delegated subnet resource id used to setup vnet for a server.
- Private
Dns stringZone Resource Id - Private DNS zone resource id.
- public
Network StringAccess - Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
- delegated
Subnet StringResource Id - Delegated subnet resource id used to setup vnet for a server.
- private
Dns StringZone Resource Id - Private DNS zone resource id.
- public
Network stringAccess - Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
- delegated
Subnet stringResource Id - Delegated subnet resource id used to setup vnet for a server.
- private
Dns stringZone Resource Id - Private DNS zone resource id.
- public_
network_ straccess - Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
- delegated_
subnet_ strresource_ id - Delegated subnet resource id used to setup vnet for a server.
- private_
dns_ strzone_ resource_ id - Private DNS zone resource id.
- public
Network StringAccess - Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
- delegated
Subnet StringResource Id - Delegated subnet resource id used to setup vnet for a server.
- private
Dns StringZone Resource Id - Private DNS zone resource id.
ReplicationRole, ReplicationRoleArgs
- None
- None
- Source
- Source
- Replica
- Replica
- Replication
Role None - None
- Replication
Role Source - Source
- Replication
Role Replica - Replica
- None
- None
- Source
- Source
- Replica
- Replica
- None
- None
- Source
- Source
- Replica
- Replica
- NONE
- None
- SOURCE
- Source
- REPLICA
- Replica
- "None"
- None
- "Source"
- Source
- "Replica"
- Replica
ServerVersion, ServerVersionArgs
- Server
Version_5_7 - 5.7
- Server
Version_8_0_21 - 8.0.21
- Server
Version_5_7 - 5.7
- Server
Version_8_0_21 - 8.0.21
- _5_7
- 5.7
- _8_0_21
- 8.0.21
- Server
Version_5_7 - 5.7
- Server
Version_8_0_21 - 8.0.21
- SERVER_VERSION_5_7
- 5.7
- SERVER_VERSION_8_0_21
- 8.0.21
- "5.7"
- 5.7
- "8.0.21"
- 8.0.21
Sku, SkuArgs
- Name string
- The name of the sku, e.g. Standard_D32s_v3.
- Tier
string | Pulumi.
Azure Native. DBfor My SQL. Sku Tier - The tier of the particular SKU, e.g. GeneralPurpose.
- name String
- The name of the sku, e.g. Standard_D32s_v3.
- tier
String | "Burstable" | "General
Purpose" | "Memory Optimized" - The tier of the particular SKU, e.g. GeneralPurpose.
SkuResponse, SkuResponseArgs
SkuTier, SkuTierArgs
- Burstable
- Burstable
- General
Purpose - GeneralPurpose
- Memory
Optimized - MemoryOptimized
- Sku
Tier Burstable - Burstable
- Sku
Tier General Purpose - GeneralPurpose
- Sku
Tier Memory Optimized - MemoryOptimized
- Burstable
- Burstable
- General
Purpose - GeneralPurpose
- Memory
Optimized - MemoryOptimized
- Burstable
- Burstable
- General
Purpose - GeneralPurpose
- Memory
Optimized - MemoryOptimized
- BURSTABLE
- Burstable
- GENERAL_PURPOSE
- GeneralPurpose
- MEMORY_OPTIMIZED
- MemoryOptimized
- "Burstable"
- Burstable
- "General
Purpose" - GeneralPurpose
- "Memory
Optimized" - MemoryOptimized
Storage, StorageArgs
- Auto
Grow string | Pulumi.Azure Native. DBfor My SQL. Enable Status Enum - Enable Storage Auto Grow or not.
- Auto
Io string | Pulumi.Scaling Azure Native. DBfor My SQL. Enable Status Enum - Enable IO Auto Scaling or not.
- Iops int
- Storage IOPS for a server.
- Log
On string | Pulumi.Disk Azure Native. DBfor My SQL. Enable Status Enum - Enable Log On Disk or not.
- Storage
Size intGB - Max storage size allowed for a server.
- Auto
Grow string | EnableStatus Enum - Enable Storage Auto Grow or not.
- Auto
Io string | EnableScaling Status Enum - Enable IO Auto Scaling or not.
- Iops int
- Storage IOPS for a server.
- Log
On string | EnableDisk Status Enum - Enable Log On Disk or not.
- Storage
Size intGB - Max storage size allowed for a server.
- auto
Grow String | EnableStatus Enum - Enable Storage Auto Grow or not.
- auto
Io String | EnableScaling Status Enum - Enable IO Auto Scaling or not.
- iops Integer
- Storage IOPS for a server.
- log
On String | EnableDisk Status Enum - Enable Log On Disk or not.
- storage
Size IntegerGB - Max storage size allowed for a server.
- auto
Grow string | EnableStatus Enum - Enable Storage Auto Grow or not.
- auto
Io string | EnableScaling Status Enum - Enable IO Auto Scaling or not.
- iops number
- Storage IOPS for a server.
- log
On string | EnableDisk Status Enum - Enable Log On Disk or not.
- storage
Size numberGB - Max storage size allowed for a server.
- auto_
grow str | EnableStatus Enum - Enable Storage Auto Grow or not.
- auto_
io_ str | Enablescaling Status Enum - Enable IO Auto Scaling or not.
- iops int
- Storage IOPS for a server.
- log_
on_ str | Enabledisk Status Enum - Enable Log On Disk or not.
- storage_
size_ intgb - Max storage size allowed for a server.
- auto
Grow String | "Enabled" | "Disabled" - Enable Storage Auto Grow or not.
- auto
Io String | "Enabled" | "Disabled"Scaling - Enable IO Auto Scaling or not.
- iops Number
- Storage IOPS for a server.
- log
On String | "Enabled" | "Disabled"Disk - Enable Log On Disk or not.
- storage
Size NumberGB - Max storage size allowed for a server.
StorageResponse, StorageResponseArgs
- Storage
Sku string - The sku name of the server storage.
- Auto
Grow string - Enable Storage Auto Grow or not.
- Auto
Io stringScaling - Enable IO Auto Scaling or not.
- Iops int
- Storage IOPS for a server.
- Log
On stringDisk - Enable Log On Disk or not.
- Storage
Size intGB - Max storage size allowed for a server.
- Storage
Sku string - The sku name of the server storage.
- Auto
Grow string - Enable Storage Auto Grow or not.
- Auto
Io stringScaling - Enable IO Auto Scaling or not.
- Iops int
- Storage IOPS for a server.
- Log
On stringDisk - Enable Log On Disk or not.
- Storage
Size intGB - Max storage size allowed for a server.
- storage
Sku String - The sku name of the server storage.
- auto
Grow String - Enable Storage Auto Grow or not.
- auto
Io StringScaling - Enable IO Auto Scaling or not.
- iops Integer
- Storage IOPS for a server.
- log
On StringDisk - Enable Log On Disk or not.
- storage
Size IntegerGB - Max storage size allowed for a server.
- storage
Sku string - The sku name of the server storage.
- auto
Grow string - Enable Storage Auto Grow or not.
- auto
Io stringScaling - Enable IO Auto Scaling or not.
- iops number
- Storage IOPS for a server.
- log
On stringDisk - Enable Log On Disk or not.
- storage
Size numberGB - Max storage size allowed for a server.
- storage_
sku str - The sku name of the server storage.
- auto_
grow str - Enable Storage Auto Grow or not.
- auto_
io_ strscaling - Enable IO Auto Scaling or not.
- iops int
- Storage IOPS for a server.
- log_
on_ strdisk - Enable Log On Disk or not.
- storage_
size_ intgb - Max storage size allowed for a server.
- storage
Sku String - The sku name of the server storage.
- auto
Grow String - Enable Storage Auto Grow or not.
- auto
Io StringScaling - Enable IO Auto Scaling or not.
- iops Number
- Storage IOPS for a server.
- log
On StringDisk - Enable Log On Disk or not.
- storage
Size NumberGB - Max storage size allowed for a server.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs
- Client
Id string - Client Id of user assigned identity
- Principal
Id string - Principal Id of user assigned identity
- Client
Id string - Client Id of user assigned identity
- Principal
Id string - Principal Id of user assigned identity
- client
Id String - Client Id of user assigned identity
- principal
Id String - Principal Id of user assigned identity
- client
Id string - Client Id of user assigned identity
- principal
Id string - Principal Id of user assigned identity
- client_
id str - Client Id of user assigned identity
- principal_
id str - Principal Id of user assigned identity
- client
Id String - Client Id of user assigned identity
- principal
Id String - Principal Id of user assigned identity
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:dbformysql:Server mysqltestserver /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0