Use New-AzureDeployment to deploy cloud service, But error occurs "The HTTP version specified is not supported for this operation by the server"

StackOverflow https://stackoverflow.com/questions/14167990

Question

PS C:> New-AzureDeployment -ServiceName "TestAutoDeploy" -Slot "Production" -Package "d:\builds\a.cspkg" -Configuration "d:\builds\a.cscfg" -Label "MyDeployment"

New-AzureDeployment : The HTTP version specified is not supported for this operation by the server. At line:1 char:20 + New-AzureDeployment <<<< -ServiceName "TestAutoDeploy" -Slot "Production" -Package "d:\builds\a.cspkg" -Configuratio n "d:\builds\a.cscfg" -Label "MyDeployment" + CategoryInfo : CloseError: (:) [New-AzureDeployment], StorageServerException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.HostedServices.NewAzureDeploymentCom mand

Was it helpful?

Solution

Make sure you have set your subscription details by calling Set-AzureSubscription before trying to do operations in a subscription:

$certPath = "cert:\LocalMachine\MY\<your management cert's thumbprint>"
$azure_cert = get-item $certPath

Set-AzureSubscription -SubscriptionName "Your Subcription Name" -SubscriptionId "azure_sub_id" -Certificate $azure_cert -CurrentStorageAccount "azure_storage"

read more here - http://msdn.microsoft.com/en-us/library/windowsazure/jj554332.aspx

EDIT: Package cannot be a local file. Specify the path or URI to a .cspkg blob in a storage within the same subscription/project.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top