sdk/storage/Azure.Provisioning.Storage/README.md
Azure.Provisioning.Storage simplifies declarative resource provisioning in .NET for Azure Storage.
Install the client library for .NET with NuGet:
dotnet add package Azure.Provisioning.Storage
You must have an Azure subscription.
This library allows you to specify your infrastructure in a declarative style using dotnet. You can then use azd to deploy your infrastructure to Azure directly without needing to write or maintain bicep or arm templates.
This example demonstrates how to create a storage account with recommended security settings and hierarchical namespace enabled for Azure Data Lake Storage Gen2.
Infrastructure infra = new();
StorageAccount storage = new("storage", StorageAccount.ResourceVersions.V2023_01_01)
{
Kind = StorageKind.StorageV2,
Sku = { Name = StorageSkuName.StandardLrs },
IsHnsEnabled = true,
AllowBlobPublicAccess = false
};
infra.Add(storage);
For details on contributing to this repository, see the contributing guide.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (for example, label, comment). Follow the instructions provided by the bot. You'll only need to do this action once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any other questions or comments.
<!-- LINKS -->