2

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

New-AzureDeployment :服务器不支持此操作指定的 HTTP 版本。在 line:1 char:20 + New-AzureDeployment <<<< -ServiceName "TestAutoDeploy" -Slot "Production" -Package "d:\builds\a.cspkg" -Configuratio n "d:\builds\a.cscfg" -标签“MyDeployment”+ CategoryInfo:CloseError: (:) [New-AzureDeployment],StorageServerException + FullyQualifiedErrorId:Microsoft.WindowsAzure.Management.ServiceManagement.HostedServices.NewAzureDeploymentCommand

4

1 回答 1

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。

于 2013-01-05T03:14:04.710 回答