azure powershell命令Publish-AzureServiceProject需要30分钟或更长时间才能成功发布应用程序。我们运行以下azure powershell命令。
Publish-AzureServiceProject
-Package
'C:\tca\tick\712fd6c47ab9a6e5\azurewebsite\Weingartner.Distribution.Azure.cspkg'
-Slot Staging
-Configuration
'C:\tca\tick\712fd6c47ab9a6e5\azurewebsite\ServiceConfiguration.Cloud.cscfg'
导致以下输出
Id Type Subscriptions Tenants
-- ---- ------------- -------
research@weingartnergmbh.onmicrosoft.com User XXXXXXX {XXXXXXXXXXX...
14:28:50 - Verifying storage account 'weingartnerdistribution'...
Publishing weingartnerdistribution to Microsoft Azure. This may take several minutes...
14:28:51 - Connecting...
14:28:53 - Uploading Package to storage service weingartnerdistribution...
14:29:32 - Starting...
14:30:37 - Created Deployment ID: XXXXXXXXXXXXXXXXXXXXXXX.
14:30:37 - Initializing...
15:02:15 - Instance
Weingartner.Distribution.Website.Hosting.Azure_IN_0
of role
Weingartner.Distribution.Website.Hosting.Azure
is busy.
15:06:24 - Instance
Weingartner.Distribution.Website.Hosting.Azure_IN_0
of role
Weingartner.Distribution.Website.Hosting.Azure
is ready.
15:06:25 - Created Website URL: http://XXXXXXXXXX.cloudapp.net/.
Finished Target: Publish
初始化VM需要30分钟。当我进入azure门户网站时,没有明显的错误,并且最终启动时服务正常运行。
我想问问azure发生了什么,但我正在使用额外的小实例并且没有服务合同,即:
的问题?具有较高付费计划或较大规格虚拟机的人是否看到相同的30分钟转发以发布升级到应用服务,或者这是纯技术问题,可以通过更好地使用API来解决?
我在上午7:28在命令行运行以下命令
Publish-AzureServiceProject -Package。\ Weingartner.Distribution.Azure.cspkg -Configuration。\ ServiceConfiguration.Cloud.cscfg -Slot Staging
根据AzurePortal,它于上午7:38结束
然而,poweshell脚本的调试输出在GMT + 1上午7:53之前不断输出以下内容(使用XXXXX删除敏感数据并注意日志是GMT,因此添加一小时)
Headers:
x-ms-servedbyregion : ussouth3
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Cache-Control : no-cache
Date : Tue, 09 Jan 2018 06:53:31 GMT
Server : 1.0.6198.592,(rd_rdfe_stable.180102-1534),Microsoft-HTTPAPI/2.0
Body:
<Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Name>s2018-01-09-07-25-41-2872</Name>
<DeploymentSlot>Staging</DeploymentSlot>
<PrivateID>XXXXXXXXXXXXXXXX</PrivateID>
<Status>Running</Status>
<Label>XXXXXXXXX</Label>
<Url>http://XXXXXXXXXXXXXX.cloudapp.net/</Url>