asp.net - Publish to Azur fails with 500 internal Server Error -
i have cloud service on windows azure, created asp.net webapi project , published cloud service, working fine visual studio publish before updated visual studio update 4 , azure sdk 2.2 2.6. after updating when publish, got following error messages. tried several times, failed. can me?
even not able publish new created project on new azure service !
11:00:31 pm - warning: there package validation warnings.
11:00:31 pm - checking remote desktop certificate...
11:00:39 pm - preparing deployment tempazure - 2/12/2014 10:58:23 pm subscription id 'e94e9aeb-7003-4eae-be92-7b7ac0a1ba2c' using service management url 'https://management.core.windows.net/'...
11:00:39 pm - connecting...
11:00:39 pm - verifying storage account 'jasontest'...
11:00:41 pm - uploading package...
11:06:48 pm - warning: remote server returned error: (500) internal server error.
11:11:50 pm - warning: remote server returned error: (500) internal server error.
11:26:16 pm - warning: remote server returned error: (500) internal server error.
12:00:27 - warning: remote server returned error: (500) internal server error.
12:05:05 - warning: remote server returned error: (500) internal server error.
12:27:54 - unable write data transport connection: existing connection forcibly closed remote host.
after updating azure sdk2.5 sdk 2.6, had same problem when trying publish azure service vs2013: any deployment effort using visual studio fails after minutes 500 internal server error.
as found reason very slow upload of azure package cloud - between 30kb/s , 50kb/s. deployment fails because of timeout explains, azure instance logs show no sign of deployment...
work around: deploy azure storage
1: package azure solution, either via visualstudio or via command line:
msbuild /t:publish /p:targetprofile=cloud /p:configuration=release
2: create azure storage container upload package to.
continue using azurepowershell cmdlets:
3: login
add-azureaccount
4: upload package azure storage container
$ctx = new-azurestoragecontext -storageaccountname "yourstoragename" -storageaccountkey "yourkey"
set-azurestorageblobcontent -file "...\app.publish\yourservice.cspkg" -container "yourazurestoragecontainer" -blob "yourservice.cspkg" -context $ctx -force
determine packageurl of uploaded package.
5: deploy cloud service referring package uploaded azure cloud storage.
set-azuredeployment -upgrade -slot "staging" -package "packageurl" -configuration "pathtoyourcloudconfiguration.cscfg" -label "somedeploymentinfo" -servicename "yourservicename" -force
(of course entire process scriptable. kemp brown wrote great article: script adapt explictly upload package: continuous delivery cloud services in azure)
Comments
Post a Comment