Creating Blob storage using the Azure CLI 2.0

Let's repeat the previous task, but this time, we are going to use the Azure CLI 2.0:

az storage container create --name packtpubbs --public-access container --account-name packtpubsacliaz storage blob upload --file C:\test.txt --container-name packtpubbs --name blobcli --account-name packtpubsacli

In the preceding command, we have only changed the storage account, which we have created to be used in tasks implemented by the Azure CLI 2.0, and we named the blob blobcli.

The private access type in the Azure CLI is changed to Off, so consider that when you want to create a container with the private access type using the Azure CLI.

Get Learning Microsoft Azure Storage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.