Azure Classic

v5.19.0 published on Friday, Sep 16, 2022 by Pulumi

FlexibleServerConfiguration

Sets a MySQL Flexible Server Configuration value on a MySQL Flexible Server.

Disclaimers

Note: Since this resource is provisioned by default, the Azure Provider will not check for the presence of an existing resource prior to attempting to create it.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleFlexibleServer = new Azure.MySql.FlexibleServer("exampleFlexibleServer", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AdministratorLogin = "adminTerraform",
        AdministratorPassword = "H@Sh1CoR3!",
        SkuName = "GP_Standard_D2ds_v4",
    });

    var exampleFlexibleServerConfiguration = new Azure.MySql.FlexibleServerConfiguration("exampleFlexibleServerConfiguration", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        ServerName = exampleFlexibleServer.Name,
        Value = "600",
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/mysql"
	"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
		}
		exampleFlexibleServer, err := mysql.NewFlexibleServer(ctx, "exampleFlexibleServer", &mysql.FlexibleServerArgs{
			ResourceGroupName:     exampleResourceGroup.Name,
			Location:              exampleResourceGroup.Location,
			AdministratorLogin:    pulumi.String("adminTerraform"),
			AdministratorPassword: pulumi.String("H@Sh1CoR3!"),
			SkuName:               pulumi.String("GP_Standard_D2ds_v4"),
		})
		if err != nil {
			return err
		}
		_, err = mysql.NewFlexibleServerConfiguration(ctx, "exampleFlexibleServerConfiguration", &mysql.FlexibleServerConfigurationArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			ServerName:        exampleFlexibleServer.Name,
			Value:             pulumi.String("600"),
		})
		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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mysql.FlexibleServer;
import com.pulumi.azure.mysql.FlexibleServerArgs;
import com.pulumi.azure.mysql.FlexibleServerConfiguration;
import com.pulumi.azure.mysql.FlexibleServerConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleFlexibleServer = new FlexibleServer("exampleFlexibleServer", FlexibleServerArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .administratorLogin("adminTerraform")
            .administratorPassword("H@Sh1CoR3!")
            .skuName("GP_Standard_D2ds_v4")
            .build());

        var exampleFlexibleServerConfiguration = new FlexibleServerConfiguration("exampleFlexibleServerConfiguration", FlexibleServerConfigurationArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .serverName(exampleFlexibleServer.name())
            .value("600")
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_flexible_server = azure.mysql.FlexibleServer("exampleFlexibleServer",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    administrator_login="adminTerraform",
    administrator_password="H@Sh1CoR3!",
    sku_name="GP_Standard_D2ds_v4")
example_flexible_server_configuration = azure.mysql.FlexibleServerConfiguration("exampleFlexibleServerConfiguration",
    resource_group_name=example_resource_group.name,
    server_name=example_flexible_server.name,
    value="600")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleFlexibleServer = new azure.mysql.FlexibleServer("exampleFlexibleServer", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    administratorLogin: "adminTerraform",
    administratorPassword: "H@Sh1CoR3!",
    skuName: "GP_Standard_D2ds_v4",
});
const exampleFlexibleServerConfiguration = new azure.mysql.FlexibleServerConfiguration("exampleFlexibleServerConfiguration", {
    resourceGroupName: exampleResourceGroup.name,
    serverName: exampleFlexibleServer.name,
    value: "600",
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleFlexibleServer:
    type: azure:mysql:FlexibleServer
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      administratorLogin: adminTerraform
      administratorPassword: H@Sh1CoR3!
      skuName: GP_Standard_D2ds_v4
  exampleFlexibleServerConfiguration:
    type: azure:mysql:FlexibleServerConfiguration
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      serverName: ${exampleFlexibleServer.name}
      value: 600

Create a FlexibleServerConfiguration Resource

new FlexibleServerConfiguration(name: string, args: FlexibleServerConfigurationArgs, opts?: CustomResourceOptions);
@overload
def FlexibleServerConfiguration(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                name: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                server_name: Optional[str] = None,
                                value: Optional[str] = None)
@overload
def FlexibleServerConfiguration(resource_name: str,
                                args: FlexibleServerConfigurationArgs,
                                opts: Optional[ResourceOptions] = None)
func NewFlexibleServerConfiguration(ctx *Context, name string, args FlexibleServerConfigurationArgs, opts ...ResourceOption) (*FlexibleServerConfiguration, error)
public FlexibleServerConfiguration(string name, FlexibleServerConfigurationArgs args, CustomResourceOptions? opts = null)
public FlexibleServerConfiguration(String name, FlexibleServerConfigurationArgs args)
public FlexibleServerConfiguration(String name, FlexibleServerConfigurationArgs args, CustomResourceOptions options)
type: azure:mysql:FlexibleServerConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FlexibleServerConfigurationArgs
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 FlexibleServerConfigurationArgs
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 FlexibleServerConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FlexibleServerConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FlexibleServerConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FlexibleServerConfiguration 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 FlexibleServerConfiguration resource accepts the following input properties:

ResourceGroupName string

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

ServerName string

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

Value string

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

Name string

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

ServerName string

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

Value string

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

Name string

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

serverName String

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value String

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name String

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

serverName string

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value string

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name string

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

server_name str

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value str

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name str

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

serverName String

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value String

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name String

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the FlexibleServerConfiguration resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing FlexibleServerConfiguration Resource

Get an existing FlexibleServerConfiguration 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?: FlexibleServerConfigurationState, opts?: CustomResourceOptions): FlexibleServerConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        server_name: Optional[str] = None,
        value: Optional[str] = None) -> FlexibleServerConfiguration
func GetFlexibleServerConfiguration(ctx *Context, name string, id IDInput, state *FlexibleServerConfigurationState, opts ...ResourceOption) (*FlexibleServerConfiguration, error)
public static FlexibleServerConfiguration Get(string name, Input<string> id, FlexibleServerConfigurationState? state, CustomResourceOptions? opts = null)
public static FlexibleServerConfiguration get(String name, Output<String> id, FlexibleServerConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
Name string

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

ServerName string

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

Value string

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

Name string

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

ServerName string

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

Value string

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name String

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

serverName String

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value String

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name string

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

serverName string

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value string

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name str

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

server_name str

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value str

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

name String

Specifies the name of the MySQL Flexible Server Configuration, which needs to be a valid MySQL configuration name. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the MySQL Flexible Server exists. Changing this forces a new resource to be created.

serverName String

Specifies the name of the MySQL Flexible Server. Changing this forces a new resource to be created.

value String

Specifies the value of the MySQL Flexible Server Configuration. See the MySQL documentation for valid values.

Import

MySQL Flexible Server Configurations can be imported using the resource id, e.g.

 $ pulumi import azure:mysql/flexibleServerConfiguration:FlexibleServerConfiguration interactive_timeout /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DBforMySQL/flexibleServers/flexibleServer1/configurations/interactive_timeout

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.