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

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

azure.appplatform.SpringCloudStorage

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

    Manages a Spring Cloud Storage.

    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 exampleAccount = new azure.storage.Account("example", {
        name: "example",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
    });
    const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
        name: "example",
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleSpringCloudStorage = new azure.appplatform.SpringCloudStorage("example", {
        name: "example",
        springCloudServiceId: exampleSpringCloudService.id,
        storageAccountName: exampleAccount.name,
        storageAccountKey: exampleAccount.primaryAccessKey,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_account = azure.storage.Account("example",
        name="example",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="GRS")
    example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
        name="example",
        location=example.location,
        resource_group_name=example.name)
    example_spring_cloud_storage = azure.appplatform.SpringCloudStorage("example",
        name="example",
        spring_cloud_service_id=example_spring_cloud_service.id,
        storage_account_name=example_account.name,
        storage_account_key=example_account.primary_access_key)
    
    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/storage"
    	"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
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("example"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
    			Name:              pulumi.String("example"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appplatform.NewSpringCloudStorage(ctx, "example", &appplatform.SpringCloudStorageArgs{
    			Name:                 pulumi.String("example"),
    			SpringCloudServiceId: exampleSpringCloudService.ID(),
    			StorageAccountName:   exampleAccount.Name,
    			StorageAccountKey:    exampleAccount.PrimaryAccessKey,
    		})
    		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 exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "example",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
        });
    
        var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
        {
            Name = "example",
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleSpringCloudStorage = new Azure.AppPlatform.SpringCloudStorage("example", new()
        {
            Name = "example",
            SpringCloudServiceId = exampleSpringCloudService.Id,
            StorageAccountName = exampleAccount.Name,
            StorageAccountKey = exampleAccount.PrimaryAccessKey,
        });
    
    });
    
    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.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.appplatform.SpringCloudService;
    import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
    import com.pulumi.azure.appplatform.SpringCloudStorage;
    import com.pulumi.azure.appplatform.SpringCloudStorageArgs;
    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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("example")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("GRS")
                .build());
    
            var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
                .name("example")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleSpringCloudStorage = new SpringCloudStorage("exampleSpringCloudStorage", SpringCloudStorageArgs.builder()
                .name("example")
                .springCloudServiceId(exampleSpringCloudService.id())
                .storageAccountName(exampleAccount.name())
                .storageAccountKey(exampleAccount.primaryAccessKey())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: example
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: GRS
      exampleSpringCloudService:
        type: azure:appplatform:SpringCloudService
        name: example
        properties:
          name: example
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleSpringCloudStorage:
        type: azure:appplatform:SpringCloudStorage
        name: example
        properties:
          name: example
          springCloudServiceId: ${exampleSpringCloudService.id}
          storageAccountName: ${exampleAccount.name}
          storageAccountKey: ${exampleAccount.primaryAccessKey}
    

    Create SpringCloudStorage Resource

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

    Constructor syntax

    new SpringCloudStorage(name: string, args: SpringCloudStorageArgs, opts?: CustomResourceOptions);
    @overload
    def SpringCloudStorage(resource_name: str,
                           args: SpringCloudStorageArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SpringCloudStorage(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           spring_cloud_service_id: Optional[str] = None,
                           storage_account_key: Optional[str] = None,
                           storage_account_name: Optional[str] = None,
                           name: Optional[str] = None)
    func NewSpringCloudStorage(ctx *Context, name string, args SpringCloudStorageArgs, opts ...ResourceOption) (*SpringCloudStorage, error)
    public SpringCloudStorage(string name, SpringCloudStorageArgs args, CustomResourceOptions? opts = null)
    public SpringCloudStorage(String name, SpringCloudStorageArgs args)
    public SpringCloudStorage(String name, SpringCloudStorageArgs args, CustomResourceOptions options)
    
    type: azure:appplatform:SpringCloudStorage
    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 SpringCloudStorageArgs
    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 SpringCloudStorageArgs
    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 SpringCloudStorageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SpringCloudStorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SpringCloudStorageArgs
    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 springCloudStorageResource = new Azure.AppPlatform.SpringCloudStorage("springCloudStorageResource", new()
    {
        SpringCloudServiceId = "string",
        StorageAccountKey = "string",
        StorageAccountName = "string",
        Name = "string",
    });
    
    example, err := appplatform.NewSpringCloudStorage(ctx, "springCloudStorageResource", &appplatform.SpringCloudStorageArgs{
    	SpringCloudServiceId: pulumi.String("string"),
    	StorageAccountKey:    pulumi.String("string"),
    	StorageAccountName:   pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    })
    
    var springCloudStorageResource = new SpringCloudStorage("springCloudStorageResource", SpringCloudStorageArgs.builder()
        .springCloudServiceId("string")
        .storageAccountKey("string")
        .storageAccountName("string")
        .name("string")
        .build());
    
    spring_cloud_storage_resource = azure.appplatform.SpringCloudStorage("springCloudStorageResource",
        spring_cloud_service_id="string",
        storage_account_key="string",
        storage_account_name="string",
        name="string")
    
    const springCloudStorageResource = new azure.appplatform.SpringCloudStorage("springCloudStorageResource", {
        springCloudServiceId: "string",
        storageAccountKey: "string",
        storageAccountName: "string",
        name: "string",
    });
    
    type: azure:appplatform:SpringCloudStorage
    properties:
        name: string
        springCloudServiceId: string
        storageAccountKey: string
        storageAccountName: string
    

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

    SpringCloudServiceId string
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    StorageAccountKey string
    The access key of the Azure Storage Account.
    StorageAccountName string
    The account name of the Azure Storage Account.
    Name string
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    SpringCloudServiceId string
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    StorageAccountKey string
    The access key of the Azure Storage Account.
    StorageAccountName string
    The account name of the Azure Storage Account.
    Name string
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    springCloudServiceId String
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storageAccountKey String
    The access key of the Azure Storage Account.
    storageAccountName String
    The account name of the Azure Storage Account.
    name String
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    springCloudServiceId string
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storageAccountKey string
    The access key of the Azure Storage Account.
    storageAccountName string
    The account name of the Azure Storage Account.
    name string
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    spring_cloud_service_id str
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storage_account_key str
    The access key of the Azure Storage Account.
    storage_account_name str
    The account name of the Azure Storage Account.
    name str
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    springCloudServiceId String
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storageAccountKey String
    The access key of the Azure Storage Account.
    storageAccountName String
    The account name of the Azure Storage Account.
    name String
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.

    Outputs

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

    Get an existing SpringCloudStorage 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?: SpringCloudStorageState, opts?: CustomResourceOptions): SpringCloudStorage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            spring_cloud_service_id: Optional[str] = None,
            storage_account_key: Optional[str] = None,
            storage_account_name: Optional[str] = None) -> SpringCloudStorage
    func GetSpringCloudStorage(ctx *Context, name string, id IDInput, state *SpringCloudStorageState, opts ...ResourceOption) (*SpringCloudStorage, error)
    public static SpringCloudStorage Get(string name, Input<string> id, SpringCloudStorageState? state, CustomResourceOptions? opts = null)
    public static SpringCloudStorage get(String name, Output<String> id, SpringCloudStorageState 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
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    SpringCloudServiceId string
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    StorageAccountKey string
    The access key of the Azure Storage Account.
    StorageAccountName string
    The account name of the Azure Storage Account.
    Name string
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    SpringCloudServiceId string
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    StorageAccountKey string
    The access key of the Azure Storage Account.
    StorageAccountName string
    The account name of the Azure Storage Account.
    name String
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    springCloudServiceId String
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storageAccountKey String
    The access key of the Azure Storage Account.
    storageAccountName String
    The account name of the Azure Storage Account.
    name string
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    springCloudServiceId string
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storageAccountKey string
    The access key of the Azure Storage Account.
    storageAccountName string
    The account name of the Azure Storage Account.
    name str
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    spring_cloud_service_id str
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storage_account_key str
    The access key of the Azure Storage Account.
    storage_account_name str
    The account name of the Azure Storage Account.
    name String
    The name which should be used for this Spring Cloud Storage. Changing this forces a new Spring Cloud Storage to be created.
    springCloudServiceId String
    The ID of the Spring Cloud Service where the Spring Cloud Storage should exist. Changing this forces a new Spring Cloud Storage to be created.
    storageAccountKey String
    The access key of the Azure Storage Account.
    storageAccountName String
    The account name of the Azure Storage Account.

    Import

    Spring Cloud Storages can be imported using the resource id, e.g.

    $ pulumi import azure:appplatform/springCloudStorage:SpringCloudStorage example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/storages/storage1
    

    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.13.0 published on Monday, Dec 9, 2024 by Pulumi