Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

how to Install Azure SDK on Azure automation

$
0
0

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()



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>