Complete the code to create a storage account in Azure using the Azure CLI.
az storage account create --name [1] --resource-group MyResourceGroup --location eastus --sku Standard_LRSThe --name parameter specifies the unique name of the storage account. It must be globally unique.
Complete the code to upload a file to an Azure Blob Storage container using Azure CLI.
az storage blob upload --account-name mystorageaccount123 --container-name mycontainer --name myfile.txt --file [1]The --file parameter specifies the local file path to upload.
Fix the error in the Azure CLI command to list blobs in a container.
az storage blob list --account-name mystorageaccount123 --container-name [1] --output tableThe --container-name parameter requires the container's name, not a file or account name.
Fill both blanks to create a new Azure Blob container with public access disabled.
az storage container create --name [1] --account-name mystorageaccount123 --public-access [2]
The --name parameter sets the container name. The --public-access parameter set to 'private' disables public access.
Fill all three blanks to generate a SAS token for a blob with read permission valid for 1 hour.
az storage blob generate-sas --account-name mystorageaccount123 --container-name mycontainer --name myfile.txt --permissions [1] --expiry [2] --https-only [3]
--permissions 'r' means read access. --expiry sets the token expiry time in UTC ISO format. --https-only set to 'true' ensures secure access.