1. Packages
  2. Azure Classic
  3. API Docs
  4. appplatform
  5. SpringCloudAppMysqlAssociation

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.appplatform.SpringCloudAppMysqlAssociation

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Associates a Spring Cloud Application with a MySQL Database.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
        name: "example-springcloud",
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", {
        name: "example-springcloudapp",
        resourceGroupName: example.name,
        serviceName: exampleSpringCloudService.name,
    });
    const exampleFlexibleServer = new azure.mysql.FlexibleServer("example", {
        name: "example-fsserver",
        resourceGroupName: example.name,
        location: example.location,
        administratorLogin: "adminTerraform",
        administratorPassword: "QAZwsx123",
        skuName: "B_Standard_B1s",
        zone: "2",
    });
    const exampleFlexibleDatabase = new azure.mysql.FlexibleDatabase("example", {
        name: "exampledb",
        resourceGroupName: example.name,
        serverName: exampleFlexibleServer.name,
        charset: "utf8",
        collation: "utf8_unicode_ci",
    });
    const exampleSpringCloudAppMysqlAssociation = new azure.appplatform.SpringCloudAppMysqlAssociation("example", {
        name: "example-bind",
        springCloudAppId: exampleSpringCloudApp.id,
        mysqlServerId: exampleFlexibleServer.id,
        databaseName: exampleFlexibleDatabase.name,
        username: exampleFlexibleServer.administratorLogin,
        password: exampleFlexibleServer.administratorLoginPassword,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
        name="example-springcloud",
        resource_group_name=example.name,
        location=example.location)
    example_spring_cloud_app = azure.appplatform.SpringCloudApp("example",
        name="example-springcloudapp",
        resource_group_name=example.name,
        service_name=example_spring_cloud_service.name)
    example_flexible_server = azure.mysql.FlexibleServer("example",
        name="example-fsserver",
        resource_group_name=example.name,
        location=example.location,
        administrator_login="adminTerraform",
        administrator_password="QAZwsx123",
        sku_name="B_Standard_B1s",
        zone="2")
    example_flexible_database = azure.mysql.FlexibleDatabase("example",
        name="exampledb",
        resource_group_name=example.name,
        server_name=example_flexible_server.name,
        charset="utf8",
        collation="utf8_unicode_ci")
    example_spring_cloud_app_mysql_association = azure.appplatform.SpringCloudAppMysqlAssociation("example",
        name="example-bind",
        spring_cloud_app_id=example_spring_cloud_app.id,
        mysql_server_id=example_flexible_server.id,
        database_name=example_flexible_database.name,
        username=example_flexible_server.administrator_login,
        password=example_flexible_server.administrator_login_password)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mysql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
    			Name:              pulumi.String("example-springcloud"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSpringCloudApp, err := appplatform.NewSpringCloudApp(ctx, "example", &appplatform.SpringCloudAppArgs{
    			Name:              pulumi.String("example-springcloudapp"),
    			ResourceGroupName: example.Name,
    			ServiceName:       exampleSpringCloudService.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleFlexibleServer, err := mysql.NewFlexibleServer(ctx, "example", &mysql.FlexibleServerArgs{
    			Name:                  pulumi.String("example-fsserver"),
    			ResourceGroupName:     example.Name,
    			Location:              example.Location,
    			AdministratorLogin:    pulumi.String("adminTerraform"),
    			AdministratorPassword: pulumi.String("QAZwsx123"),
    			SkuName:               pulumi.String("B_Standard_B1s"),
    			Zone:                  pulumi.String("2"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleFlexibleDatabase, err := mysql.NewFlexibleDatabase(ctx, "example", &mysql.FlexibleDatabaseArgs{
    			Name:              pulumi.String("exampledb"),
    			ResourceGroupName: example.Name,
    			ServerName:        exampleFlexibleServer.Name,
    			Charset:           pulumi.String("utf8"),
    			Collation:         pulumi.String("utf8_unicode_ci"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appplatform.NewSpringCloudAppMysqlAssociation(ctx, "example", &appplatform.SpringCloudAppMysqlAssociationArgs{
    			Name:             pulumi.String("example-bind"),
    			SpringCloudAppId: exampleSpringCloudApp.ID(),
    			MysqlServerId:    exampleFlexibleServer.ID(),
    			DatabaseName:     exampleFlexibleDatabase.Name,
    			Username:         exampleFlexibleServer.AdministratorLogin,
    			Password:         exampleFlexibleServer.AdministratorLoginPassword,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
        {
            Name = "example-springcloud",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleSpringCloudApp = new Azure.AppPlatform.SpringCloudApp("example", new()
        {
            Name = "example-springcloudapp",
            ResourceGroupName = example.Name,
            ServiceName = exampleSpringCloudService.Name,
        });
    
        var exampleFlexibleServer = new Azure.MySql.FlexibleServer("example", new()
        {
            Name = "example-fsserver",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AdministratorLogin = "adminTerraform",
            AdministratorPassword = "QAZwsx123",
            SkuName = "B_Standard_B1s",
            Zone = "2",
        });
    
        var exampleFlexibleDatabase = new Azure.MySql.FlexibleDatabase("example", new()
        {
            Name = "exampledb",
            ResourceGroupName = example.Name,
            ServerName = exampleFlexibleServer.Name,
            Charset = "utf8",
            Collation = "utf8_unicode_ci",
        });
    
        var exampleSpringCloudAppMysqlAssociation = new Azure.AppPlatform.SpringCloudAppMysqlAssociation("example", new()
        {
            Name = "example-bind",
            SpringCloudAppId = exampleSpringCloudApp.Id,
            MysqlServerId = exampleFlexibleServer.Id,
            DatabaseName = exampleFlexibleDatabase.Name,
            Username = exampleFlexibleServer.AdministratorLogin,
            Password = exampleFlexibleServer.AdministratorLoginPassword,
        });
    
    });
    
    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.appplatform.SpringCloudService;
    import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
    import com.pulumi.azure.appplatform.SpringCloudApp;
    import com.pulumi.azure.appplatform.SpringCloudAppArgs;
    import com.pulumi.azure.mysql.FlexibleServer;
    import com.pulumi.azure.mysql.FlexibleServerArgs;
    import com.pulumi.azure.mysql.FlexibleDatabase;
    import com.pulumi.azure.mysql.FlexibleDatabaseArgs;
    import com.pulumi.azure.appplatform.SpringCloudAppMysqlAssociation;
    import com.pulumi.azure.appplatform.SpringCloudAppMysqlAssociationArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
                .name("example-springcloud")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleSpringCloudApp = new SpringCloudApp("exampleSpringCloudApp", SpringCloudAppArgs.builder()
                .name("example-springcloudapp")
                .resourceGroupName(example.name())
                .serviceName(exampleSpringCloudService.name())
                .build());
    
            var exampleFlexibleServer = new FlexibleServer("exampleFlexibleServer", FlexibleServerArgs.builder()
                .name("example-fsserver")
                .resourceGroupName(example.name())
                .location(example.location())
                .administratorLogin("adminTerraform")
                .administratorPassword("QAZwsx123")
                .skuName("B_Standard_B1s")
                .zone("2")
                .build());
    
            var exampleFlexibleDatabase = new FlexibleDatabase("exampleFlexibleDatabase", FlexibleDatabaseArgs.builder()
                .name("exampledb")
                .resourceGroupName(example.name())
                .serverName(exampleFlexibleServer.name())
                .charset("utf8")
                .collation("utf8_unicode_ci")
                .build());
    
            var exampleSpringCloudAppMysqlAssociation = new SpringCloudAppMysqlAssociation("exampleSpringCloudAppMysqlAssociation", SpringCloudAppMysqlAssociationArgs.builder()
                .name("example-bind")
                .springCloudAppId(exampleSpringCloudApp.id())
                .mysqlServerId(exampleFlexibleServer.id())
                .databaseName(exampleFlexibleDatabase.name())
                .username(exampleFlexibleServer.administratorLogin())
                .password(exampleFlexibleServer.administratorLoginPassword())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleSpringCloudService:
        type: azure:appplatform:SpringCloudService
        name: example
        properties:
          name: example-springcloud
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleSpringCloudApp:
        type: azure:appplatform:SpringCloudApp
        name: example
        properties:
          name: example-springcloudapp
          resourceGroupName: ${example.name}
          serviceName: ${exampleSpringCloudService.name}
      exampleFlexibleServer:
        type: azure:mysql:FlexibleServer
        name: example
        properties:
          name: example-fsserver
          resourceGroupName: ${example.name}
          location: ${example.location}
          administratorLogin: adminTerraform
          administratorPassword: QAZwsx123
          skuName: B_Standard_B1s
          zone: '2'
      exampleFlexibleDatabase:
        type: azure:mysql:FlexibleDatabase
        name: example
        properties:
          name: exampledb
          resourceGroupName: ${example.name}
          serverName: ${exampleFlexibleServer.name}
          charset: utf8
          collation: utf8_unicode_ci
      exampleSpringCloudAppMysqlAssociation:
        type: azure:appplatform:SpringCloudAppMysqlAssociation
        name: example
        properties:
          name: example-bind
          springCloudAppId: ${exampleSpringCloudApp.id}
          mysqlServerId: ${exampleFlexibleServer.id}
          databaseName: ${exampleFlexibleDatabase.name}
          username: ${exampleFlexibleServer.administratorLogin}
          password: ${exampleFlexibleServer.administratorLoginPassword}
    

    Create SpringCloudAppMysqlAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SpringCloudAppMysqlAssociation(name: string, args: SpringCloudAppMysqlAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def SpringCloudAppMysqlAssociation(resource_name: str,
                                       args: SpringCloudAppMysqlAssociationArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SpringCloudAppMysqlAssociation(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       database_name: Optional[str] = None,
                                       mysql_server_id: Optional[str] = None,
                                       password: Optional[str] = None,
                                       spring_cloud_app_id: Optional[str] = None,
                                       username: Optional[str] = None,
                                       name: Optional[str] = None)
    func NewSpringCloudAppMysqlAssociation(ctx *Context, name string, args SpringCloudAppMysqlAssociationArgs, opts ...ResourceOption) (*SpringCloudAppMysqlAssociation, error)
    public SpringCloudAppMysqlAssociation(string name, SpringCloudAppMysqlAssociationArgs args, CustomResourceOptions? opts = null)
    public SpringCloudAppMysqlAssociation(String name, SpringCloudAppMysqlAssociationArgs args)
    public SpringCloudAppMysqlAssociation(String name, SpringCloudAppMysqlAssociationArgs args, CustomResourceOptions options)
    
    type: azure:appplatform:SpringCloudAppMysqlAssociation
    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 SpringCloudAppMysqlAssociationArgs
    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 SpringCloudAppMysqlAssociationArgs
    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 SpringCloudAppMysqlAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SpringCloudAppMysqlAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SpringCloudAppMysqlAssociationArgs
    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 springCloudAppMysqlAssociationResource = new Azure.AppPlatform.SpringCloudAppMysqlAssociation("springCloudAppMysqlAssociationResource", new()
    {
        DatabaseName = "string",
        MysqlServerId = "string",
        Password = "string",
        SpringCloudAppId = "string",
        Username = "string",
        Name = "string",
    });
    
    example, err := appplatform.NewSpringCloudAppMysqlAssociation(ctx, "springCloudAppMysqlAssociationResource", &appplatform.SpringCloudAppMysqlAssociationArgs{
    	DatabaseName:     pulumi.String("string"),
    	MysqlServerId:    pulumi.String("string"),
    	Password:         pulumi.String("string"),
    	SpringCloudAppId: pulumi.String("string"),
    	Username:         pulumi.String("string"),
    	Name:             pulumi.String("string"),
    })
    
    var springCloudAppMysqlAssociationResource = new SpringCloudAppMysqlAssociation("springCloudAppMysqlAssociationResource", SpringCloudAppMysqlAssociationArgs.builder()
        .databaseName("string")
        .mysqlServerId("string")
        .password("string")
        .springCloudAppId("string")
        .username("string")
        .name("string")
        .build());
    
    spring_cloud_app_mysql_association_resource = azure.appplatform.SpringCloudAppMysqlAssociation("springCloudAppMysqlAssociationResource",
        database_name="string",
        mysql_server_id="string",
        password="string",
        spring_cloud_app_id="string",
        username="string",
        name="string")
    
    const springCloudAppMysqlAssociationResource = new azure.appplatform.SpringCloudAppMysqlAssociation("springCloudAppMysqlAssociationResource", {
        databaseName: "string",
        mysqlServerId: "string",
        password: "string",
        springCloudAppId: "string",
        username: "string",
        name: "string",
    });
    
    type: azure:appplatform:SpringCloudAppMysqlAssociation
    properties:
        databaseName: string
        mysqlServerId: string
        name: string
        password: string
        springCloudAppId: string
        username: string
    

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

    DatabaseName string
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    MysqlServerId string
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    Password string
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    SpringCloudAppId string
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    Username string
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    Name string
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    DatabaseName string
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    MysqlServerId string
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    Password string
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    SpringCloudAppId string
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    Username string
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    Name string
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    databaseName String
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysqlServerId String
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    password String
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    springCloudAppId String
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username String
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    name String
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    databaseName string
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysqlServerId string
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    password string
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    springCloudAppId string
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username string
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    name string
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    database_name str
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysql_server_id str
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    password str
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    spring_cloud_app_id str
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username str
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    name str
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    databaseName String
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysqlServerId String
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    password String
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    springCloudAppId String
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username String
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    name String
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SpringCloudAppMysqlAssociation 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 Existing SpringCloudAppMysqlAssociation Resource

    Get an existing SpringCloudAppMysqlAssociation 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?: SpringCloudAppMysqlAssociationState, opts?: CustomResourceOptions): SpringCloudAppMysqlAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            database_name: Optional[str] = None,
            mysql_server_id: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            spring_cloud_app_id: Optional[str] = None,
            username: Optional[str] = None) -> SpringCloudAppMysqlAssociation
    func GetSpringCloudAppMysqlAssociation(ctx *Context, name string, id IDInput, state *SpringCloudAppMysqlAssociationState, opts ...ResourceOption) (*SpringCloudAppMysqlAssociation, error)
    public static SpringCloudAppMysqlAssociation Get(string name, Input<string> id, SpringCloudAppMysqlAssociationState? state, CustomResourceOptions? opts = null)
    public static SpringCloudAppMysqlAssociation get(String name, Output<String> id, SpringCloudAppMysqlAssociationState 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:
    DatabaseName string
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    MysqlServerId string
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    Password string
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    SpringCloudAppId string
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    Username string
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    DatabaseName string
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    MysqlServerId string
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    Password string
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    SpringCloudAppId string
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    Username string
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    databaseName String
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysqlServerId String
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    password String
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    springCloudAppId String
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username String
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    databaseName string
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysqlServerId string
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    name string
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    password string
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    springCloudAppId string
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username string
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    database_name str
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysql_server_id str
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    name str
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    password str
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    spring_cloud_app_id str
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username str
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
    databaseName String
    Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
    mysqlServerId String
    Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
    password String
    Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
    springCloudAppId String
    Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
    username String
    Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.

    Import

    Spring Cloud Application MySQL Association can be imported using the resource id, e.g.

    $ pulumi import azure:appplatform/springCloudAppMysqlAssociation:SpringCloudAppMysqlAssociation example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.AppPlatform/spring/service1/apps/app1/bindings/bind1
    

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi