1. Packages
  2. Azure Classic
  3. API Docs
  4. containerapp
  5. EnvironmentStorage

We recommend using Azure Native.

Azure Classic v5.77.1 published on Monday, May 13, 2024 by Pulumi

azure.containerapp.EnvironmentStorage

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.77.1 published on Monday, May 13, 2024 by Pulumi

    Manages a Container App Environment 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 exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
        name: "acctest-01",
        location: example.location,
        resourceGroupName: example.name,
        sku: "PerGB2018",
        retentionInDays: 30,
    });
    const exampleEnvironment = new azure.containerapp.Environment("example", {
        name: "myEnvironment",
        location: example.location,
        resourceGroupName: example.name,
        logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "azureteststorage",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "LRS",
    });
    const exampleShare = new azure.storage.Share("example", {
        name: "sharename",
        storageAccountName: exampleAccount.name,
        quota: 5,
    });
    const exampleEnvironmentStorage = new azure.containerapp.EnvironmentStorage("example", {
        name: "mycontainerappstorage",
        containerAppEnvironmentId: exampleEnvironment.id,
        accountName: exampleAccount.name,
        shareName: exampleShare.name,
        accessKey: exampleAccount.primaryAccessKey,
        accessMode: "ReadOnly",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
        name="acctest-01",
        location=example.location,
        resource_group_name=example.name,
        sku="PerGB2018",
        retention_in_days=30)
    example_environment = azure.containerapp.Environment("example",
        name="myEnvironment",
        location=example.location,
        resource_group_name=example.name,
        log_analytics_workspace_id=example_analytics_workspace.id)
    example_account = azure.storage.Account("example",
        name="azureteststorage",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="LRS")
    example_share = azure.storage.Share("example",
        name="sharename",
        storage_account_name=example_account.name,
        quota=5)
    example_environment_storage = azure.containerapp.EnvironmentStorage("example",
        name="mycontainerappstorage",
        container_app_environment_id=example_environment.id,
        account_name=example_account.name,
        share_name=example_share.name,
        access_key=example_account.primary_access_key,
        access_mode="ReadOnly")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerapp"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
    	"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 {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
    			Name:              pulumi.String("acctest-01"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			Sku:               pulumi.String("PerGB2018"),
    			RetentionInDays:   pulumi.Int(30),
    		})
    		if err != nil {
    			return err
    		}
    		exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{
    			Name:                    pulumi.String("myEnvironment"),
    			Location:                example.Location,
    			ResourceGroupName:       example.Name,
    			LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("azureteststorage"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("LRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleShare, err := storage.NewShare(ctx, "example", &storage.ShareArgs{
    			Name:               pulumi.String("sharename"),
    			StorageAccountName: exampleAccount.Name,
    			Quota:              pulumi.Int(5),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = containerapp.NewEnvironmentStorage(ctx, "example", &containerapp.EnvironmentStorageArgs{
    			Name:                      pulumi.String("mycontainerappstorage"),
    			ContainerAppEnvironmentId: exampleEnvironment.ID(),
    			AccountName:               exampleAccount.Name,
    			ShareName:                 exampleShare.Name,
    			AccessKey:                 exampleAccount.PrimaryAccessKey,
    			AccessMode:                pulumi.String("ReadOnly"),
    		})
    		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 exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
        {
            Name = "acctest-01",
            Location = example.Location,
            ResourceGroupName = example.Name,
            Sku = "PerGB2018",
            RetentionInDays = 30,
        });
    
        var exampleEnvironment = new Azure.ContainerApp.Environment("example", new()
        {
            Name = "myEnvironment",
            Location = example.Location,
            ResourceGroupName = example.Name,
            LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "azureteststorage",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
        });
    
        var exampleShare = new Azure.Storage.Share("example", new()
        {
            Name = "sharename",
            StorageAccountName = exampleAccount.Name,
            Quota = 5,
        });
    
        var exampleEnvironmentStorage = new Azure.ContainerApp.EnvironmentStorage("example", new()
        {
            Name = "mycontainerappstorage",
            ContainerAppEnvironmentId = exampleEnvironment.Id,
            AccountName = exampleAccount.Name,
            ShareName = exampleShare.Name,
            AccessKey = exampleAccount.PrimaryAccessKey,
            AccessMode = "ReadOnly",
        });
    
    });
    
    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.operationalinsights.AnalyticsWorkspace;
    import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
    import com.pulumi.azure.containerapp.Environment;
    import com.pulumi.azure.containerapp.EnvironmentArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.storage.Share;
    import com.pulumi.azure.storage.ShareArgs;
    import com.pulumi.azure.containerapp.EnvironmentStorage;
    import com.pulumi.azure.containerapp.EnvironmentStorageArgs;
    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 exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()        
                .name("acctest-01")
                .location(example.location())
                .resourceGroupName(example.name())
                .sku("PerGB2018")
                .retentionInDays(30)
                .build());
    
            var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()        
                .name("myEnvironment")
                .location(example.location())
                .resourceGroupName(example.name())
                .logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
                .name("azureteststorage")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .build());
    
            var exampleShare = new Share("exampleShare", ShareArgs.builder()        
                .name("sharename")
                .storageAccountName(exampleAccount.name())
                .quota(5)
                .build());
    
            var exampleEnvironmentStorage = new EnvironmentStorage("exampleEnvironmentStorage", EnvironmentStorageArgs.builder()        
                .name("mycontainerappstorage")
                .containerAppEnvironmentId(exampleEnvironment.id())
                .accountName(exampleAccount.name())
                .shareName(exampleShare.name())
                .accessKey(exampleAccount.primaryAccessKey())
                .accessMode("ReadOnly")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAnalyticsWorkspace:
        type: azure:operationalinsights:AnalyticsWorkspace
        name: example
        properties:
          name: acctest-01
          location: ${example.location}
          resourceGroupName: ${example.name}
          sku: PerGB2018
          retentionInDays: 30
      exampleEnvironment:
        type: azure:containerapp:Environment
        name: example
        properties:
          name: myEnvironment
          location: ${example.location}
          resourceGroupName: ${example.name}
          logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: azureteststorage
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: LRS
      exampleShare:
        type: azure:storage:Share
        name: example
        properties:
          name: sharename
          storageAccountName: ${exampleAccount.name}
          quota: 5
      exampleEnvironmentStorage:
        type: azure:containerapp:EnvironmentStorage
        name: example
        properties:
          name: mycontainerappstorage
          containerAppEnvironmentId: ${exampleEnvironment.id}
          accountName: ${exampleAccount.name}
          shareName: ${exampleShare.name}
          accessKey: ${exampleAccount.primaryAccessKey}
          accessMode: ReadOnly
    

    Create EnvironmentStorage Resource

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

    Constructor syntax

    new EnvironmentStorage(name: string, args: EnvironmentStorageArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentStorage(resource_name: str,
                           args: EnvironmentStorageArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentStorage(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           access_key: Optional[str] = None,
                           access_mode: Optional[str] = None,
                           account_name: Optional[str] = None,
                           container_app_environment_id: Optional[str] = None,
                           share_name: Optional[str] = None,
                           name: Optional[str] = None)
    func NewEnvironmentStorage(ctx *Context, name string, args EnvironmentStorageArgs, opts ...ResourceOption) (*EnvironmentStorage, error)
    public EnvironmentStorage(string name, EnvironmentStorageArgs args, CustomResourceOptions? opts = null)
    public EnvironmentStorage(String name, EnvironmentStorageArgs args)
    public EnvironmentStorage(String name, EnvironmentStorageArgs args, CustomResourceOptions options)
    
    type: azure:containerapp:EnvironmentStorage
    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 EnvironmentStorageArgs
    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 EnvironmentStorageArgs
    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 EnvironmentStorageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentStorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentStorageArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var environmentStorageResource = new Azure.ContainerApp.EnvironmentStorage("environmentStorageResource", new()
    {
        AccessKey = "string",
        AccessMode = "string",
        AccountName = "string",
        ContainerAppEnvironmentId = "string",
        ShareName = "string",
        Name = "string",
    });
    
    example, err := containerapp.NewEnvironmentStorage(ctx, "environmentStorageResource", &containerapp.EnvironmentStorageArgs{
    	AccessKey:                 pulumi.String("string"),
    	AccessMode:                pulumi.String("string"),
    	AccountName:               pulumi.String("string"),
    	ContainerAppEnvironmentId: pulumi.String("string"),
    	ShareName:                 pulumi.String("string"),
    	Name:                      pulumi.String("string"),
    })
    
    var environmentStorageResource = new EnvironmentStorage("environmentStorageResource", EnvironmentStorageArgs.builder()        
        .accessKey("string")
        .accessMode("string")
        .accountName("string")
        .containerAppEnvironmentId("string")
        .shareName("string")
        .name("string")
        .build());
    
    environment_storage_resource = azure.containerapp.EnvironmentStorage("environmentStorageResource",
        access_key="string",
        access_mode="string",
        account_name="string",
        container_app_environment_id="string",
        share_name="string",
        name="string")
    
    const environmentStorageResource = new azure.containerapp.EnvironmentStorage("environmentStorageResource", {
        accessKey: "string",
        accessMode: "string",
        accountName: "string",
        containerAppEnvironmentId: "string",
        shareName: "string",
        name: "string",
    });
    
    type: azure:containerapp:EnvironmentStorage
    properties:
        accessKey: string
        accessMode: string
        accountName: string
        containerAppEnvironmentId: string
        name: string
        shareName: string
    

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

    AccessKey string
    The Storage Account Access Key.
    AccessMode string
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    AccountName string
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    ShareName string
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    Name string
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    AccessKey string
    The Storage Account Access Key.
    AccessMode string
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    AccountName string
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    ShareName string
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    Name string
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    accessKey String
    The Storage Account Access Key.
    accessMode String
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    accountName String
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    shareName String
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    name String
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    accessKey string
    The Storage Account Access Key.
    accessMode string
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    accountName string
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    containerAppEnvironmentId string
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    shareName string
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    name string
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    access_key str
    The Storage Account Access Key.
    access_mode str
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    account_name str
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    container_app_environment_id str
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    share_name str
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    name str
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    accessKey String
    The Storage Account Access Key.
    accessMode String
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    accountName String
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    shareName String
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    name String
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.

    Outputs

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

    Get an existing EnvironmentStorage 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?: EnvironmentStorageState, opts?: CustomResourceOptions): EnvironmentStorage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key: Optional[str] = None,
            access_mode: Optional[str] = None,
            account_name: Optional[str] = None,
            container_app_environment_id: Optional[str] = None,
            name: Optional[str] = None,
            share_name: Optional[str] = None) -> EnvironmentStorage
    func GetEnvironmentStorage(ctx *Context, name string, id IDInput, state *EnvironmentStorageState, opts ...ResourceOption) (*EnvironmentStorage, error)
    public static EnvironmentStorage Get(string name, Input<string> id, EnvironmentStorageState? state, CustomResourceOptions? opts = null)
    public static EnvironmentStorage get(String name, Output<String> id, EnvironmentStorageState 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:
    AccessKey string
    The Storage Account Access Key.
    AccessMode string
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    AccountName string
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    Name string
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    ShareName string
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    AccessKey string
    The Storage Account Access Key.
    AccessMode string
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    AccountName string
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    Name string
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    ShareName string
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    accessKey String
    The Storage Account Access Key.
    accessMode String
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    accountName String
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    name String
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    shareName String
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    accessKey string
    The Storage Account Access Key.
    accessMode string
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    accountName string
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    containerAppEnvironmentId string
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    name string
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    shareName string
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    access_key str
    The Storage Account Access Key.
    access_mode str
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    account_name str
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    container_app_environment_id str
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    name str
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    share_name str
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.
    accessKey String
    The Storage Account Access Key.
    accessMode String
    The access mode to connect this storage to the Container App. Possible values include ReadOnly and ReadWrite. Changing this forces a new resource to be created.
    accountName String
    The Azure Storage Account in which the Share to be used is located. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The ID of the Container App Environment to which this storage belongs. Changing this forces a new resource to be created.
    name String
    The name for this Container App Environment Storage. Changing this forces a new resource to be created.
    shareName String
    The name of the Azure Storage Share to use. Changing this forces a new resource to be created.

    Import

    A Container App Environment Storage can be imported using the resource id, e.g.

    $ pulumi import azure:containerapp/environmentStorage:EnvironmentStorage example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myEnvironment/storages/mystorage"
    

    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 Classic v5.77.1 published on Monday, May 13, 2024 by Pulumi