Option 2: Use a SAS token. You can append a SAS token to each source or destination URL that use in your AzCopy commands. This example command recursively copies data from a local directory to a blob container. A fictitious SAS token is appended to the end of the container URL. AzCopy. To list the blobs in a container using a flat listing, call one of these methods: ContainerClient.list_blobs (along with the name, you can optionally include metadata, tags, and other information associated with each blob) ContainerClient.list_blob_names (only returns blob name) az storage blob list \ --container-name applicationdefinitions \ --account-name \ --query "[].{Name:name}" When you run the Azure CLI command, a credentials warning message might be displayed similar to the CLI command in package the files . I had this just today when I was creating containers through terraform but my computer's public IP was not part of the Storage Account network rules. You can try to access a container through the Azure Portal and should see a similar error, maybe with a little more information. Copy all containers, directories, and blobs to another storage account by using the azcopy copy command. Tip. This example encloses path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double We can use CLI 2.0 command az group exists to test the resource group exist or not, like this: C:\Users\user>az group exists -n jasontest false. In this way, before we create it, we can test the name available or not. In new resource group, we can create new Vnet and other resources. To do so, I need a SAS to access the storage and to generate one I would use the following command: az storage blob generate-sas -c containername --account-name storage-account-name -n blob-name. The problem here is, I also need to provide the blob name for the above command to work, but I would like my backup to be stored directly in the List the blobs in a container. List the blobs in the container with the az storage blob list command. Remember to replace placeholder values in angle brackets with your own values: az storage blob list \ --account-name \ --container-name \ --output table \ --auth-mode login Download a blob name - (Required) The name of the storage blob. Must be unique within the storage container the blob is located. Changing this forces a new resource to be created. storage_account_name - (Required) Specifies the storage account in which to create the storage container. Changing this forces a new resource to be created. Create a storage account and blob container with Azure CLI . You'll need to create a general-purpose storage account first to use blobs. If you don't have a resource group, create one before running the command. The following command creates and display the metadata of the storage container. Copy down the ID. P2t05FF.