i have a powershell script that connect to storage table and read the data from a Table. which works fine on the local where Azure SDK 2.1 is installed.
While i add it as part of Azure automation i get an error as not able to resolve "Microsoft.WindowsAzure" this is because we donot have Azure SDK on the machine where this runbook of azure automation is running.
IS there any option to enable/install Azure SDK on the machine where runbook executes?
Is there any alternate option to upload required assemblies as part of setting so that runbook could use while executing.
below is the sample power shell script to connect to storage table.
[string]$storageAccountName ='xxxxx'[string]$storageAccountKey =’xxxxxxx'
$accountCredentials = New-Object Microsoft.WindowsAzure.Storage.Auth.StorageCredentials $storageAccountName, #Create instance of CloudStorageAccount object
$storageAccount = New-Object "Microsoft.WindowsAzure.Storage.CloudStorageAccount" $accountCredentials, $true
#Create table client
$tableClient = $storageAccount.CreateCloudTableClient()