Container

class Container : KotlinCustomResource

Manages a Container within an Azure Storage Account.

Example Usage

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.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
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("LRS")
.tags(Map.of("environment", "staging"))
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.storageAccountName(exampleAccount.name())
.containerAccessType("private")
.build());
}
}

Import

Storage Containers can be imported using the resource id, e.g.

$ pulumi import azure:storage/container:Container container1 https://example.blob.core.windows.net/container

Properties

Link copied to clipboard

The Access Level configured for this Container. Possible values are blob, container or private. Defaults to private.

Link copied to clipboard

Is there an Immutability Policy configured on this Storage Container?

Link copied to clipboard
val hasLegalHold: Output<Boolean>

Is there a Legal Hold configured on this Storage Container?

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val metadata: Output<Map<String, String>>

A mapping of MetaData for this Container. All metadata keys should be lowercase.

Link copied to clipboard
val name: Output<String>

The name of the Container which should be created within the Storage Account. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The Resource Manager ID of this Storage Container.

Link copied to clipboard

The name of the Storage Account where the Container should be created. Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>