2015-05-29 38 views
1

我已經創建了一個用於Azure邏輯應用程序的Powershell Webjob。代碼試圖生成一個簽名的URI,以便最終用戶可以在文件可用時下載該文件。爲此,我創建了一個簡單的Powershell Webjob。Powershell Webjob無法運行

New-AzureStorageContext : The term 'New-AzureStorageContext' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 
CommandNotFoundException New-AzureStorageBlobSASToken : The term 'New-AzureStorageBlobSASToken' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 

我知道這些都是Azure Powershell的一部分。但是他們有沒有其他的選擇?或者我需要解決一個單獨的控制檯應用程序?

+1

如果我包含Azure powershell模塊。我遇到了這個錯誤'請在執行前連接到互聯網' – Sam

回答

2

經過大量的谷歌搜索之後,我發現Azure Powershell作業不支持Azure命令。他們有一個允許的計劃,但目前您無法在WebApps Webjob上運行Azure PowerShell作業。

+0

請參閱此鏈接[http://blogs.msdn.com/b/nicktrog/archive/2014/01/22/running-powershell-web-jobs-on -azure-websites.aspx],它是這個 –

+0

powershell工作文件的工作示例,它是不起作用的天藍色命令。 – Sam