azure login
azure account list
azure account set XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX
azure account show
azure config mode arm
- ResourceGroup
For this example :
Region : West US SkuName : Premium_LRS
azure storage account list
info: Executing command storage account list
+ Getting storage accounts
data: Name SKU Name SKU Tier Access Tier Kind Encrypted Service Location Resource Group
data: ------------------- ------------ -------- ----------- ------- ----------------- --------- --------------
data: 6b1987centralus Standard_LRS Standard Storage centralus securitydata
data: mystorageaccountft1 Standard_LRS Standard Storage centralus mygroup2
info: storage account list command OK
First we need to create a ResourceGroup or select an existing ResourceGroup. In this case we will use ResourceGroup created in previous lesson.
Important: The name of the storage account must be unique in Azure. It must be lowercase, too!
azure storage account check teststorageft
azure storage account check teststorageft -v
azure storage account check teststorageft -vv
azure storage account check teststorageft --json
####Create a Storage Account
- SKU name (LRS/ZRS/GRS/RAGRS/PLRS)
- the account kind (Storage/BlobStorage)
azure storage account create <> --sku-name <> --kind --tags --location --resource-group --subscription
azure storage account keys list testuploadedstorage --resource-group TestRGcli
azure storage container create --account-name testuploadedstorage --account-key --container vm-images
Tips : The -v parameter provides verbose output, and the -vv parameter provides even more detailed verbose output. The --json option will output the result in raw json format.