2
Azure項目我使用Azure的培訓工具包命令問題與部署使用PowerShell 2
New-Deployment
-serviceName <YOUR_SERVICE_NAME_LOWER_CASE>
-subscriptionId <YOUR_SUBSCRIPTION_ID>
-certificate (get-item cert:\CurrentUser\MY\<YOUR_CERTIFICATE_THUMBPRINT>)
-slot staging
–package <PACKAGE_LOCATION>
-configuration <CONFIGURATION_LOCATION>
-label "v2.0"
–storageServiceName <YOUR_STORAGE_SERVICE_NAME_LOWER_CASE>
部署我Azure的應用程序。它能夠上傳包到blob對象,而是創建一個新的部署時,它顯示的錯誤爲:
New-Deployment : Cannot access a closed Stream.
At line:1 char:15
+ New-Deployment <<<< -serviceName mytodo -subscriptionId xxxxxxxxx
8ad-360cdbdc361f -certificate (get-item cert:\CurrentUser\MY\xxxxxxxx
6DD27E3DFF5F7FE24A3FBF) -slot staging -package MyTodo.cspkg -configuration Serv
iceConfiguration.cscfg -label "v1.0" -storageServiceName xxxxx
+ CategoryInfo : CloseError: (:) [New-Deployment], ObjectDisposed
Exception
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Samples.ManagementTools.P
owerShell.Services.HostedServices.NewDeploymentCommand
謝謝你的回答。基於http://msdn.microsoft.com/en-us/gg271300,我發現我錯過了在azure上創建主機服務。我認爲它會自動爲我創建。 – user1117239 2011-12-27 08:05:02
你能澄清一下嗎?缺少什麼? – 2011-12-27 08:17:47