We recommend using Azure Native.
azure.appplatform.SpringCloudStorage
Explore with Pulumi AI
Manages a Spring Cloud Storage.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AccountTier = "Standard",
AccountReplicationType = "GRS",
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("exampleSpringCloudService", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleSpringCloudStorage = new Azure.AppPlatform.SpringCloudStorage("exampleSpringCloudStorage", new()
{
SpringCloudServiceId = exampleSpringCloudService.Id,
StorageAccountName = exampleAccount.Name,
StorageAccountKey = exampleAccount.PrimaryAccessKey,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appplatform"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
"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
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("GRS"),
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "exampleSpringCloudService", &appplatform.SpringCloudServiceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudStorage(ctx, "exampleSpringCloudStorage", &appplatform.SpringCloudStorageArgs{
SpringCloudServiceId: exampleSpringCloudService.ID(),
StorageAccountName: exampleAccount.Name,
StorageAccountKey: exampleAccount.PrimaryAccessKey,
})
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.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSpringCloudStorage = new SpringCloudStorage("exampleSpringCloudStorage", SpringCloudStorageArgs.builder()
.springCloudServiceId(exampleSpringCloudService.id())
.storageAccountName(exampleAccount.name())
.storageAccountKey(exampleAccount.primaryAccessKey())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="GRS")
example_spring_cloud_service = azure.appplatform.SpringCloudService("exampleSpringCloudService",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_spring_cloud_storage = azure.appplatform.SpringCloudStorage("exampleSpringCloudStorage",
spring_cloud_service_id=example_spring_cloud_service.id,
storage_account_name=example_account.name,
storage_account_key=example_account.primary_access_key)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "GRS",
});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("exampleSpringCloudService", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const exampleSpringCloudStorage = new azure.appplatform.SpringCloudStorage("exampleSpringCloudStorage", {
springCloudServiceId: exampleSpringCloudService.id,
storageAccountName: exampleAccount.name,
storageAccountKey: exampleAccount.primaryAccessKey,
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleAccount:
type: azure:storage:Account
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
accountTier: Standard
accountReplicationType: GRS
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
exampleSpringCloudStorage:
type: azure:appplatform:SpringCloudStorage
properties:
springCloudServiceId: ${exampleSpringCloudService.id}
storageAccountName: ${exampleAccount.name}
storageAccountKey: ${exampleAccount.primaryAccessKey}
Create SpringCloudStorage Resource
new SpringCloudStorage(name: string, args: SpringCloudStorageArgs, opts?: CustomResourceOptions);
@overload
def SpringCloudStorage(resource_name: 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)
@overload
def SpringCloudStorage(resource_name: str,
args: SpringCloudStorageArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The SpringCloudStorage resource accepts the following input properties:
- Spring
Cloud stringService Id 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 stringKey The access key of the Azure Storage Account.
- Storage
Account stringName 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 stringService Id 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 stringKey The access key of the Azure Storage Account.
- Storage
Account stringName 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 StringService Id 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 StringKey The access key of the Azure Storage Account.
- storage
Account StringName 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 stringService Id 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 stringKey The access key of the Azure Storage Account.
- storage
Account stringName 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_ strservice_ id 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_ strkey The access key of the Azure Storage Account.
- storage_
account_ strname 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 StringService Id 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 StringKey The access key of the Azure Storage Account.
- storage
Account StringName 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.
- 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 stringService Id 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 stringKey The access key of the Azure Storage Account.
- Storage
Account stringName 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 stringService Id 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 stringKey The access key of the Azure Storage Account.
- Storage
Account stringName 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 StringService Id 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 StringKey The access key of the Azure Storage Account.
- storage
Account StringName 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 stringService Id 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 stringKey The access key of the Azure Storage Account.
- storage
Account stringName 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_ strservice_ id 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_ strkey The access key of the Azure Storage Account.
- storage_
account_ strname 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 StringService Id 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 StringKey The access key of the Azure Storage Account.
- storage
Account StringName 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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.