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("example-resources")
.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 exampleShareFile = share_file::create(
"exampleShareFile",
ShareFileArgs::builder()
.name("my-awesome-content.zip")
.source("some-local-file.zip")
.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/shareFile:ShareFile example https://account1.file.core.windows.net/share1/file1
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments