We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a MySQL Flexible Server.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AddressSpaces =
{
"10.0.0.0/16",
},
});
var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
{
ResourceGroupName = exampleResourceGroup.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes =
{
"10.0.2.0/24",
},
ServiceEndpoints =
{
"Microsoft.Storage",
},
Delegations =
{
new Azure.Network.Inputs.SubnetDelegationArgs
{
Name = "fs",
ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
{
Name = "Microsoft.DBforMySQL/flexibleServers",
Actions =
{
"Microsoft.Network/virtualNetworks/subnets/join/action",
},
},
},
},
});
var exampleZone = new Azure.PrivateDns.Zone("exampleZone", new Azure.PrivateDns.ZoneArgs
{
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleZoneVirtualNetworkLink = new Azure.PrivateDns.ZoneVirtualNetworkLink("exampleZoneVirtualNetworkLink", new Azure.PrivateDns.ZoneVirtualNetworkLinkArgs
{
PrivateDnsZoneName = exampleZone.Name,
VirtualNetworkId = exampleVirtualNetwork.Id,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleFlexibleServer = new Azure.MySql.FlexibleServer("exampleFlexibleServer", new Azure.MySql.FlexibleServerArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AdministratorLogin = "psqladmin",
AdministratorPassword = "H@Sh1CoR3!",
BackupRetentionDays = 7,
DelegatedSubnetId = exampleSubnet.Id,
PrivateDnsZoneId = exampleZone.Id,
SkuName = "GP_Standard_D2ds_v4",
}, new CustomResourceOptions
{
DependsOn =
{
exampleZoneVirtualNetworkLink,
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/mysql"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/privatedns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
ResourceGroupName: exampleResourceGroup.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.2.0/24"),
},
ServiceEndpoints: pulumi.StringArray{
pulumi.String("Microsoft.Storage"),
},
Delegations: network.SubnetDelegationArray{
&network.SubnetDelegationArgs{
Name: pulumi.String("fs"),
ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
Name: pulumi.String("Microsoft.DBforMySQL/flexibleServers"),
Actions: pulumi.StringArray{
pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
},
},
},
},
})
if err != nil {
return err
}
exampleZone, err := privatedns.NewZone(ctx, "exampleZone", &privatedns.ZoneArgs{
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
exampleZoneVirtualNetworkLink, err := privatedns.NewZoneVirtualNetworkLink(ctx, "exampleZoneVirtualNetworkLink", &privatedns.ZoneVirtualNetworkLinkArgs{
PrivateDnsZoneName: exampleZone.Name,
VirtualNetworkId: exampleVirtualNetwork.ID(),
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
_, err = mysql.NewFlexibleServer(ctx, "exampleFlexibleServer", &mysql.FlexibleServerArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AdministratorLogin: pulumi.String("psqladmin"),
AdministratorPassword: pulumi.String("H@Sh1CoR3!"),
BackupRetentionDays: pulumi.Int(7),
DelegatedSubnetId: exampleSubnet.ID(),
PrivateDnsZoneId: exampleZone.ID(),
SkuName: pulumi.String("GP_Standard_D2ds_v4"),
}, pulumi.DependsOn([]pulumi.Resource{
exampleZoneVirtualNetworkLink,
}))
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
addressSpaces: ["10.0.0.0/16"],
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
resourceGroupName: exampleResourceGroup.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["10.0.2.0/24"],
serviceEndpoints: ["Microsoft.Storage"],
delegations: [{
name: "fs",
serviceDelegation: {
name: "Microsoft.DBforMySQL/flexibleServers",
actions: ["Microsoft.Network/virtualNetworks/subnets/join/action"],
},
}],
});
const exampleZone = new azure.privatedns.Zone("exampleZone", {resourceGroupName: exampleResourceGroup.name});
const exampleZoneVirtualNetworkLink = new azure.privatedns.ZoneVirtualNetworkLink("exampleZoneVirtualNetworkLink", {
privateDnsZoneName: exampleZone.name,
virtualNetworkId: exampleVirtualNetwork.id,
resourceGroupName: exampleResourceGroup.name,
});
const exampleFlexibleServer = new azure.mysql.FlexibleServer("exampleFlexibleServer", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
administratorLogin: "psqladmin",
administratorPassword: "H@Sh1CoR3!",
backupRetentionDays: 7,
delegatedSubnetId: exampleSubnet.id,
privateDnsZoneId: exampleZone.id,
skuName: "GP_Standard_D2ds_v4",
}, {
dependsOn: [exampleZoneVirtualNetworkLink],
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
address_spaces=["10.0.0.0/16"])
example_subnet = azure.network.Subnet("exampleSubnet",
resource_group_name=example_resource_group.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10.0.2.0/24"],
service_endpoints=["Microsoft.Storage"],
delegations=[azure.network.SubnetDelegationArgs(
name="fs",
service_delegation=azure.network.SubnetDelegationServiceDelegationArgs(
name="Microsoft.DBforMySQL/flexibleServers",
actions=["Microsoft.Network/virtualNetworks/subnets/join/action"],
),
)])
example_zone = azure.privatedns.Zone("exampleZone", resource_group_name=example_resource_group.name)
example_zone_virtual_network_link = azure.privatedns.ZoneVirtualNetworkLink("exampleZoneVirtualNetworkLink",
private_dns_zone_name=example_zone.name,
virtual_network_id=example_virtual_network.id,
resource_group_name=example_resource_group.name)
example_flexible_server = azure.mysql.FlexibleServer("exampleFlexibleServer",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
administrator_login="psqladmin",
administrator_password="H@Sh1CoR3!",
backup_retention_days=7,
delegated_subnet_id=example_subnet.id,
private_dns_zone_id=example_zone.id,
sku_name="GP_Standard_D2ds_v4",
opts=pulumi.ResourceOptions(depends_on=[example_zone_virtual_network_link]))
Example coming soon!
Create FlexibleServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FlexibleServer(name: string, args: FlexibleServerArgs, opts?: CustomResourceOptions);@overload
def FlexibleServer(resource_name: str,
args: FlexibleServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FlexibleServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
point_in_time_restore_time_in_utc: Optional[str] = None,
private_dns_zone_id: Optional[str] = None,
create_mode: Optional[str] = None,
administrator_login: Optional[str] = None,
geo_redundant_backup_enabled: Optional[bool] = None,
high_availability: Optional[FlexibleServerHighAvailabilityArgs] = None,
location: Optional[str] = None,
maintenance_window: Optional[FlexibleServerMaintenanceWindowArgs] = None,
backup_retention_days: Optional[int] = None,
name: Optional[str] = None,
delegated_subnet_id: Optional[str] = None,
replication_role: Optional[str] = None,
administrator_password: Optional[str] = None,
sku_name: Optional[str] = None,
source_server_id: Optional[str] = None,
storage: Optional[FlexibleServerStorageArgs] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[str] = None,
zone: Optional[str] = None)func NewFlexibleServer(ctx *Context, name string, args FlexibleServerArgs, opts ...ResourceOption) (*FlexibleServer, error)public FlexibleServer(string name, FlexibleServerArgs args, CustomResourceOptions? opts = null)
public FlexibleServer(String name, FlexibleServerArgs args)
public FlexibleServer(String name, FlexibleServerArgs args, CustomResourceOptions options)
type: azure:mysql:FlexibleServer
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 FlexibleServerArgs
- 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 FlexibleServerArgs
- 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 FlexibleServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FlexibleServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FlexibleServerArgs
- 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 flexibleServerResource = new Azure.MySql.FlexibleServer("flexibleServerResource", new()
{
ResourceGroupName = "string",
PointInTimeRestoreTimeInUtc = "string",
PrivateDnsZoneId = "string",
CreateMode = "string",
AdministratorLogin = "string",
GeoRedundantBackupEnabled = false,
HighAvailability = new Azure.MySql.Inputs.FlexibleServerHighAvailabilityArgs
{
Mode = "string",
StandbyAvailabilityZone = "string",
},
Location = "string",
MaintenanceWindow = new Azure.MySql.Inputs.FlexibleServerMaintenanceWindowArgs
{
DayOfWeek = 0,
StartHour = 0,
StartMinute = 0,
},
BackupRetentionDays = 0,
Name = "string",
DelegatedSubnetId = "string",
ReplicationRole = "string",
AdministratorPassword = "string",
SkuName = "string",
SourceServerId = "string",
Storage = new Azure.MySql.Inputs.FlexibleServerStorageArgs
{
AutoGrowEnabled = false,
Iops = 0,
SizeGb = 0,
},
Tags =
{
{ "string", "string" },
},
Version = "string",
Zone = "string",
});
example, err := mysql.NewFlexibleServer(ctx, "flexibleServerResource", &mysql.FlexibleServerArgs{
ResourceGroupName: pulumi.String("string"),
PointInTimeRestoreTimeInUtc: pulumi.String("string"),
PrivateDnsZoneId: pulumi.String("string"),
CreateMode: pulumi.String("string"),
AdministratorLogin: pulumi.String("string"),
GeoRedundantBackupEnabled: pulumi.Bool(false),
HighAvailability: &mysql.FlexibleServerHighAvailabilityArgs{
Mode: pulumi.String("string"),
StandbyAvailabilityZone: pulumi.String("string"),
},
Location: pulumi.String("string"),
MaintenanceWindow: &mysql.FlexibleServerMaintenanceWindowArgs{
DayOfWeek: pulumi.Int(0),
StartHour: pulumi.Int(0),
StartMinute: pulumi.Int(0),
},
BackupRetentionDays: pulumi.Int(0),
Name: pulumi.String("string"),
DelegatedSubnetId: pulumi.String("string"),
ReplicationRole: pulumi.String("string"),
AdministratorPassword: pulumi.String("string"),
SkuName: pulumi.String("string"),
SourceServerId: pulumi.String("string"),
Storage: &mysql.FlexibleServerStorageArgs{
AutoGrowEnabled: pulumi.Bool(false),
Iops: pulumi.Int(0),
SizeGb: pulumi.Int(0),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Version: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var flexibleServerResource = new com.pulumi.azure.mysql.FlexibleServer("flexibleServerResource", com.pulumi.azure.mysql.FlexibleServerArgs.builder()
.resourceGroupName("string")
.pointInTimeRestoreTimeInUtc("string")
.privateDnsZoneId("string")
.createMode("string")
.administratorLogin("string")
.geoRedundantBackupEnabled(false)
.highAvailability(FlexibleServerHighAvailabilityArgs.builder()
.mode("string")
.standbyAvailabilityZone("string")
.build())
.location("string")
.maintenanceWindow(FlexibleServerMaintenanceWindowArgs.builder()
.dayOfWeek(0)
.startHour(0)
.startMinute(0)
.build())
.backupRetentionDays(0)
.name("string")
.delegatedSubnetId("string")
.replicationRole("string")
.administratorPassword("string")
.skuName("string")
.sourceServerId("string")
.storage(FlexibleServerStorageArgs.builder()
.autoGrowEnabled(false)
.iops(0)
.sizeGb(0)
.build())
.tags(Map.of("string", "string"))
.version("string")
.zone("string")
.build());
flexible_server_resource = azure.mysql.FlexibleServer("flexibleServerResource",
resource_group_name="string",
point_in_time_restore_time_in_utc="string",
private_dns_zone_id="string",
create_mode="string",
administrator_login="string",
geo_redundant_backup_enabled=False,
high_availability={
"mode": "string",
"standby_availability_zone": "string",
},
location="string",
maintenance_window={
"day_of_week": 0,
"start_hour": 0,
"start_minute": 0,
},
backup_retention_days=0,
name="string",
delegated_subnet_id="string",
replication_role="string",
administrator_password="string",
sku_name="string",
source_server_id="string",
storage={
"auto_grow_enabled": False,
"iops": 0,
"size_gb": 0,
},
tags={
"string": "string",
},
version="string",
zone="string")
const flexibleServerResource = new azure.mysql.FlexibleServer("flexibleServerResource", {
resourceGroupName: "string",
pointInTimeRestoreTimeInUtc: "string",
privateDnsZoneId: "string",
createMode: "string",
administratorLogin: "string",
geoRedundantBackupEnabled: false,
highAvailability: {
mode: "string",
standbyAvailabilityZone: "string",
},
location: "string",
maintenanceWindow: {
dayOfWeek: 0,
startHour: 0,
startMinute: 0,
},
backupRetentionDays: 0,
name: "string",
delegatedSubnetId: "string",
replicationRole: "string",
administratorPassword: "string",
skuName: "string",
sourceServerId: "string",
storage: {
autoGrowEnabled: false,
iops: 0,
sizeGb: 0,
},
tags: {
string: "string",
},
version: "string",
zone: "string",
});
type: azure:mysql:FlexibleServer
properties:
administratorLogin: string
administratorPassword: string
backupRetentionDays: 0
createMode: string
delegatedSubnetId: string
geoRedundantBackupEnabled: false
highAvailability:
mode: string
standbyAvailabilityZone: string
location: string
maintenanceWindow:
dayOfWeek: 0
startHour: 0
startMinute: 0
name: string
pointInTimeRestoreTimeInUtc: string
privateDnsZoneId: string
replicationRole: string
resourceGroupName: string
skuName: string
sourceServerId: string
storage:
autoGrowEnabled: false
iops: 0
sizeGb: 0
tags:
string: string
version: string
zone: string
FlexibleServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FlexibleServer resource accepts the following input properties:
- Resource
Group stringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Administrator
Login string - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - Administrator
Password string - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - Backup
Retention intDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - Create
Mode string - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Delegated
Subnet stringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Geo
Redundant boolBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - High
Availability FlexibleServer High Availability - A
high_availabilityblock as defined below. - Location string
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Maintenance
Window FlexibleServer Maintenance Window - A
maintenance_windowblock as defined below. - Name string
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Point
In stringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - Private
Dns stringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Replication
Role string - The replication role. Possible value is
None. - Sku
Name string - The SKU Name for the MySQL Flexible Server.
- Source
Server stringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Storage
Flexible
Server Storage - A
storageblock as defined below. - Dictionary<string, string>
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- Version string
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - Zone string
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- Resource
Group stringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Administrator
Login string - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - Administrator
Password string - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - Backup
Retention intDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - Create
Mode string - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Delegated
Subnet stringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Geo
Redundant boolBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - High
Availability FlexibleServer High Availability Args - A
high_availabilityblock as defined below. - Location string
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Maintenance
Window FlexibleServer Maintenance Window Args - A
maintenance_windowblock as defined below. - Name string
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Point
In stringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - Private
Dns stringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Replication
Role string - The replication role. Possible value is
None. - Sku
Name string - The SKU Name for the MySQL Flexible Server.
- Source
Server stringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Storage
Flexible
Server Storage Args - A
storageblock as defined below. - map[string]string
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- Version string
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - Zone string
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- resource
Group StringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- administrator
Login String - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator
Password String - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup
Retention IntegerDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create
Mode String - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated
Subnet StringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- geo
Redundant BooleanBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high
Availability FlexibleServer High Availability - A
high_availabilityblock as defined below. - location String
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance
Window FlexibleServer Maintenance Window - A
maintenance_windowblock as defined below. - name String
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point
In StringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private
Dns StringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- replication
Role String - The replication role. Possible value is
None. - sku
Name String - The SKU Name for the MySQL Flexible Server.
- source
Server StringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage
Flexible
Server Storage - A
storageblock as defined below. - Map<String,String>
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version String
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone String
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- resource
Group stringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- administrator
Login string - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator
Password string - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup
Retention numberDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create
Mode string - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated
Subnet stringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- geo
Redundant booleanBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high
Availability FlexibleServer High Availability - A
high_availabilityblock as defined below. - location string
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance
Window FlexibleServer Maintenance Window - A
maintenance_windowblock as defined below. - name string
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point
In stringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private
Dns stringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- replication
Role string - The replication role. Possible value is
None. - sku
Name string - The SKU Name for the MySQL Flexible Server.
- source
Server stringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage
Flexible
Server Storage - A
storageblock as defined below. - {[key: string]: string}
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version string
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone string
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- resource_
group_ strname - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- administrator_
login str - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator_
password str - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup_
retention_ intdays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create_
mode str - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated_
subnet_ strid - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- geo_
redundant_ boolbackup_ enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high_
availability FlexibleServer High Availability Args - A
high_availabilityblock as defined below. - location str
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance_
window FlexibleServer Maintenance Window Args - A
maintenance_windowblock as defined below. - name str
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point_
in_ strtime_ restore_ time_ in_ utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private_
dns_ strzone_ id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- replication_
role str - The replication role. Possible value is
None. - sku_
name str - The SKU Name for the MySQL Flexible Server.
- source_
server_ strid - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage
Flexible
Server Storage Args - A
storageblock as defined below. - Mapping[str, str]
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version str
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone str
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- resource
Group StringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- administrator
Login String - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator
Password String - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup
Retention NumberDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create
Mode String - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated
Subnet StringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- geo
Redundant BooleanBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high
Availability Property Map - A
high_availabilityblock as defined below. - location String
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance
Window Property Map - A
maintenance_windowblock as defined below. - name String
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point
In StringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private
Dns StringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- replication
Role String - The replication role. Possible value is
None. - sku
Name String - The SKU Name for the MySQL Flexible Server.
- source
Server StringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage Property Map
- A
storageblock as defined below. - Map<String>
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version String
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone String
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
Outputs
All input properties are implicitly available as output properties. Additionally, the FlexibleServer resource produces the following output properties:
- Fqdn string
- The fully qualified domain name of the MySQL Flexible Server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Network boolAccess Enabled - Is the public network access enabled?
- Replica
Capacity int - The maximum number of replicas that a primary MySQL Flexible Server can have.
- Fqdn string
- The fully qualified domain name of the MySQL Flexible Server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Network boolAccess Enabled - Is the public network access enabled?
- Replica
Capacity int - The maximum number of replicas that a primary MySQL Flexible Server can have.
- fqdn String
- The fully qualified domain name of the MySQL Flexible Server.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Network BooleanAccess Enabled - Is the public network access enabled?
- replica
Capacity Integer - The maximum number of replicas that a primary MySQL Flexible Server can have.
- fqdn string
- The fully qualified domain name of the MySQL Flexible Server.
- id string
- The provider-assigned unique ID for this managed resource.
- public
Network booleanAccess Enabled - Is the public network access enabled?
- replica
Capacity number - The maximum number of replicas that a primary MySQL Flexible Server can have.
- fqdn str
- The fully qualified domain name of the MySQL Flexible Server.
- id str
- The provider-assigned unique ID for this managed resource.
- public_
network_ boolaccess_ enabled - Is the public network access enabled?
- replica_
capacity int - The maximum number of replicas that a primary MySQL Flexible Server can have.
- fqdn String
- The fully qualified domain name of the MySQL Flexible Server.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Network BooleanAccess Enabled - Is the public network access enabled?
- replica
Capacity Number - The maximum number of replicas that a primary MySQL Flexible Server can have.
Look up Existing FlexibleServer Resource
Get an existing FlexibleServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FlexibleServerState, opts?: CustomResourceOptions): FlexibleServer@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
administrator_login: Optional[str] = None,
administrator_password: Optional[str] = None,
backup_retention_days: Optional[int] = None,
create_mode: Optional[str] = None,
delegated_subnet_id: Optional[str] = None,
fqdn: Optional[str] = None,
geo_redundant_backup_enabled: Optional[bool] = None,
high_availability: Optional[FlexibleServerHighAvailabilityArgs] = None,
location: Optional[str] = None,
maintenance_window: Optional[FlexibleServerMaintenanceWindowArgs] = None,
name: Optional[str] = None,
point_in_time_restore_time_in_utc: Optional[str] = None,
private_dns_zone_id: Optional[str] = None,
public_network_access_enabled: Optional[bool] = None,
replica_capacity: Optional[int] = None,
replication_role: Optional[str] = None,
resource_group_name: Optional[str] = None,
sku_name: Optional[str] = None,
source_server_id: Optional[str] = None,
storage: Optional[FlexibleServerStorageArgs] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[str] = None,
zone: Optional[str] = None) -> FlexibleServerfunc GetFlexibleServer(ctx *Context, name string, id IDInput, state *FlexibleServerState, opts ...ResourceOption) (*FlexibleServer, error)public static FlexibleServer Get(string name, Input<string> id, FlexibleServerState? state, CustomResourceOptions? opts = null)public static FlexibleServer get(String name, Output<String> id, FlexibleServerState state, CustomResourceOptions options)resources: _: type: azure:mysql:FlexibleServer get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Administrator
Login string - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - Administrator
Password string - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - Backup
Retention intDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - Create
Mode string - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Delegated
Subnet stringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Fqdn string
- The fully qualified domain name of the MySQL Flexible Server.
- Geo
Redundant boolBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - High
Availability FlexibleServer High Availability - A
high_availabilityblock as defined below. - Location string
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Maintenance
Window FlexibleServer Maintenance Window - A
maintenance_windowblock as defined below. - Name string
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Point
In stringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - Private
Dns stringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Public
Network boolAccess Enabled - Is the public network access enabled?
- Replica
Capacity int - The maximum number of replicas that a primary MySQL Flexible Server can have.
- Replication
Role string - The replication role. Possible value is
None. - Resource
Group stringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Sku
Name string - The SKU Name for the MySQL Flexible Server.
- Source
Server stringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Storage
Flexible
Server Storage - A
storageblock as defined below. - Dictionary<string, string>
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- Version string
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - Zone string
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- Administrator
Login string - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - Administrator
Password string - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - Backup
Retention intDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - Create
Mode string - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Delegated
Subnet stringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Fqdn string
- The fully qualified domain name of the MySQL Flexible Server.
- Geo
Redundant boolBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - High
Availability FlexibleServer High Availability Args - A
high_availabilityblock as defined below. - Location string
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Maintenance
Window FlexibleServer Maintenance Window Args - A
maintenance_windowblock as defined below. - Name string
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Point
In stringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - Private
Dns stringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- Public
Network boolAccess Enabled - Is the public network access enabled?
- Replica
Capacity int - The maximum number of replicas that a primary MySQL Flexible Server can have.
- Replication
Role string - The replication role. Possible value is
None. - Resource
Group stringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- Sku
Name string - The SKU Name for the MySQL Flexible Server.
- Source
Server stringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - Storage
Flexible
Server Storage Args - A
storageblock as defined below. - map[string]string
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- Version string
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - Zone string
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- administrator
Login String - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator
Password String - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup
Retention IntegerDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create
Mode String - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated
Subnet StringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- fqdn String
- The fully qualified domain name of the MySQL Flexible Server.
- geo
Redundant BooleanBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high
Availability FlexibleServer High Availability - A
high_availabilityblock as defined below. - location String
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance
Window FlexibleServer Maintenance Window - A
maintenance_windowblock as defined below. - name String
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point
In StringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private
Dns StringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- public
Network BooleanAccess Enabled - Is the public network access enabled?
- replica
Capacity Integer - The maximum number of replicas that a primary MySQL Flexible Server can have.
- replication
Role String - The replication role. Possible value is
None. - resource
Group StringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- sku
Name String - The SKU Name for the MySQL Flexible Server.
- source
Server StringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage
Flexible
Server Storage - A
storageblock as defined below. - Map<String,String>
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version String
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone String
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- administrator
Login string - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator
Password string - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup
Retention numberDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create
Mode string - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated
Subnet stringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- fqdn string
- The fully qualified domain name of the MySQL Flexible Server.
- geo
Redundant booleanBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high
Availability FlexibleServer High Availability - A
high_availabilityblock as defined below. - location string
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance
Window FlexibleServer Maintenance Window - A
maintenance_windowblock as defined below. - name string
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point
In stringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private
Dns stringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- public
Network booleanAccess Enabled - Is the public network access enabled?
- replica
Capacity number - The maximum number of replicas that a primary MySQL Flexible Server can have.
- replication
Role string - The replication role. Possible value is
None. - resource
Group stringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- sku
Name string - The SKU Name for the MySQL Flexible Server.
- source
Server stringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage
Flexible
Server Storage - A
storageblock as defined below. - {[key: string]: string}
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version string
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone string
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- administrator_
login str - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator_
password str - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup_
retention_ intdays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create_
mode str - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated_
subnet_ strid - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- fqdn str
- The fully qualified domain name of the MySQL Flexible Server.
- geo_
redundant_ boolbackup_ enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high_
availability FlexibleServer High Availability Args - A
high_availabilityblock as defined below. - location str
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance_
window FlexibleServer Maintenance Window Args - A
maintenance_windowblock as defined below. - name str
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point_
in_ strtime_ restore_ time_ in_ utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private_
dns_ strzone_ id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- public_
network_ boolaccess_ enabled - Is the public network access enabled?
- replica_
capacity int - The maximum number of replicas that a primary MySQL Flexible Server can have.
- replication_
role str - The replication role. Possible value is
None. - resource_
group_ strname - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- sku_
name str - The SKU Name for the MySQL Flexible Server.
- source_
server_ strid - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage
Flexible
Server Storage Args - A
storageblock as defined below. - Mapping[str, str]
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version str
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone str
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
- administrator
Login String - The Administrator Login for the MySQL Flexible Server. Required when
create_modeisDefault. Changing this forces a new MySQL Flexible Server to be created. - administrator
Password String - The Password associated with the
administrator_loginfor the MySQL Flexible Server. Required whencreate_modeisDefault. - backup
Retention NumberDays - The backup retention days for the MySQL Flexible Server. Possible values are between
7and35days. Defaults to7. - create
Mode String - The creation mode which can be used to restore or replicate existing servers. Possible values are
Default,PointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - delegated
Subnet StringId - The ID of the virtual network subnet to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- fqdn String
- The fully qualified domain name of the MySQL Flexible Server.
- geo
Redundant BooleanBackup Enabled - Should geo redundant backup enabled? Defaults to
false. Changing this forces a new MySQL Flexible Server to be created. - high
Availability Property Map - A
high_availabilityblock as defined below. - location String
- The Azure Region where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- maintenance
Window Property Map - A
maintenance_windowblock as defined below. - name String
- The name which should be used for this MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- point
In StringTime Restore Time In Utc - The point in time to restore from
creation_source_server_idwhencreate_modeisPointInTimeRestore. Changing this forces a new MySQL Flexible Server to be created. - private
Dns StringZone Id - The ID of the private dns zone to create the MySQL Flexible Server. Changing this forces a new MySQL Flexible Server to be created.
- public
Network BooleanAccess Enabled - Is the public network access enabled?
- replica
Capacity Number - The maximum number of replicas that a primary MySQL Flexible Server can have.
- replication
Role String - The replication role. Possible value is
None. - resource
Group StringName - The name of the Resource Group where the MySQL Flexible Server should exist. Changing this forces a new MySQL Flexible Server to be created.
- sku
Name String - The SKU Name for the MySQL Flexible Server.
- source
Server StringId - The resource ID of the source MySQL Flexible Server to be restored. Required when
create_modeisPointInTimeRestore,GeoRestore, andReplica. Changing this forces a new MySQL Flexible Server to be created. - storage Property Map
- A
storageblock as defined below. - Map<String>
- A mapping of tags which should be assigned to the MySQL Flexible Server.
- version String
- The version of the MySQL Flexible Server to use. Possible values are
5.7, and8.0.21. Changing this forces a new MySQL Flexible Server to be created. - zone String
- The availability zone information of the MySQL Flexible Server. Possible values are
1,2and3.
Supporting Types
FlexibleServerHighAvailability, FlexibleServerHighAvailabilityArgs
- Mode string
- The high availability mode for the MySQL Flexible Server. Possibles values are
SameZoneandZoneRedundant. - Standby
Availability stringZone - The availability zone of the standby Flexible Server. Possible values are
1,2and3.
- Mode string
- The high availability mode for the MySQL Flexible Server. Possibles values are
SameZoneandZoneRedundant. - Standby
Availability stringZone - The availability zone of the standby Flexible Server. Possible values are
1,2and3.
- mode String
- The high availability mode for the MySQL Flexible Server. Possibles values are
SameZoneandZoneRedundant. - standby
Availability StringZone - The availability zone of the standby Flexible Server. Possible values are
1,2and3.
- mode string
- The high availability mode for the MySQL Flexible Server. Possibles values are
SameZoneandZoneRedundant. - standby
Availability stringZone - The availability zone of the standby Flexible Server. Possible values are
1,2and3.
- mode str
- The high availability mode for the MySQL Flexible Server. Possibles values are
SameZoneandZoneRedundant. - standby_
availability_ strzone - The availability zone of the standby Flexible Server. Possible values are
1,2and3.
- mode String
- The high availability mode for the MySQL Flexible Server. Possibles values are
SameZoneandZoneRedundant. - standby
Availability StringZone - The availability zone of the standby Flexible Server. Possible values are
1,2and3.
FlexibleServerMaintenanceWindow, FlexibleServerMaintenanceWindowArgs
- Day
Of intWeek - The day of week for maintenance window. Defaults to
0. - Start
Hour int - The start hour for maintenance window. Defaults to
0. - Start
Minute int - The start minute for maintenance window. Defaults to
0.
- Day
Of intWeek - The day of week for maintenance window. Defaults to
0. - Start
Hour int - The start hour for maintenance window. Defaults to
0. - Start
Minute int - The start minute for maintenance window. Defaults to
0.
- day
Of IntegerWeek - The day of week for maintenance window. Defaults to
0. - start
Hour Integer - The start hour for maintenance window. Defaults to
0. - start
Minute Integer - The start minute for maintenance window. Defaults to
0.
- day
Of numberWeek - The day of week for maintenance window. Defaults to
0. - start
Hour number - The start hour for maintenance window. Defaults to
0. - start
Minute number - The start minute for maintenance window. Defaults to
0.
- day_
of_ intweek - The day of week for maintenance window. Defaults to
0. - start_
hour int - The start hour for maintenance window. Defaults to
0. - start_
minute int - The start minute for maintenance window. Defaults to
0.
- day
Of NumberWeek - The day of week for maintenance window. Defaults to
0. - start
Hour Number - The start hour for maintenance window. Defaults to
0. - start
Minute Number - The start minute for maintenance window. Defaults to
0.
FlexibleServerStorage, FlexibleServerStorageArgs
- Auto
Grow boolEnabled - Should Storage Auto Grow be enabled? Defaults to
true. - Iops int
- The storage IOPS for the MySQL Flexible Server. Possible values are between
360and20000. - Size
Gb int - The max storage allowed for the MySQL Flexible Server. Possible values are between
20and16384.
- Auto
Grow boolEnabled - Should Storage Auto Grow be enabled? Defaults to
true. - Iops int
- The storage IOPS for the MySQL Flexible Server. Possible values are between
360and20000. - Size
Gb int - The max storage allowed for the MySQL Flexible Server. Possible values are between
20and16384.
- auto
Grow BooleanEnabled - Should Storage Auto Grow be enabled? Defaults to
true. - iops Integer
- The storage IOPS for the MySQL Flexible Server. Possible values are between
360and20000. - size
Gb Integer - The max storage allowed for the MySQL Flexible Server. Possible values are between
20and16384.
- auto
Grow booleanEnabled - Should Storage Auto Grow be enabled? Defaults to
true. - iops number
- The storage IOPS for the MySQL Flexible Server. Possible values are between
360and20000. - size
Gb number - The max storage allowed for the MySQL Flexible Server. Possible values are between
20and16384.
- auto_
grow_ boolenabled - Should Storage Auto Grow be enabled? Defaults to
true. - iops int
- The storage IOPS for the MySQL Flexible Server. Possible values are between
360and20000. - size_
gb int - The max storage allowed for the MySQL Flexible Server. Possible values are between
20and16384.
- auto
Grow BooleanEnabled - Should Storage Auto Grow be enabled? Defaults to
true. - iops Number
- The storage IOPS for the MySQL Flexible Server. Possible values are between
360and20000. - size
Gb Number - The max storage allowed for the MySQL Flexible Server. Possible values are between
20and16384.
Import
MySQL Flexible Servers can be imported using the resource id, e.g.
$ pulumi import azure:mysql/flexibleServer:FlexibleServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DBforMySQL/flexibleServers/flexibleServer1
To learn more about importing existing cloud resources, see Importing resources.
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.
published on Monday, Mar 9, 2026 by Pulumi
