Creating and Managing Azure Storage Tables with PowerShell
Today’s mission was to get more familiar with Azure Storage Tables and to manage them with PowerShell. On GitHub I found the AzureTableEntity module from Tao Yang. Below are a number of code snippets I used to get my hands dirty with Azure Storage tables and the module. Install the Module
1 |
Install-Module -Name AzureTableEntity |
Next we create an Azure Resource Group and an Azure Storage Account
1 2 3 4 5 6 7 8 |
# Create ResourceGroup $Location = "Westeurope" $ComputerInventory_ResourceGroup = "rg_CompComputerInventory" New-AzureRmResourceGroup -Name $ComputerInventory_ResourceGroup -Location $Location # Create StorageAccount $SkuName = "Standard_LRS" $ComputerInventory_StorageAccountName = "sacomputerinventory" New-AzureRmStorageAccount -ResourceGroupName $ComputerInventory_ResourceGroup -Name $ComputerInventory_StorageAccountName -SkuName "$SkuName" -Location $Location, |
We will need the Storage Account key later so let’s Read More …