Expand description
Manages a File Share within Azure Storage.
Note The storage share supports two storage tiers: premium and standard. Standard file shares are created in general purpose (GPv1 or GPv2) storage accounts and premium file shares are created in FileStorage storage accounts. For further information, refer to the section “What storage tiers are supported in Azure Files?” of documentation.
Note on Authentication Shared Key authentication will always be used for this resource, as AzureAD authentication is not supported by the Storage API for files.
§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()
.acls(
vec![
ShareAcl::builder()
.accessPolicies(vec![ShareAclAccessPolicy::builder()
.expiry("2019-07-02T10:38:21Z").permissions("rwdl")
.start("2019-07-02T09:38:21Z").build_struct(),])
.id("MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI").build_struct(),
],
)
.name("sharename")
.quota(50)
.storage_account_id("${exampleAccount.id}")
.build_struct(),
);
}
§Import
Storage Shares can be imported using the id
, e.g.
$ pulumi import azure:storage/share:Share exampleShare /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Storage/storageAccounts/myAccount/fileServices/default/shares/exampleShare
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