github.com/shindo/goofys@v0.24.1-0.20210326210429-9e930f0b2d5c/README-azure.md (about) 1 # Azure Blob Storage 2 3 ```ShellSession 4 $ cat ~/.azure/config 5 [storage] 6 account = "myblobstorage" 7 key = "MY-STORAGE-KEY" 8 $ $GOPATH/bin/goofys wasb://container <mountpoint> 9 $ $GOPATH/bin/goofys wasb://container:prefix <mountpoint> # if you only want to mount objects under a prefix 10 ``` 11 12 Users can also configure credentials via `AZURE_STORAGE_ACCOUNT` and 13 `AZURE_STORAGE_KEY` environment variables. See [Azure CLI configuration](https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest#cli-configuration-values-and-environment-variables) for details. Goofys does not support `connection_string` or `sas_token` yet. 14 15 Goofys also accepts full `wasb` URIs: 16 ```ShellSession 17 $ $GOPATH/bin/goofys wasb://container@myaccount.blob.core.windows.net <mountpoint> 18 $ $GOPATH/bin/goofys wasb://container@myaccount.blob.core.windows.net/prefix <mountpoint> 19 ``` 20 21 In this case account configuration in `~/.azure/config` or `AZURE_STORAGE_ACCOUNT` can be omitted. Alternatively, `--endpoint` can also be used to specify storage account: 22 23 ```ShellSession 24 $ $GOPATH/bin/goofys --endpoint https://myaccount.blob.core.windows.net wasb://container <mountpoint> 25 $ $GOPATH/bin/goofys --endpoint https://myaccount.blob.core.windows.net wasb://container:prefix <mountpoint> 26 ``` 27 28 Note that if full `wasb` URI is not specified, prefix separator is `:`. 29 30 Finally, insteading of specifying storage account access key, goofys 31 can also use [Azure 32 CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) 33 access tokens: 34 35 ```ShellSession 36 $ az login 37 # list all subscribtions and select the needed one 38 $ az account list 39 # select current subscription (get its id from previous step) 40 $ az account set --subscription <name or id> 41 $ $GOPATH/bin/goofys wasb://container@myaccount.blob.core.windows.net <mountpoint> 42 ``` 43 44 # Azure Data Lake Storage Gen1 45 46 Follow the Azure CLI login sequence from above, and then: 47 48 ```ShellSession 49 $ $GOPATH/bin/goofys adl://servicename.azuredatalakestore.net <mountpoint> 50 $ $GOPATH/bin/goofys adl://servicename.azuredatalakestore.net:prefix <mountpoint> 51 ``` 52 53 # Azure Data Lake Storage Gen2 54 55 Configure your credentials the same way as [Azure Blob Storage](https://github.com/kahing/goofys/blob/master/README-azure.md#azure-blob-storage) above, and then: 56 57 ```ShellSession 58 $ $GOPATH/bin/goofys abfs://container <mountpoint> 59 $ $GOPATH/bin/goofys abfs://container:prefix <mountpoint> 60 ```