pulumi_wasm_providers_azure_mini::storage

Module share_directory

source
Expand description

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let example = resource_group::create(
        "example",
        ResourceGroupArgs::builder()
            .location("West Europe")
            .name("azuretest")
            .build_struct(),
    );
    let exampleAccount = account::create(
        "exampleAccount",
        AccountArgs::builder()
            .account_replication_type("LRS")
            .account_tier("Standard")
            .location("${example.location}")
            .name("azureteststorage")
            .resource_group_name("${example.name}")
            .build_struct(),
    );
    let exampleShare = share::create(
        "exampleShare",
        ShareArgs::builder()
            .name("sharename")
            .quota(50)
            .storage_account_name("${exampleAccount.name}")
            .build_struct(),
    );
    let exampleShareDirectory = share_directory::create(
        "exampleShareDirectory",
        ShareDirectoryArgs::builder()
            .name("example")
            .storage_share_id("${exampleShare.id}")
            .build_struct(),
    );
}

§Import

Directories within an Azure Storage File Share can be imported using the resource id, e.g.

$ pulumi import azure:storage/shareDirectory:ShareDirectory example https://tomdevsa20.file.core.windows.net/share1/directory1

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments