Im trying to query an azure table from a function ( using Get-AzTableRow ) . Works very well from my laptop but the module \"aztable\' is not present in the azure function, and
You do not need to install the AzTable module in the Azure Function yourself. When you run the command, it will install the corresponding module for you.
Here are the screenshots:
The example of the AzTable module:
$location = "eastus"
$resourceGroup = "charlesTable11"
New-AzResourceGroup -ResourceGroupName $resourceGroup -Location $location
$storageAccountName = "pshtablestorage1122"
$storageAccount = New-AzStorageAccount -ResourceGroupName $resourceGroup `
-Name $storageAccountName `
-Location $location `
-SkuName Standard_LRS `
-Kind Storage
$ctx = $storageAccount.Context
$tableName = "pshtesttable"
New-AzStorageTable –Name $tableName –Context $ctx
Get-AzStorageTable –Context $ctx | select Name