使用New-AzureDeployment部署云服务,但发生错误“服务器不支持此操作指定的HTTP版本”

时间:2013-01-05 02:34:46

标签: azure cloud azure-storage cmdlets autodeploy

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

New-AzureDeployment:服务器不支持此操作指定的HTTP版本。 在行: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    普通话

1 个答案:

答案 0 :(得分:2)

在尝试在订阅中执行操作之前,请确保通过调用Set-AzureSubscription设置订阅详细信息:

$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"

在此处阅读更多内容 - http://msdn.microsoft.com/en-us/library/windowsazure/jj554332.aspx

编辑:包不能是本地文件。在同一订阅/项目中的存储中指定.cspkg blob的路径或URI。