2016-03-03 19 views
0

使用此代碼 https://msdn.microsoft.com/en-us/library/jj919145.aspxAzure的自動化 - 如何Azure存儲集加載到運行書

我試圖打破由SQL備份到URL生成斑點的租約,這樣我可以使用刪除,然後刪除舊的斑點-azurestorageblob

這就像本地一個夢想,但我想在Azure的自動化

運行它,我需要加載的存儲組件,但我似乎無法得到它。

我看着這個答案

https://social.msdn.microsoft.com/Forums/en-US/45251bdb-bb20-488c-a428-3ee1094fd568/referencing-microsoftwindowsazurestoragedll-and-creating-cloud-blob-client-using?forum=azureautomation

,並試圖用C:\模塊文件夾加載

$storageAssemblyPath = "C:\Modules\Global\Azure\Compute\Microsoft.WindowsAzure.Storage.dll" 
$bytes = [System.IO.File]::ReadAllBytes($storageAssemblyPath) 
[System.Reflection.Assembly]::Load($bytes) 

我寫了一個運行手冊來搜索DLL

workflow robs 
{ 
Inlinescript{ 
cd/
pwd 

get-childitem *WindowsAzure.Storage.dll -recurse 
} 
} 

並嘗試使用返回的路徑在c:\ modules \ g中加載但總是得到錯誤找不到組件

回答

0

奇怪的是,它現在已經工作了,因爲它沒有保存我的更改,因此我刪除並重新創建了運行簿。

所以有一些奇怪的新蔚藍蔚藍的門戶自動化創作這是不正確的救了我的變化,我相信,因此不斷給我的錯誤

窗格回事