Exercise 1: Provisioning a Storage Account
One of the many ways to provision Azure Table storage is to use Azure CLI commands. In the following exercise, you will build a new storage account and create a table by leveraging an account key:
- Provision an Azure storage account:
az storage account create --name your-account --resource-group your-group
- Retrieve the key:
key=$(az storage account keys list --account-name your-account --query [0].value -o tsv)
- Provision an Azure Table storage account:
az storage table create --name customers --account-name your-account --account-key $key
The following steps will provide additional commands and show us how to generate a Shared Access Signature (SAS) for access to the table through the RESTful interface. For further examples, you need to execute commands from the script to provision the table and load it with initial records.
The code accompanying the steps can be found here: https://packt.link/GcZte
- Create the...