{"id":15291739,"url":"https://github.com/azure/azmultiprotocolaccess","last_synced_at":"2025-08-22T12:14:58.507Z","repository":{"id":187526800,"uuid":"677055031","full_name":"Azure/AzMultiProtocolAccess","owner":"Azure","description":"AzMultiProtocolAccess is a sample application designed to showcase how to use Multi-protocol access on Azure Data Lake Storage Gen2.","archived":false,"fork":false,"pushed_at":"2024-06-17T08:02:22.000Z","size":263,"stargazers_count":4,"open_issues_count":0,"forks_count":6,"subscribers_count":3413,"default_branch":"main","last_synced_at":"2025-08-22T00:57:20.242Z","etag":null,"topics":["azure","azure-blob","azure-blob-storage","azure-storage","azureblobstorage","azurestorage","mpa","storage"],"latest_commit_sha":null,"homepage":"https://learn.microsoft.com/en-us/samples/azure/azmultiprotocolaccess/azmultiprotocolaccess/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-10T16:20:51.000Z","updated_at":"2024-06-17T08:02:18.000Z","dependencies_parsed_at":"2023-08-10T23:10:46.731Z","dependency_job_id":"30b7a730-60e5-40c4-b223-02106a10d9db","html_url":"https://github.com/Azure/AzMultiProtocolAccess","commit_stats":{"total_commits":9,"total_committers":4,"mean_commits":2.25,"dds":0.4444444444444444,"last_synced_commit":"ed94fcc3354acd75427e453faacae24058e024df"},"previous_names":["azure/azmultiprotocolaccess"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Azure/AzMultiProtocolAccess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzMultiProtocolAccess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzMultiProtocolAccess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzMultiProtocolAccess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzMultiProtocolAccess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure","download_url":"https://codeload.github.com/Azure/AzMultiProtocolAccess/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2FAzMultiProtocolAccess/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271636034,"owners_count":24794144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-blob","azure-blob-storage","azure-storage","azureblobstorage","azurestorage","mpa","storage"],"created_at":"2024-09-30T16:14:12.590Z","updated_at":"2025-08-22T12:14:58.477Z","avatar_url":"https://github.com/Azure.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\npage_type: sample\nname: AzMultiProtocolAccess\ntopic: sample\ndescription: |\n  AzMultiProtocolAccess is a sample application designed to showcase how to use Multi-protocol access on Azure Data Lake Storage Gen2.\nlanguages:\n  - csharp\nproducts:\n  - azure\n  - azure-blob-storage\nurlFragment: azmultiprotocolaccess\n---\n\n# Azure Storage Multi-protocol access\nAzMultiProtocolAccess is a sample application designed to showcase how to use Multi-protocol access on Azure Data Lake Storage Gen2.\nThe following actions will be performed in sequence:\n* Generating Fake Data\n* Uploading files using Azure DFS API\n* Listing files using Azure Blob API using a PageSize\n* Downloading files using Azure Blob API \n* Uploading files using Azure Blob API and keeping folder structure\n* Listing files using Azure DFS API\n* Downloading files and creating folder structure locally using Azure DFS API\n\n## Contents\n| File/folder       | Description                                |\n|-------------------|--------------------------------------------|\n| `src`             | Sample source code.                        |\n| `.gitignore`      | Define what to ignore at commit time.      |\n| `CONTRIBUTING.md` | Guidelines for contributing to the sample. |\n| `README.md`       | This README file.                          |\n| `LICENSE`         | The license for the sample.                |\n\n## Prerequisites\nTo use this sample, you need to have an Azure subscription. If you do not have an Azure subscription, you can create a free account before you begin. For more information, see [Create an Azure free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).\n\nAll access to Azure Storage takes place through a storage account. For this sample, create a storage account using the [Azure portal](https://portal.azure.com), Azure PowerShell, or Azure CLI. For help creating a storage account, see [Create a storage account](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal) and *enable hierarchical namespace* for [Multi-protocol access](https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-multi-protocol-access).\n\nFor authentication, Azure Active Directory is used. In this sample read and write operations are performed on a storage account. To grant access to the storage account, you need to grant your Identity at least \"Storage Blob Data Contributor\" privileges. For more information, see [Authorize access to Azure blobs and queues using Azure Active Directory](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad?tabs=dotnet).\n\n### Using Azure CLI\n```console\n# Create Ressource Group \naz group create -n rgAzMultiProtocolAccess -l westeurope\n\n# Create Storage Account with Hierarchical Namespace enabled\naz storage account create --name YourAccountName \\\n--resource-group rgAzMultiProtocolAccess --location westeurope \\\n--sku Standard_LRS --enable-hierarchical-namespace\n\n# Add Role Assignment and grant your Identity \"Storage Blob Data Contributor\" privileges\naz role assignment create --assignee \"user@tenant.onmicrosoft.com\" \\\n--role \"Storage Blob Data Contributor\" \\\n--scope \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgAzMultiProtocolAccess/providers/Microsoft.Storage/storageAccounts/YourAccountName\"\n```\n\n\n## Setup\n### Option one\nBefore running the sample, you must change \"YourAccountName\" in the *src/Program.cs* file (line 11) to the name of your storage account created in the step before.\n\n```csharp\nprivate static readonly string storageAccountName = \"YourAccountName\";\n```        \n\n### Option two\nAssign the storage account name as a command line argument when running the sample.\n\n```console  \ndotnet run YourAccountName\n```\n\n\n## Running the sample\nTo build and run the sample, change to the *src* directory and execute the following command:\n\n```console\ndotnet run\n```\n\n![](AzMultiProtocolAccess.gif)\n\n## Key concepts\nFor more information about Multi-protocol access, see the following articles:\n\n* [Documentation](https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-multi-protocol-access)\n* [Training](https://learn.microsoft.com/en-us/training/modules/access-data-azure-blob-storage-multiple-protocols/)\n\n## Trademarks\n\nThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft\ntrademarks or logos is subject to and must follow\n[Microsoft's Trademark \u0026 Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).\nUse of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.\nAny use of third-party trademarks or logos are subject to those third-party's policies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure%2Fazmultiprotocolaccess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazure%2Fazmultiprotocolaccess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure%2Fazmultiprotocolaccess/lists"}