Azure Connection Testing
To connect to an Azure blob container you can either use:
- Container name, account name, account key
- Connection string
- Shared Access Signature (SAS) URL
Connecting with Account name and Account key
Section titled “Connecting with Account name and Account key”In order to test connection to an Azure blob container using account name and account key you need to execute
connect test az
followed by:
--az-container
then the blob container name--az-account-name
then the AZ account name--az-account-key
then the AZ account key
For example:
$ connect test az --az-container myblob --az-account-name myaccount --az-account-key 1O8MbYTgY8Z/KD7Ip181dar7zvWfpTyzGIVdX1WsCmBSRj+XL1oXTkcMWri2ejhfmcA7/ZAFO6YL+ASt/GRBow==2025/05/22 09:51:05 INFO Testing connection to az://myblob/2025/05/22 09:51:05 INFO Connection successful
Connecting with connection string
Section titled “Connecting with connection string”In order to test connection to an Azure blob container using connection string you need to execute
connect test az
followed by:
--az-connection-string
then the connection string
For example:
$ connect test az --az-connection-string "DefaultEndpointsProtocol=https;BlobEndpoint=https://myaccount.blob.core.windows.net/mybob;AccountName=myaccount;AccountKey=1O8MbYTgY8Z/KD7Ip181dar7zvWfpTyzGIVdX1WsCmBSRj+XL1oXTkcMWri2ejhfmcA7/ZAFO6YL+ASt/GRBow=="2025/05/22 09:51:59 INFO Testing connection to az://myblob/2025/05/22 09:51:59 INFO Connection successful
Connecting with SAS URL
Section titled “Connecting with SAS URL”In order to test connection to an Azure blob container using Shared Access Signature (SAS) URL you need to execute
connect test az
followed by:
--az-sas-url
then the SAS URL
For example:
$ connect test az --az-sas-url "https://myaccount.blob.core.windows.net/myblob?sp=racwdli&st=2024-09-11T14:53:45Z&se=2024-09-25T22:53:45Z&spr=https&sv=2022-11-02&sr=c&sig=WZl3RWGl6pPHKUVyGlWB0ZxYjcmIK%2FbCkdjglw2wku0%3D"2025/05/22 09:54:01 INFO Testing connection to az://myblob/2025/05/22 09:54:01 INFO Connection successful
All Azure Connection Test Options
Section titled “All Azure Connection Test Options”Usage: connect test az [command] [flags]
Flags: --az-account-key string AZ account key --az-account-name string AZ account name --az-connection-string string AZ connection string --az-container string AZ container name --az-sas-url string AZ SAS URL
Global Flags: --godebug Turns on debug mode --help Prints help for the command --log-format string Log output format: text|json (default "text") --no-color Do not use colors in logs --quiet Makes no output
Errors
Section titled “Errors”Please check here for information on the possible errors.