/hybird-storage-dotnet-manage-storage-accounts

Getting Started with Storage - Manage Storage Accounts in Azure Stack Hybrid cloud - in C# asynchronously

Primary LanguageC#MIT LicenseMIT

page_type languages products description urlFragment
sample
csharp
azure
Azure Stack sample for managing storage accounts
hybrid-storage-dotnet-manage-storage-accounts

Hybrid-Storage-DotNET-Manage-StorageAccounts

Azure Stack sample for managing storage accounts -

  • Create a storage account
  • Get | regenerate storage account access keys
  • Create another storage account
  • Update Storage account by enabling encryption
  • List storage accounts
  • Delete a storage account

Running this sample

To run this sample:

  1. Clone the repository using the following command:

    git clone https://github.com/Azure-Samples/hybird-storage-dotnet-manage-storage-accounts.git

  2. Create an Azure service principal and assign a role to access the subscription. For instructions on creating a service principal in Azure Stack, see Use Azure PowerShell to create a service principal with a certificate.

  3. Set the following required environment variable values:

    • AZURE_TENANT_ID

    • AZURE_CLIENT_ID

    • AZURE_CLIENT_SECRET

    • AZURE_SUBSCRIPTION_ID

    • ARM_ENDPOINT

    • RESOURCE_LOCATION

  4. Change directory to sample:

    • cd hybird-storage-dotnet-manage-storage-accounts
  5. Run the sample:

    dotnet restore

    dotnet run

More information

Azure .Net Developer Center


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.