visual studio - Powershell Set-AzureDeployment fails with a StorageException -
i use powershell script "publishcloudservice.ps1" http://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/ deploy cloud projects. somehow, 1 project doesn't deploy , following error message:
set-azuredeployment : unable write data transport connection: existing connection forcibly closed remote host. @ d:\users\4711\untitled1.ps1:78 char:22 + $setdeployment = set-azuredeployment -upgrade -slot $slot -package $packagel ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : closeerror: (:) [set-azuredeployment], storageexception + fullyqualifiederrorid : microsoft.windowsazure.management.servicemanagement.hostedservices.setazuredeploymentcommand
the affected command is:
set-azuredeployment -upgrade -slot $slot -package $packagelocation -configuration $cloudconfiglocation -label $deploymentlabel -servicename $servicename -force
deploying project manual using publish dialog in visual studio works without problems.
i tryed recreate project in visual studio , created new storage account still face same error. script works other cloud projects well.
how can more information error? suggestions?
finally, found workaround problem. uploading package blob storage , use url in set-azuredeployment command works fine:
# if target container not exist, create it. $containerstate = get-azurestoragecontainer -name $containername -ea 0 if ($containerstate -eq $null) { new-azurestoragecontainer -name $containername | out-null } set-azurestorageblobcontent -file $packagelocation -container $containername -blob $blob -force| out-null $script:packagelocation = (get-azurestorageblob -blob $blobname -container $containername).icloudblob.uri.absoluteuri
Comments
Post a Comment