2
votes

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

1
Welcome to Stackoverflow. Please give us a little more background on your problem so we can help you more.Brett

1 Answers

2
votes

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.